4f5dc1fe by weimo934

feat(sxdr):修改导入模板

1 parent 43d91574
......@@ -50,7 +50,8 @@
uploadUrl: '',
isVisible: false,
sxdrData: {
bsm: ''
bsm: '',
type:''
},
errorData: []
}
......@@ -72,13 +73,12 @@
this.reset();
},
downloadTemplate() {
window.open(`/api/tx/excelGeo/zdTemplate?type=` + this.dylx);
window.open(`/api/tx/excelGeo/template?type=` + this.dylx);
},
uploadSuccess(res, file, fileList) {
this.errorData = [];
if (res.success) {
this.$message.success("上传成功")
debugger
this.loading();
this.close()
} else {
......@@ -96,9 +96,10 @@
this.isVisible = val;
},
dylx(val) {
this.sxdrData.type=val;
switch (val) {
case "zd":
this.uploadUrl = "/api/tx/excelGeo/Zdimport";
this.uploadUrl = "/api/tx/excelGeo/import";
break;
default:
break;
......