b5105c8a by 杨威

修复在宗地表单页新建宗地后无法正常保存问题

1 parent e9651a13
...@@ -537,7 +537,6 @@ ...@@ -537,7 +537,6 @@
537 if(this.$store.state.gyfsList.length>0){ 537 if(this.$store.state.gyfsList.length>0){
538 this.gyfs=this.$store.state.gyfsList[0].bsm; 538 this.gyfs=this.$store.state.gyfsList[0].bsm;
539 } 539 }
540
541 }, 540 },
542 }; 541 };
543 </script> 542 </script>
......
...@@ -265,7 +265,12 @@ export default { ...@@ -265,7 +265,12 @@ export default {
265 this.$store.state.zdbsm = res.result; 265 this.$store.state.zdbsm = res.result;
266 //todo 跳转到宗地基本信息内容表页面 (预留) 266 //todo 跳转到宗地基本信息内容表页面 (预留)
267 this.close(); 267 this.close();
268 this.$router.push("/zd"); 268 this.$router.push({
269 path: '/zd', query:{
270 source: 2,
271 bsm:res.result
272 }
273 });
269 } else { 274 } else {
270 this.$message.error(res.message); 275 this.$message.error(res.message);
271 } 276 }
......
1 <template> 1 <template>
2 <div class="main"> 2 <div class="main">
3 <div class="formMenu"> 3 <div class="formMenu">
4 <Qlr ref="qlrxxModule" :bsm="$store.state.zdbsm" :qszt="formData.qszt"></Qlr> 4 <Qlr ref="qlrxxModule" :bsm="curZdbsm" :qszt="formData.qszt"></Qlr>
5 <!-- <el-button 5 <!-- <el-button
6 type="primary" 6 type="primary"
7 class="changeBtn" 7 class="changeBtn"
...@@ -407,12 +407,12 @@ export default { ...@@ -407,12 +407,12 @@ export default {
407 { label: "-", value: "-" }, 407 { label: "-", value: "-" },
408 ], 408 ],
409 formData: {}, 409 formData: {},
410
411 dpdm:'', //宗地底盘代码 410 dpdm:'', //宗地底盘代码
411 curZdbsm:'',
412 }; 412 };
413 }, 413 },
414 created() { 414 created() {
415 415 this.curZdbsm = this.$route.query.bsm;
416 }, 416 },
417 mounted() { 417 mounted() {
418 this.getZdjbxxData(this.$store.state.zdbsm); 418 this.getZdjbxxData(this.$store.state.zdbsm);
...@@ -453,8 +453,44 @@ export default { ...@@ -453,8 +453,44 @@ export default {
453 "tdzh": "" 453 "tdzh": ""
454 }) 454 })
455 } 455 }
456 this.$nextTick(()=>{
456 //权利性质数据传给子组件 457 //权利性质数据传给子组件
457 this.$refs.qlxzModule.countList = res.result.list; 458 this.$refs.qlxzModule.countList = res.result.list;
459 })
460 }else{
461 this.$nextTick(()=>{
462 //权利性质数据传给子组件
463 this.$refs.qlxzModule.countList = [
464 {
465 id: Math.random(),
466 isInside: false,
467 hasNotBorder: false,
468 bsm: "", //权利性质标识码
469 glbsm: "", //宗地BSM、自然幢BSM、户BSM、多幢BSM、宗海BSM
470 qlxzdm: "",
471 zhqlxzlx: "", //除宗海数据外,默认都是空;0:用海类型权利性质;2:海岛用途权利性质
472 list: [
473 {
474 pzdjbsm: "",
475 pzdjmc: "",
476 pzytdm: "",
477 pzytmc: "",
478 pzytmj: 0,
479 qlxzbsm: "",
480 sjdjbsm: "",
481 sjdjmc: "",
482 sjytdm: "",
483 sjytmc: "",
484 sjytmj: 0,
485 syqx: "",
486 tdsyjssj: "",
487 tdsyqssj: "",
488 tdzh: "",
489 },
490 ],
491 },
492 ];
493 })
458 } 494 }
459 } 495 }
460 }) 496 })
...@@ -678,6 +714,7 @@ export default { ...@@ -678,6 +714,7 @@ export default {
678 }, 714 },
679 zdbsm:function (val) { 715 zdbsm:function (val) {
680 this.getZdjbxxData(val) 716 this.getZdjbxxData(val)
717 this.curZdbsm = this.$route.query.bsm;
681 } 718 }
682 }, 719 },
683 }; 720 };
......