diff --git a/src/api/device/plan.js b/src/api/device/plan.js new file mode 100644 index 0000000..59382c7 --- /dev/null +++ b/src/api/device/plan.js @@ -0,0 +1,44 @@ +import request from '@/utils/request' + +// 查询计划列表 +export function listPlan(query) { + return request({ + url: '/device/plan/list', + method: 'get', + params: query + }); +} + +// 查询计划详细 +export function getPlan(planId) { + return request({ + url: '/device/plan/' + planId, + method: 'get' + }); +} + +// 新增计划 +export function addPlan(data) { + return request({ + url: '/device/plan', + method: 'post', + data: data + }); +} + +// 修改计划 +export function updatePlan(data) { + return request({ + url: '/device/plan', + method: 'put', + data: data + }); +} + +// 删除计划 +export function delPlan(planId) { + return request({ + url: '/device/plan/' + planId, + method: 'delete' + }); +} diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue new file mode 100644 index 0000000..78637b4 --- /dev/null +++ b/src/views/device/inspectionPlan/index.vue @@ -0,0 +1,608 @@ + + +