chart.js 1.7 KB

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