4f5dc1fe by weimo934

feat(sxdr):修改导入模板

1 parent 43d91574
...@@ -50,7 +50,8 @@ ...@@ -50,7 +50,8 @@
50 uploadUrl: '', 50 uploadUrl: '',
51 isVisible: false, 51 isVisible: false,
52 sxdrData: { 52 sxdrData: {
53 bsm: '' 53 bsm: '',
54 type:''
54 }, 55 },
55 errorData: [] 56 errorData: []
56 } 57 }
...@@ -72,13 +73,12 @@ ...@@ -72,13 +73,12 @@
72 this.reset(); 73 this.reset();
73 }, 74 },
74 downloadTemplate() { 75 downloadTemplate() {
75 window.open(`/api/tx/excelGeo/zdTemplate?type=` + this.dylx); 76 window.open(`/api/tx/excelGeo/template?type=` + this.dylx);
76 }, 77 },
77 uploadSuccess(res, file, fileList) { 78 uploadSuccess(res, file, fileList) {
78 this.errorData = []; 79 this.errorData = [];
79 if (res.success) { 80 if (res.success) {
80 this.$message.success("上传成功") 81 this.$message.success("上传成功")
81 debugger
82 this.loading(); 82 this.loading();
83 this.close() 83 this.close()
84 } else { 84 } else {
...@@ -96,9 +96,10 @@ ...@@ -96,9 +96,10 @@
96 this.isVisible = val; 96 this.isVisible = val;
97 }, 97 },
98 dylx(val) { 98 dylx(val) {
99 this.sxdrData.type=val;
99 switch (val) { 100 switch (val) {
100 case "zd": 101 case "zd":
101 this.uploadUrl = "/api/tx/excelGeo/Zdimport"; 102 this.uploadUrl = "/api/tx/excelGeo/import";
102 break; 103 break;
103 default: 104 default:
104 break; 105 break;
......