InjectAISingleDataMixin.js 689 B

123456789101112131415161718192021222324
  1. // noinspection JSUnresolvedFunction
  2. export default {
  3. inject: ['getPrevData', 'getDetail', 'getMajorTree', 'getMajor', 'getResult'],
  4. computed: {
  5. pageData() {
  6. // rename to pageData, in case `prevData` is conflict with `MxTransferPageMixins`
  7. return this.getPrevData()
  8. },
  9. detail() {
  10. return this.getDetail()
  11. },
  12. majorTree() {
  13. // noinspection JSUnresolvedFunction
  14. return this.getMajorTree()
  15. },
  16. major() {
  17. return this.getMajor()
  18. },
  19. result() {
  20. // noinspection JSUnresolvedFunction
  21. return this.getResult()
  22. }
  23. }
  24. }