ae291472 by renchao@pashanhoo.com
2 parents e87bf67f 6aa657ab
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
...@@ -178,4 +178,3 @@ export default { ...@@ -178,4 +178,3 @@ export default {
178 background: none; 178 background: none;
179 } 179 }
180 </style> 180 </style>
181
...\ No newline at end of file ...\ No newline at end of file
......
...@@ -8,65 +8,71 @@ ...@@ -8,65 +8,71 @@
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'
16 components: {}, 20 export default {
17 props: { 21 components: {},
18 formData: { 22 props: {
19 type: Object, 23 formData: {
20 default: {} 24 type: Object,
21 } 25 default: {}
22 }, 26 }
23 data () { 27 },
24 return { 28 data () {
25 columns: [ 29 return {
26 { 30 columns: [
27 type: 'selection', 31 {
28 label: '全选' 32 type: 'selection',
29 }, 33 label: '全选'
30 { 34 },
31 label: '序号', 35 {
32 type: 'index', 36 label: '序号',
33 width: '50', 37 type: 'index',
34 }, 38 width: '50',
35 { 39 },
36 prop: "bdcdyh", 40 {
37 label: "不动产单元号", 41 prop: "bdcdyh",
38 }, 42 label: "不动产单元号",
39 { 43 },
40 prop: "zl", 44 {
41 label: "坐落", 45 prop: "zl",
42 }, 46 label: "坐落",
43 ], 47 },
44 dataList: [], 48 ],
45 selectBdcdy: [], 49 dataList: [],
46 } 50 selectBdcdy: [],
47 }, 51 }
48 methods: {
49 childFn () {
50 var formdata = new FormData();
51 formdata.append("bsmSldyList", this.selectBdcdy);
52 formdata.append("bsmSlsq",this.formData.bsmSlsq);
53 deleteFlow(formdata).then(res => {
54 if (res.code == 200) {
55 this.$message.success("删除成功");
56 } else {
57 this.$message.error(res.message)
58 }
59 })
60 }, 52 },
61 handleSelectionChange (e) { 53 methods: {
62 this.selectBdcdy = []; 54 childFn () {
63 e.forEach((item, index) => { 55 var formdata = new FormData();
64 this.selectBdcdy.push(item.bsmSldy) 56 formdata.append("bsmSldyList", this.selectBdcdy);
65 }) 57 formdata.append("bsmSlsq", this.formData.bsmSlsq);
58 deleteFlow(formdata).then(res => {
59 if (res.code == 200) {
60 this.$popupCacel();
61 store.dispatch('user/refreshPage', true);
62 this.$message.success("删除成功");
63 } else {
64 this.$message.error(res.message)
65 }
66 })
67 },
68 handleSelectionChange (e) {
69 this.selectBdcdy = [];
70 e.forEach((item, index) => {
71 this.selectBdcdy.push(item.bsmSldy)
72 })
73 }
66 } 74 }
67 } 75 }
68 }
69 </script> 76 </script>
70 <style scoped lang='scss'> 77 <style scoped lang='scss'>
71
72 </style>
...\ No newline at end of file ...\ No newline at end of file
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", 378 bsmSlsq: this.bsmSlsq,
369 formData: { 379 dataList: this.unitData,
370 bsmSlsq: this.bsmSlsq, 380
371 dataList: this.unitData,
372 },
373 confirm: function () {
374 that.loadBdcdylist();
375 }
376 }) 381 })
377 }, 382 },
378 handleChange (file) { 383 handleChange (file) {
......