7c5378ab by 杨威

重新落宗选中户判断

1 parent b06136ea
......@@ -608,26 +608,44 @@ export default {
if (e.className.indexOf("tdSelect") == -1) {
//未选中→选中
e.className = "tdSelect"; //加边框
if(this.isHbfg){
this.fghbChoosedList.push(hs);
this.hbsmList.push(bsm); // 将户bsm放进hbsmList
}else{
this.hbsmList.push(bsm); // 将户bsm放进hbsmList
switch (this.lpbParent) {
case 'isHbfg':
this.fghbChoosedList.push(hs);
break;
case 'isFwsxbg':
break;
case 'isCxlz':
break;
case 'isLpb':
break;
default:
break;
}
} else {
//选中→未选中
e.className = "";
if(this.isHbfg){
this.deleteArrOption(this.fghbChoosedList, hs)
this.deleteArrOption(this.hbsmList, bsm);
}else{
this.deleteArrOption(this.hbsmList, bsm);
}
}
if(this.isHbfg){
switch (this.lpbParent) {
case 'isHbfg':
}else{
break;
case 'isFwsxbg':
break;
case 'isCxlz':
break;
case 'isLpb':
this.$parent.getHbsm(this.hbsmList, false);
break;
default:
break;
}
}
}, 200);
},
......@@ -740,9 +758,7 @@ export default {
},
// 层选中事件
handleClickC(e, item) {
if (this.isHbfg) {
}else{
if (this.lpbParent == 'isLpb') {
//判断点击的层是否选中
if (e.target.className.indexOf("tdSelect") == -1) {
//未选中→选中
......@@ -754,6 +770,8 @@ export default {
this.deleteArrOption(this.cbsmList, item.bsm);
}
this.$parent.getCbsm(this.cbsmList);
}else{
}
},
//关闭右键菜单
......@@ -922,8 +940,7 @@ export default {
//户重新落宗
handleCxlz(){
if (this.hbsmList.length <= 0) {
Message.warning("请选择操作户")
return
this.hbsmList.push(this.chData);
}
this.hcxlzVisible = true
}
......