|
|
|
@ -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();
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
|
,
|
|
|
|
|
}
|
|
|
|
|