3d827e8c by 杨威

分割和合并业务切换时,重置之前操作

1 parent 8cb9ef98
<template>
<div class="content_box">
<el-tabs v-model="activeName" class="tabs" @tab-click="handleClick">
<el-tab-pane label="分割" name="fg"><fg></fg></el-tab-pane>
<el-tab-pane label="合并" name="hb"><hb v-if="hbLoad"></hb></el-tab-pane>
<el-tab-pane label="分割" name="fg"><fg ref="fg" v-if="fgLoad"></fg></el-tab-pane>
<el-tab-pane label="合并" name="hb"><hb ref="hb" v-if="hbLoad"></hb></el-tab-pane>
<el-tab-pane label="范围属性变更" name="fwsxbg"><fwsxbg v-if="fwsxbgLoad"></fwsxbg></el-tab-pane>
<el-tab-pane label="重新落宗" name="cxlz"><cxlz v-if="cxlzLoad"></cxlz></el-tab-pane>
</el-tabs>
......@@ -23,6 +23,7 @@ export default {
data() {
return {
activeName: "fg",
fgLoad:true,
hbLoad:false, //默认不加载合并tab
fwsxbgLoad:false, //默认不加载范围属性变更tab
cxlzLoad:false, //默认不加载重新落宗tab
......@@ -30,10 +31,19 @@ export default {
},
methods: {
handleClick(tab, event) {
console.log(tab.name);
// this.$refs.fg.$refs.isSearch = true;
if (tab.name != 'fg') {
this.fgLoad = false;
}
if (tab.name != 'hb') {
this.hbLoad = false;
}
if(!this.hbLoad){
this.hbLoad = tab.name == 'hb' ? true : false
}
if(!this.fgLoad){
this.fgLoad = tab.name == 'fg' ? true : false
}
if(!this.fwsxbgLoad){
this.fwsxbgLoad = tab.name == 'fwsxbg' ? true : false
}
......
......@@ -307,7 +307,7 @@
<el-form :model="fgData">
<el-form-item label="分割户数" required="" :label-width="formLabelWidth">
<el-input
:disabled="fgData.fghs!=''"
:disabled="fgData.fgfx!=0"
v-model="fgData.fghs"
autocomplete="off"
></el-input>
......@@ -634,10 +634,18 @@ export default {
//分割
this.lpbChVisible = true;
this.fgData.oldbsm = item.bsm;
console.log(item,'item');
//判断户的实际sjcs为1,只能水平分割
this.fgData.fgfx = item.sjcs == 1 ? 0 : 1;
if(item.sjcs == 1){
//判断户的实际sjcs为1,只能水平分割
this.fgData.fgfx = 0;
this.fgData.fghs = '';
}else{
this.fgData.fgfx = 1;
//判断户的实际sjhs不为1,分割户数为sjhs的值
this.fgData.fghs = item.sjhs == 1 ? '' : item.sjhs;
this.fgData.fghs = item.sjcs;
}
}
}else{
console.log(e, "e");
......@@ -795,6 +803,7 @@ export default {
if(res.code == 200){
Message.success('分割成功');
// 清除选中户
this.hfgDialogVisible = false
this.clearChoosedH();
this.fghbChoosedList = [];
// 更新楼盘表
......