Commit 18ff8970 by 陈浩建

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

parent 9e75edae
......@@ -150,11 +150,13 @@
import {cloneObject, exportFile} from "@/utils/util";
import moment from "moment";
import {TreeSelect} from "ant-design-vue";
import ImportBtn from "../../../components/sysmanage/ImportBtn";
export default {
name: "NetworkPlace",
components: {
STable,
TreeSelect,
ImportBtn,
},
data() {
return {
......@@ -277,20 +279,6 @@
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(){
this.titleName="添加"
this.more = 6;
......@@ -403,6 +391,21 @@
downloadXXMoBan:function (){
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() {
},
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