cf7ac8af by 杨威

户批量删除

1 parent 35f9161c
......@@ -199,10 +199,12 @@ export function getDetailInfo(zrzbsm,lx) {
/**
* 批量删除户基本信息表,data为一个数组List<String>
*/
export function batchDeleteHByHbsms(data) {
export function batchDelete(data) {
return request({
url:'/system/qjH/batchDeleteHByBsms',
method:'post',
data:data
data:{
bsms:data
}
})
}
......
......@@ -78,6 +78,13 @@
@click="batchCommit"
><i class="iconfont iconhuzhongxinlazong"></i>批量提交</el-button
>
<el-button
class="radioBtn"
label="7"
border
@click="batchDelete"
><i class="iconfont iconhuzhongxinlazong"></i>批量删除</el-button
>
</div>
</el-col>
</el-row>
......@@ -277,7 +284,7 @@ import addZdy from "./zdy/index";
import addCh from "./ch/index";
import editCinfo from "./c/index";
import lpbContent from "./lpbContent/index";
import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit} from "@api/lpb";
import { getLpbMenuTree, batchScYcChange, getLpbTj,batchGeneratorBdcdyh,getLpbFwytAndQlxz ,batchCommit,batchDelete} from "@api/lpb";
import xxxx from '../xxxx/index'
export default {
......@@ -403,6 +410,7 @@ export default {
}, 100);
},
methods: {
//批量提交
batchCommit(){
if (this.bsms.length <= 0) {
Message.warning("请选择操作户")
......@@ -422,6 +430,25 @@ export default {
}
}
},
//批量删除
batchDelete(){ if (this.bsms.length <= 0) {
Message.warning("请选择操作户")
return
}else{
if (this.qsztList.indexOf('1') > -1) {
Message.warning("已提交的户无法继续操作")
}else{
batchDelete(this.bsms).then(res=>{
if(res.code === 200){
Message.success("删除成功");
this.getlpbData();
}else {
this.$message.error(res.message);
}
})
}
}
},
loading(){
this.getLpbMenuTree(this.$store.state.zrzbsm);
},
......
......@@ -297,7 +297,7 @@
>
<li v-show="rightClickFlag == 'h'" @click="handleAddH">添加</li>
<li v-show="rightClickFlag == 'h'" @click="handleMoveH">移动</li>
<li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li>
<!-- <li v-show="rightClickFlag == 'h'" @click="handleDeleteH">删除</li> -->
<li v-show="rightClickFlag == 'h'" @click="handleSyczh">实预测转换</li>
<li v-show="rightClickFlag == 'c'" @click="handleAddC('up')">
向上添加层
......