From e08a87b2d11c305c8fc9ded07a18b5c8ae3046ed Mon Sep 17 00:00:00 2001 From: laozt <2721205210@qq.com> Date: Mon, 18 Dec 2023 14:34:12 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/yingji/home.vue | 298 ++++++++++++++++++++++++++------------ 1 file changed, 204 insertions(+), 94 deletions(-) diff --git a/src/views/yingji/home.vue b/src/views/yingji/home.vue index 23344fe..15b5022 100644 --- a/src/views/yingji/home.vue +++ b/src/views/yingji/home.vue @@ -2,18 +2,51 @@
- - - -
- 搜索 -
+ + + + + + + + + + + 搜索 + 重置 + + 导出excel + + +
@@ -97,16 +130,66 @@ import completePlan from "./echarts/completePlan"; import finishRate from "./echarts/finishRate"; import executionPlan from "./echarts/executionPlan"; -import myPagination from "@/views/components/myPagination/index"; -import executive from "./echarts/executive"; -import { indexRegionalism } from "@/api/yingji/home.js"; +// import myPagination from "@/views/components/myPagination/index"; +// import executive from "./echarts/executive"; export default { data() { return { - ruleForm: { - plannedYear: "", + queryParams: { + plannedYear: null, + plannedMouth: null, }, + options: [ + { + value: "1", + label: "1月", + }, + { + value: "2", + label: "2月", + }, + { + value: "3", + label: "3月", + }, + { + value: "4", + label: "4月", + }, + { + value: "5", + label: "5月", + }, + { + value: "6", + label: "6月", + }, + { + value: "7", + label: "7月", + }, + { + value: "8", + label: "8月", + }, + { + value: "9", + label: "9月", + }, + { + value: "10", + label: "10月", + }, + { + value: "11", + label: "11月", + }, + { + value: "12", + label: "12月", + }, + ], options1: [ { name: "表格", @@ -133,35 +216,43 @@ export default { completePlan, finishRate, executionPlan, - myPagination, - executive, }, created() { - this.getHomeList(); + this.getList(); }, mounted() {}, methods: { - searchList() { - this.beforeParams = { ...this.beforeParams, ...this.ruleForm }; - this.getHomeList(); + multipleChange(e) { + // console.log(e.join(',')); + this.queryParams.plannedMouth = e.join(","); }, - getHomeList() { - this.load1 = true; - this.loadS = true; - indexRegionalism(this.beforeParams).then((res) => { - this.tableData = res.rows; - this.newTable = res.rows; - res.rows.forEach((value1, index1) => { - if (value1.institutionName == "苏州市") { - let arr1 = this.tableData.slice(index1, index1 + 1); - this.tableData.splice(index1, 1); - this.tableData.unshift(arr1[0]); - } - }); - this.load1 = false; - this.loadS = false; - }); + handleQuery() {}, + resetQuery() {}, + // 获取列表数据 + getList(){ + }, + // searchList() { + // this.beforeParams = { ...this.beforeParams, ...this.ruleForm }; + // this.getHomeList(); + // }, + // getHomeList() { + // this.load1 = true; + // this.loadS = true; + // indexRegionalism(this.beforeParams).then((res) => { + // this.tableData = res.rows; + // this.newTable = res.rows; + // res.rows.forEach((value1, index1) => { + // if (value1.institutionName == "苏州市") { + // let arr1 = this.tableData.slice(index1, index1 + 1); + // this.tableData.splice(index1, 1); + // this.tableData.unshift(arr1[0]); + // } + // }); + // this.load1 = false; + // this.loadS = false; + // }); + // }, active(e) { this.activeIndex = e; }, @@ -175,23 +266,54 @@ export default { };