chart.js 724 B

12345678910111213141516171819202122232425262728293031
  1. import apis from '@/configs/http';
  2. import { redirectToLogin, redirectTo } from '@/common/NavFuncs';
  3. export default {
  4. namespaced: true,
  5. actions: {
  6. getStatistics({ commit },param) {
  7. // console.log('param1:{}',param);
  8. return apis.sz.post('/TOrder/getStatistics',param)
  9. .then(res => {
  10. const { data } = res;
  11. return data;
  12. });
  13. },
  14. getMainStatistics({ commit },param) {
  15. return apis.sz.post('/TOrder/getMainStatistics',param)
  16. .then(res => {
  17. const { data } = res;
  18. return data;
  19. });
  20. },
  21. getEquipmentListByUser({ commit },param) {
  22. return apis.sz.post('/TEquipment/getEquipmentListByUser',param)
  23. .then(res => {
  24. const { data } = res;
  25. return data;
  26. });
  27. },
  28. }
  29. }