Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
pp253 committed Dec 28, 2018
1 parent 71fbf95 commit 6e3bd78
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
16 changes: 16 additions & 0 deletions src/api/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,22 @@ export const ERR_MSG = {
38: {
title: '此課程代碼不正確',
text: ''
},
39: {
title: 'New order cannot more than old order',
text: ''
},
40: {
title: '順位不得為零',
text: ''
},
41: {
title: 'Old order must includes all elements in new order',
text: ''
},
42: {
title: 'Violate course rule',
text: ''
}
}

Expand Down
2 changes: 1 addition & 1 deletion src/pages/SelectCourses/store/courses_db.json

Large diffs are not rendered by default.

6 changes: 6 additions & 0 deletions src/pages/SelectCourses/store/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,9 @@ export default {
SET_EDITABLE(state, options) {
state.editable = options.editable
},
SET_CURRENT_SEMESTER(state, options) {
state.currentSemester = options.currentSemester
},
SET_SEMESTER(state, options) {
state.semester = options.semester
},
Expand Down Expand Up @@ -278,6 +281,9 @@ export default {
context.commit('SET_SEMESTER', {
semester: data.semester
})
context.commit('SET_CURRENT_SEMESTER', {
currentSemester: data.semester
})
context.commit('SET_PHASE', { semester: data.phase })
context.commit('SET_EDITABLE', {
editable: data.editable
Expand Down

0 comments on commit 6e3bd78

Please sign in to comment.