From e8ad61e6d8efe7ce1ecd4b74f75d2aab749efd3b 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: Mon, 18 Nov 2024 15:31:29 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AE=A1=E8=AE=A1=E7=9D=A3=E5=AF=9F=E5=9C=B0?= =?UTF-8?q?=E5=9B=BE=E5=8D=A1=E7=89=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/datav/chart-bar.vue | 19 +++-- src/components/datav/header.vue | 20 ++++- src/router/routes.ts | 6 +- src/style/public.scss | 22 +++++- src/views/datav/AuditSuper.vue | 115 ++++++++++++++++++----------- src/views/datav/CaseVerif.vue | 1 + src/views/datav/SceneInsp.vue | 53 +++++++++++++ 7 files changed, 178 insertions(+), 58 deletions(-) diff --git a/src/components/datav/chart-bar.vue b/src/components/datav/chart-bar.vue index e1aa972..c448551 100644 --- a/src/components/datav/chart-bar.vue +++ b/src/components/datav/chart-bar.vue @@ -5,7 +5,6 @@
- {{ item.value + props.unit }} + {{ item.value + props.unit }} {{ item.numerator }} / {{ item.denominator }} - + @@ -73,7 +73,8 @@ const props = defineProps({ type: String, default: "left", }, - + remarkFontSize: {type: String, default: "10px",}, + spanClass: { type: String, default: "", }, }); const max = ref(100); @@ -85,7 +86,6 @@ watch( ); - function getMax() { if (props.unit !== "%") { max.value = Math.max(...props.data.map((item) => item.value)); @@ -136,6 +136,7 @@ function getColor(val) { &[size="small"] { font-size: 12px; + .bar-item_content { width: calc(100% - 180px); } @@ -191,4 +192,10 @@ function getColor(val) { } } } + +.right-aligned { + text-align: right; + width: 60px; +} + diff --git a/src/components/datav/header.vue b/src/components/datav/header.vue index 4672456..07260e7 100644 --- a/src/components/datav/header.vue +++ b/src/components/datav/header.vue @@ -14,10 +14,14 @@ 案件核查 - - 警务评议 - - + +
+ + 民意感知 + + +
+

@@ -48,6 +52,14 @@ diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index 703c5a2..1f54ad3 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -14,6 +14,7 @@ diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index 5184b98..65887cc 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -255,6 +255,59 @@ import {getAllSupervisionNotifyCount, getChangedRank, getSupervisionTrend} from import {getGobalRecentlyTrendByMonth} from "@/api/data/basicScreen.ts"; const data1 = ref([]); + + +// const data1 = ref([ +// +// ]); +// setTimeout(() => { +// data1.value=[ +// { +// label: "芙蓉分局", +// value: "100", +// rate:"100", +// numerator: "1", +// denominator: "1", +// }, +// { +// label: "雨花分局", +// value: "91", +// rate:"91", +// numerator: "220", +// denominator: "240", +// }, +// { +// label: "高新分局", +// value: 90, +// rate:90, +// numerator: 140, +// denominator: 155, +// }, +// { +// label: "宁乡市局", +// value: 83, +// rate:83, +// numerator: 194, +// denominator: 232, +// }, +// { +// label: "开福分局", +// value: 73, +// rate:73, +// numerator: 137, +// denominator: 186, +// }, +// { +// label: "岳麓分局", +// value: 0, +// numerator: 0, +// rate:0, +// denominator: 11, +// }, +// ] +// },2000) + + const activeTabLeft = ref("3"); // 日常督察总览 const rankOverview = ref({