SearchMajorInjectionMixin.js 813 B

123456789101112131415161718192021222324252627282930
  1. export default {
  2. inject: [
  3. 'fetchSearchingMajors',
  4. 'updateCheckedList',
  5. 'snapshotSearchingMajorWhenApply',
  6. 'isSearchingMajorFired',
  7. 'isFormedMajorFired',
  8. 'ensureMajorFullTree',
  9. 'getMajorTree'
  10. ],
  11. computed: {
  12. majorTree() {
  13. // noinspection JSUnresolvedFunction
  14. return this.getMajorTree()
  15. },
  16. searchingMajors() {
  17. // noinspection JSUnresolvedFunction
  18. return this.fetchSearchingMajors()
  19. },
  20. checkedList() {
  21. return this.searchingMajors.checkedList
  22. },
  23. majorTreeChildren() {
  24. return this.searchingMajors.majorTreeChildren
  25. },
  26. formedMajors() {
  27. return this.searchingMajors.formedMajors
  28. }
  29. }
  30. }