From 6a65efc2656924386e665dac1d6d7e402fa3475f Mon Sep 17 00:00:00 2001 From: wws <18630710203@163.com> Date: Tue, 14 Nov 2023 10:02:31 +0800 Subject: [PATCH] =?UTF-8?q?=E7=82=B9=E6=A3=80=E5=B7=A1=E6=A3=80=E4=BF=9D?= =?UTF-8?q?=E5=85=BB=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/device/faultType/index.vue | 20 ++++++++++++---- .../device/spotInspectionOrder/index.vue | 23 +++++++++++++------ src/views/device/upkeepOrder/index.vue | 4 ++-- src/views/device/upkeepPlan/index.vue | 12 ++++++++++ 4 files changed, 45 insertions(+), 14 deletions(-) diff --git a/src/views/device/faultType/index.vue b/src/views/device/faultType/index.vue index 13bc870..ed927bc 100644 --- a/src/views/device/faultType/index.vue +++ b/src/views/device/faultType/index.vue @@ -176,7 +176,11 @@ - + + + @@ -414,10 +418,16 @@ export default { this.open = true; this.title = "添加故障类型维护"; }, - /** 委外计划操作 */ - handleUpdate(row) { - console.log("点击了委外计划") - }, + /** 修改按钮操作 */ + handleUpdate(row) { + this.reset(); + const faultId = row.faultId || this.ids + getFaultType(faultId).then(response => { + this.form = response.data; + this.open = true; + this.title = "修改故障类型维护"; + }); + }, /** 提交按钮 */ submitForm() { this.$refs["form"].validate(valid => { diff --git a/src/views/device/spotInspectionOrder/index.vue b/src/views/device/spotInspectionOrder/index.vue index 30da65e..ccf1f43 100644 --- a/src/views/device/spotInspectionOrder/index.vue +++ b/src/views/device/spotInspectionOrder/index.vue @@ -83,7 +83,7 @@ placeholder="请选择实际结束时间"> - + + + + +