修复分数没保存bug

dev_2022-05-11
e 3 years ago
parent 4a10986a2f
commit bcc70bee2e
  1. 7
      src/pages/project/add/index.vue

@ -115,7 +115,7 @@
<el-table-column prop="score" label="分数" align="center">
<template slot-scope="scope">
<!--type="number"-->
<el-input :disabled="isDetail" v-model.trim="scope.row.score" @input="scoreChange(scope.row, scope.$index,$event)"></el-input>
<el-input :disabled="isDetail" v-model.trim="scope.row.score" @blur="updateProjectJudgment" @input="scoreChange(scope.row, scope.$index,$event)"></el-input>
</template>
</el-table-column>
</el-table>
@ -242,9 +242,10 @@ export default {
return 0;
}
if (score > 100) {
util.warningMsg(res.message);
// util.warningMsg(res.message);
util.errorMsg("分配的数值已超过100");
}
console.log('chuli')
return score;
}
},
@ -701,7 +702,7 @@ export default {
let obj = {
judgmentId:e.judgmentId,
projectId:this.projectId||'',
score:0,
score:e.score,
sort:i+1,
id:e.id
}

Loading…
Cancel
Save