Plat Admin

server.js 1.3KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. import request from '@/utils/request'
  2. /* 添加服务器 */
  3. export function addDevice(params) {
  4. return request({
  5. url: '/ajax/server',
  6. method: 'post',
  7. data: params
  8. })
  9. }
  10. /* 更新服务器信息 */
  11. export function updateDevice(params) {
  12. return request({
  13. url: '/ajax/server/update',
  14. method: 'post',
  15. data: params
  16. })
  17. }
  18. /* 删除服务器信息 */
  19. export function deleteDevice(params) {
  20. return request({
  21. url: '/ajax/server/delete',
  22. method: 'get',
  23. params
  24. })
  25. }
  26. /* 查询单个服务器 */
  27. export function queryDevice(params) {
  28. return request({
  29. url: '/ajax/server/qo',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. /* 分页查询服务器 */
  35. export function pageQueryDevice(params) {
  36. return request({
  37. url: '/ajax/server/pq',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. /* 服务器所属采桥梁列表 */
  43. export function DeviceOfservice(params) {
  44. return request({
  45. url: '/ajax/bridge/list',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. /* 校验服务器编号 */
  51. export function checkDeviceCode(params) {
  52. return request({
  53. url: '/ajax/server/checkCode',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. /* 校验服务器内部编号 */
  59. export function checkDeviceInternalCode(params) {
  60. return request({
  61. url: '/ajax/server/checkSeq',
  62. method: 'get',
  63. params
  64. })
  65. }