style:批量删除问题的排查
Showing
4 changed files
with
97 additions
and
16 deletions
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"; |
... | @@ -98,21 +98,21 @@ export default { | ... | @@ -98,21 +98,21 @@ export default { |
98 | }) | 98 | }) |
99 | break; | 99 | break; |
100 | case "B2": //材料分屏按钮 | 100 | case "B2": //材料分屏按钮 |
101 | this.splitScreen = this.splitScreen ? false : true; | 101 | this.splitScreen = this.splitScreen ? false : true; |
102 | this.$store.dispatch("app/settScreen", this.splitScreen); | 102 | this.$store.dispatch("app/settScreen", this.splitScreen); |
103 | if (this.splitScreen) { | 103 | if (this.splitScreen) { |
104 | 104 | ||
105 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 | 105 | //如果当前选项卡为材料信息内容,递减到上一个选项卡内容 |
106 | if (this.tabName == this.clxxTab.value) { | 106 | if (this.tabName == this.clxxTab.value) { |
107 | this.tabName = this.tabList[this.clxxIndex - 1].value; | 107 | this.tabName = this.tabList[this.clxxIndex - 1].value; |
108 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); | 108 | this.getFromRouter(this.tabList[this.clxxIndex - 1].value); |
109 | } | ||
110 | //删除材料信息选项卡数据 | ||
111 | this.tabList.splice(this.clxxIndex, 1); | ||
112 | } else { | ||
113 | //新增材料信息选项卡数据 | ||
114 | this.tabList.splice(this.clxxIndex, 0, this.clxxTab); | ||
109 | } | 115 | } |
110 | //删除材料信息选项卡数据 | ||
111 | this.tabList.splice(this.clxxIndex, 1); | ||
112 | } else { | ||
113 | //新增材料信息选项卡数据 | ||
114 | this.tabList.splice(this.clxxIndex, 0, this.clxxTab); | ||
115 | } | ||
116 | // this.closefp() | 116 | // this.closefp() |
117 | 117 | ||
118 | // if (this.splitScreen) { | 118 | // if (this.splitScreen) { | ... | ... |
src/views/workflow/components/batchDel.vue
0 → 100644
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"; | ... | ... |
-
Please register or sign in to post a comment