setting.js 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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. getDeviceConfigDetail(data){
  13. return post({
  14. url: '/device_config_detail',
  15. data: data,
  16. headers:{
  17. 'Content-Type':"application/json",
  18. }
  19. })
  20. },
  21. //根据条件查询可执行程序-单条
  22. getDeviceConfigDetailQuery(data){
  23. return post({
  24. url: '/device_config_detail_query',
  25. data: data,
  26. headers:{
  27. 'Content-Type':"application/json",
  28. }
  29. })
  30. },
  31. //删除
  32. removeConfig(data){
  33. return post({
  34. url: '/remove_config',
  35. data: data,
  36. headers:{
  37. 'Content-Type':"application/json",
  38. }
  39. })
  40. },
  41. //保存
  42. saveDeviceConfig(data){
  43. return post({
  44. url: '/save_device_config',
  45. data: data,
  46. headers:{
  47. 'Content-Type':"application/json",
  48. }
  49. })
  50. },
  51. resetDeviceConfig(data){
  52. return post({
  53. url: '/reset_config',
  54. data: data,
  55. headers:{
  56. 'Content-Type':"application/json",
  57. }
  58. })
  59. },
  60. //读取系统配置
  61. getSysConfig(data){
  62. return get({
  63. url: '/get_sys_config',
  64. data: data,
  65. headers:{
  66. 'Content-Type':"application/json",
  67. }
  68. })
  69. },
  70. //更新系统配置
  71. updateSysConfigs(data){
  72. return post({
  73. url: '/update_sys_configs',
  74. data: data,
  75. headers:{
  76. 'Content-Type':"application/json",
  77. }
  78. })
  79. }
  80. }