From edfc3cb483058ba3d92315ed591dcb8a9eb6e11f Mon Sep 17 00:00:00 2001 From: lyh <925863403@qq.com> Date: 星期四, 10 四月 2025 15:13:21 +0800 Subject: [PATCH] 修改点检 --- src/views/eam/maintenance/modules/EamInspectionOrderModal.vue | 7 +++++-- 1 files changed, 5 insertions(+), 2 deletions(-) diff --git a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue index 67e0612..4c49a93 100644 --- a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue +++ b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue @@ -155,6 +155,7 @@ }, maintenanceCategory: 'POINT_INSPECTION', standardId:"", + standardType:false, detail: { loading: false, dataSource: [], @@ -201,11 +202,13 @@ this.detail.dataSource = []; this.visible = true this.editable = false + this.standardType=false; }, edit(record) { console.log(record) this.model = Object.assign({}, record) this.standardId=record.standardId + this.standardType=true; this.visible = true this.editable = true this.detail.dataSource = [] @@ -271,7 +274,7 @@ this.model.standardName = selectObj.standardName this.model.maintenancePeriod=selectObj.maintenancePeriod this.model.standardCode=selectObj.standardCode - if (this.standardId===undefined || this.standardId==="") { + if (!this.standardType) { this.standardId=selectObj.id this.loadDetail(selectObj.id) } @@ -293,7 +296,7 @@ getAction(this.url.detail, { standardId: standardId }).then(res => { if (res.success) { this.detail.dataSource = [...res.result] - this.standardId=undefined; + this.standardType=false; } }) } -- Gitblit v1.9.3