diff --git a/src/api/device/inspectionWork.js b/src/api/device/inspectionWork.js new file mode 100644 index 0000000..b55936f --- /dev/null +++ b/src/api/device/inspectionWork.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询巡检记录列表 +export function listInspectionWork(query) { + return request({ + url: '/device/inspectionWork/list', + method: 'get', + params: query + }); +} + +// 查询巡检记录详细 +export function getInspectionWork(orderId) { + return request({ + url: '/device/inspectionWork/' + orderId, + method: 'get' + }); +} + +// 新增巡检记录 +export function addInspectionWork(data) { + return request({ + url: '/device/inspectionWork', + method: 'post', + data: data + }); +} + +// 修改巡检记录 +export function updateInspectionWork(data) { + return request({ + url: '/device/inspectionWork', + method: 'put', + data: data + }); +} + +// 删除巡检记录 +export function delInspectionWork(orderId) { + return request({ + url: '/device/inspectionWork/' + orderId, + method: 'delete' + }); +} diff --git a/src/views/device/inspectionWork/index.vue b/src/views/device/inspectionWork/index.vue new file mode 100644 index 0000000..6db55e5 --- /dev/null +++ b/src/views/device/inspectionWork/index.vue @@ -0,0 +1,628 @@ + + + +