chart.js 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. import apis from '@/configs/http';
  2. import { redirectToLogin, redirectTo } from '@/common/NavFuncs';
  3. export default {
  4. namespaced: true,
  5. actions: {
  6. getEquipmentStatistics({ commit },param) {
  7. return apis.sz.post('/TOrder/getEquipmentStatistics',param)
  8. .then(res => {
  9. const { data } = res;
  10. return data;
  11. });
  12. },
  13. getStatistics({ commit },param) {
  14. return apis.sz.post('/TOrder/getStatistics',param)
  15. .then(res => {
  16. const { data } = res;
  17. return data;
  18. });
  19. },
  20. getMainStatistics({ commit },param) {
  21. return apis.sz.post('/TOrder/getMainStatistics',param)
  22. .then(res => {
  23. const { data } = res;
  24. return data;
  25. });
  26. },
  27. getEquipmentListByUser({ commit },param) {
  28. console.log('getEquipmentListByUser')
  29. return apis.sz.post('/TEquipment/getEquipmentListByUser',param)
  30. .then(res => {
  31. const { data } = res;
  32. return data;
  33. });
  34. },
  35. updata({ commit },param) {
  36. return apis.sz.post('/TEquipment/updateName',param)
  37. .then(res => {
  38. const { data } = res;
  39. return res;
  40. });
  41. },
  42. getMachineNum({ commit },param) {
  43. return apis.sz.post('/TEquipment/getMachineNum',param)
  44. .then(res => {
  45. const { data } = res;
  46. return data;
  47. });
  48. },
  49. }
  50. }