diff --git a/src/views/test.vue b/src/views/test.vue deleted file mode 100644 index 93ece99..0000000 --- a/src/views/test.vue +++ /dev/null @@ -1,147 +0,0 @@ - - - - - diff --git a/src/views/yingji/echarts/executive.vue b/src/views/yingji/echarts/executive.vue index a6507e0..6d8395f 100644 --- a/src/views/yingji/echarts/executive.vue +++ b/src/views/yingji/echarts/executive.vue @@ -95,8 +95,8 @@ export default { else if (userInfo.lawLevel == "镇级") { this.isShow = false; this.text = userInfo.permissionDescription; - }else { - this.treeData = this.compartment; + } else { + this.treeData = this.compartment; } // this.district = "320582403" diff --git a/src/views/yingji/enterprise copy.vue b/src/views/yingji/enterprise copy.vue deleted file mode 100644 index bc3b335..0000000 --- a/src/views/yingji/enterprise copy.vue +++ /dev/null @@ -1,682 +0,0 @@ - - - - diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue index dd59134..d4c4074 100644 --- a/src/views/yingji/home.vue +++ b/src/views/yingji/home.vue @@ -97,29 +97,45 @@ :row-class-name="tableRowClassName" > + - + - - + + - - - + @@ -154,25 +170,41 @@ :row-class-name="tableRowClassName" > + - - + + - - + + - - - + @@ -281,6 +313,7 @@ export default { executionPlan, }, created() { + this.queryParams.plannedYear = this.$moment(new Date()).format("yyyy"); this.getList(); }, mounted() {}, @@ -288,29 +321,36 @@ export default { multipleChange(e) { console.log(e.join(",")); this.queryParams.plannedMonth = e.join(","); + this.getList(); + }, + handleQuery() { + this.queryParams.pageNum = 1; + this.getList(); + }, + resetQuery() { + this.resetForm("queryForm"); + this.plannedMonth = ""; + this.handleQuery(); }, - handleQuery() {}, - resetQuery() {}, // 获取列表数据 getList() { treeEnterprise(this.queryParams).then((response) => { - console.log(response); + // console.log(response); this.tableData = response.data; - // this.total = response.data.length; - // this.loading = false; }); - // // 获取行政区划 - // let treeData = JSON.parse(localStorage.getItem("TREE_DATA")); - // console.log(treeData); - // // 列表数据(包含苏州市和其他县区,合计让后台弄) - // this.tableData = treeData; }, // 打开县区下的列表数据 openDialog(row) { - console.log(row); + // console.log(row); this.isDialogShow = true; - this.tableInfoData = row.children; - this.title = "2023年" + row.district + " 计划企业数:1000家"; + this.title = `2023年 ${row.lawAreas} 计划企业数:${row.count}家`; + // this.tableInfoData = row.children; + let queryParams = { + lawAreas: row.lawAreas, + }; + treeEnterprise(queryParams).then((response) => { + this.tableInfoData = response.data; + }); }, active(e) { this.activeIndex = e;