condition-student-round.js 582 B

123456789101112131415161718192021222324
  1. import conditionObjectBase from '../condition-object-base.js'
  2. import {
  3. getSchoolRounds
  4. } from '@/api/webApi/selection.js'
  5. import store from '@/store/index'
  6. export default {
  7. ...conditionObjectBase,
  8. key: 'studentRoundId',
  9. title: '选科次数',
  10. getList: function() {
  11. return new Promise((resolve, reject) => {
  12. getSchoolRounds({ year: store.getters.currentUser.year })
  13. .then(res => resolve(res.data))
  14. .catch(e => reject(e))
  15. })
  16. },
  17. getCode: function(item) {
  18. return item.roundId
  19. },
  20. getLabel: function(item) {
  21. return item.name
  22. }
  23. }