feat(lpb):批量提交
Showing
2 changed files
with
30 additions
and
1 deletions
... | @@ -168,3 +168,14 @@ export function deleteZdy(id) { | ... | @@ -168,3 +168,14 @@ export function deleteZdy(id) { |
168 | } | 168 | } |
169 | }) | 169 | }) |
170 | } | 170 | } |
171 | |||
172 | /** | ||
173 | * 批量提交 | ||
174 | */ | ||
175 | export function batchCommit(data) { | ||
176 | return request({ | ||
177 | url:'/fw/lpbbatch/batchCommit', | ||
178 | method:'post', | ||
179 | data:data | ||
180 | }) | ||
181 | } | ... | ... |
... | @@ -69,6 +69,13 @@ | ... | @@ -69,6 +69,13 @@ |
69 | @click="hcxlzVisible = true" | 69 | @click="hcxlzVisible = true" |
70 | ><i class="iconfont iconhuzhongxinlazong"></i>户重新落宗</el-button | 70 | ><i class="iconfont iconhuzhongxinlazong"></i>户重新落宗</el-button |
71 | > | 71 | > |
72 | <el-button | ||
73 | class="radioBtn" | ||
74 | label="7" | ||
75 | border | ||
76 | @click="batchCommit" | ||
77 | ><i class="iconfont iconhuzhongxinlazong"></i>批量提交</el-button | ||
78 | > | ||
72 | </div> | 79 | </div> |
73 | </el-col> | 80 | </el-col> |
74 | </el-row> | 81 | </el-row> |
... | @@ -272,7 +279,7 @@ import addZdy from "./zdy/index"; | ... | @@ -272,7 +279,7 @@ import addZdy from "./zdy/index"; |
272 | import addCh from "./ch/index"; | 279 | import addCh from "./ch/index"; |
273 | import hbj from "./hbj/index"; | 280 | import hbj from "./hbj/index"; |
274 | import lpbContent from "./lpbContent/index"; | 281 | import lpbContent from "./lpbContent/index"; |
275 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz } from "../../../../api/lpb"; | 282 | import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "../../../../api/lpb"; |
276 | 283 | ||
277 | export default { | 284 | export default { |
278 | name: "", | 285 | name: "", |
... | @@ -395,6 +402,17 @@ export default { | ... | @@ -395,6 +402,17 @@ export default { |
395 | }, 100); | 402 | }, 100); |
396 | }, | 403 | }, |
397 | methods: { | 404 | methods: { |
405 | batchCommit(){ | ||
406 | if (this.bsms.length <= 0) { | ||
407 | Message.warning("请选择操作户") | ||
408 | return | ||
409 | } | ||
410 | batchCommit(this.bsms).then(res=>{ | ||
411 | if (res.success) { | ||
412 | Message.success("提交成功") | ||
413 | } | ||
414 | }) | ||
415 | }, | ||
398 | hcxlz(){ | 416 | hcxlz(){ |
399 | if (this.bsms.length <= 0) { | 417 | if (this.bsms.length <= 0) { |
400 | Message.warning("请选择操作户") | 418 | Message.warning("请选择操作户") | ... | ... |
-
Please register or sign in to post a comment