getters.js 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. const getters = {
  2. device: state => state.app.device,
  3. theme: state => state.app.theme,
  4. color: state => state.app.color,
  5. token: state => state.user.token,
  6. avatar: state => state.user.avatar,
  7. rmbRate: state => state.user.rmbRate,
  8. nickname: state => state.user.name,
  9. welcome: state => state.user.welcome,
  10. roles: state => state.user.roles,
  11. userInfo: state => state.user.info,
  12. permissions: state => state.user.permissions,
  13. addRouters: state => state.permission.addRouters,
  14. multiTab: state => state.app.multiTab,
  15. lang: state => state.i18n.lang,
  16. purchaseType: state => state.purchase.type,
  17. addFlag: state => state.purchase.addFlag,
  18. changeFlag: state => state.purchase.changeFlag,
  19. purchaseContractId: state => state.purchase.contractId,
  20. demandPlanId: state => state.purchase.demandPlanId,
  21. moneyType: state => state.purchase.moneyType,
  22. inventoryLocation: state => state.purchase.inventoryLocation,
  23. exchangeRate: state => state.purchase.exchangeRate,
  24. purchasePlanId: state => state.purchase.planId,
  25. purchaseApplyId: state => state.purchase.applyId,
  26. purchaseOrderId: state => state.purchase.orderId,
  27. purchaseDispatchId: state => state.purchase.dispatchId,
  28. oneListAdd: state => state.purchase.oneListAdd,
  29. oneListUpdate: state => state.purchase.oneListUpdate,
  30. oneListDelete: state => state.purchase.oneListDelete,
  31. twoListAdd: state => state.purchase.twoListAdd,
  32. twoListUpdate: state => state.purchase.twoListUpdate,
  33. checkedRows: state => state.purchase.checkedRows,
  34. twoListDelete: state => state.purchase.twoListDelete
  35. }
  36. export default getters