Selaa lähdekoodia

fix time join

scorpio 2 vuotta sitten
vanhempi
commit
9d4e5c0188
1 muutettua tiedostoa jossa 6 lisäystä ja 3 poistoa
  1. 6 3
      src/views/home/component/dash.vue

+ 6 - 3
src/views/home/component/dash.vue

@@ -355,11 +355,14 @@ export default {
   },
   created () {
     const index = this.option.column.findIndex(sub => sub.prop === 'lot')
-    console.log(index)
-    if (this.user.info.viewStage === 1) {
+    const indexLabel = this.option.column.findIndex(sub => sub.prop === 'responsible_unit')
+    console.log(indexLabel)
+    if (this.user.info.viewStage === 1) { // 发改
       this.option.column[index].hide = true
+      this.option.column[indexLabel].label = '责任单位'
     } else {
       this.option.column[index].hide = false
+      this.option.column[indexLabel].label = '责任股(科)室'
     }
     this.$bus.on('serach', (res, type) => {
       this.owerQuery = res
@@ -472,7 +475,7 @@ export default {
       })
     },
     track (res) {
-      if (res.isReport === 1) {
+      if (res.is_report === 1) {
         this.$message.error('该项目已经上报')
         return
       }