首页统计

zhangtao
laozt 1 year ago
parent 2ccd8faad4
commit 5e08111964

@ -42,7 +42,7 @@
<el-button class="btn-reset" size="mini" @click="resetQuery" <el-button class="btn-reset" size="mini" @click="resetQuery"
>重置</el-button >重置</el-button
> >
<el-button class="btn-export" size="small"> <el-button class="btn-export" size="small" @click="handelExport">
<i class="el-icon-devops" /><span>导出excel</span> <i class="el-icon-devops" /><span>导出excel</span>
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -153,7 +153,7 @@
style="display: flex; flex-direction: row-reverse" style="display: flex; flex-direction: row-reverse"
> >
<el-form-item class="btn-group"> <el-form-item class="btn-group">
<el-button class="btn-export" size="small"> <el-button class="btn-export" size="small" @click="handelExport2">
<i class="el-icon-devops" /><span>导出excel</span> <i class="el-icon-devops" /><span>导出excel</span>
</el-button> </el-button>
</el-form-item> </el-form-item>
@ -220,6 +220,7 @@ import {
addEnterprise, addEnterprise,
updateEnterprise, updateEnterprise,
treeEnterprise, treeEnterprise,
exportPage,
} from "@/api/yingji/enterprise"; } from "@/api/yingji/enterprise";
export default { export default {
@ -229,6 +230,11 @@ export default {
plannedYear: null, plannedYear: null,
plannedMonth: null, plannedMonth: null,
}, },
queryParams2: {
plannedYear: null,
plannedMonth: null,
lawAreas: null,
},
plannedMonth: "", plannedMonth: "",
options: [ options: [
{ {
@ -316,8 +322,27 @@ export default {
}, },
mounted() {}, mounted() {},
methods: { 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) { multipleChange(e) {
console.log(e.join(",")); // console.log(e.join(","));
this.queryParams.plannedMonth = e.join(","); this.queryParams.plannedMonth = e.join(",");
this.getList(); this.getList();
}, },
@ -344,15 +369,13 @@ export default {
this.isDialogShow = true; this.isDialogShow = true;
this.title = `2023年 ${row.lawAreas} 计划企业数:${row.count}`; this.title = `2023年 ${row.lawAreas} 计划企业数:${row.count}`;
// this.tableInfoData = row.children; // this.tableInfoData = row.children;
let queryParams = { this.queryParams2.lawAreas = row.lawAreas;
lawAreas: row.lawAreas, treeEnterprise(this.queryParams2).then((response) => {
};
treeEnterprise(queryParams).then((response) => {
this.tableInfoData = response.data; this.tableInfoData = response.data;
}); });
}, },
routerLink(row) { routerLink(row) {
this.$router.push(`/planManage?lawHierarchy=${row.lawAreas}`) this.$router.push(`/planManage?lawHierarchy=${row.lawAreas}`);
}, },
active(e) { active(e) {
this.activeIndex = e; this.activeIndex = e;

Loading…
Cancel
Save