import request from '@/utils/request' // 查询运维工单列表 export function listWorkOrder(query) { return request({ url: '/work-order/page', method: 'get', params: query }) } // 查询运维工单详细 export function getWorkOrder(id) { return request({ url: '/work-order/' + id, method: 'get' }) } // 新增运维工单 export function addWorkOrder(data) { return request({ url: '/work-order', method: 'post', data: data }) } // 修改运维工单 export function updateWorkOrder(data) { return request({ url: '/work-order', method: 'put', data: data }) } // 删除运维工单 export function delWorkOrder(id) { return request({ url: '/work-order/' + id, method: 'delete' }) }