Нет описания

bridge.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. import request from '@/utils/request'
  2. /* 添加桥梁 */
  3. export function addDevice(params) {
  4. return request({
  5. url: '/ajax/bridge',
  6. method: 'post',
  7. params
  8. })
  9. }
  10. /* 更新桥梁信息 */
  11. export function updateDevice(params) {
  12. return request({
  13. url: '/ajax/bridge/update',
  14. method: 'post',
  15. params
  16. })
  17. }
  18. /* 删除桥梁信息 */
  19. export function deleteDevice(params) {
  20. return request({
  21. url: '/ajax/bridge/delete',
  22. method: 'get',
  23. params
  24. })
  25. }
  26. /* 查询单个桥梁 */
  27. export function queryDevice(params) {
  28. return request({
  29. url: '/ajax/bridge/qo',
  30. method: 'get',
  31. params
  32. })
  33. }
  34. /* 分页查询桥梁 */
  35. export function pageQueryDevice(params) {
  36. return request({
  37. url: '/ajax/bridge/pq',
  38. method: 'get',
  39. params
  40. })
  41. }
  42. /* 校验桥梁编号 */
  43. export function checkDeviceCode(params) {
  44. return request({
  45. url: '/ajax/bridge/checkCode',
  46. method: 'get',
  47. params
  48. })
  49. }
  50. /* 校验桥梁简称 */
  51. export function checkBridgeShortName(params) {
  52. return request({
  53. url: '/ajax/bridge/checkShortName',
  54. method: 'get',
  55. params
  56. })
  57. }
  58. /* 校验桥梁全称 */
  59. export function checkBridgeName(params) {
  60. return request({
  61. url: '/ajax/bridge/checkName',
  62. method: 'get',
  63. params
  64. })
  65. }
  66. /* 上传图片 */
  67. export function uploadBridgeImg() {
  68. return request({
  69. url: '/ajax/bridge/upload',
  70. method: 'post'
  71. })
  72. }