diff --git a/src/api/device/spotCheckPlan.js b/src/api/device/spotCheckPlan.js new file mode 100644 index 0000000..e2fbd71 --- /dev/null +++ b/src/api/device/spotCheckPlan.js @@ -0,0 +1,53 @@ +import request from '@/utils/request' + +// 处理计划-设备信息 +export function formatEquItem(data) { + return request({ + url: '/device/spotCheckPlan/formatEquItem', + method: 'post', + data: data + }); +} + +// 查询点检计划列表 +export function listSpotCheckPlan(query) { + return request({ + url: '/device/spotCheckPlan/list', + method: 'get', + params: query + }); +} + +// 查询点检计划详细 +export function getSpotCheckPlan(planId) { + return request({ + url: '/device/spotCheckPlan/' + planId, + method: 'get' + }); +} + +// 新增点检计划 +export function addSpotCheckPlan(data) { + return request({ + url: '/device/spotCheckPlan', + method: 'post', + data: data + }); +} + +// 修改点检计划 +export function updateSpotCheckPlan(data) { + return request({ + url: '/device/spotCheckPlan', + method: 'put', + data: data + }); +} + +// 删除点检计划 +export function delSpotCheckPlan(planId) { + return request({ + url: '/device/spotCheckPlan/' + planId, + method: 'delete' + }); +} diff --git a/src/views/device/faultType/index.vue b/src/views/device/faultType/index.vue index 07dfef5..13bc870 100644 --- a/src/views/device/faultType/index.vue +++ b/src/views/device/faultType/index.vue @@ -158,16 +158,16 @@ v-hasPermi="['device:faultType:remove']" >删除 - - - - - - - - - - + + 导出 + @@ -414,15 +414,9 @@ export default { this.open = true; this.title = "添加故障类型维护"; }, - /** 修改按钮操作 */ + /** 委外计划操作 */ handleUpdate(row) { - this.reset(); - const faultId = row.faultId || this.ids - getFaultType(faultId).then(response => { - this.form = response.data; - this.open = true; - this.title = "修改故障类型维护"; - }); + console.log("点击了委外计划") }, /** 提交按钮 */ submitForm() { diff --git a/src/views/device/inspectionPlan/index.vue b/src/views/device/inspectionPlan/index.vue index 9142c4e..9f503fd 100644 --- a/src/views/device/inspectionPlan/index.vue +++ b/src/views/device/inspectionPlan/index.vue @@ -229,7 +229,7 @@ >删除 - + -
+
@@ -402,7 +402,7 @@
-
+
-
+
@@ -603,10 +603,6 @@ export default { dicts: ['device_loop_type', 'sys_normal_disable'], data() { return { - // 选择工作中心 - changeCenter() { - - }, // 工作中心list workCenterList: [], // 巡检人员选择穿梭框 @@ -738,6 +734,10 @@ export default { this.getList(); }, methods: { + // 选择工作中心 + changeCenter() { + + }, // 改变巡检周期事件 changeArray(e) { console.log(e) diff --git a/src/views/device/item/index.vue b/src/views/device/item/index.vue index 97d210c..fbef42d 100644 --- a/src/views/device/item/index.vue +++ b/src/views/device/item/index.vue @@ -178,17 +178,17 @@ >删除 - - - - - - - - - - - + + 导出 + + diff --git a/src/views/device/spotCheckPlan/index.vue b/src/views/device/spotCheckPlan/index.vue new file mode 100644 index 0000000..ad8071d --- /dev/null +++ b/src/views/device/spotCheckPlan/index.vue @@ -0,0 +1,1145 @@ + + + + diff --git a/src/views/device/upkeepPlan/index.vue b/src/views/device/upkeepPlan/index.vue index 801d118..271a794 100644 --- a/src/views/device/upkeepPlan/index.vue +++ b/src/views/device/upkeepPlan/index.vue @@ -238,7 +238,7 @@ >删除 - +