From 30565c28ef92fbafc0247424d1d741e5d4df8c00 Mon Sep 17 00:00:00 2001 From: qinxianzhangyao <11053546+qinxianzhangyao@user.noreply.gitee.com> Date: 星期三, 20 十二月 2023 17:41:45 +0800 Subject: [PATCH] qxtj --- src/views/index.vue | 41 +++++++++++++++++++++++++---------------- 1 files changed, 25 insertions(+), 16 deletions(-) diff --git a/src/views/index.vue b/src/views/index.vue index 9c81bc0..dcbe83a 100644 --- a/src/views/index.vue +++ b/src/views/index.vue @@ -72,10 +72,18 @@ created() { this.getList(); + }, + watch: { + $route(to, from) { + window.location.reload(); //鐩戞祴鍒拌矾鐢卞彂鐢熻烦杞椂鍒锋柊涓�娆¢〉闈� + // this.$router.go(0); + }, + }, + methods: { - + getList() { this.loading = true; // 鏌ヨ浠婃棩鐧昏 @@ -180,17 +188,17 @@ // 楗肩姸鍥� getPieChart().then((response) => { if (response.data) { - + if (response.data.tjdj.length === 0) { this.PieChart = [] this.PieChart = [ - { - "name": "浣撴鐧昏浜烘暟鍒嗗竷", - "count": 1, - "value": 10 - }, - - ] + { + "name": "浣撴鐧昏浜烘暟鍒嗗竷", + "count": 1, + "value": 10 + }, + + ] } else { this.PieChart = response.data.tjdj this.PieChart.forEach(item => { @@ -237,13 +245,13 @@ if (response.data.tjyc.length === 0) { this.PieChart2 = [] this.PieChart2 = [ - { - "name": "浣撴缁撴灉寮傚父浜烘暟鍒嗗竷", - "count": 1, - "value": 10 - }, - - ] + { + "name": "浣撴缁撴灉寮傚父浜烘暟鍒嗗竷", + "count": 1, + "value": 10 + }, + + ] } else { this.PieChart2 = response.data.tjyc this.PieChart2.reverse() @@ -358,6 +366,7 @@ .data-view { margin: 0 15px; + height: 323px !important } #main { -- Gitblit v1.8.0