解决往来信息导出模块点击“结果全部导出”后数据量不一致问题。

prod
schry 2 years ago
parent 7bba144dc2
commit d959933ea3

@ -215,7 +215,9 @@ import {
this.loading = false;
this.getSystemParamConfig();
this.list = response.data.list || [];
console.log(this.list)
this.total = response.data.total || 0;
console.log(this.total)
})
.catch(() => {
this.loading = false;
@ -353,38 +355,70 @@ import {
},
selectExport() {
/* var selectData = this.multipleSelection;
var selectData = this.multipleSelection;
selectData.forEach((obj) => {
this.query.ids.push(obj.id);
});*/
this.allExport();
});
exportExcel(this.query)
.then((response) => {
if (response.code == 20000) {
this.$message({
type: "success",
message: "导出成功后台正在生成Json文件请稍后刷新查看",
});
} else {
this.$message({
type: "error",
message: response.message,
});
}
this.$emit("cancelDialog", true);
})
.catch(() => {
this.$message({
type: "error",
message: "上传失败",
});
});
},
allExport() {
var selectData = this.multipleSelection;
selectData.forEach((obj) => {
this.query.ids.push(obj.id);
});
exportExcel(this.query)
.then((response) => {
this.query.limit = this.total;
getBasicUnitMaintains(this.query)
.then((response) => {
this.list = response.data.list || [];
console.log(this.list)
this.total = response.data.total || 0;
var selectData = this.list;
selectData.forEach((obj) => {
this.query.ids.push(obj.id);
});
exportExcel(this.query)
.then((response) => {
if (response.code == 20000) {
this.$message({
type: "success",
message: "导出成功后台正在生成Json文件请稍后刷新查看",
});
this.$message({
type: "success",
message: "导出成功后台正在生成Json文件请稍后刷新查看",
});
} else {
this.$message({
type: "error",
message: response.message,
});
this.$message({
type: "error",
message: response.message,
});
}
this.$emit("cancelDialog", true);
})
.catch(() => {
})
.catch(() => {
this.$message({
type: "error",
message: "上传失败",
type: "error",
message: "上传失败",
});
});
});
})
.catch(() => {
this.loading = false;
this.list = [];
this.total = 0;
});
},
uploadSMP() {
@ -493,6 +527,7 @@ import {
created() {
this.getList();
this.getBasicThirdSys();
}
,
}

Loading…
Cancel
Save