chart.js 1.4 KB

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