Преглед изворни кода

选择调解员多选调整

hanchaobo пре 2 година
родитељ
комит
9a738ad294

+ 100
- 81
src/views/caseManagement/components/confirmMediator.vue Прегледај датотеку

@@ -2,19 +2,13 @@
2 2
     <div>
3 3
         <el-dialog title="秘书确认调解员" :visible="confirmVisable" v-if="confirmVisable" @close="cancel" center
4 4
             :distroy-on-close="true">
5
-            <div style="margin-bottom: 20px;">
6
-                <el-radio-group v-model="confirmFlag">
7
-                    <el-radio :label="1">同意</el-radio>
8
-                    <el-radio :label="2">拒绝</el-radio>
9
-                </el-radio-group>
10
-            </div>
11 5
             <div>
12
-                <div>
13
-                    <div style="margin-bottom: 20px;">调解员</div>
6
+                <div v-if="tableDataFlag">
7
+                    <div style="margin-bottom: 20px;">选择调解员</div>
14 8
                 </div>
15
-                <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
9
+                <el-table v-if="tableDataFlag" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
16 10
                     @selection-change="handleSelectionChange">
17
-                    <el-table-column type="selection" width="55" v-if="!confirmShow">
11
+                    <el-table-column type="selection" width="55">
18 12
                     </el-table-column>
19 13
                     <el-table-column prop="mediatorName" label="调解员名称">
20 14
                     </el-table-column>
@@ -25,24 +19,45 @@
25 19
                     <el-table-column prop="completeAmount" label="已办数量">
26 20
                     </el-table-column>
27 21
                 </el-table>
28
-                <!-- <div>
29
-                    <div style="margin-top: 20px;margin-bottom: 20px;">时间</div>
30
-                    <el-form label-position="right" label-width="80px" :model="formLabelAlign" :disabled="confirmShow">
31
-                        <el-form-item label="时间">
32
-                            <el-date-picker v-model="formLabelAlign.time[0]" type="datetime" placeholder="选择日期时间">
33
-                            </el-date-picker>
34
-                        </el-form-item> -->
35
-                        <!-- 后期需要三个时间 -->
36
-                        <!-- <el-form-item label="时间2">
37
-                            <el-date-picker v-model="formLabelAlign.time[1]" type="datetime" placeholder="选择日期时间">
38
-                            </el-date-picker>
39
-                        </el-form-item>
40
-                        <el-form-item label="时间3">
41
-                            <el-date-picker v-model="formLabelAlign.time[2]" type="datetime" placeholder="选择日期时间">
42
-                            </el-date-picker>
43
-                        </el-form-item> -->
44
-                    <!-- </el-form>
45
-                </div> -->
22
+                <div>
23
+                    <div style="margin-bottom: 20px;margin-top: 20px;">当前调解员</div>
24
+                </div>
25
+                <el-table ref="multipleTable" :data="tableDataNow" tooltip-effect="dark" style="width: 100%">
26
+                    <el-table-column prop="mediatorName" label="调解员名称">
27
+                    </el-table-column>
28
+                    <!-- <el-table-column prop="specialty" label="专业">
29
+                    </el-table-column>
30
+                    <el-table-column prop="todoAmount" label="待办数量">
31
+                    </el-table-column>
32
+                    <el-table-column prop="completeAmount" label="已办数量">
33
+                    </el-table-column> -->
34
+                </el-table>
35
+                <div>
36
+                    <div style="margin-bottom: 20px;margin-top: 20px;">申请人调解员</div>
37
+                </div>
38
+                <el-table ref="multipleTable" :data="applicantTable" tooltip-effect="dark" style="width: 100%">
39
+                    <el-table-column prop="mediatorName" label="调解员名称">
40
+                    </el-table-column>
41
+                    <!-- <el-table-column prop="specialty" label="专业">
42
+                    </el-table-column>
43
+                    <el-table-column prop="todoAmount" label="待办数量">
44
+                    </el-table-column>
45
+                    <el-table-column prop="completeAmount" label="已办数量">
46
+                    </el-table-column> -->
47
+                </el-table>
48
+                <div>
49
+                    <div style="margin-bottom: 20px;margin-top: 20px;">被申请人调解员</div>
50
+                </div>
51
+                <el-table ref="multipleTable" :data="respondentTable" tooltip-effect="dark" style="width: 100%">
52
+                    <el-table-column prop="mediatorName" label="调解员名称">
53
+                    </el-table-column>
54
+                    <!-- <el-table-column prop="specialty" label="专业">
55
+                    </el-table-column>
56
+                    <el-table-column prop="todoAmount" label="待办数量">
57
+                    </el-table-column>
58
+                    <el-table-column prop="completeAmount" label="已办数量">
59
+                    </el-table-column> -->
60
+                </el-table>
46 61
             </div>
47 62
             <div slot="footer" class="dialog-footer">
48 63
                 <el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
@@ -61,37 +76,27 @@ export default {
61 76
     data() {
62 77
         return {
63 78
             tableData: [],
79
+            tableDataNow: [],
80
+            applicantTable: [],
81
+            respondentTable: [],
64 82
             multipleSelection: [],
83
+            tableDataFlag: false,
65 84
             formLabelAlign: {
66 85
                 time: []
67 86
             },
68
-            formTimeArr: [],
69 87
             mediatorArr: [],
70
-            confirmFlag: 1,
71
-            confirmShow: true,
72 88
         };
73 89
     },
74 90
     watch: {
75 91
         confirmVisable(val) {
76 92
             if (val) {
77
-                this.confirmFlag = 1;
78 93
                 this.mediatorArr = [];
79
-                this.formTimeArr = [];
80
-                this.selectReservationFn({ id: this.confirmData.id })
81
-            }
82
-        },
83
-        confirmFlag(val) {
84
-            if (val == 1) {
85
-                this.confirmShow = true;
86
-                console.log(this.confirmData.id);
87 94
                 this.selectReservationFn({ id: this.confirmData.id })
88
-            } else {
89
-                this.confirmShow = false;
90 95
                 listMediator().then(res => {
91 96
                     this.tableData = res.data;
92 97
                 })
93 98
             }
94
-        }
99
+        },
95 100
     },
96 101
     methods: {
97 102
         cancel() {
@@ -99,8 +104,14 @@ export default {
99 104
         },
100 105
         selectReservationFn(data) {
101 106
             selectReservation(data).then(res => {
102
-                this.tableData = res.data.mediatorList;
103
-                this.formLabelAlign.time[0] = res.data.herDates[0];
107
+                this.applicantTable = res.data.mediatorList;
108
+                this.respondentTable = res.data.resMediatorList;
109
+                this.tableDataNow = [{ mediatorId: res.data.mediatorId, mediatorName: res.data.mediatorName }];
110
+                if (this.tableDataNow.length > 0) {
111
+                    this.tableDataFlag = false;
112
+                } else {
113
+                    this.tableDataFlag = true;
114
+                }
104 115
             })
105 116
         },
106 117
         /**核实调解员 */
@@ -113,54 +124,62 @@ export default {
113 124
         },
114 125
         /**提交选择结果*/
115 126
         async submitMediator() {
116
-            if (this.confirmFlag == 1) {
117
-                let userArr = [];
118
-                this.tableData.forEach(item => {
119
-                    userArr.push({
120
-                        userId: item.mediatorId,
121
-                        userName: item.mediatorName
122
-                    })
123
-                })
127
+            if (this.multipleSelection.length == 0 && this.tableDataNow.length > 0) {
124 128
                 this.verifyMediatorFn({
125 129
                     id: this.confirmData.id,
126 130
                     caseFlowId: this.confirmData.caseFlowId,
127
-                    userList: userArr,
128
-                    // herDates: this.formLabelAlign.time
129
-                })
130
-            } else {
131
-                if (this.multipleSelection.length > 1) {
132
-                    Message.error('最多选择一名调解员');
133
-                    return
134
-                } else if (this.multipleSelection.length < 1) {
135
-                    Message.error('至少选择一名调解员');
136
-                    return
137
-                }
138
-                if (this.formLabelAlign.time.length < 1) {
139
-                    Message.error('至少选择一个时间');
140
-                    return
141
-                }
142
-                this.formLabelAlign.time.forEach(item => {
143
-                    item = moment(
144
-                        item
145
-                    ).format("YYYY-MM-DD HH:mm:ss");
146
-                    this.formTimeArr.push(item)
147
-                })
148
-                this.multipleSelection.forEach(item => {
149
-                    this.mediatorArr.push({
150
-                        userId: item.mediatorId,
151
-                        userName: item.mediatorName
152
-                    })
131
+                    mediatorId: this.tableDataNow[0].mediatorId,
132
+                    mediatorName: this.tableDataNow[0].mediatorName,
153 133
                 })
134
+            } else if (this.multipleSelection.length > 0 && this.tableDataNow.length == 0) {
154 135
                 this.verifyMediatorFn({
155 136
                     id: this.confirmData.id,
156 137
                     caseFlowId: this.confirmData.caseFlowId,
157
-                    userList: this.mediatorArr,
158
-                    // herDates: this.formLabelAlign.time
138
+                    mediatorId: this.multipleSelection[0].mediatorId,
139
+                    mediatorName: this.multipleSelection[0].mediatorName,
159 140
                 })
141
+            } else if (this.multipleSelection.length > 1 && this.tableDataNow.length == 0) {
142
+                Message.error('最多选择一名调解员');
143
+                return
160 144
             }
145
+            // if (this.confirmFlag == 1) {
146
+            //     let userArr = [];
147
+            //     this.tableData.forEach(item => {
148
+            //         userArr.push({
149
+            //             userId: item.mediatorId,
150
+            //             userName: item.mediatorName
151
+            //         })
152
+            //     })
153
+            //     this.verifyMediatorFn({
154
+            //         id: this.confirmData.id,
155
+            //         caseFlowId: this.confirmData.caseFlowId,
156
+            //         userList: userArr,
157
+            //         // herDates: this.formLabelAlign.time
158
+            //     })
159
+            // } else {
160
+            //     if (this.multipleSelection.length > 1) {
161
+            //         Message.error('最多选择一名调解员');
162
+            //         return
163
+            //     } else if (this.multipleSelection.length < 1) {
164
+            //         Message.error('至少选择一名调解员');
165
+            //         return
166
+            //     }
167
+            //     this.multipleSelection.forEach(item => {
168
+            //         this.mediatorArr.push({
169
+            //             userId: item.mediatorId,
170
+            //             userName: item.mediatorName
171
+            //         })
172
+            //     })
173
+            //     this.verifyMediatorFn({
174
+            //         id: this.confirmData.id,
175
+            //         caseFlowId: this.confirmData.caseFlowId,
176
+            //         userList: this.mediatorArr,
177
+            //     })
178
+            // }
161 179
         },
162 180
         handleSelectionChange(val) {
163 181
             this.multipleSelection = val;
182
+            console.log(val, "PPPPPPPPPPPPPPPPPPPP");
164 183
         }
165 184
     },
166 185
 };

+ 69
- 84
src/views/caseManagement/components/departmentMediator.vue Прегледај датотеку

@@ -2,19 +2,13 @@
2 2
     <div>
3 3
         <el-dialog title="部门长确认调解员" :visible="departmentVisable" v-if="departmentVisable" @close="cancel" center
4 4
             :distroy-on-close="true">
5
-            <div style="margin-bottom: 20px;">
6
-                <el-radio-group v-model="confirmFlag">
7
-                    <el-radio :label="1">同意</el-radio>
8
-                    <el-radio :label="2">拒绝</el-radio>
9
-                </el-radio-group>
10
-            </div>
11 5
             <div>
12
-                <div>
13
-                    <div style="margin-bottom: 20px;">调解员</div>
6
+                <div v-if="tableDataFlag">
7
+                    <div style="margin-bottom: 20px;">选择调解员</div>
14 8
                 </div>
15
-                <el-table ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
9
+                <el-table v-if="tableDataFlag" ref="multipleTable" :data="tableData" tooltip-effect="dark" style="width: 100%"
16 10
                     @selection-change="handleSelectionChange">
17
-                    <el-table-column type="selection" width="55" v-if="!confirmShow">
11
+                    <el-table-column type="selection" width="55">
18 12
                     </el-table-column>
19 13
                     <el-table-column prop="mediatorName" label="调解员名称">
20 14
                     </el-table-column>
@@ -25,28 +19,49 @@
25 19
                     <el-table-column prop="completeAmount" label="已办数量">
26 20
                     </el-table-column>
27 21
                 </el-table>
28
-                <!-- <div>
29
-                    <div style="margin-top: 20px;margin-bottom: 20px;">时间</div>
30
-                    <el-form label-position="right" label-width="80px" :model="formLabelAlign" :disabled="confirmShow">
31
-                        <el-form-item label="时间">
32
-                            <el-date-picker v-model="formLabelAlign.time[0]" type="datetime" placeholder="选择日期时间">
33
-                            </el-date-picker>
34
-                        </el-form-item> -->
35
-                        <!-- 后期需要三个时间 -->
36
-                        <!-- <el-form-item label="时间2">
37
-                            <el-date-picker v-model="formLabelAlign.time[1]" type="datetime" placeholder="选择日期时间">
38
-                            </el-date-picker>
39
-                        </el-form-item>
40
-                        <el-form-item label="时间3">
41
-                            <el-date-picker v-model="formLabelAlign.time[2]" type="datetime" placeholder="选择日期时间">
42
-                            </el-date-picker>
43
-                        </el-form-item> -->
44
-                    <!-- </el-form>
45
-                </div> -->
22
+                <div>
23
+                    <div style="margin-bottom: 20px;margin-top: 20px;">当前调解员</div>
24
+                </div>
25
+                <el-table ref="multipleTable" :data="tableDataNow" tooltip-effect="dark" style="width: 100%">
26
+                    <el-table-column prop="mediatorName" label="调解员名称">
27
+                    </el-table-column>
28
+                    <!-- <el-table-column prop="specialty" label="专业">
29
+                    </el-table-column>
30
+                    <el-table-column prop="todoAmount" label="待办数量">
31
+                    </el-table-column>
32
+                    <el-table-column prop="completeAmount" label="已办数量">
33
+                    </el-table-column> -->
34
+                </el-table>
35
+                <div>
36
+                    <div style="margin-bottom: 20px;margin-top: 20px;">申请人调解员</div>
37
+                </div>
38
+                <el-table ref="multipleTable" :data="applicantTable" tooltip-effect="dark" style="width: 100%">
39
+                    <el-table-column prop="mediatorName" label="调解员名称">
40
+                    </el-table-column>
41
+                    <!-- <el-table-column prop="specialty" label="专业">
42
+                    </el-table-column>
43
+                    <el-table-column prop="todoAmount" label="待办数量">
44
+                    </el-table-column>
45
+                    <el-table-column prop="completeAmount" label="已办数量">
46
+                    </el-table-column> -->
47
+                </el-table>
48
+                <div>
49
+                    <div style="margin-bottom: 20px;margin-top: 20px;">被申请人调解员</div>
50
+                </div>
51
+                <el-table ref="multipleTable" :data="respondentTable" tooltip-effect="dark" style="width: 100%">
52
+                    <el-table-column prop="mediatorName" label="调解员名称">
53
+                    </el-table-column>
54
+                    <!-- <el-table-column prop="specialty" label="专业">
55
+                    </el-table-column>
56
+                    <el-table-column prop="todoAmount" label="待办数量">
57
+                    </el-table-column>
58
+                    <el-table-column prop="completeAmount" label="已办数量">
59
+                    </el-table-column> -->
60
+                </el-table>
46 61
             </div>
47 62
             <div slot="footer" class="dialog-footer">
48
-                <el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
49
-                <el-button @click="submitMediator" class="endbutton1" type="primary" round><span>确 认</span></el-button>
63
+                <el-button @click="cancel" class="endbutton1"><span>取 消</span></el-button>
64
+                <el-button @click="submitMediator" class="endbutton1"><span>确 认</span></el-button>
50 65
             </div>
51 66
         </el-dialog>
52 67
     </div>
@@ -54,44 +69,34 @@
54 69
   
55 70
 <script>
56 71
 import { Message } from 'element-ui'
57
-import { listMediator, selectReservation, verifyMediator } from '@/api/caseManagement/caseManagement.js'
72
+import { listMediator, updateBooking, selectReservation, verifyMediator } from '@/api/caseManagement/caseManagement.js'
58 73
 import moment from "moment";
59 74
 export default {
60 75
     props: ["departmentVisable", "departmentData", "queryParams"],
61 76
     data() {
62 77
         return {
63 78
             tableData: [],
79
+            tableDataNow: [],
80
+            applicantTable: [],
81
+            respondentTable: [],
64 82
             multipleSelection: [],
83
+            tableDataFlag: false,
65 84
             formLabelAlign: {
66 85
                 time: []
67 86
             },
68
-            formTimeArr: [],
69 87
             mediatorArr: [],
70
-            confirmFlag: 1,
71
-            confirmShow: true,
72 88
         };
73 89
     },
74 90
     watch: {
75 91
         departmentVisable(val) {
76 92
             if (val) {
77
-                this.confirmFlag = 1;
78 93
                 this.mediatorArr = [];
79
-                this.formTimeArr = [];
80
-                this.selectReservationFn({ id: this.departmentData.id })
81
-            }
82
-        },
83
-        confirmFlag(val) {
84
-            if (val == 1) {
85
-                this.confirmShow = true;
86
-                console.log(this.departmentData.id);
87 94
                 this.selectReservationFn({ id: this.departmentData.id })
88
-            } else {
89
-                this.confirmShow = false;
90 95
                 listMediator().then(res => {
91 96
                     this.tableData = res.data;
92 97
                 })
93 98
             }
94
-        }
99
+        },
95 100
     },
96 101
     methods: {
97 102
         cancel() {
@@ -99,8 +104,14 @@ export default {
99 104
         },
100 105
         selectReservationFn(data) {
101 106
             selectReservation(data).then(res => {
102
-                this.tableData = res.data.mediatorList;
103
-                this.formLabelAlign.time[0] = res.data.herDates[0];
107
+                this.applicantTable = res.data.mediatorList;
108
+                this.respondentTable = res.data.resMediatorList;
109
+                this.tableDataNow = [{ mediatorId: res.data.mediatorId, mediatorName: res.data.mediatorName }];
110
+                if (this.tableDataNow.length > 0) {
111
+                    this.tableDataFlag = false;
112
+                } else {
113
+                    this.tableDataFlag = true;
114
+                }
104 115
             })
105 116
         },
106 117
         /**核实调解员 */
@@ -113,54 +124,28 @@ export default {
113 124
         },
114 125
         /**提交选择结果*/
115 126
         async submitMediator() {
116
-            if (this.confirmFlag == 1) {
117
-                let userArr = [];
118
-                this.tableData.forEach(item => {
119
-                    userArr.push({
120
-                        userId: item.mediatorId,
121
-                        userName: item.mediatorName
122
-                    })
123
-                })
127
+            if (this.multipleSelection.length == 0 && this.tableDataNow.length > 0) {
124 128
                 this.verifyMediatorFn({
125 129
                     id: this.departmentData.id,
126 130
                     caseFlowId: this.departmentData.caseFlowId,
127
-                    userList: userArr,
128
-                    // herDates: this.formLabelAlign.time
129
-                })
130
-            } else {
131
-                if (this.multipleSelection.length > 1) {
132
-                    Message.error('最多选择一名调解员');
133
-                    return
134
-                } else if (this.multipleSelection.length < 1) {
135
-                    Message.error('至少选择一名调解员');
136
-                    return
137
-                }
138
-                if (this.formLabelAlign.time.length < 1) {
139
-                    Message.error('至少选择一个时间');
140
-                    return
141
-                }
142
-                this.formLabelAlign.time.forEach(item => {
143
-                    item = moment(
144
-                        item
145
-                    ).format("YYYY-MM-DD HH:mm:ss");
146
-                    this.formTimeArr.push(item)
147
-                })
148
-                this.multipleSelection.forEach(item => {
149
-                    this.mediatorArr.push({
150
-                        userId: item.mediatorId,
151
-                        userName: item.mediatorName
152
-                    })
131
+                    mediatorId: this.tableDataNow[0].mediatorId,
132
+                    mediatorName: this.tableDataNow[0].mediatorName,
153 133
                 })
134
+            } else if (this.multipleSelection.length > 0 && this.tableDataNow.length == 0) {
154 135
                 this.verifyMediatorFn({
155 136
                     id: this.departmentData.id,
156 137
                     caseFlowId: this.departmentData.caseFlowId,
157
-                    userList: this.mediatorArr,
158
-                    // herDates: this.formLabelAlign.time
138
+                    mediatorId: this.multipleSelection[0].mediatorId,
139
+                    mediatorName: this.multipleSelection[0].mediatorName,
159 140
                 })
141
+            } else if (this.multipleSelection.length > 1 && this.tableDataNow.length == 0) {
142
+                Message.error('最多选择一名调解员');
143
+                return
160 144
             }
161 145
         },
162 146
         handleSelectionChange(val) {
163 147
             this.multipleSelection = val;
148
+            console.log(val, "PPPPPPPPPPPPPPPPPPPP");
164 149
         }
165 150
     },
166 151
 };

+ 8
- 50
src/views/caseManagement/components/selectMediator.vue Прегледај датотеку

@@ -1,6 +1,6 @@
1 1
 <template>
2 2
     <div>
3
-        <el-dialog title="预约时间/调解员" :visible="mediatorVisable" v-if="mediatorVisable" @close="cancel" center :distroy-on-close="true">
3
+        <el-dialog title="预约调解员" :visible="mediatorVisable" v-if="mediatorVisable" @close="cancel" center :distroy-on-close="true">
4 4
             <div>
5 5
                 <div>
6 6
                     <div style="margin-bottom: 20px;">预约调解员</div>
@@ -18,24 +18,6 @@
18 18
                     <el-table-column prop="completeAmount" label="已办数量">
19 19
                     </el-table-column>
20 20
                 </el-table>
21
-                <div>
22
-                    <div style="margin-top: 20px;margin-bottom: 20px;">预约时间</div>
23
-                    <el-form label-position="right" label-width="80px" :model="formLabelAlign">
24
-                        <el-form-item label="时间1">
25
-                            <el-date-picker v-model="formLabelAlign.time[0]" type="datetime" placeholder="选择日期时间">
26
-                            </el-date-picker>
27
-                        </el-form-item>
28
-                        <!-- 后期需要三个时间 -->
29
-                        <!-- <el-form-item label="时间2">
30
-                            <el-date-picker v-model="formLabelAlign.time[1]" type="datetime" placeholder="选择日期时间">
31
-                            </el-date-picker>
32
-                        </el-form-item>
33
-                        <el-form-item label="时间3">
34
-                            <el-date-picker v-model="formLabelAlign.time[2]" type="datetime" placeholder="选择日期时间">
35
-                            </el-date-picker>
36
-                        </el-form-item> -->
37
-                    </el-form>
38
-                </div>
39 21
             </div>
40 22
             <div slot="footer" class="dialog-footer">
41 23
                 <el-button @click="cancel" class="endbutton1" round><span>取 消</span></el-button>
@@ -59,17 +41,12 @@ export default {
59 41
             formLabelAlign: {
60 42
                 time:[]
61 43
             },
62
-            formTimeArr:[],
63 44
             mediatorArr:[]
64 45
         };
65 46
     },
66 47
     watch: {
67 48
         mediatorVisable(val) {
68 49
             if (val) {
69
-                // this.this.multipleSelection = [];
70
-                // this.formLabelAlign.time = [];
71
-                this.mediatorArr = [];
72
-                this.formTimeArr = [];
73 50
                 listMediator().then(res=>{
74 51
                     this.tableData = res.data;
75 52
                 })
@@ -82,37 +59,24 @@ export default {
82 59
         },
83 60
         /**提交选择结果*/
84 61
         async submitMediator() {
85
-            if (this.multipleSelection.length > 1) {
86
-                Message.error('最多选择名调解员');
62
+            if (this.multipleSelection.length > 3) {
63
+                Message.error('最多选择名调解员');
87 64
                 return
88 65
             }else if(this.multipleSelection.length < 1){
89
-                Message.error('至少选择一名调解员');
90
-                return
91
-            }
92
-            if(this.formLabelAlign.time.length < 1){
93
-                Message.error('至少选择一个时间');
66
+                Message.error('请选择调解员');
94 67
                 return
95 68
             }
96
-            this.formLabelAlign.time.forEach(item=>{
97
-                item = moment(
98
-                    item
99
-                ).format("YYYY-MM-DD HH:mm:ss");
100
-                this.formTimeArr.push(item)
101
-            })
69
+            this.mediatorArr = [];
102 70
             this.multipleSelection.forEach(item=>{
103 71
                 this.mediatorArr.push({
104
-                    userId:item.mediatorId,
105
-                    userName:item.mediatorName
72
+                    mediatorId:item.mediatorId,
73
+                    mediatorName:item.mediatorName
106 74
                 })
107 75
             })
108
-            // await this.createRoomIdFn({
109
-            //     caseId:this.mediatorData.id
110
-            // })
111 76
             await this.updateBookingFn({
112 77
                 id:this.mediatorData.id,
113 78
                 caseFlowId:this.mediatorData.caseFlowId,
114
-                userList:this.mediatorArr,
115
-                herDates:this.formTimeArr
79
+                mediatorList:this.mediatorArr,
116 80
             })
117 81
         },
118 82
         async updateBookingFn(data){
@@ -122,12 +86,6 @@ export default {
122 86
                 this.$emit('getList', this.queryParams);
123 87
             })
124 88
         },
125
-        // 生成会议房间号
126
-        async createRoomIdFn(data){
127
-            await createRoomId(data).then(res=>{
128
-                console.log(res,"房间号");
129
-            })
130
-        },
131 89
         handleSelectionChange(val) {
132 90
             this.multipleSelection = val;
133 91
             // console.log(this.multipleSelection,"LLLLLLLLLLLLLLLLL");

+ 3
- 3
vue.config.js Прегледај датотеку

@@ -12,10 +12,10 @@ const name = process.env.VUE_APP_TITLE || '调解系统' // 网页标题
12 12
 const port = process.env.port || process.env.npm_config_port || 80 // 端口
13 13
 
14 14
 // const API = 'http://121.40.189.20:9001'  //生产
15
-const API = 'http://121.40.189.20:6001'  //测试
15
+// const API = 'http://121.40.189.20:6001'  //测试
16 16
 // const API = 'http://192.168.3.18:6001'  //B
17
-// const API = 'http://192.168.3.77:9001' //Q
18
-// const API = 'http://172.16.1.14:6001' //w
17
+// const API = 'http://192.168.3.77:6001' //Q
18
+const API = 'http://172.16.1.17:6001' //w
19 19
 
20 20
 // vue.config.js 配置说明
21 21
 //官方vue.config.js 参考文档 https://cli.vuejs.org/zh/config/#css-loaderoptions