setting.js 969 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. const { post } = 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. }