Compare commits

..

No commits in common. '548f2fa40dd87416c13f89e9fd6fff300c320965' and '6f9b8c6d2ffdf156e9b6f3fa6e45e652e009107e' have entirely different histories.

  1. 7
      src/api/screen/mail.ts
  2. 4
      src/api/screen/subScreen/subOneCaseVerif.ts
  3. 41
      src/api/screen/subScreen/subOneSupervisionNotify.ts
  4. 14
      src/views/datav/MailVisits.vue
  5. 1
      src/views/datav/subonedatav/SubOneCaseVerif.vue
  6. 123
      src/views/datav/subonedatav/SubOneSceneInsp.vue

7
src/api/screen/mail.ts

@ -42,10 +42,9 @@ export function getEntanglementAndMassMail(body) {
//追责问责情况
export function getResultCount(body){
return request.post({
url:`/datav/mailVisits/getResultCount`,
body
export function getResultCount(times){
return request.get({
url:`/datav/mailVisits/getResultCount?beginTime=${times[0]}&endTime=${times[1]}`
})
}

4
src/api/screen/subScreen/subOneCaseVerif.ts

@ -40,7 +40,7 @@ export function getSubOneCaseVerificationTrend(departId, year) {
});
}
// @Operation(summary = "案件来源占比 & 问责处理情况")
export function getSubOneCaseSourceRateAndDealSituation(body) {
return request.post({
url: `/datav/sub1/caseVerif/getSubOneCaseSourceRateAndDealSituation`,
@ -52,6 +52,6 @@ export function getSubOneCaseSourceRateAndDealSituation(body) {
export function getSubOneConfinementAndPause(departId, times) {
return request.get({
url: `/datav/sub1/caseVerif/getSubOneConfinementAndPause?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
url: `/datav/sub1/caseVerif/getSubOneCaseSourceRateAndDealSituation?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}

41
src/api/screen/subScreen/subOneSupervisionNotify.ts

@ -1,13 +1,14 @@
import request from "@/api/request";
// 现场监督卡片
export function getSubOneChangedRank(body) {
return request.post({
url: `/datav/sub1/supervisonNotify/getSubOneChangedRank`,
body
//监督管理-整改率排名
export function getSubOneChangedRank(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneChangedRank?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneProblemTypeRate(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneProblemTypeRate?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
@ -19,29 +20,22 @@ export function getSubOneSupervisionTrend(departId, year) {
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionTrend?departId=${departId}&year=${year}`
});
}
// 中央数据
export function getSubOneSupervisionNotifyCount(body) {
return request.post({
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionNotifyCount`,
body
//监督管理-中央数据
export function getSubOneSupervisionNotifyCount(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionNotifyCount?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneSupervisionNotifyMap(body) {
return request.post({
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionNotifyMap`,
body
export function getSubOneSupervisionMap(departId, times) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneSupervisionMap?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
export function getSubOneYellowBetDrug(body) {
return request.post({
url: `/datav/sub1/supervisonNotify/getSubOneYellowBetDrug`,
body
export function getSubOneYellowBetDrug(departId, times,type) {
return request.get({
url: `/datav/sub1/supervisonNotify/getSubOneYellowBetDrug?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}&type=${type}`
});
}
@ -50,3 +44,6 @@ export function getSubOneWorkDynamics(departId, times) {
url: `/datav/sub1/supervisonNotify/getSubOneWorkDynamics?departId=${departId}&beginTime=${times[0]}&endTime=${times[1]}`
});
}
// export

14
src/views/datav/MailVisits.vue

@ -807,13 +807,13 @@ const option3 =ref( {
//
const getResultCountDataFun = async ()=>{
const body = {
beginTime: time.value[0],
endTime: time.value[1],
}
const res = await getResultCount(body);
option3.value.series[0].data=res.resultCountArray;
const getResultCountDataFun = async (timeValue = time.value)=>{
const res = await getResultCount(timeValue);
let resultCountArray = []
Object.keys(res).forEach(s=>{
resultCountArray.push({name:s,value:res[s]})
})
option3.value.series[0].data=resultCountArray;
}
// region

1
src/views/datav/subonedatav/SubOneCaseVerif.vue

@ -548,7 +548,6 @@ const getSubOneCaseProblemPropertyData = async (departId, timeValue) => {
const res = await getSubOneCaseProblemProperty(departId, timeValue);
zfbaPieOption.value.series[0].data = res.zfbaPieList;
fwglPieOption.value.series[0].data = res.fwglPieList;
jgjjPieOption.value.series[0].data = res.fwglPieList;
}
const getSubOneAllCaseVerificationCountData = async () => {

123
src/views/datav/subonedatav/SubOneSceneInsp.vue

@ -27,7 +27,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ leftOverview.processingNumber }}
{{ leftOverview.changing }}
</div>
<div class="descriptions_label">
办理中
@ -37,7 +37,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ leftOverview.completedNumber }}
{{ leftOverview.changed }}
</div>
<div class="descriptions_label">
已办结
@ -47,7 +47,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ leftOverview.completedRate }}%
{{ leftOverview.correctionRate }}%
</div>
<div class="descriptions_label">
办结率
@ -58,11 +58,10 @@
<el-scrollbar height="350px">
<datav-chart-bar
:data="fxsjChangedRankList"
size="large"
size="small"
title="办结率排名"
sub-title="已办结/问题数"
unit="%"
:isgroupby="true"
:label-width="110"
:color="dayTimeColors"
/>
@ -83,7 +82,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ leftOverview.processingNumber }}
{{ leftOverview.changing }}
</div>
<div class="descriptions_label">
办理中
@ -93,7 +92,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ leftOverview.completedNumber }}
{{ leftOverview.changed }}
</div>
<div class="descriptions_label">
已办结
@ -103,7 +102,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ leftOverview.completedRate }}%
{{ leftOverview.correctionRate }}%
</div>
<div class="descriptions_label">
办结率
@ -118,7 +117,6 @@
title="办结率排名"
sub-title="已办结/问题数"
unit="%"
:isgroupby="true"
:label-width="110"
:color="dayTimeColors"
/>
@ -218,7 +216,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.proTotal }}
{{ fxsjYellowBetOverview.proTotal }}
</div>
<div class="descriptions_label">
问题数
@ -228,7 +226,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.processingNumber }}
{{ fxsjYellowBetOverview.changing }}
</div>
<div class="descriptions_label">
办理中
@ -238,7 +236,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.completedNumber }}
{{ fxsjYellowBetOverview.changed }}
</div>
<div class="descriptions_label">
已办结
@ -248,7 +246,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.completedRate }}%
{{ fxsjYellowBetOverview.correctionRate }}%
</div>
<div class="descriptions_label">
办结率
@ -272,7 +270,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.proTotal }}
{{ jsdwYellowBetOverview.proTotal }}
</div>
<div class="descriptions_label">
问题数
@ -282,7 +280,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.processingNumber }}
{{ jsdwYellowBetOverview.changing }}
</div>
<div class="descriptions_label">
办理中
@ -292,7 +290,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.completedNumber }}
{{ jsdwYellowBetOverview.changed }}
</div>
<div class="descriptions_label">
已办结
@ -302,7 +300,7 @@
<el-col :span="6">
<div class="descriptions_cell text-center">
<div class="descriptions_content">
{{ rightOverview.completedRate }}%
{{ jsdwYellowBetOverview.correctionRate }}%
</div>
<div class="descriptions_label">
办结率
@ -512,7 +510,7 @@ import moment from "moment";
import {getSubOneStreetMap} from "@/api/screen/subScreen/subOneGlobal.ts";
import {
getSubOneChangedRank,
getSubOneProblemTypeRate, getSubOneSupervisionNotifyMap, getSubOneSupervisionNotifyCount,
getSubOneProblemTypeRate, getSubOneSupervisionMap, getSubOneSupervisionNotifyCount,
getSubOneSupervisionTrend, getSubOneWorkDynamics, getSubOneYellowBetDrug
} from "@/api/screen/subScreen/subOneSupervisionNotify.ts";
import {workDynamicColorMapping} from "@/enums/workDynamicColorMapping.js";
@ -592,14 +590,8 @@ let subOneSceneWorkDynamicsIntervalId;
const tempDepartId = ref(0); // id
const showDialog = ref(false); //
const rightOverview =ref({})
const getYellowBetDrugData = async () => {
const body = {
beginTime: time.value[0],
endTime: time.value[1],
departId: currentDepartId,
specialSupervision: subOneZxdcProRankTab.value
}
const res = await getSubOneYellowBetDrug(body)
const getYellowBetDrugData = async (departId,times) => {
const res = await getSubOneYellowBetDrug(departId, times,subOneZxdcProRankTab.value)
rightOverview.value = res.overview;
fxsjYellowBetOverview.value = res.fxsjYellowBetOverview
jsdwYellowBetOverview.value = res.jsdwYellowBetOverview
@ -608,7 +600,7 @@ const getYellowBetDrugData = async () => {
};
watch(subOneZxdcProRankTab, () => {
getYellowBetDrugData()
getYellowBetDrugData(currentDepartId, time.value)
})
@ -816,29 +808,23 @@ const getMapJSON = async (departId = currentDepartId) => {
echarts.registerMap("changsha", res);
subOneSceneInspMapChart.value.chart.setOption(option.value);
}
const getSubOneChangedRankData = async () => {
const res = await getSubOneChangedRank({
departId: currentDepartId,
beginTime: time.value[0],
endTime: time.value[1]
})
const getSubOneChangedRankData = async (departId, times) => {
const res = await getSubOneChangedRank(departId, times)
leftOverview.value =res.overview;
fxsjRankOverview.value = res.fxsjRankOverview;
jsdwRankOverview.value = res.jsdwRankOverview;
fxsjChangedRankList.value = res.fxsjChangedRankList;
jsdwChangedRankList.value = res.jsdwChangedRankList;
console.log(res);
}
const getSubOneProblemTypeRateData = async () => {
const res = await getSubOneProblemTypeRate(currentDepartId, time.value)
const getSubOneProblemTypeRateData = async (departId, times) => {
const res = await getSubOneProblemTypeRate(departId, times)
// wtlxList.value = circularChart;
wtlxList.value = res.wtlxList
}
const getSubOneSupervisionNotifyCountData = async () => {
const res = await getSubOneSupervisionNotifyCount({
departId: currentDepartId,
beginTime: time.value[0],
endTime: time.value[1]
})
const getSubOneSupervisionNotifyCountData = async (departId, times) => {
const res = await getSubOneSupervisionNotifyCount(departId, times)
Object.assign(overview.value, {
correctionRate: Number(res.overview.completedRate),
supervisionNotifyPreTotal: Number(res.overview.personNumber),
@ -849,12 +835,8 @@ const getSubOneSupervisionNotifyCountData = async () => {
reportNumber: Number(res.overview.reportNumber)
});
}
const getSubOneSupervisionMapData = async () => {
const res = await getSubOneSupervisionNotifyMap({
departId: currentDepartId,
beginTime: time.value[0],
endTime: time.value[1]
});
const getSubOneSupervisionMapData = async (departId, times) => {
const res = await getSubOneSupervisionMap(departId, times);
const mappedData = res.superviseTempMapVoList.map(item => {
return {
...item,
@ -862,7 +844,7 @@ const getSubOneSupervisionMapData = async () => {
};
});
const total = mappedData.reduce((sum, item) => sum + Number(item.value), 0);
const avg = total / mappedData.length; // <EFBFBD>?
const avg = total / mappedData.length; //
const range30Percent = avg * 0.3 //
option.value.visualMap.pieces = [
{gte: 0, lte: avg - range30Percent, label: "低于平均问题30%", color: "#4987F6"},
@ -872,32 +854,41 @@ const getSubOneSupervisionMapData = async () => {
superviseTempMapVoList.value = mappedData;
option.value.series[0].data = mappedData;
}
const getSubOneSupervisionTrendData = async () => {
const res = await getSubOneSupervisionTrend(currentDepartId, selectedYear.value)
const getSubOneSupervisionTrendData = async (departId, year) => {
const res = await getSubOneSupervisionTrend(departId, year)
const supervisionTrend = res.supervisionTrend;
const categories = supervisionTrend.map(item => item.name);
const values = supervisionTrend.map(item => item.value);
proTrend.value.xAxis.data = categories;
proTrend.value.series[0].data = values;
}
const getSubOneYellowBetDrugData = async (departId, times) => {
const res = await getSubOneYellowBetDrug(departId, times)
fxsjYellowBetOverview.value = res.fxsjYellowBetOverview
jsdwYellowBetOverview.value = res.jsdwYellowBetOverview
fxsjYellowBetRankList.value = res.fxsjYellowBetRankList
jsdwYellowBetRankList.value = res.jsdwYellowBetRankList
}
const getSubOneWorkDynamicsData = async () => {
const data = await getSubOneWorkDynamics(currentDepartId, time.value);
const getSubOneWorkDynamicsData = async (departId, times) => {
const data = await getSubOneWorkDynamics(departId, times);
const colorNewsVoList = workDynamicColorMapping(data);
messages.value = colorNewsVoList;
}
const getData = async () => {
getMapJSON(currentDepartId);
getSubOneSupervisionMapData();
getSubOneChangedRankData();
getSubOneProblemTypeRateData();
getSubOneSupervisionNotifyCountData();
getSubOneSupervisionTrendData();
getYellowBetDrugData();
getSubOneWorkDynamicsData();
await Promise.all([
getMapJSON(currentDepartId),
getSubOneSupervisionMapData(currentDepartId, time.value),
getSubOneChangedRankData(currentDepartId, time.value),
getSubOneProblemTypeRateData(currentDepartId, time.value),
getSubOneSupervisionNotifyCountData(currentDepartId, time.value),
getSubOneSupervisionTrendData(currentDepartId, selectedYear.value),
getYellowBetDrugData(currentDepartId, time.value),
getSubOneWorkDynamicsData(currentDepartId, time.value)
]);
}
// endregion
@ -931,17 +922,17 @@ const subOneSceneInspMapAnimation = () => {
seriesIndex: 0,
});
mapTemp.dispatchAction({
type: "highlight", //highLight <EFBFBD>?
type: "highlight", //highLight
seriesIndex: 0, //index
dataIndex: randomNum, //index
});
mapTemp.dispatchAction({
type: "showTip", //showTip <EFBFBD>?
type: "showTip", //showTip
seriesIndex: 0,
dataIndex: randomNum,
});
};
// 2 <EFBFBD>?
// 2
subOneSceneInspMapIntervalId = setInterval(subOneSceneInspMapAnimation, 2000);
//
const subOneSceneInspTrendAnimation = () => {
@ -970,7 +961,7 @@ const subOneSceneInspZxdxRankAnimation = () => {
}
};
subOneSceneInspZxdxIntervalId = setInterval(subOneSceneInspZxdxRankAnimation, 5000);
// <EFBFBD>?
//
const subOneSceneWorkDynamicsAnimation = () => {
const sceneScrollTemp = subOneSceneScrollbar?.value;
const maxScroll = sceneScrollTemp?.wrapRef?.scrollHeight - sceneScrollTemp?.wrapRef?.clientHeight;
@ -1001,7 +992,7 @@ onMounted(() => {
});
const handleCommand = (year) => {
selectedYear.value = year; //
getSubOneSupervisionTrendData();
getSubOneSupervisionTrendData(currentDepartId, selectedYear.value);
};
const handleClick = (params) => {
const departId = params.data.departId;
@ -1202,7 +1193,7 @@ const getNegativePageFun = async (row)=>{
font-weight: 400;
font-size: 16px;
color: #FFFFFF;
border-bottom: 1px solid #253755; /* 设置下边<EFBFBD>?*/
border-bottom: 1px solid #253755; /* 设置下边*/
}
.tooltip-content {

Loading…
Cancel
Save