复杂案件考核

This commit is contained in:
Renpc-kilig 2024-04-28 11:33:44 +08:00
parent 3fbe02a330
commit 24823060ce

View File

@ -954,7 +954,19 @@ export default {
computeAE(row) { computeAE(row) {
let s = this.computeS(row); let s = this.computeS(row);
// let result = row.C + row.H + row.L - row.M - row.N - row.O - row.P + row.Q - s - row.T - row.U - row.V + row.W + row.X + row.Y - row.Z + row.AA + row.AB + row.AC - row.AD; // let result = row.C + row.H + row.L - row.M - row.N - row.O - row.P + row.Q - s - row.T - row.U - row.V + row.W + row.X + row.Y - row.Z + row.AA + row.AB + row.AC - row.AD;
let result = row.C + row.H + row.L - row.M - row.N - row.O - row.P + row.W + row.X - row.Z; let C = Number(row.C);
let H = Number(row.H);
let L = Number(row.L);
let M = Number(row.M);
let N = Number(row.N);
let O = Number(row.O);
let P = Number(row.P);
let W = Number(row.W);
let X = Number(row.X);
let Z = Number(row.Z);
let result = C + H + L - M - N - O - P + W + X - Z;
console.log(row.C + "--" + row.H + "--"+ row.L + "--"+ row.M + "--"+ row.N + "--"+ row.O + "--"+ row.P + "--"+ row.W + "--"+ row.X + "--"+ row.Z)
console.log(result)
result = Math.min(result, 100); result = Math.min(result, 100);
return result < 0 ? 0 : result.toFixed(2); return result < 0 ? 0 : result.toFixed(2);
}, },
@ -1092,8 +1104,8 @@ export default {
data.forEach((item, index) => { data.forEach((item, index) => {
item.A = index + 1; item.A = index + 1;
item.F = item.E === 0 ? 0 : parseFloat((item.D / item.E).toFixed(2)); item.F = item.E === 0 ? 0 : parseFloat((item.D / item.E).toFixed(2));
item.H = Math.min(item.F * item.G, item.D); item.H = (Math.min(item.F * item.G, item.D)).toFixed(2);
item.J = Math.min(item.F * item.I, item.D); item.J = (Math.min(item.F * item.I, item.D)).toFixed(2);
item.L = (item.K > 10 ? 10 : item.K) * 0.5; item.L = (item.K > 10 ? 10 : item.K) * 0.5;
/*item.Q = item.communityPopulationRate >= 0.75 ? 10 : (item.communityPopulationRate >= 0.6 ? 5 : 0);*/ /*item.Q = item.communityPopulationRate >= 0.75 ? 10 : (item.communityPopulationRate >= 0.6 ? 5 : 0);*/
// //
@ -1106,7 +1118,7 @@ export default {
no100Score = 0; no100Score = 0;
} }
item.W = item.communityPopulationRate === 1 ? 15 : no100Score;*/ item.W = item.communityPopulationRate === 1 ? 15 : no100Score;*/
item.W = item.communityPopulationRate * 15; item.W = (item.communityPopulationRate * 15).toFixed(2);
item.X = 15; item.X = 15;
// item.Y = parseFloat((4 * item.communityPopulationRate).toFixed(2)); // item.Y = parseFloat((4 * item.communityPopulationRate).toFixed(2));
// () // ()