|
|
|
@ -42,7 +42,7 @@
|
|
|
|
|
<el-button class="btn-reset" size="mini" @click="resetQuery"
|
|
|
|
|
>重置</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>
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -153,7 +153,7 @@
|
|
|
|
|
style="display: flex; flex-direction: row-reverse"
|
|
|
|
|
>
|
|
|
|
|
<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>
|
|
|
|
|
</el-button>
|
|
|
|
|
</el-form-item>
|
|
|
|
@ -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;
|
|
|
|
|