28393428 by 杨威
2 parents 615b722d 9482cd1b
...@@ -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 {
85 if (res.result == null) {
86 this.$message.error(res.message)
87 } else {
84 this.$message.error("上传失败") 88 this.$message.error("上传失败")
85 this.errorData = res.result 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>
......
...@@ -940,20 +940,19 @@ ...@@ -940,20 +940,19 @@
940 if (val != '') { 940 if (val != '') {
941 this.$refs.zddm.style.border = ''; 941 this.$refs.zddm.style.border = '';
942 } 942 }
943 }
944 }, 943 },
945 "$store.state.sxdrType": { 944 "$store.state.sxdrType": {
946 handler(n) { 945 handler(n) {
947 this.$message.success(n)
948 this.$nextTick(()=>{ 946 this.$nextTick(()=>{
949 if (n === 'zd') { 947 if (n === 'zd') {
950 this.getZdjbxxData(this.$store.state.zdbsm) 948 this.getZdjbxxData(this.$store.state.zdbsm)
951 } 949 }
952 }) 950 })
953 }, 951 },
954 immediate: true, 952 immediate: false,
955 deep: true, 953 deep: true,
956 } 954 }
955 },
957 }; 956 };
958 </script> 957 </script>
959 <style lang="less" scoped> 958 <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 }
......
...@@ -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>
......