Commit 576be6da by Lin

feat: 在短课程组件中添加处罚开关修改条件注释,提升代码可读性

1 parent d38dd3f4
...@@ -270,6 +270,7 @@ export default { ...@@ -270,6 +270,7 @@ export default {
&& this.$refs.lightTable.refreshTable(first, second); && this.$refs.lightTable.refreshTable(first, second);
}, },
handlePenalty(row) { handlePenalty(row) {
// taskStatus = 1 && completeTime = null && punishType = 1 满足三个条件方可修改处罚开关
const taskStatusOk = Number(row?.taskStatus) === 1; const taskStatusOk = Number(row?.taskStatus) === 1;
const completeTimeEmpty const completeTimeEmpty
= row?.completeTime === null = row?.completeTime === null
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!