修改下载模块代码

ywj_dev
郑明梁 2 years ago
parent 6247b8d7cb
commit f6f1d3c0c5

@ -601,7 +601,6 @@ export default {
});
},
cancelDialog() {
tQuer;
this.formVisible = false;
//
this.$refs["dataForm"].resetFields();

@ -71,6 +71,7 @@ import {formatDate} from "@/utils/date";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -154,8 +155,7 @@ export default {
this.thrCorpSelectVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let baseUrl = this.BASE_URL
let href = baseUrl + "/udiwms/thrCorp/exportLog/download" +
"?genKey=" + row.genKey;
let a = document.createElement("a");
@ -170,7 +170,6 @@ export default {
a.click();
this.getList();
});
});
},
cancelDialog(val) {

@ -68,6 +68,7 @@ import axios from "axios";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -153,8 +154,7 @@ export default {
this.thrCorpSelectVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let baseUrl = this.BASE_URL;
let href = baseUrl + "/udiwms/thrCorp/exportLog/download" +
"?genKey=" + row.genKey;
let a = document.createElement("a");
@ -171,7 +171,6 @@ export default {
a.click();
this.getList();
});
});
},
cancelDialog(val) {

@ -108,6 +108,7 @@ import axios from "axios";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -191,8 +192,8 @@ export default {
this.thrInvProductsSelectVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let baseUrl = this.BASE_URL;
let href = baseUrl + "/udiwms/invProducts/exportLog/download" + "?genKey=" + row.genKey;
let a = document.createElement("a");
fetch(href)
@ -208,10 +209,6 @@ export default {
a.click();
this.getList();
});
});
},
cancelDialog(val) {

@ -75,6 +75,7 @@ import {formatDate} from "@/utils/date";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
type: 1,
@ -158,8 +159,7 @@ export default {
this.thrOrderSelectVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let baseUrl = this.BASE_URL
let href = baseUrl + "/udiwms/thrOrder/exportLog/download" + "?genKey=" + row.genKey;
let a = document.createElement("a");
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
@ -173,7 +173,6 @@ export default {
a.click();
this.getList();
});
});
},
cancelDialog(val) {

@ -159,7 +159,6 @@ export default {
this.thrProductsSelectVisible = true;
},
downloadExcel(row) {
debugger
let baseUrl = this.BASE_URL;
let href = baseUrl + "/udiwms/thrProducts/exportLog/download" + "?genKey=" + row.genKey;
let a = document.createElement("a");

Loading…
Cancel
Save