Merge branch 'master' of http://yun.pashanhoo.com:9090/bdc/bdcdj-web
Showing
6 changed files
with
83 additions
and
24 deletions
... | @@ -155,8 +155,9 @@ export function choiceBdcdy (data) { | ... | @@ -155,8 +155,9 @@ export function choiceBdcdy (data) { |
155 | // 申请列表删除 | 155 | // 申请列表删除 |
156 | export function deleteBdcdy (data) { | 156 | export function deleteBdcdy (data) { |
157 | return request({ | 157 | return request({ |
158 | url: 'business/workFlow/deleteBdcdy?sldybsm=' + data, | 158 | url: 'business/workFlow/deleteBdcdy', |
159 | method: 'get', | 159 | method: 'post', |
160 | data, | ||
160 | showLoading: true | 161 | showLoading: true |
161 | }) | 162 | }) |
162 | } | 163 | } |
... | \ No newline at end of file | ... | \ No newline at end of file | ... | ... |
... | @@ -59,9 +59,15 @@ export default { | ... | @@ -59,9 +59,15 @@ export default { |
59 | if (this.btnShow) { //判断按钮的显影来决定是否需要计算高度 | 59 | if (this.btnShow) { //判断按钮的显影来决定是否需要计算高度 |
60 | if (this.height == 'auto') { | 60 | if (this.height == 'auto') { |
61 | this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px' | 61 | this.contentHeight = (this.$refs.contentRef.offsetHeight - 100) + 'px' |
62 | }else{ | ||
63 | this.contentHeight = this.height | ||
62 | } | 64 | } |
63 | } else { | 65 | } else { |
64 | this.contentHeight = (parseInt(this.height) - parseInt('100px')) + 'px'; | 66 | if(this.height=='auto'){ |
67 | this.contentHeight = this.$refs.contentRef.offsetHeight | ||
68 | }else{ | ||
69 | this.contentHeight = this.height | ||
70 | } | ||
65 | } | 71 | } |
66 | }, 500) | 72 | }, 500) |
67 | }, | 73 | }, |
... | @@ -153,9 +159,9 @@ export default { | ... | @@ -153,9 +159,9 @@ export default { |
153 | 159 | ||
154 | /deep/.closeStyle { | 160 | /deep/.closeStyle { |
155 | position: absolute; | 161 | position: absolute; |
156 | top: 17px; | 162 | top: 13px; |
157 | right: 12px; | 163 | right: 26px; |
158 | font-size: 20px; | 164 | font-size: 24px; |
159 | cursor: pointer; | 165 | cursor: pointer; |
160 | color: #409EFF; | 166 | color: #409EFF; |
161 | } | 167 | } | ... | ... |
... | @@ -202,7 +202,7 @@ export default { | ... | @@ -202,7 +202,7 @@ export default { |
202 | height: 48px; | 202 | height: 48px; |
203 | line-height: 48px; | 203 | line-height: 48px; |
204 | width: 100%; | 204 | width: 100%; |
205 | background: #fff; | 205 | background: #EDF1F7; |
206 | border-bottom: 1px solid #E4EBF4; | 206 | border-bottom: 1px solid #E4EBF4; |
207 | box-shadow: 0 1px 3px 0 rgba(147, 173, 209, 0.12); | 207 | box-shadow: 0 1px 3px 0 rgba(147, 173, 209, 0.12); |
208 | 208 | ||
... | @@ -216,6 +216,8 @@ export default { | ... | @@ -216,6 +216,8 @@ export default { |
216 | top: 8px; | 216 | top: 8px; |
217 | height: 33px; | 217 | height: 33px; |
218 | z-index: 1; | 218 | z-index: 1; |
219 | background: #EDF1F7!important; | ||
220 | |||
219 | } | 221 | } |
220 | 222 | ||
221 | .pane-mask-left { | 223 | .pane-mask-left { |
... | @@ -237,14 +239,12 @@ export default { | ... | @@ -237,14 +239,12 @@ export default { |
237 | cursor: pointer; | 239 | cursor: pointer; |
238 | height: 31px; | 240 | height: 31px; |
239 | line-height: 29px; | 241 | line-height: 29px; |
240 | border: 1px solid #e4ebf4; | ||
241 | color: #686666; | 242 | color: #686666; |
242 | background: #fff; | 243 | background: #D8DFE6; |
243 | padding: 0 10px 0 10px; | 244 | padding: 0 20px 0 20px; |
244 | font-size: 16px; | 245 | font-size: 16px; |
245 | margin-top: 5px; | 246 | margin-top: 5px; |
246 | border-radius: 4px; | 247 | border-radius: 8px 8px 0 0; |
247 | |||
248 | &:first-of-type { | 248 | &:first-of-type { |
249 | margin-left: 15px; | 249 | margin-left: 15px; |
250 | } | 250 | } |
... | @@ -254,8 +254,8 @@ export default { | ... | @@ -254,8 +254,8 @@ export default { |
254 | } | 254 | } |
255 | 255 | ||
256 | &.active { | 256 | &.active { |
257 | border-color: #0f93f6; | 257 | color: #0f93f6; |
258 | color: #4a4a4a; | 258 | background: #ffffff; |
259 | // &::before { | 259 | // &::before { |
260 | // content: ''; | 260 | // content: ''; |
261 | // background: #0F93F6; | 261 | // background: #0F93F6; |
... | @@ -267,6 +267,7 @@ export default { | ... | @@ -267,6 +267,7 @@ export default { |
267 | // margin-right: 2px; | 267 | // margin-right: 2px; |
268 | // } | 268 | // } |
269 | } | 269 | } |
270 | |||
270 | } | 271 | } |
271 | } | 272 | } |
272 | 273 | ... | ... |
... | @@ -16,6 +16,7 @@ const service = axios.create({ | ... | @@ -16,6 +16,7 @@ const service = axios.create({ |
16 | //admin:bearer AT-16-oqkOHiUSsDdFA-eAZ49k2rJQDTzQpClO | 16 | //admin:bearer AT-16-oqkOHiUSsDdFA-eAZ49k2rJQDTzQpClO |
17 | //renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI | 17 | //renc:bearer AT-30-KHB4LXc8-CZXwBEyaFJa9lRmMTc5sHVI |
18 | //tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6 | 18 | //tianh:bearer AT-33-3zFTGkhQ4eUv4nXvzAmbgN5RPZppzEY6 |
19 | //zhangh:bearer AT-7-Tx8dlZH0LNRc33UjD1CX1xwa-1D7kQmQ | ||
19 | }, | 20 | }, |
20 | timeout: 15000 | 21 | timeout: 15000 |
21 | }) | 22 | }) | ... | ... |
... | @@ -4,12 +4,12 @@ | ... | @@ -4,12 +4,12 @@ |
4 | --> | 4 | --> |
5 | <template> | 5 | <template> |
6 | <div class='batchDel'> | 6 | <div class='batchDel'> |
7 | <lb-table :column="columns" :data="dataList" :heightNum="500" :pagination="false"> | 7 | <lb-table :column="columns" :data="formData.dataList" :heightNum="500" :pagination="false" @selection-change="handleSelectionChange"> |
8 | </lb-table> | 8 | </lb-table> |
9 | </div> | 9 | </div> |
10 | </template> | 10 | </template> |
11 | <script> | 11 | <script> |
12 | 12 | import { deleteBdcdy } from "@/api/ywbl.js" | |
13 | export default { | 13 | export default { |
14 | components: {}, | 14 | components: {}, |
15 | props: { | 15 | props: { |
... | @@ -31,11 +31,36 @@ export default { | ... | @@ -31,11 +31,36 @@ export default { |
31 | width: '50', | 31 | width: '50', |
32 | }, | 32 | }, |
33 | { | 33 | { |
34 | prop: "status", | 34 | prop: "bdcdyh", |
35 | label: "状态", | 35 | label: "不动产单元号", |
36 | }, | ||
37 | { | ||
38 | prop: "zl", | ||
39 | label: "坐落", | ||
36 | }, | 40 | }, |
37 | ], | 41 | ], |
38 | dataList: [] | 42 | dataList: [], |
43 | selectBdcdy: [], | ||
44 | } | ||
45 | }, | ||
46 | methods:{ | ||
47 | childFn(){ | ||
48 | deleteBdcdy({ | ||
49 | bsmSlsq: this.formData.bsmSlsq, | ||
50 | bsmSldyList: this.selectBdcdy | ||
51 | }).then(res => { | ||
52 | if(res.code == 200){ | ||
53 | this.$message.success("删除成功"); | ||
54 | }else{ | ||
55 | this.$message.error(res.message) | ||
56 | } | ||
57 | }) | ||
58 | }, | ||
59 | handleSelectionChange (e) { | ||
60 | this.selectBdcdy = []; | ||
61 | e.forEach((item, index) => { | ||
62 | this.selectBdcdy.push(item.bsmSldy) | ||
63 | }) | ||
39 | } | 64 | } |
40 | } | 65 | } |
41 | } | 66 | } | ... | ... |
... | @@ -23,7 +23,7 @@ | ... | @@ -23,7 +23,7 @@ |
23 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> | 23 | <div class="leftmenu" :class="{ 'animation-map-drawer': isShowdrawer }"> |
24 | <div v-if="this.isShowdrawer"> | 24 | <div v-if="this.isShowdrawer"> |
25 | <div class="title">申请单元列表({{ unitData.length }}) | 25 | <div class="title">申请单元列表({{ unitData.length }}) |
26 | <el-button type="text" class="batchDel" @click="handleBatchDel">批量删除</el-button> | 26 | <el-button type="text" class="batchDel" @click="handleBatchDel" v-if="unitData.length>1">批量删除</el-button> |
27 | </div> | 27 | </div> |
28 | <el-menu :default-active="activeIndex" @select="unitClick"> | 28 | <el-menu :default-active="activeIndex" @select="unitClick"> |
29 | <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> | 29 | <el-menu-item v-for="(item, index) in unitData" :index="index.toString()" :key="index"> |
... | @@ -136,19 +136,44 @@ export default { | ... | @@ -136,19 +136,44 @@ export default { |
136 | }, | 136 | }, |
137 | // 删除左侧列表 | 137 | // 删除左侧列表 |
138 | handleDel (item) { | 138 | handleDel (item) { |
139 | deleteBdcdy(item.sldybsm).then(res => { | 139 | this.$confirm('确定要删除吗, 是否继续?', '提示', { |
140 | 140 | confirmButtonText: '确定', | |
141 | cancelButtonText: '取消', | ||
142 | type: 'warning' | ||
143 | }).then(() => { | ||
144 | deleteBdcdy({ | ||
145 | bsmSlsq: this.bsmSlsq, | ||
146 | bsmSldyList: item.bsmSldy.split(',') | ||
147 | }).then(res => { | ||
148 | if(res.code == 200){ | ||
149 | this.$message.success("删除成功"); | ||
150 | this.updateDialog(); | ||
151 | }else{ | ||
152 | this.$message.error(res.message) | ||
153 | } | ||
154 | }) | ||
155 | }).catch(() => { | ||
156 | this.$message({ | ||
157 | type: 'info', | ||
158 | message: '已取消删除' | ||
159 | }) | ||
141 | }) | 160 | }) |
142 | }, | 161 | }, |
143 | handleBatchDel () { | 162 | handleBatchDel () { |
163 | let that = this; | ||
144 | this.$popup({ | 164 | this.$popup({ |
145 | title: '批量删除', | 165 | title: '批量删除', |
146 | width: '50%', | 166 | width: '50%', |
147 | btnShow: true, | 167 | btnShow: true, |
148 | editItem: 'workflow/components/batchDel', | 168 | editItem: 'workflow/components/batchDel', |
149 | formData: {}, | 169 | formData: { |
170 | bsmSlsq: this.bsmSlsq, | ||
171 | dataList: this.unitData | ||
172 | }, | ||
150 | cancel: function () { }, //取消事件的回调 | 173 | cancel: function () { }, //取消事件的回调 |
151 | confirm: function () { }, //确认事件的回调 | 174 | confirm: function () { |
175 | that.updateDialog(); | ||
176 | }, //确认事件的回调 | ||
152 | }) | 177 | }) |
153 | }, | 178 | }, |
154 | //加载流程初始参数 | 179 | //加载流程初始参数 | ... | ... |
-
Please register or sign in to post a comment