cf7ac8af by 杨威

户批量删除

1 parent 35f9161c
...@@ -199,10 +199,12 @@ export function getDetailInfo(zrzbsm,lx) { ...@@ -199,10 +199,12 @@ export function getDetailInfo(zrzbsm,lx) {
199 /** 199 /**
200 * 批量删除户基本信息表,data为一个数组List<String> 200 * 批量删除户基本信息表,data为一个数组List<String>
201 */ 201 */
202 export function batchDeleteHByHbsms(data) { 202 export function batchDelete(data) {
203 return request({ 203 return request({
204 url:'/system/qjH/batchDeleteHByBsms', 204 url:'/system/qjH/batchDeleteHByBsms',
205 method:'post', 205 method:'post',
206 data:data 206 data:{
207 bsms:data
208 }
207 }) 209 })
208 } 210 }
......
...@@ -78,6 +78,13 @@ ...@@ -78,6 +78,13 @@
78 @click="batchCommit" 78 @click="batchCommit"
79 ><i class="iconfont iconhuzhongxinlazong"></i>批量提交</el-button 79 ><i class="iconfont iconhuzhongxinlazong"></i>批量提交</el-button
80 > 80 >
81 <el-button
82 class="radioBtn"
83 label="7"
84 border
85 @click="batchDelete"
86 ><i class="iconfont iconhuzhongxinlazong"></i>批量删除</el-button
87 >
81 </div> 88 </div>
82 </el-col> 89 </el-col>
83 </el-row> 90 </el-row>
...@@ -277,7 +284,7 @@ import addZdy from "./zdy/index"; ...@@ -277,7 +284,7 @@ import addZdy from "./zdy/index";
277 import addCh from "./ch/index"; 284 import addCh from "./ch/index";
278 import editCinfo from "./c/index"; 285 import editCinfo from "./c/index";
279 import lpbContent from "./lpbContent/index"; 286 import lpbContent from "./lpbContent/index";
280 import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb"; 287 import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit,batchDelete} from "@api/lpb";
281 import xxxx from '../xxxx/index' 288 import xxxx from '../xxxx/index'
282 289
283 export default { 290 export default {
...@@ -403,6 +410,7 @@ export default { ...@@ -403,6 +410,7 @@ export default {
403 }, 100); 410 }, 100);
404 }, 411 },
405 methods: { 412 methods: {
413 //批量提交
406 batchCommit(){ 414 batchCommit(){
407 if (this.bsms.length <= 0) { 415 if (this.bsms.length <= 0) {
408 Message.warning("请选择操作户") 416 Message.warning("请选择操作户")
...@@ -422,6 +430,25 @@ export default { ...@@ -422,6 +430,25 @@ export default {
422 } 430 }
423 } 431 }
424 }, 432 },
433 //批量删除
434 batchDelete(){ if (this.bsms.length <= 0) {
435 Message.warning("请选择操作户")
436 return
437 }else{
438 if (this.qsztList.indexOf('1') > -1) {
439 Message.warning("已提交的户无法继续操作")
440 }else{
441 batchDelete(this.bsms).then(res=>{
442 if(res.code === 200){
443 Message.success("删除成功");
444 this.getlpbData();
445 }else {
446 this.$message.error(res.message);
447 }
448 })
449 }
450 }
451 },
425 loading(){ 452 loading(){
426 this.getLpbMenuTree(this.$store.state.zrzbsm); 453 this.getLpbMenuTree(this.$store.state.zrzbsm);
427 }, 454 },
......
...@@ -297,7 +297,7 @@ ...@@ -297,7 +297,7 @@
297 > 297 >
298 <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li> 298 <li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li>
299 <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li> 299 <li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li>
300 <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> 300 <!-- <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> -->
301 <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li> 301 <li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li>
302 <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')"> 302 <li v-show="rightClickFlag == 'c'" @click="handleAddC('up')">
303 向上添加层 303 向上添加层
......