setting.js 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111
  1. const { post,get } = require('./request')
  2. module.exports = {
  3. getDeviceConfigs(data){
  4. return post({
  5. url: '/get_device_configs',
  6. data: data,
  7. headers:{
  8. 'Content-Type':"application/json",
  9. }
  10. })
  11. },
  12. getDeviceTabs(data){
  13. return get({
  14. url: '/get_device_tabs',
  15. data: data,
  16. })
  17. },
  18. getDeviceConfigDetail(data){
  19. return post({
  20. url: '/device_config_detail',
  21. data: data,
  22. headers:{
  23. 'Content-Type':"application/json",
  24. }
  25. })
  26. },
  27. //根据条件查询可执行程序-单条
  28. getDeviceConfigDetailQuery(data){
  29. return post({
  30. url: '/device_config_detail_query',
  31. data: data,
  32. headers:{
  33. 'Content-Type':"application/json",
  34. }
  35. })
  36. },
  37. //删除
  38. removeConfig(data){
  39. return post({
  40. url: '/remove_config',
  41. data: data,
  42. headers:{
  43. 'Content-Type':"application/json",
  44. }
  45. })
  46. },
  47. //保存
  48. saveDeviceConfig(data){
  49. return post({
  50. url: '/save_device_config',
  51. data: data,
  52. headers:{
  53. 'Content-Type':"application/json",
  54. }
  55. })
  56. },
  57. resetDeviceConfig(data){
  58. return post({
  59. url: '/reset_config',
  60. data: data,
  61. headers:{
  62. 'Content-Type':"application/json",
  63. }
  64. })
  65. },
  66. //读取系统配置
  67. getSysConfig(data){
  68. return get({
  69. url: '/get_sys_config',
  70. data: data,
  71. headers:{
  72. 'Content-Type':"application/json",
  73. }
  74. })
  75. },
  76. //更新系统配置
  77. updateSysConfigs(data){
  78. return post({
  79. url: '/update_sys_configs',
  80. data: data,
  81. headers:{
  82. 'Content-Type':"application/json",
  83. }
  84. })
  85. },
  86. //更新左右脚配置
  87. updateLeftRightConfig(data){
  88. return post({
  89. url: '/update_left_right_config',
  90. data: data
  91. })
  92. },
  93. //更新顶部tab名称
  94. updateTabName(data){
  95. return post({
  96. url: '/update_tab_name',
  97. data: data
  98. })
  99. },
  100. }