From 5e081119647872ac6cae6be4b80e50be191c1859 Mon Sep 17 00:00:00 2001
From: laozt <2721205210@qq.com>
Date: Thu, 21 Dec 2023 13:50:17 +0800
Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E7=BB=9F=E8=AE=A1?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/yingji/home.vue | 39 +++++++++++++++++++++++++++++++--------
1 file changed, 31 insertions(+), 8 deletions(-)
diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue
index 9237a10..2e9ebeb 100644
--- a/src/views/yingji/home.vue
+++ b/src/views/yingji/home.vue
@@ -42,7 +42,7 @@
重置
-
+
导出excel
@@ -153,7 +153,7 @@
style="display: flex; flex-direction: row-reverse"
>
-
+
导出excel
@@ -220,6 +220,7 @@ import {
addEnterprise,
updateEnterprise,
treeEnterprise,
+ exportPage,
} from "@/api/yingji/enterprise";
export default {
@@ -229,6 +230,11 @@ export default {
plannedYear: null,
plannedMonth: null,
},
+ queryParams2: {
+ plannedYear: null,
+ plannedMonth: null,
+ lawAreas: null,
+ },
plannedMonth: "",
options: [
{
@@ -316,8 +322,27 @@ export default {
},
mounted() {},
methods: {
+ // 导出
+ handelExport() {
+ this.download(
+ "/pharmaceuticals/bPlanEnterprise/exportpage",
+ {
+ ...this.queryParams,
+ },
+ `苏州市_统计数据_${new Date().getTime()}.xlsx`
+ );
+ },
+ handelExport2() {
+ this.download(
+ "/pharmaceuticals/bPlanEnterprise/exportpage",
+ {
+ ...this.queryParams2,
+ },
+ `${this.queryParams2.lawAreas}_统计数据_${new Date().getTime()}.xlsx`
+ );
+ },
multipleChange(e) {
- console.log(e.join(","));
+ // console.log(e.join(","));
this.queryParams.plannedMonth = e.join(",");
this.getList();
},
@@ -344,15 +369,13 @@ export default {
this.isDialogShow = true;
this.title = `2023年 ${row.lawAreas} 计划企业数:${row.count}家`;
// this.tableInfoData = row.children;
- let queryParams = {
- lawAreas: row.lawAreas,
- };
- treeEnterprise(queryParams).then((response) => {
+ this.queryParams2.lawAreas = row.lawAreas;
+ treeEnterprise(this.queryParams2).then((response) => {
this.tableInfoData = response.data;
});
},
routerLink(row) {
- this.$router.push(`/planManage?lawHierarchy=${row.lawAreas}`)
+ this.$router.push(`/planManage?lawHierarchy=${row.lawAreas}`);
},
active(e) {
this.activeIndex = e;