From 376abc64e03585fe36c0dccd1444aad1e6a7ce09 Mon Sep 17 00:00:00 2001 From: mk <2403457699@qq.com> Date: Mon, 6 Nov 2023 11:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E5=BB=B6=E8=BF=9F=E6=B8=B2=E6=9F=93=E5=9B=BE?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../modules/satisfaction/communitySelfInsp/index.vue | 4 +++- .../satisfaction/satisfactionProvince/index.vue | 11 ++++++----- 2 files changed, 9 insertions(+), 6 deletions(-) diff --git a/src/views/modules/satisfaction/communitySelfInsp/index.vue b/src/views/modules/satisfaction/communitySelfInsp/index.vue index bc38e6ff6..69d75c44d 100644 --- a/src/views/modules/satisfaction/communitySelfInsp/index.vue +++ b/src/views/modules/satisfaction/communitySelfInsp/index.vue @@ -295,7 +295,9 @@ export default { this.myChart.on("click", function (params) { than.handelClickChart(params.name,params.seriesName); }); - window.addEventListener("resize", this.handleWindowResize); + this.$nextTick(()=>{ + window.addEventListener("resize", this.handleWindowResize); + }) }, handleWindowResize() { if (this.myChart) { diff --git a/src/views/modules/satisfaction/satisfactionProvince/index.vue b/src/views/modules/satisfaction/satisfactionProvince/index.vue index 396917f90..e0124743d 100644 --- a/src/views/modules/satisfaction/satisfactionProvince/index.vue +++ b/src/views/modules/satisfaction/satisfactionProvince/index.vue @@ -344,12 +344,11 @@ export default { this.formData.periodStart = util.formatDate(date, "yyyy-MM"); this.user = this.$store.state.user; }, - async mounted() { this.agencyId = this.user.agencyId; - if (this.user.level != "street") { + this.$nextTick(()=>{ this.initEcharts(); - } + }) await this.getDicts(); await this.getTableData(); }, @@ -378,14 +377,16 @@ export default { }, // ------------------------------------事件------------------------------------------ initEcharts() { + if(this.user.level == 'street') return this.myChart = echarts.init(document.getElementById("myCharts")); this.myChart.setOption(this.option); let than = this; this.myChart.on("click", function (params) { than.handelClickChart(params.name); }); - + this.$nextTick(()=>{ window.addEventListener("resize", this.handleWindowResize); + }) }, handleWindowResize() { if (this.myChart) { @@ -462,7 +463,7 @@ export default { } else { const { statistics, code, msg, tableList } = await requestPost( `/governance/provinceEvaluationRecord/staticStreetPeopleNum`, - { ...this.formData } + { ...this.formData,pageSize:this.pageSize,pageNo:this.pageNo } ); if (code == 0) { statistics.forEach((item) => {