83107ea2 by weimo934

fix(hcxlz):宗地选择后自动关闭弹窗

1 parent c1c6ef2d
......@@ -65,7 +65,8 @@
<el-button type="primary" @click="save">保存</el-button>
<el-button type="primary" @click="cancel">取消</el-button>
</div>
<query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx"></query-data>
<query-data :centerDialogVisible="xzzdVisible" @close="xzzdClose" @getData="getZdxx"
isZdClose="true"></query-data>
</el-dialog>
</div>
</template>
......@@ -138,7 +139,11 @@
},
getZrz: function (bsm) {
zdXlcd(bsm).then(res => {
this.zrzList = res.result;
if (res.success){
this.zrzList = res.result;
} else {
Message.error(res.message)
}
})
},
getZdxx: function (val) {
......@@ -209,8 +214,8 @@
}
table {
border-collapse:separate;
border-spacing:10px;
border-collapse: separate;
border-spacing: 10px;
display: inline-block;
text-align: center;
.label {
......@@ -218,7 +223,7 @@
}
.input {
width: 300px;
.el-select{
.el-select {
width: 300px;
}
}
......
......@@ -130,6 +130,10 @@
default: function () {
return ['zd']
}
},
isZdClose:{
type:Boolean,
default:false
}
},
mounted() {
......@@ -168,6 +172,9 @@
},
addData: function (val) {
this.$emit("getData", val)
if (this.isZdClose) {
this.close();
}
},
close: function () {
this.$emit('close')
......