分割和合并业务切换时,重置之前操作
Showing
2 changed files
with
25 additions
and
6 deletions
1 | <template> | 1 | <template> |
2 | <div class="content_box"> | 2 | <div class="content_box"> |
3 | <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"> | 3 | <el-tabs v-model="activeName" class="tabs" @tab-click="handleClick"> |
4 | <el-tab-pane label="分割" name="fg"><fg></fg></el-tab-pane> | 4 | <el-tab-pane label="分割" name="fg"><fg ref="fg" v-if="fgLoad"></fg></el-tab-pane> |
5 | <el-tab-pane label="合并" name="hb"><hb v-if="hbLoad"></hb></el-tab-pane> | 5 | <el-tab-pane label="合并" name="hb"><hb ref="hb" v-if="hbLoad"></hb></el-tab-pane> |
6 | <el-tab-pane label="范围属性变更" name="fwsxbg"><fwsxbg v-if="fwsxbgLoad"></fwsxbg></el-tab-pane> | 6 | <el-tab-pane label="范围属性变更" name="fwsxbg"><fwsxbg v-if="fwsxbgLoad"></fwsxbg></el-tab-pane> |
7 | <el-tab-pane label="重新落宗" name="cxlz"><cxlz v-if="cxlzLoad"></cxlz></el-tab-pane> | 7 | <el-tab-pane label="重新落宗" name="cxlz"><cxlz v-if="cxlzLoad"></cxlz></el-tab-pane> |
8 | </el-tabs> | 8 | </el-tabs> |
... | @@ -23,6 +23,7 @@ export default { | ... | @@ -23,6 +23,7 @@ export default { |
23 | data() { | 23 | data() { |
24 | return { | 24 | return { |
25 | activeName: "fg", | 25 | activeName: "fg", |
26 | fgLoad:true, | ||
26 | hbLoad:false, //默认不加载合并tab | 27 | hbLoad:false, //默认不加载合并tab |
27 | fwsxbgLoad:false, //默认不加载范围属性变更tab | 28 | fwsxbgLoad:false, //默认不加载范围属性变更tab |
28 | cxlzLoad:false, //默认不加载重新落宗tab | 29 | cxlzLoad:false, //默认不加载重新落宗tab |
... | @@ -30,10 +31,19 @@ export default { | ... | @@ -30,10 +31,19 @@ export default { |
30 | }, | 31 | }, |
31 | methods: { | 32 | methods: { |
32 | handleClick(tab, event) { | 33 | handleClick(tab, event) { |
33 | console.log(tab.name); | 34 | // this.$refs.fg.$refs.isSearch = true; |
35 | if (tab.name != 'fg') { | ||
36 | this.fgLoad = false; | ||
37 | } | ||
38 | if (tab.name != 'hb') { | ||
39 | this.hbLoad = false; | ||
40 | } | ||
34 | if(!this.hbLoad){ | 41 | if(!this.hbLoad){ |
35 | this.hbLoad = tab.name == 'hb' ? true : false | 42 | this.hbLoad = tab.name == 'hb' ? true : false |
36 | } | 43 | } |
44 | if(!this.fgLoad){ | ||
45 | this.fgLoad = tab.name == 'fg' ? true : false | ||
46 | } | ||
37 | if(!this.fwsxbgLoad){ | 47 | if(!this.fwsxbgLoad){ |
38 | this.fwsxbgLoad = tab.name == 'fwsxbg' ? true : false | 48 | this.fwsxbgLoad = tab.name == 'fwsxbg' ? true : false |
39 | } | 49 | } | ... | ... |
... | @@ -307,7 +307,7 @@ | ... | @@ -307,7 +307,7 @@ |
307 | <el-form :model="fgData"> | 307 | <el-form :model="fgData"> |
308 | <el-form-item label="分割户数" required="" :label-width="formLabelWidth"> | 308 | <el-form-item label="分割户数" required="" :label-width="formLabelWidth"> |
309 | <el-input | 309 | <el-input |
310 | :disabled="fgData.fghs!=''" | 310 | :disabled="fgData.fgfx!=0" |
311 | v-model="fgData.fghs" | 311 | v-model="fgData.fghs" |
312 | autocomplete="off" | 312 | autocomplete="off" |
313 | ></el-input> | 313 | ></el-input> |
... | @@ -634,10 +634,18 @@ export default { | ... | @@ -634,10 +634,18 @@ export default { |
634 | //分割 | 634 | //分割 |
635 | this.lpbChVisible = true; | 635 | this.lpbChVisible = true; |
636 | this.fgData.oldbsm = item.bsm; | 636 | this.fgData.oldbsm = item.bsm; |
637 | console.log(item,'item'); | ||
637 | //判断户的实际sjcs为1,只能水平分割 | 638 | //判断户的实际sjcs为1,只能水平分割 |
638 | this.fgData.fgfx = item.sjcs == 1 ? 0 : 1; | 639 | this.fgData.fgfx = item.sjcs == 1 ? 0 : 1; |
639 | //判断户的实际sjhs不为1,分割户数为sjhs的值 | 640 | if(item.sjcs == 1){ |
640 | this.fgData.fghs = item.sjhs == 1 ? '' : item.sjhs; | 641 | //判断户的实际sjcs为1,只能水平分割 |
642 | this.fgData.fgfx = 0; | ||
643 | this.fgData.fghs = ''; | ||
644 | }else{ | ||
645 | this.fgData.fgfx = 1; | ||
646 | //判断户的实际sjhs不为1,分割户数为sjhs的值 | ||
647 | this.fgData.fghs = item.sjcs; | ||
648 | } | ||
641 | } | 649 | } |
642 | }else{ | 650 | }else{ |
643 | console.log(e, "e"); | 651 | console.log(e, "e"); |
... | @@ -795,6 +803,7 @@ export default { | ... | @@ -795,6 +803,7 @@ export default { |
795 | if(res.code == 200){ | 803 | if(res.code == 200){ |
796 | Message.success('分割成功'); | 804 | Message.success('分割成功'); |
797 | // 清除选中户 | 805 | // 清除选中户 |
806 | this.hfgDialogVisible = false | ||
798 | this.clearChoosedH(); | 807 | this.clearChoosedH(); |
799 | this.fghbChoosedList = []; | 808 | this.fghbChoosedList = []; |
800 | // 更新楼盘表 | 809 | // 更新楼盘表 | ... | ... |
-
Please register or sign in to post a comment