执法计划导出修复

zhangtao
laozt 1 year ago
parent 21c2f4ecf8
commit b9c512f673

@ -25,7 +25,7 @@
size="small" size="small"
/> />
</el-form-item> </el-form-item>
<el-form-item label="月份" prop=""> <el-form-item label="月份" prop="plannedMonth">
<el-select <el-select
v-model="plannedMonth" v-model="plannedMonth"
multiple multiple
@ -448,7 +448,7 @@ export default {
// console.log(e.join(',')); // console.log(e.join(','));
this.form.plannedMonth = e.join(","); this.form.plannedMonth = e.join(",");
this.searchBefore = { ...this.searchBefore, ...this.form }; this.searchBefore = { ...this.searchBefore, ...this.form };
this.getList(); // this.getList();
}, },
filterTable(a, b) { filterTable(a, b) {
if (!b) return; if (!b) return;
@ -487,6 +487,7 @@ export default {
pageSize: 10, pageSize: 10,
pageNum: 1, pageNum: 1,
plannedMonth: "", plannedMonth: "",
status: 1,
}; };
this.plannedMonth = ""; this.plannedMonth = "";

@ -424,36 +424,36 @@ export default {
this.infoData = infoObj; this.infoData = infoObj;
}); });
// getByUuto(row.enterpriseId.trim()).then((res) => { // getByUuto(row.enterpriseId.trim()).then((res) => {
// console.log(res.data); // console.log(res.data);
// let infoObj = res.data; // let infoObj = res.data;
// //
// infoObj["aboveDesignated"] = // infoObj["aboveDesignated"] =
// infoObj.aboveDesignated == 1 ? "" : ""; // infoObj.aboveDesignated == 1 ? "" : "";
// infoObj["riskReport"] = infoObj.riskReport == 1 ? "" : ""; // infoObj["riskReport"] = infoObj.riskReport == 1 ? "" : "";
// infoObj["aboveDesignatedTwo"] = // infoObj["aboveDesignatedTwo"] =
// infoObj.aboveDesignatedTwo == 1 // infoObj.aboveDesignatedTwo == 1
// ? "" // ? ""
// : infoObj.aboveDesignatedTwo == 2 // : infoObj.aboveDesignatedTwo == 2
// ? "" // ? ""
// : infoObj.aboveDesignatedTwo == 3 // : infoObj.aboveDesignatedTwo == 3
// ? "" // ? ""
// : infoObj.aboveDesignatedTwo == 4 // : infoObj.aboveDesignatedTwo == 4
// ? "" // ? ""
// : ""; // : "";
// infoObj["supervisionLarge"] = this.supervisionLarge( // infoObj["supervisionLarge"] = this.supervisionLarge(
// infoObj.supervisionLarge // infoObj.supervisionLarge
// ); // );
// infoObj["district"] = // infoObj["district"] =
// this.componendDistrict(infoObj.subdistrict) || "/"; // this.componendDistrict(infoObj.subdistrict) || "/";
// infoObj["createTime"] = this.$moment(infoObj.createTime).format( // infoObj["createTime"] = this.$moment(infoObj.createTime).format(
// "yyyy-MM-DD" // "yyyy-MM-DD"
// ); // );
// infoObj["updateTime"] = this.$moment(infoObj.createTime).format( // infoObj["updateTime"] = this.$moment(infoObj.createTime).format(
// "yyyy-MM-DD" // "yyyy-MM-DD"
// ); // );
// this.infoData = infoObj; // this.infoData = infoObj;
// }); // });
}, },
supervisionLarge(value) { supervisionLarge(value) {

@ -376,7 +376,7 @@ export default {
multipleChange(e) { multipleChange(e) {
// console.log(e.join(",")); // console.log(e.join(","));
this.queryParams.plannedMonth = e.join(","); this.queryParams.plannedMonth = e.join(",");
this.getList(); // this.getList();
}, },
handleQuery() { handleQuery() {
this.queryParams.pageNum = 1; this.queryParams.pageNum = 1;

@ -459,7 +459,6 @@ export default {
}, },
// //
handleExport() { handleExport() {
// this.multipleSelection.length > 0 ? `` :
this.$confirm(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", { this.$confirm(`确认根据您的搜索条件导出搜索之后的数据吗?`, "警告", {
confirmButtonText: "确定", confirmButtonText: "确定",
cancelButtonText: "取消", cancelButtonText: "取消",
@ -469,8 +468,7 @@ export default {
this.download( this.download(
"/pharmaceuticals/bPlanEnterprise/exportplan", "/pharmaceuticals/bPlanEnterprise/exportplan",
{ {
...this.form, ...this.queryParams,
district: this.district,
}, },
`计划管理.xlsx` `计划管理.xlsx`
); );

Loading…
Cancel
Save