condition-year-admission.js 561 B

123456789101112131415161718192021222324
  1. import conditionObjectBase from '../condition-object-base.js'
  2. import { years } from "@/api/webApi/career-other";
  3. export default {
  4. ...conditionObjectBase,
  5. dependentKeys: ['location'],
  6. key: 'yearAdmission',
  7. title: '学年',
  8. isDependencyReady(params) {
  9. return params.location
  10. },
  11. getList: function(param) {
  12. return new Promise((resolve, reject) => {
  13. years(param).then(res => resolve(res.rows))
  14. .catch(e => reject(e))
  15. })
  16. },
  17. getCode: function(item) {
  18. return item
  19. },
  20. getLabel: function(item) {
  21. return item
  22. }
  23. }