行政区划显示问题修改
Showing
1 changed file
with
24 additions
and
4 deletions
... | @@ -28,9 +28,9 @@ | ... | @@ -28,9 +28,9 @@ |
28 | > | 28 | > |
29 | <el-option | 29 | <el-option |
30 | v-for="item in $store.state.xzqList" | 30 | v-for="item in $store.state.xzqList" |
31 | :key="item.xzqbsm" | 31 | :key="item.bsm" |
32 | :label="item.xzqmc" | 32 | :label="item.mc" |
33 | :value="item.xzqbsm" | 33 | :value="item.bsm" |
34 | > | 34 | > |
35 | </el-option> | 35 | </el-option> |
36 | </el-select> | 36 | </el-select> |
... | @@ -347,6 +347,7 @@ | ... | @@ -347,6 +347,7 @@ |
347 | import Qlr from "../../../components/formMenu/qlr"; | 347 | import Qlr from "../../../components/formMenu/qlr"; |
348 | import Qlxz from "../../../components/formMenu/qlxz"; | 348 | import Qlxz from "../../../components/formMenu/qlxz"; |
349 | import { | 349 | import { |
350 | getAllList, | ||
350 | getDdicByMC, | 351 | getDdicByMC, |
351 | getListByXzqbsm, | 352 | getListByXzqbsm, |
352 | getListByPbsm, | 353 | getListByPbsm, |
... | @@ -391,6 +392,8 @@ export default { | ... | @@ -391,6 +392,8 @@ export default { |
391 | .then((res) => { | 392 | .then((res) => { |
392 | if (res.result) { | 393 | if (res.result) { |
393 | this.formData = res.result; | 394 | this.formData = res.result; |
395 | console.log(res.result,'res.result'); | ||
396 | this.getXzqData(res.result.xzqbsm,res.result.djqbsm); | ||
394 | //判断容密高是否为区间值,如果是区间值,则将校验值置为'-'并给rjl,jzmd,jzxg赋值 | 397 | //判断容密高是否为区间值,如果是区间值,则将校验值置为'-'并给rjl,jzmd,jzxg赋值 |
395 | this.rjl = this.isInterval(this.formData.jyrjl) ? this.formData.jyrjl : ''; | 398 | this.rjl = this.isInterval(this.formData.jyrjl) ? this.formData.jyrjl : ''; |
396 | this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? '-' : this.formData.jyrjl; | 399 | this.formData.jyrjl = this.isInterval(this.formData.jyrjl) ? '-' : this.formData.jyrjl; |
... | @@ -498,7 +501,24 @@ export default { | ... | @@ -498,7 +501,24 @@ export default { |
498 | return true; | 501 | return true; |
499 | } | 502 | } |
500 | }, | 503 | }, |
501 | 504 | //根据宗地信息的行政区代码查询行政区地籍区地籍子区的字典数据 | |
505 | getXzqData(xzqdm,djqdm){ | ||
506 | getAllList() | ||
507 | .then((res) => { | ||
508 | this.$store.state.xzqList = res.result; | ||
509 | }) | ||
510 | .catch((error) => {}); | ||
511 | getListByXzqbsm(xzqdm) | ||
512 | .then((res) => { | ||
513 | this.$store.state.djqList = res.result; | ||
514 | }) | ||
515 | .catch((error) => {}); | ||
516 | getListByPbsm(djqdm) | ||
517 | .then((res) => { | ||
518 | this.$store.state.djzqList = res.result; | ||
519 | }) | ||
520 | .catch((error) => {}); | ||
521 | } | ||
502 | }, | 522 | }, |
503 | computed: { | 523 | computed: { |
504 | zl() { | 524 | zl() { | ... | ... |
-
Please register or sign in to post a comment