修复分数没保存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"> <el-table-column prop="score" label="分数" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<!--type="number"--> <!--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> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
@ -242,9 +242,10 @@ export default {
return 0; return 0;
} }
if (score > 100) { if (score > 100) {
util.warningMsg(res.message); // util.warningMsg(res.message);
util.errorMsg("分配的数值已超过100"); util.errorMsg("分配的数值已超过100");
} }
console.log('chuli')
return score; return score;
} }
}, },
@ -701,7 +702,7 @@ export default {
let obj = { let obj = {
judgmentId:e.judgmentId, judgmentId:e.judgmentId,
projectId:this.projectId||'', projectId:this.projectId||'',
score:0, score:e.score,
sort:i+1, sort:i+1,
id:e.id id:e.id
} }

Loading…
Cancel
Save