提交修改

pg_adapter
dshclm 6 months ago
parent 3130d26780
commit e58c32ee1b

@ -343,8 +343,10 @@
if (parseFloat(row.realScore) > max) { if (parseFloat(row.realScore) > max) {
row.realScore = max; row.realScore = max;
} }
this.calculateTotalScore('realScore') if (row.realScore){
this.postForm.percentageScore = (this.postForm.realScore / this.postForm.totalScore * 100).toFixed(2); this.calculateTotalScore('realScore')
this.postForm.percentageScore = (this.postForm.realScore / this.postForm.totalScore * 100).toFixed(2);
}
}, },
handleInput(row, props) { handleInput(row, props) {
row.realScore = row.realScore.replace(/[^0-9.]/g, ''); row.realScore = row.realScore.replace(/[^0-9.]/g, '');
@ -411,6 +413,7 @@
}); });
if (hasEmptyRealScore){ if (hasEmptyRealScore){
$.modal.alertWarning("所选自查项内有未评分项,请检查"); $.modal.alertWarning("所选自查项内有未评分项,请检查");
return false
} }
// console.log(hasEmptyRealScore); // console.log(hasEmptyRealScore);
// console.log(this.cachedData) // console.log(this.cachedData)

@ -451,6 +451,7 @@
}); });
if (hasEmptyRealScore){ if (hasEmptyRealScore){
$.modal.alertWarning("所选自查项内有未评分项,请检查"); $.modal.alertWarning("所选自查项内有未评分项,请检查");
return false
} }
// console.log(hasEmptyRealScore); // console.log(hasEmptyRealScore);
// console.log(this.cachedData) // console.log(this.cachedData)

Loading…
Cancel
Save