#73 3.5问题修复

Scalone
hhlxayunmei scala 2 commity/ów z hhl do dev 2 lat temu

+ 8
- 2
src/views/caseManagement/components/selectMediator.vue Wyświetl plik

47
     watch: {
47
     watch: {
48
         mediatorVisable(val) {
48
         mediatorVisable(val) {
49
             if (val) {
49
             if (val) {
50
-                listMediator().then(res=>{
50
+                listMediator({caseAppliId: this.mediatorData.id}).then(res=>{
51
                     this.tableData = res.data;
51
                     this.tableData = res.data;
52
+                    this.tableData.forEach((item)=> {
53
+                        if (item.echoFlag) {
54
+                            this.$nextTick(()=>{
55
+                                this.$refs.multipleTable.toggleRowSelection(item, true);
56
+                            })
57
+                        }
58
+                    })
52
                 })
59
                 })
53
             }
60
             }
54
         }
61
         }
88
         },
95
         },
89
         handleSelectionChange(val) {
96
         handleSelectionChange(val) {
90
             this.multipleSelection = val;
97
             this.multipleSelection = val;
91
-            // console.log(this.multipleSelection,"LLLLLLLLLLLLLLLLL");
92
         }
98
         }
93
     },
99
     },
94
 };
100
 };

+ 7
- 0
src/views/index.vue Wyświetl plik

35
       iconHead: process.env.VUE_APP_BASE_API
35
       iconHead: process.env.VUE_APP_BASE_API
36
     };
36
     };
37
   },
37
   },
38
+  watch: {
39
+    $route(val) {
40
+    if (val) {
41
+      this.gettodoCount();
42
+    }
43
+    }
44
+  },
38
   created() {
45
   created() {
39
     this.gettodoCount();
46
     this.gettodoCount();
40
   },
47
   },