Parcourir la source

Merge branch 'hhl' of SH-Arbitrate/Mediation-Frontend into dev

hhlxayunmei il y a 2 ans
Parent
révision
9f2556e387
2 fichiers modifiés avec 15 ajouts et 2 suppressions
  1. 8
    2
      src/views/caseManagement/components/selectMediator.vue
  2. 7
    0
      src/views/index.vue

+ 8
- 2
src/views/caseManagement/components/selectMediator.vue Voir le fichier

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 Voir le fichier

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
   },