setting.js 1.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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. removeConfig(data){
  23. return post({
  24. url: '/remove_config',
  25. data: data,
  26. headers:{
  27. 'Content-Type':"application/json",
  28. }
  29. })
  30. },
  31. //保存
  32. saveDeviceConfig(data){
  33. return post({
  34. url: '/save_device_config',
  35. data: data,
  36. headers:{
  37. 'Content-Type':"application/json",
  38. }
  39. })
  40. },
  41. resetDeviceConfig(data){
  42. return post({
  43. url: '/reset_config',
  44. data: data,
  45. headers:{
  46. 'Content-Type':"application/json",
  47. }
  48. })
  49. },
  50. //读取系统配置
  51. getSysConfig(data){
  52. return get({
  53. url: '/get_sys_config',
  54. data: data,
  55. headers:{
  56. 'Content-Type':"application/json",
  57. }
  58. })
  59. },
  60. //更新系统配置
  61. updateSysConfigs(data){
  62. return post({
  63. url: '/update_sys_configs',
  64. data: data,
  65. headers:{
  66. 'Content-Type':"application/json",
  67. }
  68. })
  69. }
  70. }