|
|
|
|
@ -150,7 +150,7 @@
|
|
|
|
|
|
|
|
|
|
<el-col :span="6"> |
|
|
|
|
|
|
|
|
|
<datav-card title="民辅警受伤情况" sub-title="人数"> |
|
|
|
|
<datav-card title="民辅警受伤情况" sub-title="数量"> |
|
|
|
|
<datav-tabs |
|
|
|
|
v-model="comfortInjuryActiveMailTab" |
|
|
|
|
type="bottom-button" |
|
|
|
|
@ -218,12 +218,14 @@ import * as echarts from "echarts/core";
|
|
|
|
|
import moment from "moment"; |
|
|
|
|
|
|
|
|
|
import { |
|
|
|
|
getPoliceHurtSituationAndHurtType, getCaseAriseSituationRate, getComfortMapIcon |
|
|
|
|
} from "@/api/screen/rightsComfort.ts"; |
|
|
|
|
import { |
|
|
|
|
getComfortMapIcon, |
|
|
|
|
getRightsBarList, |
|
|
|
|
getComfortMoneyBarList, |
|
|
|
|
getCaseAriseSituationRate, |
|
|
|
|
getRightsComfortData, |
|
|
|
|
getRightsBarList, getComfortMoneyBarList |
|
|
|
|
} from "@/api/datav"; |
|
|
|
|
getPoliceHurtSituationAndHurtType, |
|
|
|
|
getComfortSituation |
|
|
|
|
} from "@/api/screen/rightsComfort.ts"; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// 数据 |
|
|
|
|
@ -343,7 +345,7 @@ const punishmentSituationOption = ref({
|
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// 民辅警受伤情况 |
|
|
|
|
// 抚慰情况 |
|
|
|
|
const comfortPoliceInjurySituation = ref( |
|
|
|
|
{ |
|
|
|
|
series: [ |
|
|
|
|
@ -380,10 +382,10 @@ const comfortInjuryCategory = ref(
|
|
|
|
|
}, |
|
|
|
|
} |
|
|
|
|
); |
|
|
|
|
////////////////////////////////////////////////////////////////////////////////////////////////// |
|
|
|
|
function getData() { |
|
|
|
|
|
|
|
|
|
// 维权案件情况 |
|
|
|
|
getRightsBarListFun(); |
|
|
|
|
// 抚慰金额情况 |
|
|
|
|
getComfortMoneyBarListFun(); |
|
|
|
|
getRightsComfortData(time.value).then(data => { |
|
|
|
|
overview.value.rightsNumber = data.rightsNumber |
|
|
|
|
@ -391,17 +393,19 @@ function getData() {
|
|
|
|
|
overview.value.hitPersonNumber = data.hitPersonNumber |
|
|
|
|
overview.value.comfortPersonNumber = data.comfortPersonNumber |
|
|
|
|
overview.value.comfortMoney = data.comfortMoney |
|
|
|
|
// countyComfortMoneyBarList.value = data.countyComfortMoneyBarList; |
|
|
|
|
// bureauComfortMoneyBarList.value = data.bureauComfortMoneyBarList; |
|
|
|
|
punishmentSituationOption.value.series[0].data = data.punishmentSituation |
|
|
|
|
comfortPoliceInjurySituation.value.series[0].data = data.comfortPoliceInjurySituation |
|
|
|
|
comfortInjuryCategory.value.series[0].data = data.comfortInjuryCategory |
|
|
|
|
// countyRightsBarList.value = data.countyRightsBarList; |
|
|
|
|
// bureauRightsBarList.value=data.bureauRightsBarList; |
|
|
|
|
// comfortPoliceInjurySituation.value.series[0].data = data.comfortPoliceInjurySituation |
|
|
|
|
// comfortInjuryCategory.value.series[0].data = data.comfortInjuryCategory |
|
|
|
|
xsajCaseTypeOption.value.series[0].data = data.crownCaseBarList; |
|
|
|
|
xzajCaseTypeOption.value.series[0].data = data.administrativeCaseList; |
|
|
|
|
}) |
|
|
|
|
getCaseAriseSituationRateList(time.value) |
|
|
|
|
// 抚慰情况 |
|
|
|
|
getComfortSituationFun(); |
|
|
|
|
// 受伤情况 |
|
|
|
|
getPoliceHurtSituationAndHurtTypeFun(); |
|
|
|
|
// 发案情况占比 |
|
|
|
|
getCaseAriseSituationRateFun(); |
|
|
|
|
// 地图数据 |
|
|
|
|
getMapData(time.value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -412,6 +416,11 @@ onMounted(() => {
|
|
|
|
|
getData(); |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
// region 数据获取函数 |
|
|
|
|
/** |
|
|
|
|
* 维权抚慰一级 维权案件情况 |
|
|
|
|
* @param body |
|
|
|
|
*/ |
|
|
|
|
const getRightsBarListFun = async() =>{ |
|
|
|
|
const body = { |
|
|
|
|
beginTime: time.value[0], |
|
|
|
|
@ -422,7 +431,10 @@ const getRightsBarListFun = async() =>{
|
|
|
|
|
bureauRightsBarList.value = res.bureauRightsBarList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 维权抚慰一级 抚慰金额情况 |
|
|
|
|
* @param body |
|
|
|
|
*/ |
|
|
|
|
const getComfortMoneyBarListFun = async() =>{ |
|
|
|
|
const body = { |
|
|
|
|
beginTime: time.value[0], |
|
|
|
|
@ -433,6 +445,53 @@ const getComfortMoneyBarListFun = async() =>{
|
|
|
|
|
bureauComfortMoneyBarList.value = res.bureauComfortMoneyBarList; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 维权抚慰一级 抚慰情况 |
|
|
|
|
* @param body |
|
|
|
|
*/ |
|
|
|
|
const getComfortSituationFun = async ()=>{ |
|
|
|
|
const body = { |
|
|
|
|
beginTime: time.value[0], |
|
|
|
|
endTime: time.value[1] |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const res = await getComfortSituation(body); |
|
|
|
|
comfortPoliceInjurySituation.value.series[0].data = res.comfortPoliceInjurySituation |
|
|
|
|
} |
|
|
|
|
/** |
|
|
|
|
* 维权抚慰一级 民辅警受伤情况 |
|
|
|
|
* @param body |
|
|
|
|
*/ |
|
|
|
|
const getPoliceHurtSituationAndHurtTypeFun = async ()=>{ |
|
|
|
|
const body = { |
|
|
|
|
beginTime: time.value[0], |
|
|
|
|
endTime: time.value[1] |
|
|
|
|
} |
|
|
|
|
const res = await getPoliceHurtSituationAndHurtType(body); |
|
|
|
|
comfortInjuryCategory.value.series[0].data = res.comfortInjuryCategory |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* 维权抚慰一级 发案情况占比 |
|
|
|
|
* @param body |
|
|
|
|
*/ |
|
|
|
|
const getCaseAriseSituationRateFun = async ()=>{ |
|
|
|
|
const body = { |
|
|
|
|
beginTime: time.value[0], |
|
|
|
|
endTime: time.value[1] |
|
|
|
|
} |
|
|
|
|
const res = await getCaseAriseSituationRate(body); |
|
|
|
|
ariseCaseLinkOption.value.series[0].data = res.incidentLinkList |
|
|
|
|
ariseCasePoliceOption.value.series[0].data = res.incidentPoliceTypeList |
|
|
|
|
ariseCaseORgOption.value.series[0].data = res.incidentOrgList |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
let globalTempMapVoList = ref([]); |
|
|
|
|
|
|
|
|
|
// 地图数据 |
|
|
|
|
@ -503,19 +562,7 @@ const getMapData = async (timeValue) => {
|
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 民辅警受伤情况-受伤人数 |
|
|
|
|
const getPoliceHurtSituationList = async (timeValue) => { |
|
|
|
|
const res = await getPoliceHurtSituationAndHurtType(timeValue); |
|
|
|
|
hurtNumOption.value.series[0].data = res.policeHurtSituationList |
|
|
|
|
hurtTypeOption.value.series[0].data = res.policeHurtTypeList |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getCaseAriseSituationRateList = async (timeValue) => { |
|
|
|
|
const res = await getCaseAriseSituationRate(timeValue); |
|
|
|
|
ariseCaseLinkOption.value.series[0].data = res.incidentLinkList |
|
|
|
|
ariseCasePoliceOption.value.series[0].data = res.incidentPoliceTypeList |
|
|
|
|
ariseCaseORgOption.value.series[0].data = res.incidentOrgList |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const handleClick = (params) => { |
|
|
|
|
console.log('点击事件参数:', params); |
|
|
|
|
|