Commit 8152c993 authored by baixian's avatar baixian

优化

parent d0b70835
......@@ -471,7 +471,6 @@ export default {
callStudentOperateList, rule_leave, rule_absent, expend, classDetail,
copyExpend,
} = yield select(state => state.callstudents);
console.log(copyExpend, 'copyExpend');
const { value, index } = payload;
if (value == 1 || value == 2) {
callStudentOperateList[index].expend = expend;
......@@ -483,7 +482,7 @@ export default {
}
if (rule_absent == 1 && value == 4) { // 选中旷课 并且旷课扣课时
callStudentOperateList[index].expend = copyExpend;
} else if (rule_leave == 2 && value == 3) {
} else if (rule_absent == 2 && value == 4) {
callStudentOperateList[index].expend = 0;
}
callStudentOperateList[index].type = value;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment