Commit 7f0d65be authored by wangxuelai's avatar wangxuelai

''

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