最大分数100

This commit is contained in:
TS-QD1 2023-06-15 11:28:54 +08:00
parent 4f556b76f5
commit 9138e9cc34

View File

@ -830,7 +830,7 @@ export default {
this.modal.scoring.rowIndex = index; this.modal.scoring.rowIndex = index;
this.modal.scoring.score = populationEdit; this.modal.scoring.score = populationEdit;
this.modal.scoring.reason = row.reasonY; this.modal.scoring.reason = row.reasonY;
this.modal.scoring.maxScore = 3; this.modal.scoring.maxScore = 4;
this.modal.scoring.minScore = 0; this.modal.scoring.minScore = 0;
this.modal.scoring.userName = row.B; this.modal.scoring.userName = row.B;
this.modal.scoring.title = '人口信息维护' this.modal.scoring.title = '人口信息维护'
@ -849,7 +849,7 @@ export default {
this.modal.scoring.title = '人口信息抽查'; this.modal.scoring.title = '人口信息抽查';
}, },
// + // +
onParySaveClick(row, index) { onPartySaveClick(row, index) {
let partySave = row.AA; let partySave = row.AA;
this.modal.scoring.show = true; this.modal.scoring.show = true;
this.modal.scoring.rowKey = 'AA'; this.modal.scoring.rowKey = 'AA';
@ -882,7 +882,7 @@ export default {
this.modal.scoring.rowIndex = index; this.modal.scoring.rowIndex = index;
this.modal.scoring.score = partyEdit; this.modal.scoring.score = partyEdit;
this.modal.scoring.reason = row.reasonAC; this.modal.scoring.reason = row.reasonAC;
this.modal.scoring.maxScore = 3; this.modal.scoring.maxScore = 4;
this.modal.scoring.minScore = 0; this.modal.scoring.minScore = 0;
this.modal.scoring.userName = row.B; this.modal.scoring.userName = row.B;
this.modal.scoring.title = '党建信息维护'; this.modal.scoring.title = '党建信息维护';
@ -902,6 +902,7 @@ export default {
}, },
computeAE(row) { computeAE(row) {
let result = row.C + row.H - row.J + row.L - row.M - row.N - row.O - row.P + row.Q - row.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.J + row.L - row.M - row.N - row.O - row.P + row.Q - row.S - row.T - row.U - row.V + row.W + row.X + row.Y - row.Z + row.AA + row.AB + row.AC - row.AD;
result = Math.min(result, 100);
return result < 0 ? 0 : result.toFixed(2); return result < 0 ? 0 : result.toFixed(2);
}, },
onSearchClick() { onSearchClick() {