chart.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  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. //得出日,周,月,年的统计数据。
  35. // getMainStatistics({ commit },param) {
  36. // return apis.sz.post('/TOrder/getMainStatistics',param)
  37. // .then(res => {
  38. // const { data } = res;
  39. // return data;
  40. // });
  41. // },
  42. //得出日,周,月,年的统计数据。
  43. getMainStatistics({ commit },param) {
  44. return apis.sz.post('/TCleanHistory/getMainStatistics',param)
  45. .then(res => {
  46. const { data } = res;
  47. return data;
  48. });
  49. },
  50. getEquipmentListByUser({ commit },param) {
  51. return apis.sz.post('/TEquipment/getEquipmentListByUser',param)
  52. .then(res => {
  53. const { data } = res;
  54. return data;
  55. });
  56. },
  57. getEquipmentListByProvince({ commit },param) {
  58. return apis.sz.post('/TEquipment/getEquipmentListByProvince',param)
  59. .then(res => {
  60. const { data } = res;
  61. return data;
  62. });
  63. },
  64. updata({ commit },param) {
  65. return apis.sz.post('/TEquipment/updateName',param)
  66. .then(res => {
  67. const { data } = res;
  68. return res;
  69. });
  70. },
  71. getMachineNum({ commit },param) {
  72. return apis.sz.post('/TEquipment/getMachineNum',param)
  73. .then(res => {
  74. const { data } = res;
  75. return data;
  76. });
  77. },
  78. updateRule({ commit },param) {
  79. return apis.sz.post('/TEquipment/updateRule',param)
  80. .then(res => {
  81. const { data } = res;
  82. return data;
  83. });
  84. },
  85. }
  86. }