From 73f4ad086b244838d1843d45d562b0f85a89e65f 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 10:01:43 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A6=96=E9=A1=B5=E5=A4=A7=E5=B1=8F=E5=89=8D?= =?UTF-8?q?=E7=AB=AF1.5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/data/supervisionNotify.ts | 20 +- src/components/datav/chart-bar-pro.vue | 274 +++++++++++++------------ src/components/datav/tabs.vue | 6 +- src/views/datav/SceneInsp.vue | 62 ++++-- 4 files changed, 198 insertions(+), 164 deletions(-) diff --git a/src/api/data/supervisionNotify.ts b/src/api/data/supervisionNotify.ts index bffbf35..7372e83 100644 --- a/src/api/data/supervisionNotify.ts +++ b/src/api/data/supervisionNotify.ts @@ -1,17 +1,5 @@ import request from "@/api/request"; -export function importCaseVerif(body) { - return request.post({ - url: '/data/caseVerif/import', - body - }); -} -export function listCaseVerif(query) { - return request.get({ - url: '/data/caseVerif', - query - }); -} export function getAllSupervisionNotifyCount(times) { @@ -19,3 +7,11 @@ export function getAllSupervisionNotifyCount(times) { url: `/datav/supervisonNotify?beginTime=${times[0]}&endTime=${times[1]}` }); } + + + +export function getChangedRank(times, groupType) { + return request.get({ + url: `/datav/supervisonNotify/rank?beginTime=${times[0]}&endTime=${times[1]}&groupType=${groupType}` + }); +} \ No newline at end of file diff --git a/src/components/datav/chart-bar-pro.vue b/src/components/datav/chart-bar-pro.vue index d085a34..e7b77bf 100644 --- a/src/components/datav/chart-bar-pro.vue +++ b/src/components/datav/chart-bar-pro.vue @@ -1,180 +1,194 @@ - - {{ title }} - {{ subTitle }} - - - - + + {{ title }} + {{ subTitle }} + + + + {{ item.sort }} - - {{item.label}} - + {{ item.label }} + - - {{ item.value }} - + > + + {{ item.value }} + {{ item.numerator }} / {{ item.denominator }} - + \ No newline at end of file diff --git a/src/components/datav/tabs.vue b/src/components/datav/tabs.vue index c2f64b8..d46367a 100644 --- a/src/components/datav/tabs.vue +++ b/src/components/datav/tabs.vue @@ -8,7 +8,7 @@ :key="item.props.name" :active="item.props.name === activeTab" @click="handleChangeActiveTab(item.props.name)" - + > {{ item.props.label }} @@ -86,10 +86,10 @@ function handleChangeActiveTab(name) { &[size=small] { gap: 12px; .tab-title-item { - + font-size: 19px; } - + } } .tab-title { diff --git a/src/views/datav/SceneInsp.vue b/src/views/datav/SceneInsp.vue index 0ba0825..d9618a4 100644 --- a/src/views/datav/SceneInsp.vue +++ b/src/views/datav/SceneInsp.vue @@ -4,13 +4,14 @@ + - 56 + {{rankOverview.proTotal}} 问题数 @@ -20,7 +21,7 @@ - 0 + {{rankOverview.changing}} 整改中 @@ -30,7 +31,7 @@ - 56 + {{ rankOverview.changed }} 已整改 @@ -40,7 +41,7 @@ - 100% + {{ rankOverview.correctionRate }}% 整改率 @@ -53,18 +54,17 @@ type="bottom-button" v-model="activeTabLeft" > - + - + + + @@ -135,10 +137,10 @@ /> + - - +