6b97ec38 by weimo934

feat(sxdr):属性导入加载数据

1 parent 4a16a083
...@@ -75,14 +75,19 @@ ...@@ -75,14 +75,19 @@
75 window.open(`/api/tx/excelGeo/zdTemplate?type=` + this.dylx); 75 window.open(`/api/tx/excelGeo/zdTemplate?type=` + this.dylx);
76 }, 76 },
77 uploadSuccess(res, file, fileList) { 77 uploadSuccess(res, file, fileList) {
78 this.errorData = [];
78 if (res.success) { 79 if (res.success) {
79 this.$message.success("上传成功") 80 this.$message.success("上传成功")
80 debugger 81 debugger
81 this.loading(); 82 this.loading();
82 this.close() 83 this.close()
83 } else { 84 } else {
84 this.$message.error("上传失败") 85 if (res.result == null) {
85 this.errorData = res.result 86 this.$message.error(res.message)
87 } else {
88 this.$message.error("上传失败")
89 this.errorData = res.result;
90 }
86 } 91 }
87 } 92 }
88 }, 93 },
...@@ -117,7 +122,7 @@ ...@@ -117,7 +122,7 @@
117 ul { 122 ul {
118 margin-top: 20px; 123 margin-top: 20px;
119 li { 124 li {
120 line-height: 15px; 125 line-height: 20px;
121 color: red; 126 color: red;
122 } 127 }
123 } 128 }
......
...@@ -496,6 +496,19 @@ ...@@ -496,6 +496,19 @@
496 this.form.dzbsm=this.$route.query.bsm; 496 this.form.dzbsm=this.$route.query.bsm;
497 this.getDzDetailByBsm(this.$route.query.bsm) 497 this.getDzDetailByBsm(this.$route.query.bsm)
498 } 498 }
499 },
500 watch:{
501 "$store.state.sxdrType": {
502 handler(n) {
503 this.$nextTick(()=>{
504 if (n === 'dz') {
505 this.getDzDetailByBsm(this.$route.query.bsm)
506 }
507 })
508 },
509 immediate: false,
510 deep: true,
511 }
499 } 512 }
500 } 513 }
501 </script> 514 </script>
......
...@@ -913,20 +913,19 @@ ...@@ -913,20 +913,19 @@
913 if (val != '') { 913 if (val != '') {
914 this.$refs.zddm.style.border = ''; 914 this.$refs.zddm.style.border = '';
915 } 915 }
916 },
917 "$store.state.sxdrType": {
918 handler(n) {
919 this.$nextTick(()=>{
920 if (n === 'zd') {
921 this.getZdjbxxData(this.$store.state.zdbsm)
922 }
923 })
924 },
925 immediate: false,
926 deep: true,
916 } 927 }
917 }, 928 },
918 "$store.state.sxdrType": {
919 handler(n) {
920 this.$message.success(n)
921 this.$nextTick(()=>{
922 if (n === 'zd') {
923 this.getZdjbxxData(this.$store.state.zdbsm)
924 }
925 })
926 },
927 immediate: true,
928 deep: true,
929 }
930 }; 929 };
931 </script> 930 </script>
932 <style lang="less" scoped> 931 <style lang="less" scoped>
......
...@@ -843,6 +843,17 @@ ...@@ -843,6 +843,17 @@
843 this.form.scyclx = this.scyclx; 843 this.form.scyclx = this.scyclx;
844 }) 844 })
845 } 845 }
846 },
847 "$store.state.sxdrType": {
848 handler(n) {
849 this.$nextTick(()=>{
850 if (n === 'h') {
851 this.getHInfo(this.$store.state.hbsm)
852 }
853 })
854 },
855 immediate: false,
856 deep: true,
846 } 857 }
847 } 858 }
848 } 859 }
...@@ -909,7 +920,7 @@ ...@@ -909,7 +920,7 @@
909 height: 30px !important; 920 height: 30px !important;
910 } 921 }
911 } 922 }
912 923
913 .header-button { 924 .header-button {
914 height: 50px; 925 height: 50px;
915 position: fixed; 926 position: fixed;
......
...@@ -686,7 +686,7 @@ ...@@ -686,7 +686,7 @@
686 } 686 }
687 //权利性质数据传给子组件 687 //权利性质数据传给子组件
688 this.$refs.qlxzModule.countList = res.result.qjQlxzListVOS 688 this.$refs.qlxzModule.countList = res.result.qjQlxzListVOS
689 689
690 } 690 }
691 } 691 }
692 }) 692 })
...@@ -759,7 +759,7 @@ ...@@ -759,7 +759,7 @@
759 }) 759 })
760 }, 760 },
761 deep:true 761 deep:true
762 }, 762 },
763 "form.fwjgList": { 763 "form.fwjgList": {
764 handler : function (newVal, oldVal) { 764 handler : function (newVal, oldVal) {
765 newVal.forEach((item,ind)=>{ 765 newVal.forEach((item,ind)=>{
...@@ -770,6 +770,17 @@ ...@@ -770,6 +770,17 @@
770 }, 770 },
771 deep:true 771 deep:true
772 }, 772 },
773 "$store.state.sxdrType": {
774 handler(n) {
775 this.$nextTick(()=>{
776 if (n === 'zrz') {
777 this.getZrzDetailByBsm(this.$route.query.bsm)
778 }
779 })
780 },
781 immediate: false,
782 deep: true,
783 }
773 } 784 }
774 } 785 }
775 </script> 786 </script>
......