chart.js 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  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. updata({ commit },param) {
  29. return apis.sz.post('/TEquipment/updateName',param)
  30. .then(res => {
  31. const { data } = res;
  32. return res;
  33. });
  34. },
  35. getMachineNum({ commit },param) {
  36. return apis.sz.post('/TEquipment/getMachineNum',param)
  37. .then(res => {
  38. const { data } = res;
  39. return data;
  40. });
  41. },
  42. }
  43. }