16864148 by xiaomiao

批量删除功能

1 parent ccd1fde9
...@@ -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
......
...@@ -3,11 +3,15 @@ ...@@ -3,11 +3,15 @@
3 <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false" 3 <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false"
4 @selection-change="handleSelectionChange"> 4 @selection-change="handleSelectionChange">
5 </lb-table> 5 </lb-table>
6 <div class="text-center">
7 <el-button @click="$popupCacel">取消</el-button>
8 <el-button type="primary" @click="childFn" plain>确定</el-button>
9 </div>
6 </div> 10 </div>
7 </template> 11 </template>
8 <script> 12 <script>
9 import { deleteFlow } from "@/api/ywbl.js" 13 import { deleteFlow } from "@/api/ywbl.js"
10 export default { 14 export default {
11 components: {}, 15 components: {},
12 props: { 16 props: {
13 formData: { 17 formData: {
...@@ -44,9 +48,12 @@ export default { ...@@ -44,9 +48,12 @@ export default {
44 childFn () { 48 childFn () {
45 var formdata = new FormData(); 49 var formdata = new FormData();
46 formdata.append("bsmSldyList", this.selectBdcdy); 50 formdata.append("bsmSldyList", this.selectBdcdy);
47 formdata.append("bsmSlsq",this.formData.bsmSlsq); 51 formdata.append("bsmSlsq", this.formData.bsmSlsq);
48 deleteFlow(formdata).then(res => { 52 deleteFlow(formdata).then(res => {
49 if (res.code == 200) { 53 if (res.code == 200) {
54 this.$popupCacel();
55 location.reload()
56 console.log("走i了");
50 this.$message.success("删除成功"); 57 this.$message.success("删除成功");
51 } else { 58 } else {
52 this.$message.error(res.message) 59 this.$message.error(res.message)
...@@ -60,8 +67,7 @@ export default { ...@@ -60,8 +67,7 @@ export default {
60 }) 67 })
61 } 68 }
62 } 69 }
63 } 70 }
64 </script> 71 </script>
65 <style scoped lang='scss'> 72 <style scoped lang='scss'>
66
67 </style> 73 </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'))
......
...@@ -361,18 +361,12 @@ export default { ...@@ -361,18 +361,12 @@ export default {
361 }, 361 },
362 //批量操作 362 //批量操作
363 handleBatchDel () { 363 handleBatchDel () {
364 let that = this; 364 this.$popupDialog("批量删除", "workflow/components/batchDel", {
365 this.$popup("批量删除", "workflow/components/batchDel", {
366 width: "50%", 365 width: "50%",
367 btnShow: true, 366 btnShow: false,
368 height: "600px",
369 formData: {
370 bsmSlsq: this.bsmSlsq, 367 bsmSlsq: this.bsmSlsq,
371 dataList: this.unitData, 368 dataList: this.unitData,
372 }, 369
373 confirm: function () {
374 that.loadBdcdylist();
375 }
376 }) 370 })
377 }, 371 },
378 handleChange (file) { 372 handleChange (file) {
......