下载方法修改不读config

prod
郑明梁 2 years ago
parent a99e5923ac
commit 16040a9dd6

@ -22,13 +22,14 @@
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row @selection-change="handleSelectionChange">
<el-table v-loading="loading" :data="list" style="width: 100%" border highlight-current-row
@selection-change="handleSelectionChange">
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="记录ID" prop="genKey" show-overflow-tooltip></el-table-column>
<el-table-column label="更新日期" prop="updateTime" show-overflow-tooltip></el-table-column>
<el-table-column label="状态" prop="status" show-overflow-tooltip>
<template slot-scope="scope">
<el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag >
<el-tag :type="statusFilterType(scope.row.status)">{{ status[scope.row.status] }}</el-tag>
</template>
</el-table-column>
<el-table-column label="下载次数" prop="dlCount" show-overflow-tooltip></el-table-column>
@ -66,13 +67,15 @@
</template>
<script>
import {filterLog, deleteLog} from "@/api/basic/corpExport";
import corpSelect from "./corpSelect";
import axios from "axios";
import {formatDate} from "@/utils/date";
export default {
import {filterLog, deleteLog} from "@/api/basic/corpExport";
import corpSelect from "./corpSelect";
import axios from "axios";
import {formatDate} from "@/utils/date";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -152,10 +155,8 @@
this.corpImportDetailVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let href = baseUrl + "/udiwms/corps/exportLog/download" +
"?genKey=" + row.genKey;
let baseUrl = this.BASE_URL
let href = baseUrl + "/udiwms/corps/exportLog/download" + "?genKey=" + row.genKey;
console.log("href = " + href);
let a = document.createElement("a");
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
@ -169,9 +170,6 @@
a.click();
this.getList();
});
});
},
cancelDialog(val) {
@ -237,29 +235,29 @@
// this.getBasicThirdSys();
this.getList();
},
};
};
</script>
<style scoped>
.itemTag {
.itemTag {
float: left;
text-align: left;
margin-top: 10px;
width: 100px;
}
}
.text {
.text {
font-size: 13px;
font-family: "Microsoft YaHei";
}
}
.el-row {
.el-row {
display: flex;
flex-wrap: wrap;
}
}
.el-col {
.el-col {
border-radius: 4px;
flex-wrap: wrap;
}
}
</style>

@ -94,6 +94,7 @@ import corpImportDetail from "./corpImportDetail";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -212,15 +213,9 @@ export default {
this.loading = false;
this.list = [];
});
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
let response = this.BASE_URL;
this.uploadFileUrl = response + "/udiwms/corps/importLog/upload";
});
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/已对照往来单位模板.xlsx";
});
},
jumpDl() {
window.open(this.templateDlUrl, '_blank');

@ -86,6 +86,7 @@
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -212,14 +213,9 @@
this.loading = false;
this.list = [];
});
axios.get("./config.json").then(res => {
let response = res.data.BASE_URL;
let response = this.BASE_URL;
this.uploadFileUrl = response + "/udiwms/products/importLog/upload";
});
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/已对照产品信息模板.xlsx";
});
},
jumpDl() {
window.open(this.templateDlUrl, '_blank');

@ -22,7 +22,8 @@
<el-divider style="margin: 15px"></el-divider>
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border highlight-current-row>
<el-table v-loading="loading" :data="list" style="width: 100%" @selection-change="handleSelectionChange" border
highlight-current-row>
<el-table-column label="序号" type="index"></el-table-column>
<el-table-column label="记录ID" prop="genKey" show-overflow-tooltip></el-table-column>
<el-table-column label="更新日期" prop="updateTime" show-overflow-tooltip></el-table-column>
@ -74,6 +75,7 @@ import {formatDate} from "@/utils/date";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
type: 3,
@ -129,8 +131,8 @@ export default {
hideSearch() {
this.showSearch = !this.showSearch;
},
Onsearch(){
this.filterQuery.page=1;
Onsearch() {
this.filterQuery.page = 1;
this.getList();
},
getList() {
@ -157,9 +159,7 @@ export default {
this.udiImportDetailVisible = true;
},
downloadExcel(row) {
axios.get("./config.json").then(res => {
let baseUrl = res.data.BASE_URL;
let baseUrl = this.BASE_URL
let href = baseUrl + "/udiwms/products/exportLog/download" + "?genKey=" + row.genKey;
let a = document.createElement("a");
var timestamp = formatDate(new Date(), "yyyyMMddhhmmss")
@ -173,10 +173,6 @@ export default {
a.click();
this.getList();
});
});
},
cancelDialog(val) {

@ -136,6 +136,7 @@ import {isBlank} from "@/utils/strUtil";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
filterQuery: {
thirdSys: null,
key: "",
@ -408,11 +409,8 @@ export default {
},
init() {
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
let response = this.BASE_URL;
this.uploadFileUrl = response + "udiwms/busstiness/file/upload";
});
},
handleChange(response, files, fileList) {
if (response.code != 20000) {

@ -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) {

@ -126,6 +126,7 @@ import axios from "axios";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -334,11 +335,8 @@ export default {
this.list = [];
});
this.uploadData.thirdSys = this.filterQuery.thirdSysFk;
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
let response = this.BASE_URL;
this.templateDlUrl = response + "/第三方往来单位信息导入模板.xlsx";
});
}
,
downloadDatas() {

@ -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,7 @@ 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 +208,6 @@ export default {
a.click();
this.getList();
});
});
},
cancelDialog(val) {

@ -176,6 +176,7 @@ import axios from "axios";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -327,12 +328,9 @@ export default {
this.loading = false;
this.list = [];
});
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/第三方库存产品信息导入模板.xlsx";
console.log(this.templateDlUrl);
});
let response = this.BASE_URL;
this.templateDlUrl = response + "/第三方库存产品信息导入模板.xlsx";
},
jumpDl() {

@ -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) {

@ -129,6 +129,7 @@ import {selectIp} from "@/api/param/systemParamConfig";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -278,14 +279,8 @@ export default {
this.loading = false;
this.list = [];
});
axios.get("./config.json").then(res => {
//
let response = res.data.BASE_URL;
// this.uploadFileUrl = response + "/udiwms/thrOrder/importLog/upload";
let response2 = res.data.SERVER_IP;
this.templateDlUrl = response2 + "/第三方业务单据导入模板.xlsx";
console.log(res.data.BASE_URL + "\n");
});
let response = this.BASE_URL;
this.templateDlUrl = response + "/第三方业务单据导入模板.xlsx";
},
selectSysParam() {

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

@ -135,6 +135,7 @@ import axios from "axios";
export default {
data() {
return {
BASE_URL: process.env.VUE_APP_BASE_API,
showSearch: true,
filterQuery: {
genKey: null,
@ -296,13 +297,9 @@ export default {
this.loading = false;
this.list = [];
});
axios.get("./config.json").then(res => {
let response = res.data.SERVER_IP;
this.templateDlUrl = response + "/第三方产品信息导入模板.xls";
console.log(this.templateDlUrl);
});
let response = this.BASE_URL;
this.templateDlUrl = response + "/第三方产品信息导入模板.xls";
},
selectSysParam() {
let query = {

Loading…
Cancel
Save