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({
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}`

38
src/views/datav/CaseVerif.vue

@ -5,7 +5,7 @@
<main>
<el-row :gutter="16">
<el-col :span="6">
<datav-card title="分县市局排名" subTitle="案件数">
<datav-card title="分县市局排名" subTitle="问题数">
<datav-tabs
type="bottom-button"
v-model="caseVerifRankTab"
@ -189,8 +189,6 @@ import {
getCaseVerificationTrend,
getCaseSourceRateAndDealSituation,
getCaseVerificationMap,
getCaseProblemProperty,
getConfinementAndPause,
getCaseVerificationCount,
getCaseType,
getConfinementBar
@ -525,8 +523,14 @@ const getConfinementBarFun = async(timeValue) =>{
}
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()
}

Loading…
Cancel
Save