181bf28e by 杨威

分割页面弹框重叠问题修改

1 parent fbd9ef23
......@@ -6,7 +6,7 @@
width="70%"
@close="close"
:modal-append-to-body="false"
center>
>
<div class="search">
<el-row>
<el-col :span="24">
......
......@@ -4,7 +4,7 @@
<el-tab-pane label="宗地分割" name="zd">
<div class="fg-tabs top20">
<span class="tips">分割前宗地信息</span>
<el-button type="primary" class="addBtn" @click="newAdd" icon="el-icon-plus">新增</el-button>
<el-button type="primary" class="addBtn" @click="newAdd('zd')" icon="el-icon-plus">新增</el-button>
<div class="fgq">
<el-card class="data">
<div slot="header" class="clearfix">
......@@ -171,7 +171,7 @@
</template>
</table>
</div>
<zd-query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible" :isZdClose="true"
<zd-query-data @getData="getData" :centerDialogVisible.sync="centerDialogZdVisible" :isZdClose="true"
@close="close"></zd-query-data>
<div class="header-button" :style="{width:fgBoxWidth+'px'}">
<el-button type="primary" class="saveBtn" @click="save">保存</el-button>
......@@ -181,7 +181,7 @@
<el-tab-pane label="多幢分割" name="dz">
<div class="fg-tabs top20">
<span class="tips">分割前多幢信息</span>
<el-button type="primary" class="addBtn" @click="newAdd" icon="el-icon-plus">新增</el-button>
<el-button type="primary" class="addBtn" @click="newAdd('dz')" icon="el-icon-plus">新增</el-button>
<div class="fgq">
<el-card class="data">
<div slot="header" class="clearfix">
......@@ -277,7 +277,7 @@
</tr>
</table>
</div>
<dz-query-data @getData="getData" :centerDialogVisible.sync="centerDialogVisible"
<dz-query-data @getData="getData" :centerDialogVisible.sync="centerDialogDzVisible"
:isClose="false"
@close="close">
</dz-query-data>
......@@ -321,7 +321,8 @@
data() {
return {
tabName: 'zd',
centerDialogVisible: false,
centerDialogZdVisible: false,
centerDialogDzVisible: false,
zdFgqData: {}, // 宗地分割前数据
mapDefault:require('@assets/images/map_default.png'),
dzFgqData: {}, //多幢分割前数据
......@@ -812,16 +813,27 @@
}
},
close: function () {
this.centerDialogVisible = false;
this.centerDialogDzVisible = false;
this.centerDialogZdVisible = false;
},
newAdd: function () {
newAdd: function (type) {
this.result();
this.centerDialogVisible = true;
switch (type) {
case 'dz':
this.centerDialogDzVisible = true;
break;
case 'zd':
this.centerDialogZdVisible = true;
break;
default:
break;
}
},
getData: function (data) {
switch (this.tabName) {
case "zd":
this.centerDialogVisible=false;
this.centerDialogZdVisible=false;
this.zdFgqData = data;
break;
case "dz":
......@@ -830,7 +842,7 @@
break
}
this.dzFgqData = data;
this.centerDialogVisible=false;
this.centerDialogDzVisible=false;
break;
case "h":
this.hFgqData = data;
......