Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
5 changed files
with
25 additions
and
30 deletions
src/api/config.js
deleted
100644 → 0
1 | /* | ||
2 | * @Description: api请求配置文件 | ||
3 | * @Autor: renchao | ||
4 | * @LastEditTime: 2023-04-18 14:14:07 | ||
5 | * 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。 | ||
6 | * 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。 | ||
7 | * 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。 | ||
8 | * 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。 | ||
9 | * 这个文件不需要,谁提交谁记得改回来,不改回来,就是脑残。 | ||
10 | */ | ||
11 | export default { | ||
12 | SERVERAPI: 'bdcdj' | ||
13 | } | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
... | @@ -8,11 +8,16 @@ | ... | @@ -8,11 +8,16 @@ |
8 | <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false" | 8 | <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false" |
9 | @selection-change="handleSelectionChange"> | 9 | @selection-change="handleSelectionChange"> |
10 | </lb-table> | 10 | </lb-table> |
11 | <div class="text-center"> | ||
12 | <el-button @click="$popupCacel">取消</el-button> | ||
13 | <el-button type="primary" @click="childFn" plain>确定</el-button> | ||
14 | </div> | ||
11 | </div> | 15 | </div> |
12 | </template> | 16 | </template> |
13 | <script> | 17 | <script> |
14 | import { deleteFlow } from "@/api/ywbl.js" | 18 | import { deleteFlow } from "@/api/ywbl.js" |
15 | export default { | 19 | import store from '@/store/index.js' |
20 | export default { | ||
16 | components: {}, | 21 | components: {}, |
17 | props: { | 22 | props: { |
18 | formData: { | 23 | formData: { |
... | @@ -49,9 +54,11 @@ export default { | ... | @@ -49,9 +54,11 @@ export default { |
49 | childFn () { | 54 | childFn () { |
50 | var formdata = new FormData(); | 55 | var formdata = new FormData(); |
51 | formdata.append("bsmSldyList", this.selectBdcdy); | 56 | formdata.append("bsmSldyList", this.selectBdcdy); |
52 | formdata.append("bsmSlsq",this.formData.bsmSlsq); | 57 | formdata.append("bsmSlsq", this.formData.bsmSlsq); |
53 | deleteFlow(formdata).then(res => { | 58 | deleteFlow(formdata).then(res => { |
54 | if (res.code == 200) { | 59 | if (res.code == 200) { |
60 | this.$popupCacel(); | ||
61 | store.dispatch('user/refreshPage', true); | ||
55 | this.$message.success("删除成功"); | 62 | this.$message.success("删除成功"); |
56 | } else { | 63 | } else { |
57 | this.$message.error(res.message) | 64 | this.$message.error(res.message) |
... | @@ -65,8 +72,7 @@ export default { | ... | @@ -65,8 +72,7 @@ export default { |
65 | }) | 72 | }) |
66 | } | 73 | } |
67 | } | 74 | } |
68 | } | 75 | } |
69 | </script> | 76 | </script> |
70 | <style scoped lang='scss'> | 77 | <style scoped lang='scss'> |
71 | |||
72 | </style> | 78 | </style> | ... | ... |
... | @@ -167,7 +167,6 @@ | ... | @@ -167,7 +167,6 @@ |
167 | }, | 167 | }, |
168 | // 下拉列表切换 | 168 | // 下拉列表切换 |
169 | handleSelect (val) { | 169 | handleSelect (val) { |
170 | |||
171 | this.taskCommentList = (this.formData.allCommentList || []).filter(item => { | 170 | this.taskCommentList = (this.formData.allCommentList || []).filter(item => { |
172 | return item.taskDefKey === val | 171 | return item.taskDefKey === val |
173 | }) | 172 | }) |
... | @@ -235,7 +234,6 @@ | ... | @@ -235,7 +234,6 @@ |
235 | } | 234 | } |
236 | if (Array.isArray(finishedTaskSet)) { | 235 | if (Array.isArray(finishedTaskSet)) { |
237 | finishedTaskSet.forEach(item => canvas.addMarker(item, 'success')) | 236 | finishedTaskSet.forEach(item => canvas.addMarker(item, 'success')) |
238 | console.log(finishedTaskSet, 'finishedTaskSet'); | ||
239 | } | 237 | } |
240 | if (Array.isArray(unfinishedTaskSet)) { | 238 | if (Array.isArray(unfinishedTaskSet)) { |
241 | unfinishedTaskSet.forEach(item => canvas.addMarker(item, 'primary')) | 239 | unfinishedTaskSet.forEach(item => canvas.addMarker(item, 'primary')) | ... | ... |
... | @@ -11,6 +11,7 @@ import { | ... | @@ -11,6 +11,7 @@ import { |
11 | completeTask, | 11 | completeTask, |
12 | getNextLinkInfo, | 12 | getNextLinkInfo, |
13 | } from "@/api/fqsq.js"; | 13 | } from "@/api/fqsq.js"; |
14 | import { mapGetters } from 'vuex' | ||
14 | import { log } from "bpmn-js-token-simulation"; | 15 | import { log } from "bpmn-js-token-simulation"; |
15 | export default { | 16 | export default { |
16 | data () { | 17 | data () { |
... | @@ -29,6 +30,16 @@ export default { | ... | @@ -29,6 +30,16 @@ export default { |
29 | batchButtonName: '', | 30 | batchButtonName: '', |
30 | } | 31 | } |
31 | }, | 32 | }, |
33 | computed: { | ||
34 | ...mapGetters(['isRefresh']) | ||
35 | }, | ||
36 | watch: { | ||
37 | isRefresh: { | ||
38 | handler (newVal, oldVal) { | ||
39 | if (newVal) this.loadBdcdylist() | ||
40 | } | ||
41 | } | ||
42 | }, | ||
32 | mounted () { | 43 | mounted () { |
33 | this.flowInitParam(); | 44 | this.flowInitParam(); |
34 | this.loadBdcdylist(); | 45 | this.loadBdcdylist(); |
... | @@ -361,18 +372,12 @@ export default { | ... | @@ -361,18 +372,12 @@ export default { |
361 | }, | 372 | }, |
362 | //批量操作 | 373 | //批量操作 |
363 | handleBatchDel () { | 374 | handleBatchDel () { |
364 | let that = this; | 375 | this.$popupDialog("批量删除", "workflow/components/batchDel", { |
365 | this.$popup("批量删除", "workflow/components/batchDel", { | ||
366 | width: "50%", | 376 | width: "50%", |
367 | btnShow: true, | 377 | btnShow: false, |
368 | height: "600px", | ||
369 | formData: { | ||
370 | bsmSlsq: this.bsmSlsq, | 378 | bsmSlsq: this.bsmSlsq, |
371 | dataList: this.unitData, | 379 | dataList: this.unitData, |
372 | }, | 380 | |
373 | confirm: function () { | ||
374 | that.loadBdcdylist(); | ||
375 | } | ||
376 | }) | 381 | }) |
377 | }, | 382 | }, |
378 | handleChange (file) { | 383 | handleChange (file) { | ... | ... |
-
Please register or sign in to post a comment