diff --git a/src/views/device/faultType/index.vue b/src/views/device/faultType/index.vue index 13bc8706..ed927bc4 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 30da65ea..ccf1f433 100644 --- a/src/views/device/spotInspectionOrder/index.vue +++ b/src/views/device/spotInspectionOrder/index.vue @@ -83,7 +83,7 @@ placeholder="请选择实际结束时间"> - + + + + +