feat(sxdr):属性导入加载数据
Showing
5 changed files
with
44 additions
and
5 deletions
... | @@ -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> | ... | ... |
... | @@ -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 | }, | 916 | }, |
918 | "$store.state.sxdrType": { | 917 | "$store.state.sxdrType": { |
919 | handler(n) { | 918 | handler(n) { |
920 | this.$message.success(n) | ||
921 | this.$nextTick(()=>{ | 919 | this.$nextTick(()=>{ |
922 | if (n === 'zd') { | 920 | if (n === 'zd') { |
923 | this.getZdjbxxData(this.$store.state.zdbsm) | 921 | this.getZdjbxxData(this.$store.state.zdbsm) |
924 | } | 922 | } |
925 | }) | 923 | }) |
926 | }, | 924 | }, |
927 | immediate: true, | 925 | immediate: false, |
928 | deep: true, | 926 | deep: true, |
929 | } | 927 | } |
928 | }, | ||
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 | } | ... | ... |
... | @@ -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> | ... | ... |
-
Please register or sign in to post a comment