Commit 7f0d65be authored by wangxuelai's avatar wangxuelai

''

parent 5187350b
...@@ -555,14 +555,14 @@ export default { ...@@ -555,14 +555,14 @@ export default {
* callStudentExpendChange({ payload }, { call, put, select }) { * callStudentExpendChange({ payload }, { call, put, select }) {
const { expend, callStudentOperateList } = yield select(state => state.callstudents); const { expend, callStudentOperateList } = yield select(state => state.callstudents);
const { value, index } = payload; const { value, index } = payload;
if ((callStudentOperateList[index].type == 1 || callStudentOperateList[index].type == 2) && value < expend) { // if ((callStudentOperateList[index].type == 1 || callStudentOperateList[index].type == 2) && value < expend) {
callStudentOperateList[index].expend = expend; // callStudentOperateList[index].expend = expend;
} else if ((callStudentOperateList[index].type == 1 || callStudentOperateList[index].type == 2) && value >= expend) { // } else if ((callStudentOperateList[index].type == 1 || callStudentOperateList[index].type == 2) && value >= expend) {
callStudentOperateList[index].expend = value; callStudentOperateList[index].expend = value;
} // }
if (callStudentOperateList[index].type == 3 || callStudentOperateList[index].type == 4) { // if (callStudentOperateList[index].type == 3 || callStudentOperateList[index].type == 4) {
callStudentOperateList[index].expend = value; // callStudentOperateList[index].expend = value;
} // }
yield put({ yield put({
type: 'updateState', type: 'updateState',
payload: { payload: {
......
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