Commit 9c841840 by 陈浩建

学校批量导出导入

parent 6c7b040e
...@@ -18,7 +18,7 @@ let insert= (params) => postAction(prefix + "/school/schoolManagement/insert" , ...@@ -18,7 +18,7 @@ let insert= (params) => postAction(prefix + "/school/schoolManagement/insert" ,
let hidestatus= (params) => postAction(prefix + "/school/schoolManagement/hidestatus" , params); let hidestatus= (params) => postAction(prefix + "/school/schoolManagement/hidestatus" , params);
// 下载学校模板 // 下载学校模板
let excelMBOut = (params) => postAction(prefix + "/school/schoolManagement/excelMBOut" , params); let excelMBOut = (params) => downFilePost(prefix + "/school/schoolManagement/excelMBOut" , params);
// 下载学校列表 // 下载学校列表
let reportDownload = (params) => downFilePost(prefix + "/school/schoolManagement/excelOut",params); let reportDownload = (params) => downFilePost(prefix + "/school/schoolManagement/excelOut",params);
......
...@@ -580,7 +580,6 @@ ...@@ -580,7 +580,6 @@
}, },
// 执行上传 // 执行上传
doPush(res) { doPush(res) {
debugger
if (!res || !res.response) { if (!res || !res.response) {
this.$message.error("上传文件出错!", 10); this.$message.error("上传文件出错!", 10);
return false; return false;
...@@ -593,9 +592,7 @@ ...@@ -593,9 +592,7 @@
this.$message.success("上传成功!" + response.data, 5); this.$message.success("上传成功!" + response.data, 5);
this.impXXModal = false; this.impXXModal = false;
}, },
downloadXXMoBan:function (){
exportFile(excelMBOut(), "学校列表模板.xlsx");
},
add(){ add(){
this.titleName="添加" this.titleName="添加"
this.isShowMore = true; this.isShowMore = true;
...@@ -906,6 +903,9 @@ ...@@ -906,6 +903,9 @@
this.downloadstatu this.downloadstatu
); );
}, },
downloadXXMoBan:function (){
exportFile(excelMBOut(), "学校列表模板.xlsx");
},
downloadstatu() { downloadstatu() {
this.callback = false; this.callback = false;
}, },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment