Commit 18ff8970 by 陈浩建

修复 网点管理页面唤起上传文件窗口

parent 9e75edae
...@@ -150,11 +150,13 @@ ...@@ -150,11 +150,13 @@
import {cloneObject, exportFile} from "@/utils/util"; import {cloneObject, exportFile} from "@/utils/util";
import moment from "moment"; import moment from "moment";
import {TreeSelect} from "ant-design-vue"; import {TreeSelect} from "ant-design-vue";
import ImportBtn from "../../../components/sysmanage/ImportBtn";
export default { export default {
name: "NetworkPlace", name: "NetworkPlace",
components: { components: {
STable, STable,
TreeSelect, TreeSelect,
ImportBtn,
}, },
data() { data() {
return { return {
...@@ -277,20 +279,6 @@ ...@@ -277,20 +279,6 @@
this.downloadstatu this.downloadstatu
); );
}, },
// 执行上传
doPush(res) {
if (!res || !res.response) {
this.$message.error("上传文件出错!", 10);
return false;
}
const response = res.response;
if (response.state !== "success") {
this.$message.error(response.msg ? response.msg : "上传文件出错!", 10);
return false;
}
this.$message.success("上传成功!" + response.data, 5);
this.impXXModal = false;
},
add(){ add(){
this.titleName="添加" this.titleName="添加"
this.more = 6; this.more = 6;
...@@ -403,6 +391,21 @@ ...@@ -403,6 +391,21 @@
downloadXXMoBan:function (){ downloadXXMoBan:function (){
exportFile(excelMBOut(), "网点清单模板.xlsx"); exportFile(excelMBOut(), "网点清单模板.xlsx");
}, },
// 执行上传
doPush(res) {
if (!res || !res.response) {
this.$message.error("上传文件出错!", 10);
return false;
}
const response = res.response;
if (response.state !== "success") {
this.$message.error(response.msg ? response.msg : "上传文件出错!", 10);
return false;
}
this.$message.success("上传成功!" + response.data, 5);
this.impXXModal = false;
},
impOk() { impOk() {
}, },
impCancel() { impCancel() {
......
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