|
|
|
|
@ -442,103 +442,87 @@ onMounted(() => {
|
|
|
|
|
getPoliceBRiskData(selectedMetricXFJ.value);//【辅警/协警 问题发生率】 |
|
|
|
|
}); |
|
|
|
|
|
|
|
|
|
const getTotalData = () => { |
|
|
|
|
totalStatistics(time.value).then(res => { |
|
|
|
|
statisticsTotal.value.aTotal = res.atotal == undefined ? 0 : res.atotal; |
|
|
|
|
statisticsTotal.value.caseTotal = res.caseTotal == undefined ? 0 : res.caseTotal; |
|
|
|
|
statisticsTotal.value.negativeTotal = res.negativeTotal == undefined ? 0 : res.negativeTotal; |
|
|
|
|
statisticsTotal.value.peopleCount = res.peopleCount == undefined ? 0 : res.peopleCount; |
|
|
|
|
statisticsTotal.value.avgPeople = res.avgPeople == undefined ? 0.0 : res.avgPeople; |
|
|
|
|
}) |
|
|
|
|
const getTotalData = async () => { |
|
|
|
|
const res = await totalStatistics(time.value); |
|
|
|
|
statisticsTotal.value.aTotal = res.atotal == undefined ? 0 : res.atotal; |
|
|
|
|
statisticsTotal.value.caseTotal = res.caseTotal == undefined ? 0 : res.caseTotal; |
|
|
|
|
statisticsTotal.value.negativeTotal = res.negativeTotal == undefined ? 0 : res.negativeTotal; |
|
|
|
|
statisticsTotal.value.peopleCount = res.peopleCount == undefined ? 0 : res.peopleCount; |
|
|
|
|
statisticsTotal.value.avgPeople = res.avgPeople == undefined ? 0.0 : res.avgPeople; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getAreaRiskData = (type) => { |
|
|
|
|
areaRiskStatistics(time.value, type).then(res => { |
|
|
|
|
areaRiskList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getAreaRiskData =async (type) => { |
|
|
|
|
const res =await areaRiskStatistics(time.value, type); |
|
|
|
|
areaRiskList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getPCSRiskData = (type) => { |
|
|
|
|
orgRiskStatistics(time.value, type).then(res => { |
|
|
|
|
pcsRiskList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getPCSRiskData =async (type) => { |
|
|
|
|
const res =await orgRiskStatistics(time.value, type); |
|
|
|
|
pcsRiskList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getCarRiskData = (type) => { |
|
|
|
|
orgCarRiskStatistics(time.value, type).then(res => { |
|
|
|
|
carRiskList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getCarRiskData =async (type) => { |
|
|
|
|
const res =await orgCarRiskStatistics(time.value, type); |
|
|
|
|
carRiskList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getPoliceARiskData = (type) => { |
|
|
|
|
policeARiskStatistics(time.value, type).then(res => { |
|
|
|
|
policeARiskList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getPoliceARiskData =async (type) => { |
|
|
|
|
const res = await policeARiskStatistics(time.value, type); |
|
|
|
|
policeARiskList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getPoliceBRiskData = (type) => { |
|
|
|
|
policeBRiskStatistics(time.value, type).then(res => { |
|
|
|
|
policeBRiskList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getPoliceBRiskData =async (type) => { |
|
|
|
|
const res = await policeBRiskStatistics(time.value, type) |
|
|
|
|
policeBRiskList.value = eachData(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getLeaderRiskData = (type) => { |
|
|
|
|
leaderRiskStatistics(time.value, type).then(res => { |
|
|
|
|
leaderRiskList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getLeaderRiskData =async (type) => { |
|
|
|
|
const res = await leaderRiskStatistics(time.value, type); |
|
|
|
|
leaderRiskList.value = eachData(res); |
|
|
|
|
} |
|
|
|
|
const getAreaNegativeData = (type) => { |
|
|
|
|
areaNegativeStatistics(time.value, type).then(res => { |
|
|
|
|
areaNegativeList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getAreaNegativeData =async (type) => { |
|
|
|
|
const res=await areaNegativeStatistics(time.value, type); |
|
|
|
|
areaNegativeList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getOrgNegativeData = (type) => { |
|
|
|
|
orgNegativeStatistics(time.value, type).then(res => { |
|
|
|
|
orgNegativeList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getOrgNegativeData = async (type) => { |
|
|
|
|
const res = await orgNegativeStatistics(time.value, type); |
|
|
|
|
orgNegativeList.value = eachData(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getCarOrgNegativeData = (type) => { |
|
|
|
|
orgCarNegativeStatistics(time.value, type).then(res => { |
|
|
|
|
orgCarNegativeList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getCarOrgNegativeData =async (type) => { |
|
|
|
|
const res = await orgCarNegativeStatistics(time.value, type) |
|
|
|
|
orgCarNegativeList.value = eachData(res); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getPoliceANegativeData = (type) => { |
|
|
|
|
policeANegativeStatistics(time.value, type).then(res => { |
|
|
|
|
policeANegativeList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getPoliceANegativeData =async (type) => { |
|
|
|
|
const res = await policeANegativeStatistics(time.value, type); |
|
|
|
|
policeANegativeList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getPoliceBNegativeData = (type) => { |
|
|
|
|
policeBNegativeStatistics(time.value, type).then(res => { |
|
|
|
|
policeBNegativeList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getPoliceBNegativeData =async (type) => { |
|
|
|
|
const res = await policeBNegativeStatistics(time.value, type) |
|
|
|
|
policeBNegativeList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getLeaderNegativeData = (type) => { |
|
|
|
|
policeLeaderNegativeStatistics(time.value, type).then(res => { |
|
|
|
|
leaderNegativeList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getLeaderNegativeData =async (type) => { |
|
|
|
|
const res = await policeLeaderNegativeStatistics(time.value, type); |
|
|
|
|
leaderNegativeList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getAreaRateData = (type) => { |
|
|
|
|
areaRateStatistics(time.value, type).then(res => { |
|
|
|
|
areaRateList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getAreaRateData =async (type) => { |
|
|
|
|
const res = await areaRateStatistics(time.value, type); |
|
|
|
|
areaRateList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getOrgRateData = (type) => { |
|
|
|
|
orgRateStatistics(time.value, type).then(res => { |
|
|
|
|
orgRateList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getOrgRateData =async (type) => { |
|
|
|
|
const res =await orgRateStatistics(time.value, type); |
|
|
|
|
orgRateList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const getCarOrgRateData = (type) => { |
|
|
|
|
orgCarRateStatistics(time.value, type).then(res => { |
|
|
|
|
orgCarRateList.value = eachData(res) |
|
|
|
|
}) |
|
|
|
|
const getCarOrgRateData =async (type) => { |
|
|
|
|
const res = await orgCarRateStatistics(time.value, type); |
|
|
|
|
orgCarRateList.value = eachData(res) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const eachData = (data) => { |
|
|
|
|
|