Explorar el Código

'3.5问题修复'

hhl123456789 hace 2 años
padre
commit
fc0272dca0
Se han modificado 2 ficheros con 15 adiciones y 2 borrados
  1. 8
    2
      src/views/caseManagement/components/selectMediator.vue
  2. 7
    0
      src/views/index.vue

+ 8
- 2
src/views/caseManagement/components/selectMediator.vue Ver fichero

@@ -47,8 +47,15 @@ export default {
47 47
     watch: {
48 48
         mediatorVisable(val) {
49 49
             if (val) {
50
-                listMediator().then(res=>{
50
+                listMediator({caseAppliId: this.mediatorData.id}).then(res=>{
51 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,7 +95,6 @@ export default {
88 95
         },
89 96
         handleSelectionChange(val) {
90 97
             this.multipleSelection = val;
91
-            // console.log(this.multipleSelection,"LLLLLLLLLLLLLLLLL");
92 98
         }
93 99
     },
94 100
 };

+ 7
- 0
src/views/index.vue Ver fichero

@@ -35,6 +35,13 @@ export default {
35 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 45
   created() {
39 46
     this.gettodoCount();
40 47
   },