387ae91a by renchao@pashanhoo.com

style:批量删除问题的排查

1 parent 337c689d
1 /* 1 /*
2 * @Description:workFramezu.vue组件的方法 头部按钮弹框方法 2 * @Description:workFramezu.vue组件的方法 头部按钮弹框方法
3 * @Autor: miaofang 3 * @Autor: miaofang
4 * @LastEditTime: 2023-07-17 16:14:23 4 * @LastEditTime: 2023-07-20 15:37:23
5 */ 5 */
6 import { getPrintTemplateByCode } from "@/api/print"; 6 import { getPrintTemplateByCode } from "@/api/print";
7 import { getQllxByBdcdyid } from "@/api/djbDetail.js"; 7 import { getQllxByBdcdyid } from "@/api/djbDetail.js";
......
1 <!--
2 * @Description:
3 * @Autor: renchao
4 * @LastEditTime: 2023-07-20 15:41:29
5 -->
6 <!-- 批量删除弹框 -->
7 <template>
8 <div class='batchDel'>
9 <lb-table :column="columns" :data="formData.dataList" :maxHeight="460" :heightNumSetting="true" :pagination="false"
10 @selection-change="handleSelectionChange">
11 </lb-table>
12 <div class="text-center">
13 <el-button @click="$popupCacel">取消</el-button>
14 <el-button type="primary" @click="submitdelclick" plain>确定</el-button>
15 </div>
16 </div>
17 </template>
18 <script>
19 import { deleteFlow } from "@/api/workFlow.js"
20 import store from '@/store/index.js'
21 export default {
22 components: {},
23 props: {
24 formData: {
25 type: Object,
26 default: {}
27 }
28 },
29 data () {
30 return {
31 columns: [
32 {
33 type: 'selection',
34 label: '全选'
35 },
36 {
37 label: '序号',
38 type: 'index',
39 width: '50',
40 },
41 {
42 prop: "bdcdyh",
43 label: "不动产单元号",
44 },
45 {
46 prop: "zl",
47 label: "坐落",
48 },
49 ],
50 dataList: [],
51 selectBdcdy: [],
52 }
53 },
54 methods: {
55 // 批量删除确定按钮
56 submitdelclick () {
57 var formdata = new FormData();
58 formdata.append("bsmSldyList", this.selectBdcdy);
59 formdata.append("bsmSlsq", this.formData.bsmSlsq);
60 deleteFlow(formdata).then(res => {
61 if (res.code == 200) {
62 this.$popupCacel();
63 store.dispatch('user/refreshPage', true);
64 this.$message.success("删除成功");
65 } else {
66 this.$message.error(res.message)
67 }
68 })
69 },
70 // 批量删除勾选事件
71 handleSelectionChange (e) {
72 this.selectBdcdy = [];
73 e.forEach((item, index) => {
74 this.selectBdcdy.push(item.bsmSldy)
75 })
76 }
77 }
78 }
79 </script>
80 <style scoped lang='scss'>
81 </style>
1 <!-- 1 <!--
2 * @Description: workFrame左侧菜单列表-普通 2 * @Description: workFrame左侧菜单列表-普通
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-17 16:20:37 4 * @LastEditTime: 2023-07-20 15:37:33
5 --> 5 -->
6 <template> 6 <template>
7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> 7 <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }">
......
1 /* 1 /*
2 * @Description: 2 * @Description:
3 * @Autor: renchao 3 * @Autor: renchao
4 * @LastEditTime: 2023-07-17 14:20:17 4 * @LastEditTime: 2023-07-20 15:37:37
5 */ 5 */
6 import { getPrintTemplateByCode } from "@/api/print"; 6 import { getPrintTemplateByCode } from "@/api/print";
7 import { uploadUndo } from "@/api/clxx"; 7 import { uploadUndo } from "@/api/clxx";
......