1
Showing
3 changed files
with
33 additions
and
30 deletions
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-02-02 16:35:20 | 4 | * @LastEditTime: 2024-02-06 16:56:48 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -81,7 +81,7 @@ | ... | @@ -81,7 +81,7 @@ |
81 | </div> | 81 | </div> |
82 | <div class="submit_button"> | 82 | <div class="submit_button"> |
83 | <el-button @click="$popupCacel">取消</el-button> | 83 | <el-button @click="$popupCacel">取消</el-button> |
84 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 84 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
85 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> | 85 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> |
86 | </div> | 86 | </div> |
87 | </div> | 87 | </div> |
... | @@ -132,7 +132,7 @@ | ... | @@ -132,7 +132,7 @@ |
132 | </div> | 132 | </div> |
133 | <div class="submit_button"> | 133 | <div class="submit_button"> |
134 | <el-button @click="$popupCacel">取消</el-button> | 134 | <el-button @click="$popupCacel">取消</el-button> |
135 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 135 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
136 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> | 136 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> |
137 | </div> | 137 | </div> |
138 | </div> | 138 | </div> |
... | @@ -295,14 +295,9 @@ | ... | @@ -295,14 +295,9 @@ |
295 | * @description: submitForm | 295 | * @description: submitForm |
296 | * @author: renchao | 296 | * @author: renchao |
297 | */ | 297 | */ |
298 | submitForm () { | 298 | handleAdd () { |
299 | let that = this | 299 | let that = this |
300 | if (this.bdcdysz.length == 0) { | ||
301 | this.$message.error("请至少选择一条数据"); | ||
302 | return; | ||
303 | } | ||
304 | this.loading = true | 300 | this.loading = true |
305 | if (this.sqywInfo.isworkFrame) { | ||
306 | store.dispatch('user/reMenuRefresh', false) | 301 | store.dispatch('user/reMenuRefresh', false) |
307 | againAddSldy({ | 302 | againAddSldy({ |
308 | bsmSqyw: that.sqywInfo.bsmSqyw, | 303 | bsmSqyw: that.sqywInfo.bsmSqyw, |
... | @@ -328,7 +323,14 @@ | ... | @@ -328,7 +323,14 @@ |
328 | }).catch(() => { | 323 | }).catch(() => { |
329 | that.loading = false | 324 | that.loading = false |
330 | }) | 325 | }) |
331 | } else { | 326 | }, |
327 | submitForm () { | ||
328 | let that = this | ||
329 | if (this.bdcdysz.length == 0) { | ||
330 | this.$message.error("请至少选择一条数据"); | ||
331 | return; | ||
332 | } | ||
333 | this.loading = true | ||
332 | if (!that.isJump) { | 334 | if (!that.isJump) { |
333 | startBusinessFlow({ | 335 | startBusinessFlow({ |
334 | bsmSqyw: that.sqywInfo.bsmSqyw, | 336 | bsmSqyw: that.sqywInfo.bsmSqyw, |
... | @@ -384,7 +386,6 @@ | ... | @@ -384,7 +386,6 @@ |
384 | that.loading = false | 386 | that.loading = false |
385 | }) | 387 | }) |
386 | } | 388 | } |
387 | } | ||
388 | }, | 389 | }, |
389 | /** | 390 | /** |
390 | * @description: handleSelectionChange | 391 | * @description: handleSelectionChange | ... | ... |
... | @@ -119,7 +119,7 @@ | ... | @@ -119,7 +119,7 @@ |
119 | </div> | 119 | </div> |
120 | <div class="submit_button"> | 120 | <div class="submit_button"> |
121 | <el-button @click="$popupCacel">取消</el-button> | 121 | <el-button @click="$popupCacel">取消</el-button> |
122 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 122 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
123 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> | 123 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> |
124 | </div> | 124 | </div> |
125 | </div> | 125 | </div> |
... | @@ -264,14 +264,9 @@ | ... | @@ -264,14 +264,9 @@ |
264 | * @description: submitForm | 264 | * @description: submitForm |
265 | * @author: renchao | 265 | * @author: renchao |
266 | */ | 266 | */ |
267 | submitForm () { | 267 | handleAdd () { |
268 | let that = this | 268 | let that = this |
269 | if (this.bdcdysz.length == 0) { | ||
270 | this.$message.error("请至少选择一条数据"); | ||
271 | return; | ||
272 | } | ||
273 | this.loading = true | 269 | this.loading = true |
274 | if (this.sqywInfo.isworkFrame) { | ||
275 | store.dispatch('user/reMenuRefresh', false) | 270 | store.dispatch('user/reMenuRefresh', false) |
276 | againAddSldy({ | 271 | againAddSldy({ |
277 | bsmSqyw: that.sqywInfo.bsmSqyw, | 272 | bsmSqyw: that.sqywInfo.bsmSqyw, |
... | @@ -297,7 +292,14 @@ | ... | @@ -297,7 +292,14 @@ |
297 | }).catch(() => { | 292 | }).catch(() => { |
298 | that.loading = false | 293 | that.loading = false |
299 | }) | 294 | }) |
300 | } else { | 295 | }, |
296 | submitForm () { | ||
297 | let that = this | ||
298 | if (this.bdcdysz.length == 0) { | ||
299 | this.$message.error("请至少选择一条数据"); | ||
300 | return; | ||
301 | } | ||
302 | this.loading = true | ||
301 | if (!that.isJump) { | 303 | if (!that.isJump) { |
302 | startBusinessFlow({ | 304 | startBusinessFlow({ |
303 | bsmSqyw: that.sqywInfo.bsmSqyw, | 305 | bsmSqyw: that.sqywInfo.bsmSqyw, |
... | @@ -353,7 +355,6 @@ | ... | @@ -353,7 +355,6 @@ |
353 | that.loading = false | 355 | that.loading = false |
354 | }) | 356 | }) |
355 | } | 357 | } |
356 | } | ||
357 | }, | 358 | }, |
358 | /** | 359 | /** |
359 | * @description: handleSelectionChange | 360 | * @description: handleSelectionChange | ... | ... |
1 | <!-- | 1 | <!-- |
2 | * @Description: | 2 | * @Description: |
3 | * @Autor: renchao | 3 | * @Autor: renchao |
4 | * @LastEditTime: 2024-02-02 16:35:49 | 4 | * @LastEditTime: 2024-02-06 16:58:53 |
5 | --> | 5 | --> |
6 | <template> | 6 | <template> |
7 | <div class="from-clues"> | 7 | <div class="from-clues"> |
... | @@ -52,7 +52,7 @@ | ... | @@ -52,7 +52,7 @@ |
52 | </div> | 52 | </div> |
53 | <div class="submit_button"> | 53 | <div class="submit_button"> |
54 | <el-button @click="$popupCacel">取消</el-button> | 54 | <el-button @click="$popupCacel">取消</el-button> |
55 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> | 55 | <el-button type="primary" plain @click="handleAdd" :loading="loading" v-if="sqywInfo.isworkFrame">添加单元</el-button> |
56 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> | 56 | <el-button type="primary" plain @click="submitForm" :loading="loading" v-else>发起申请</el-button> |
57 | </div> | 57 | </div> |
58 | </div> | 58 | </div> |
... | @@ -132,14 +132,9 @@ | ... | @@ -132,14 +132,9 @@ |
132 | * @description: submitForm | 132 | * @description: submitForm |
133 | * @author: renchao | 133 | * @author: renchao |
134 | */ | 134 | */ |
135 | submitForm () { | 135 | handleAdd () { |
136 | let that = this | 136 | let that = this |
137 | if (this.bdcdysz.length == 0) { | ||
138 | this.$message.error("请至少选择一条数据"); | ||
139 | return; | ||
140 | } | ||
141 | this.loading = true | 137 | this.loading = true |
142 | if (this.sqywInfo.isworkFrame) { | ||
143 | store.dispatch('user/reMenuRefresh', false) | 138 | store.dispatch('user/reMenuRefresh', false) |
144 | againAddSldy({ | 139 | againAddSldy({ |
145 | bsmSqyw: that.sqywInfo.bsmSqyw, | 140 | bsmSqyw: that.sqywInfo.bsmSqyw, |
... | @@ -165,7 +160,14 @@ | ... | @@ -165,7 +160,14 @@ |
165 | }).catch(() => { | 160 | }).catch(() => { |
166 | that.loading = false | 161 | that.loading = false |
167 | }) | 162 | }) |
168 | } else { | 163 | }, |
164 | submitForm () { | ||
165 | let that = this | ||
166 | if (this.bdcdysz.length == 0) { | ||
167 | this.$message.error("请至少选择一条数据"); | ||
168 | return; | ||
169 | } | ||
170 | this.loading = true | ||
169 | startBusinessFlow({ | 171 | startBusinessFlow({ |
170 | bsmSqyw: that.sqywInfo.bsmSqyw, | 172 | bsmSqyw: that.sqywInfo.bsmSqyw, |
171 | bdcdysz: that.bdcdysz, | 173 | bdcdysz: that.bdcdysz, |
... | @@ -193,7 +195,6 @@ | ... | @@ -193,7 +195,6 @@ |
193 | }).catch(() => { | 195 | }).catch(() => { |
194 | that.loading = false | 196 | that.loading = false |
195 | }) | 197 | }) |
196 | } | ||
197 | }, | 198 | }, |
198 | /** | 199 | /** |
199 | * @description: handleSelectionChange | 200 | * @description: handleSelectionChange | ... | ... |
-
Please register or sign in to post a comment