From 5302ba92e50ba2a6b5f433f3014e91945f12bc3c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=8D=E7=88=B1=E5=AD=A6=E4=B9=A0=E7=9A=84=E7=9F=B3?= =?UTF-8?q?=E5=90=8C=E5=AD=A6?= <2936013465@qq.com> Date: Sat, 16 Nov 2024 16:33:29 +0800 Subject: [PATCH] =?UTF-8?q?=E7=9D=A3=E5=AF=9F=E6=83=85=E5=86=B5=E5=A4=A7?= =?UTF-8?q?=E5=B1=8F11/16/16=EF=BC=9A33?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/datav/chart-bar-pro.vue | 1 + src/components/datav/chart-bar.vue | 258 +++++++++++++------------ src/views/datav/Gobal.vue | 21 +- src/views/datav/SceneInsp.vue | 6 +- 4 files changed, 153 insertions(+), 133 deletions(-) diff --git a/src/components/datav/chart-bar-pro.vue b/src/components/datav/chart-bar-pro.vue index e7b77bf..f50e6b7 100644 --- a/src/components/datav/chart-bar-pro.vue +++ b/src/components/datav/chart-bar-pro.vue @@ -132,6 +132,7 @@ function getColor(val) { .bar-item_content { .bar-item_content-bar { height: 13px; + } } } diff --git a/src/components/datav/chart-bar.vue b/src/components/datav/chart-bar.vue index 6387520..0a9786b 100644 --- a/src/components/datav/chart-bar.vue +++ b/src/components/datav/chart-bar.vue @@ -1,172 +1,190 @@ - - {{ title }} - {{ subTitle }} - - - + + {{ title }} + {{ subTitle }} + + + {{ item.label }} - - + - - {{ item.value }} - + > + + {{ item.value }} + {{ item.numerator }} / {{ item.denominator }} - + \ No newline at end of file diff --git a/src/views/datav/Gobal.vue b/src/views/datav/Gobal.vue index ee85a65..9ef7161 100644 --- a/src/views/datav/Gobal.vue +++ b/src/views/datav/Gobal.vue @@ -47,32 +47,32 @@ { color: "#fff", }, data: ywzblist.value, + }, ], }; @@ -378,8 +379,7 @@ const wtlxPieOption = computed(() => { color: "#fff", }, data: wtlxlist.value, - width: 350, - height: 300 + }, ], }; @@ -439,7 +439,6 @@ const colors = [ ]; - // endregion @@ -502,9 +501,9 @@ const colors = [ // 数字的span .tooltip-ul span { float: right; - width: 30px; + width: 50px; text-align: right; - margin-right: 15px; + margin-right: 35px; color: #fff; font-size: 13px; } diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index a3b9699..b56410a 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -60,6 +60,7 @@ @@ -484,7 +485,7 @@ const option1 = ref({ }); const data1 = ref([ - { + /*{ label: "开福分局", value: 90, unit: "%", @@ -532,7 +533,7 @@ const data1 = ref([ unit: "%", numerator: 3, denominator: 3, - }, + },*/ ]); const data2 = [ @@ -619,6 +620,7 @@ function getData() { }); getChangedRank(time.value, 3).then((res) => { rankOverview.value = res.rankOverview; + data1.value = res.changedRankList; }); }