Browse Source

fix--案件核查一级大屏改造

master
parent
commit
5852488a0f
  1. 28
      src/api/screen/caseVerif.ts
  2. 38
      src/views/datav/CaseVerif.vue

28
src/api/screen/caseVerif.ts

@ -3,9 +3,11 @@ import request from "@/api/request";
export function getCaseVerificationRank(times) {
return request.get({ export function getCaseVerificationRank(body) {
url: `/datav/caseVerif/getCaseVerificationRank?beginTime=${times[0]}&endTime=${times[1]}` 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) { export function getCaseVerificationTrend(year) {
return request.get({ return request.get({
url: `/datav/caseVerif/getCaseVerificationTrend?year=${year}` url: `/datav/caseVerif/getCaseVerificationTrend?year=${year}`

38
src/views/datav/CaseVerif.vue

@ -5,7 +5,7 @@
<main> <main>
<el-row :gutter="16"> <el-row :gutter="16">
<el-col :span="6"> <el-col :span="6">
<datav-card title="分县市局排名" subTitle="案件数"> <datav-card title="分县市局排名" subTitle="问题数">
<datav-tabs <datav-tabs
type="bottom-button" type="bottom-button"
v-model="caseVerifRankTab" v-model="caseVerifRankTab"
@ -189,8 +189,6 @@ import {
getCaseVerificationTrend, getCaseVerificationTrend,
getCaseSourceRateAndDealSituation, getCaseSourceRateAndDealSituation,
getCaseVerificationMap, getCaseVerificationMap,
getCaseProblemProperty,
getConfinementAndPause,
getCaseVerificationCount, getCaseVerificationCount,
getCaseType, getCaseType,
getConfinementBar getConfinementBar
@ -525,8 +523,14 @@ const getConfinementBarFun = async(timeValue) =>{
} }
const getCaseVerificationRankData = async (timeValue) => { const getCaseVerificationRankData = async () => {
const res = await getCaseVerificationRank(timeValue);
const body = {
beginTime: time.value[0],
endTime: time.value[1],
}
const res = await getCaseVerificationRank(body);
fxsjBarList.value = res.fxsjRankList fxsjBarList.value = res.fxsjRankList
jsdwBarList.value = res.jsdwRankList jsdwBarList.value = res.jsdwRankList
} }
@ -536,12 +540,22 @@ const getCaseVerificationRankData = async (timeValue) => {
// // zfbaPieOption.value.series[0].data = circularChart // // zfbaPieOption.value.series[0].data = circularChart
// fwglPieOption.value.series[0].data = res.fwglPieList; // fwglPieOption.value.series[0].data = res.fwglPieList;
// } // }
const getCaseVerificationCountData = async (timeValue) => { const getCaseVerificationCountData = async () => {
const res = await getCaseVerificationCount(timeValue) const body = {
beginTime: time.value[0],
endTime: time.value[1],
}
const res = await getCaseVerificationCount(body)
overview.value = res.overview overview.value = res.overview
} }
const getCaseVerificationMapData = async (timeValue) => { const getCaseVerificationMapData = async () => {
const res = await getCaseVerificationMap(timeValue);
const body = {
beginTime: time.value[0],
endTime: time.value[1],
}
const res = await getCaseVerificationMap(body);
const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total"); const mappedData = mapOrgNameMapping(res.caseVerificationMapList, "total");
const maxItem = mappedData.reduce((max, item) => (Number(item.value) > Number(max.value) ? item : max), mappedData[0]); 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() { async function getData() {
getCaseVerificationRankData(time.value), getCaseVerificationRankData(),
// getCaseProblemPropertyData(time.value) // getCaseProblemPropertyData(time.value)
getCaseVerificationCountData(time.value), getCaseVerificationCountData(),
getCaseVerificationTrendData(selectedYear.value), getCaseVerificationTrendData(selectedYear.value),
getCaseSourceRateAndDealSituationData(time.value), getCaseSourceRateAndDealSituationData(time.value),
// getConfinementAndPauseData(time.value); // getConfinementAndPauseData(time.value);
getCaseTypeFun(time.value), getCaseTypeFun(time.value),
getConfinementBarFun(time.value), getConfinementBarFun(time.value),
getCaseVerificationMapData(time.value) getCaseVerificationMapData()
} }

Loading…
Cancel
Save