7c5378ab by 杨威

重新落宗选中户判断

1 parent b06136ea
......@@ -608,27 +608,45 @@ 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
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);
switch (this.lpbParent) {
case 'isHbfg':
break;
case 'isFwsxbg':
break;
case 'isCxlz':
break;
case 'isLpb':
this.$parent.getHbsm(this.hbsmList, false);
break;
default:
break;
}
}
if(this.isHbfg){
}else{
this.$parent.getHbsm(this.hbsmList, false);
}
}, 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
}
......