Преглед на файлове

人员目标管理,项目目标管理新建

qymljy преди 2 години
родител
ревизия
568ecfbcdd
променени са 2 файла, в които са добавени 10 реда и са изтрити 4 реда
  1. 5 2
      src/HManagement/personalTarget/target/modules/add.vue
  2. 5 2
      src/HManagement/projectTarget/target/modules/add.vue

+ 5 - 2
src/HManagement/personalTarget/target/modules/add.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-button type="primary" size="small" @click="dialogTableVisible = true">新 建</el-button>
+    <el-button type="primary" size="small" @click="visibleShow">新 建</el-button>
     <el-dialog
         title="新建人员目标年度"
         :visible.sync="dialogTableVisible"
@@ -213,6 +213,10 @@ export default {
       })
       this.yearOpens = res.data
     },
+    visibleShow(){
+      this.dialogTableVisible = true
+      this.yearList()
+    }
     /*pickerOptions(){
       // return time.getTime() < Date.now(); //当天不可选
       const time = new Date()
@@ -222,7 +226,6 @@ export default {
   mounted () {
     /*this.listData()*/
     this.yearData()
-    this.yearList()
   },
   created () {
     this.tablecols = this.tool.tabelCol(this.$route.name)['personalTable'].tablecols

+ 5 - 2
src/HManagement/projectTarget/target/modules/add.vue

@@ -1,6 +1,6 @@
 <template>
   <div>
-    <el-button type="primary" size="small" @click="dialogTableVisible = true">新 建</el-button>
+    <el-button type="primary" size="small" @click="visibleShow">新 建</el-button>
     <el-dialog
         title="新建项目目标年度"
         :visible.sync="dialogTableVisible"
@@ -149,11 +149,14 @@ export default {
       this.yearOpens = res.data
       console.log(this.yearOpens,'年度列表')
     },
+    visibleShow(){
+      this.dialogTableVisible = true
+      this.yearList()
+    }
   },
   mounted () {
     /*this.listData()*/
     this.yearData()
-    this.yearList()
   },
   created () {
     this.tablecols = this.tool.tabelCol(this.$route.name)['personalTable'].tablecols