迁移设备保养项目模块
This commit is contained in:
29
src/api/equipment-management/maintenance-items.js
Normal file
29
src/api/equipment-management/maintenance-items.js
Normal file
@@ -0,0 +1,29 @@
|
||||
import { request } from '@/api/_service'
|
||||
|
||||
const BASE = 'device_management/device_maintain/device_maintain_items/'
|
||||
|
||||
function params (method, data = {}) { return { method, platform: 'background', ...data } }
|
||||
|
||||
export function getAll (data) {
|
||||
return request({ url: BASE + 'all', method: 'get', params: params('device_management_device_maintain_device_maintain_items_all', data) })
|
||||
}
|
||||
|
||||
export function getList (data) {
|
||||
return request({ url: BASE + 'list', method: 'get', params: params('device_management_device_maintain_device_maintain_items_list', data) })
|
||||
}
|
||||
|
||||
export function createItem (data) {
|
||||
return request({ url: BASE + 'create', method: 'post', data: params('device_management_device_maintain_device_maintain_items_create', data) })
|
||||
}
|
||||
|
||||
export function editItem (data) {
|
||||
return request({ url: BASE + 'edit', method: 'put', data: params('device_management_device_maintain_device_maintain_items_edit', data) })
|
||||
}
|
||||
|
||||
export function deleteItem (data) {
|
||||
return request({ url: BASE + 'delete', method: 'delete', data: params('device_management_device_maintain_device_maintain_items_delete', data) })
|
||||
}
|
||||
|
||||
export function batchDeleteItems (data) {
|
||||
return request({ url: BASE + 'batch_delete', method: 'delete', data: params('device_management_device_maintain_device_maintain_items_batch_delete', data) })
|
||||
}
|
||||
Reference in New Issue
Block a user