From 5852488a0f4c2fcb03b1855e92e4c4c548281560 Mon Sep 17 00:00:00 2001 From: buaixuexideshitongxue <2936013465@qq.com> Date: Tue, 17 Mar 2026 18:15:51 +0800 Subject: [PATCH] =?UTF-8?q?fix--=E6=A1=88=E4=BB=B6=E6=A0=B8=E6=9F=A5?= =?UTF-8?q?=E4=B8=80=E7=BA=A7=E5=A4=A7=E5=B1=8F=E6=94=B9=E9=80=A0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/screen/caseVerif.ts | 28 +++++++++++++++++--------- src/views/datav/CaseVerif.vue | 38 ++++++++++++++++++++++++----------- 2 files changed, 44 insertions(+), 22 deletions(-) diff --git a/src/api/screen/caseVerif.ts b/src/api/screen/caseVerif.ts index bfd0976..d7b0141 100644 --- a/src/api/screen/caseVerif.ts +++ b/src/api/screen/caseVerif.ts @@ -3,9 +3,11 @@ import request from "@/api/request"; -export function getCaseVerificationRank(times) { - return request.get({ - url: `/datav/caseVerif/getCaseVerificationRank?beginTime=${times[0]}&endTime=${times[1]}` + +export function getCaseVerificationRank(body) { + return request.post({ + url: `/datav/caseVerif/getCaseVerificationRank`, + body }); } @@ -34,20 +36,26 @@ export const getConfinementBar =(times)=>{ } -export function getCaseVerificationCount(times) { - return request.get({ - url: `/datav/caseVerif/getCaseVerificationCount?beginTime=${times[0]}&endTime=${times[1]}` + + +export function getCaseVerificationCount(body) { + return request.post({ + url: `/datav/caseVerif/getCaseVerificationCount`, + body }); } -export function getCaseVerificationMap(times) { - return request.get({ - url: `/datav/caseVerif/getCaseVerificationMap?beginTime=${times[0]}&endTime=${times[1]}` + + + +export function getCaseVerificationMap(body) { + return request.post({ + url: `/datav/caseVerif/getCaseVerificationMap`, + body }); } - export function getCaseVerificationTrend(year) { return request.get({ url: `/datav/caseVerif/getCaseVerificationTrend?year=${year}` diff --git a/src/views/datav/CaseVerif.vue b/src/views/datav/CaseVerif.vue index 80ba105..b525664 100644 --- a/src/views/datav/CaseVerif.vue +++ b/src/views/datav/CaseVerif.vue @@ -5,7 +5,7 @@
- + { } -const getCaseVerificationRankData = async (timeValue) => { - const res = await getCaseVerificationRank(timeValue); +const getCaseVerificationRankData = async () => { + + const body = { + beginTime: time.value[0], + endTime: time.value[1], + } + + const res = await getCaseVerificationRank(body); fxsjBarList.value = res.fxsjRankList jsdwBarList.value = res.jsdwRankList } @@ -536,12 +540,22 @@ const getCaseVerificationRankData = async (timeValue) => { // // zfbaPieOption.value.series[0].data = circularChart // fwglPieOption.value.series[0].data = res.fwglPieList; // } -const getCaseVerificationCountData = async (timeValue) => { - const res = await getCaseVerificationCount(timeValue) +const getCaseVerificationCountData = async () => { + const body = { + beginTime: time.value[0], + endTime: time.value[1], + } + const res = await getCaseVerificationCount(body) overview.value = res.overview } -const getCaseVerificationMapData = async (timeValue) => { - const res = await getCaseVerificationMap(timeValue); +const getCaseVerificationMapData = async () => { + + const body = { + beginTime: time.value[0], + endTime: time.value[1], + } + + const res = await getCaseVerificationMap(body); const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total"); const maxItem = mappedData.reduce((max, item) => (Number(item.value) > Number(max.value) ? item : max), mappedData[0]); @@ -579,15 +593,15 @@ const getCaseSourceRateAndDealSituationData = async (timeValue) => { // } async function getData() { - getCaseVerificationRankData(time.value), + getCaseVerificationRankData(), // getCaseProblemPropertyData(time.value) - getCaseVerificationCountData(time.value), + getCaseVerificationCountData(), getCaseVerificationTrendData(selectedYear.value), getCaseSourceRateAndDealSituationData(time.value), // getConfinementAndPauseData(time.value); getCaseTypeFun(time.value), getConfinementBarFun(time.value), - getCaseVerificationMapData(time.value) + getCaseVerificationMapData() }