linyanfei 3 years ago
parent
commit
06bc2f8ea1

+ 2 - 6
shanXiPlatform/src/views/systemManagement/userManagement/approverManagement/index.vue

@@ -520,6 +520,7 @@ export default {
520
     handTreeClick(data) {
520
     handTreeClick(data) {
521
     this.depotId = data.depotCode
521
     this.depotId = data.depotCode
522
     this.getRoleSelect()
522
     this.getRoleSelect()
523
+    this.approverList()
523
     },
524
     },
524
       filterNode(value, data) {
525
       filterNode(value, data) {
525
       if (!value) return true
526
       if (!value) return true
@@ -545,7 +546,7 @@ export default {
545
           if (res.code == 200) {
546
           if (res.code == 200) {
546
             this.tableData.forEach((item) => {
547
             this.tableData.forEach((item) => {
547
               if (item.title.indexOf("主管科长") != -1) {
548
               if (item.title.indexOf("主管科长") != -1) {
548
-                this.$set(item, "approverSelect", res.data[33]) //
549
+                this.$set(item, "approverSelect", res.data[33]) 
549
               } else if (item.title.indexOf("分管副总经理") != -1) {
550
               } else if (item.title.indexOf("分管副总经理") != -1) {
550
                 this.$set(item, "approverSelect", res.data[35])
551
                 this.$set(item, "approverSelect", res.data[35])
551
               } else if (item.title.indexOf("总经理") != -1) {
552
               } else if (item.title.indexOf("总经理") != -1) {
@@ -634,8 +635,6 @@ export default {
634
       checkList(type, userId, depotId)
635
       checkList(type, userId, depotId)
635
         .then((res) => {
636
         .then((res) => {
636
           if (res.code == 200) {
637
           if (res.code == 200) {
637
-            console.log(res.data, "查看数据")
638
-
639
             if (
638
             if (
640
               res.data == null ||
639
               res.data == null ||
641
               res.data == "" ||
640
               res.data == "" ||
@@ -646,8 +645,6 @@ export default {
646
             } else {
645
             } else {
647
               this.tableData = res.data
646
               this.tableData = res.data
648
             }
647
             }
649
-
650
-            console.log(this.tableData, " this.meVentilation....")
651
             this.getRoleSelect()
648
             this.getRoleSelect()
652
           }
649
           }
653
         })
650
         })
@@ -661,7 +658,6 @@ export default {
661
   },
658
   },
662
   mounted() {
659
   mounted() {
663
     this.userInfo = JSON.parse(getUser())
660
     this.userInfo = JSON.parse(getUser())
664
-    console.log(this.userInfo, "this.userInfo.....?????")
665
     this.depotId = this.userInfo.depotId
661
     this.depotId = this.userInfo.depotId
666
     this.approverList()
662
     this.approverList()
667
   },
663
   },