新增复杂案件考核
This commit is contained in:
parent
df8fa9f6fc
commit
ebb778519a
@ -216,6 +216,13 @@ export default {
|
|||||||
keyName: 'caseSingleScore',
|
keyName: 'caseSingleScore',
|
||||||
width: 60
|
width: 60
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
align: 'center',
|
||||||
|
title: '复杂案件数量',
|
||||||
|
key: 'complex',
|
||||||
|
keyName: 'complexScore',
|
||||||
|
width: 60
|
||||||
|
},
|
||||||
{
|
{
|
||||||
align: 'center',
|
align: 'center',
|
||||||
title: '本月实报案件',
|
title: '本月实报案件',
|
||||||
@ -670,7 +677,7 @@ export default {
|
|||||||
fixed: 'right',
|
fixed: 'right',
|
||||||
width: 100,
|
width: 100,
|
||||||
render(row, index) {
|
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);
|
result = Math.min(result, 100);
|
||||||
return result < 0 ? 0 : result.toFixed(2);
|
return result < 0 ? 0 : result.toFixed(2);
|
||||||
},
|
},
|
||||||
|
computeComplex(row) {
|
||||||
|
let complex = row.complex;
|
||||||
|
return complex * 200;
|
||||||
|
},
|
||||||
computeAF(row) {
|
computeAF(row) {
|
||||||
let score = this.computeAE(row);
|
let score = this.computeAE(row);
|
||||||
if(score <= 100 && score >= 85) {
|
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.AC = item.communityPopulationRate >= 0.75 ? 4 : (item.communityPopulationRate >= 0.6 ? 2 : 0);*/
|
||||||
/*item.S = item.R * 0.2;*/
|
/*item.S = item.R * 0.2;*/
|
||||||
totalGridCount += item.gridCount;
|
totalGridCount += item.gridCount;
|
||||||
|
if(null == item.complex || '' == item.complex || typeof(item.complex) == 'undefined') {
|
||||||
|
item.complex = 0;
|
||||||
|
}
|
||||||
})
|
})
|
||||||
|
console.log(data)
|
||||||
this.table.data = data;
|
this.table.data = data;
|
||||||
console.log(`totalGridCount: ${totalGridCount}`)
|
console.log(`totalGridCount: ${totalGridCount}`)
|
||||||
}).catch(({ data }) => {
|
}).catch(({ data }) => {
|
||||||
|
Loading…
Reference in New Issue
Block a user