chart.js 3.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129
  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. //修改定时
  63. updateRule({ commit },param) {
  64. return apis.sz.post('/TEquipment/updateRule',param)
  65. .then(res => {
  66. var data = res;
  67. return data;
  68. });
  69. },
  70. getMachineNum({ commit },param) {
  71. return apis.sz.post('/TEquipment/getMachineNum',param)
  72. .then(res => {
  73. const { data } = res;
  74. return data;
  75. });
  76. },
  77. //获取参数
  78. getParameters({ commit },param) {
  79. return apis.sz.post('/TParameters/getParameters',param)
  80. .then(res => {
  81. // const { data } = res;
  82. return res;
  83. });
  84. },
  85. //修改参数
  86. updateParameters({ commit },param) {
  87. return apis.sz.post('/TParameters/updateParameters',param)
  88. .then(res => {
  89. // const { data } = res;
  90. return res;
  91. });
  92. },
  93. //添加闹钟list
  94. addAlarmClock({ commit },param) {
  95. return apis.sz.post('/TAlarmClock/add',param)
  96. .then(res => {
  97. // const { data } = res;
  98. return res;
  99. });
  100. },
  101. //添加闹钟item
  102. addAlarmClockItem({ commit },param) {
  103. return apis.sz.post('/TAlarmClockItem/add',param)
  104. .then(res => {
  105. // const { data } = res;
  106. return res;
  107. });
  108. },
  109. //修改闹钟
  110. updateAlarmClock({ commit },param) {
  111. return apis.sz.post('/TAlarmClock/updata',param)
  112. .then(res => {
  113. // const { data } = res;
  114. return res;
  115. });
  116. },
  117. //查询下级用户
  118. selectLowAdmin({ commit },param) {
  119. return apis.sz.post('/TAdmin/selectLowAdmin',param)
  120. .then(res => {
  121. // const { data } = res;
  122. return res;
  123. });
  124. },
  125. }
  126. }