导出产品信息窗口执行‘结果全部导出’操作,导出的文件数据为空

master
schry 2 years ago
parent 4904f8109e
commit c11f8e4b3a

@ -31,3 +31,11 @@ export function exportExcel(query) {
});
}
export function exportExcelAll(query) {
return axios({
url: "/udiwms/thrProducts/importLog/exportAll",
method: "post",
data: query
});
}

@ -34,8 +34,8 @@
<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>
<el-table-column label="下载次数" prop="dlCount" show-overflow-tooltip></el-table-column>
<el-table-column label="下载信息" prop="remark" show-overflow-tooltip></el-table-column>
<el-table-column label="操作" width="120">
<template slot-scope="scope">
<el-button type="text" @click.native.stop="downloadExcel(scope.row)">下载

@ -113,7 +113,7 @@ import {getInvbasdoc} from "@/api/thrsys/getErps";
import {getBasicThirdSys, filterDetailByKey} from "@/api/thrsys/basicThirdSys";
import {selectIp} from "@/api/system/systemParamConfig";
import thrProductsDetail from "./thrProductsDetail";
import {exportExcel} from "@/api/thrsys/thrProductsExport"
import {exportExcel,exportExcelAll} from "@/api/thrsys/thrProductsExport"
import {thrProductUpload} from "@/api/thrsys/smp"
export default {
@ -155,6 +155,7 @@ export default {
},
thrProductsDetailVisible: false,
thisData: null,
multipleSelection: []
};
},
@ -395,11 +396,32 @@ export default {
selectData.forEach((obj) => {
this.filterQuery.thrProductsEntities.push(obj);
});
this.allExport();
exportExcel(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
this.$message({
type: "success",
message: "导出成功后台正在生成Json文件请稍后刷新查看",
});
this.$emit("cancelDialog", true);
} else {
this.$message({
type: "error",
message: response.message,
});
this.$emit("cancelDialog", true);
}
})
.catch(() => {
this.$message({
type: "error",
message: "上传失败",
});
});
},
allExport() {
this.filterQuery.thrProductsEntities=this.list;
exportExcel(this.filterQuery)
exportExcelAll(this.filterQuery)
.then((response) => {
if (response.code == 20000) {
this.$message({

Loading…
Cancel
Save