新增复杂案件考核

This commit is contained in:
Renpc-kilig 2024-04-10 10:48:04 +08:00
parent df8fa9f6fc
commit ebb778519a

View File

@ -216,6 +216,13 @@ export default {
keyName: 'caseSingleScore',
width: 60
},
{
align: 'center',
title: '复杂案件数量',
key: 'complex',
keyName: 'complexScore',
width: 60
},
{
align: 'center',
title: '本月实报案件',
@ -670,7 +677,7 @@ export default {
fixed: 'right',
width: 100,
render(row, index) {
return (vueSelf.computeAE(row) * vueSelf.computeAF(row) / 100).toFixed(2);
return ((vueSelf.computeAE(row) * vueSelf.computeAF(row) / 100) + vueSelf.computeComplex(row)).toFixed(2);
}
}
],
@ -951,6 +958,10 @@ export default {
result = Math.min(result, 100);
return result < 0 ? 0 : result.toFixed(2);
},
computeComplex(row) {
let complex = row.complex;
return complex * 200;
},
computeAF(row) {
let score = this.computeAE(row);
if(score <= 100 && score >= 85) {
@ -1102,7 +1113,11 @@ export default {
item.AC = item.communityPopulationRate >= 0.75 ? 4 : (item.communityPopulationRate >= 0.6 ? 2 : 0);*/
/*item.S = item.R * 0.2;*/
totalGridCount += item.gridCount;
if(null == item.complex || '' == item.complex || typeof(item.complex) == 'undefined') {
item.complex = 0;
}
})
console.log(data)
this.table.data = data;
console.log(`totalGridCount: ${totalGridCount}`)
}).catch(({ data }) => {