Pārlūkot izejas kodu

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

gaogaoyujie 2 gadus atpakaļ
vecāks
revīzija
eaa129cfd4

+ 14
- 3
src/views/caseManagement/components/departmentMediator.vue Parādīt failu

@@ -3,10 +3,12 @@
3 3
         <el-dialog title="部门长确认调解员" :visible="departmentVisable" v-if="departmentVisable" @close="cancel" center
4 4
             :distroy-on-close="true">
5 5
             <div>
6
-                <div v-if="tableDataFlag">
6
+                <!-- v-if="tableDataFlag" -->
7
+                <div>
7 8
                     <div style="margin-bottom: 20px;">选择调解员</div>
8 9
                 </div>
9
-                <el-table v-if="tableDataFlag" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
10
+                <!-- v-if="tableDataFlag" -->
11
+                <el-table  ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
10 12
                     @selection-change="handleSelectionChange">
11 13
                     <el-table-column type="selection" width="55">
12 14
                     </el-table-column>
@@ -124,6 +126,7 @@ export default {
124 126
         },
125 127
         /**提交选择结果*/
126 128
         async submitMediator() {
129
+            console.log(this.multipleSelection,this.tableDataNow)
127 130
             if (this.multipleSelection.length == 0 && this.tableDataNow.length > 0) {
128 131
                 this.verifyMediatorFn({
129 132
                     id: this.departmentData.id,
@@ -138,7 +141,15 @@ export default {
138 141
                     mediatorId: this.multipleSelection[0].mediatorId,
139 142
                     mediatorName: this.multipleSelection[0].mediatorName,
140 143
                 })
141
-            } else if (this.multipleSelection.length > 1 && this.tableDataNow.length == 0) {
144
+            }else if(this.multipleSelection.length == 1){
145
+                this.verifyMediatorFn({
146
+                    id: this.departmentData.id,
147
+                    caseFlowId: this.departmentData.caseFlowId,
148
+                    mediatorId: this.multipleSelection[0].mediatorId,
149
+                    mediatorName: this.multipleSelection[0].mediatorName,
150
+                })
151
+                // && this.tableDataNow.length == 0
152
+            }else if (this.multipleSelection.length > 1) {
142 153
                 Message.error('最多选择一名调解员');
143 154
                 return
144 155
             }