f73ab27f by 杨威

行政区划显示问题修改

1 parent 822b416e
......@@ -28,9 +28,9 @@
>
<el-option
v-for="item in $store.state.xzqList"
:key="item.xzqbsm"
:label="item.xzqmc"
:value="item.xzqbsm"
:key="item.bsm"
:label="item.mc"
:value="item.bsm"
>
</el-option>
</el-select>
......@@ -347,6 +347,7 @@
import Qlr from "../../../components/formMenu/qlr";
import Qlxz from "../../../components/formMenu/qlxz";
import {
getAllList,
getDdicByMC,
getListByXzqbsm,
getListByPbsm,
......@@ -391,6 +392,8 @@ export default {
.then((res) => {
if (res.result) {
this.formData = res.result;
console.log(res.result,'res.result');
this.getXzqData(res.result.xzqbsm,res.result.djqbsm);
//判断容密高是否为区间值,如果是区间值,则将校验值置为'-'并给rjl,jzmd,jzxg赋值
this.rjl = this.isInterval(this.formData.jyrjl) ? this.formData.jyrjl : '';
this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? '-' : this.formData.jyrjl;
......@@ -498,7 +501,24 @@ export default {
return true;
}
},
//根据宗地信息的行政区代码查询行政区地籍区地籍子区的字典数据
getXzqData(xzqdm,djqdm){
getAllList()
.then((res) => {
this.$store.state.xzqList = res.result;
})
.catch((error) => {});
getListByXzqbsm(xzqdm)
.then((res) => {
this.$store.state.djqList = res.result;
})
.catch((error) => {});
getListByPbsm(djqdm)
.then((res) => {
this.$store.state.djzqList = res.result;
})
.catch((error) => {});
}
},
computed: {
zl() {
......