Browse Source

fix:灵敏感知优化

master
pengwei 1 month ago
parent
commit
8c2abd2cfd
  1. 45
      src/views/datav/Lmgz.vue

45
src/views/datav/Lmgz.vue

@ -362,25 +362,66 @@ const time = ref([
moment().startOf("year").format("YYYY-MM-DD"), moment().startOf("year").format("YYYY-MM-DD"),
moment().format("YYYY-MM-DD"), moment().format("YYYY-MM-DD"),
]); ]);
// --
watch(selectedMetric,()=>{
watch([time, selectedMetric, selectedMetricPCS, selectedMetricJJDD, selectedMetricLD, selectedMetricMJ, selectedMetricXFJ], () => { getAreaRiskData(selectedMetric.value); //
getAreaNegativeData(selectedMetric.value);// /area/negative/statistics
getAreaRateData(selectedMetric.value);// /area/rate/statistics
},{deep:true})
//
watch(selectedMetricPCS,()=>{
console.log('-----12------')
getPCSRiskData(selectedMetricPCS.value);// /risk/org/statistics
getOrgNegativeData(selectedMetricPCS.value);// /org/negative/statistics
getOrgRateData(selectedMetricPCS.value);// /org/rate/statistics
})
//
watch(selectedMetricJJDD,()=>{
getCarRiskData(selectedMetricJJDD.value);//
getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics
getCarOrgRateData(selectedMetricJJDD.value);// /org/car/rate/statistics
})
//
watch(selectedMetricLD,()=>{
getLeaderNegativeData(selectedMetricLD.value);//
getLeaderRiskData(selectedMetricLD.value);//
})
//
watch(selectedMetricMJ,()=>{
getPoliceANegativeData(selectedMetricMJ.value);//
getPoliceARiskData(selectedMetricMJ.value);//
})
watch(selectedMetricXFJ,()=>{
getPoliceBNegativeData(selectedMetricXFJ.value);///
getPoliceBRiskData(selectedMetricXFJ.value);///
})
watch(time, () => {
getTotalData();// /total/statistics getTotalData();// /total/statistics
getAreaRiskData(selectedMetric.value); // getAreaRiskData(selectedMetric.value); //
getAreaNegativeData(selectedMetric.value);// /area/negative/statistics getAreaNegativeData(selectedMetric.value);// /area/negative/statistics
getAreaRateData(selectedMetric.value);// /area/rate/statistics getAreaRateData(selectedMetric.value);// /area/rate/statistics
getPCSRiskData(selectedMetricPCS.value);// /risk/org/statistics getPCSRiskData(selectedMetricPCS.value);// /risk/org/statistics
getOrgNegativeData(selectedMetricPCS.value);// /org/negative/statistics getOrgNegativeData(selectedMetricPCS.value);// /org/negative/statistics
getOrgRateData(selectedMetricPCS.value);// /org/rate/statistics getOrgRateData(selectedMetricPCS.value);// /org/rate/statistics
getCarRiskData(selectedMetricJJDD.value);// getCarRiskData(selectedMetricJJDD.value);//
getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics getCarOrgNegativeData(selectedMetricJJDD.value);// /org/car/negative/statistics
getCarOrgRateData(selectedMetricJJDD.value);// /org/car/rate/statistics getCarOrgRateData(selectedMetricJJDD.value);// /org/car/rate/statistics
getLeaderNegativeData(selectedMetricLD.value);// getLeaderNegativeData(selectedMetricLD.value);//
getLeaderRiskData(selectedMetricLD.value);// getLeaderRiskData(selectedMetricLD.value);//
getPoliceANegativeData(selectedMetricMJ.value);// getPoliceANegativeData(selectedMetricMJ.value);//
getPoliceARiskData(selectedMetricMJ.value);// getPoliceARiskData(selectedMetricMJ.value);//
getPoliceBNegativeData(selectedMetricXFJ.value);/// getPoliceBNegativeData(selectedMetricXFJ.value);///
getPoliceBRiskData(selectedMetricXFJ.value);/// getPoliceBRiskData(selectedMetricXFJ.value);///
}); },{deep:true});
onMounted(() => { onMounted(() => {
getTotalData();// /total/statistics getTotalData();// /total/statistics

Loading…
Cancel
Save