执法计划导出修复

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 = "";

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