From 41aa1d07947bb29bb5a28d4f7d775cdae60e0152 Mon Sep 17 00:00:00 2001
From: zhangherong <571457620@qq.com>
Date: 星期一, 14 四月 2025 17:42:08 +0800
Subject: [PATCH] art: 周保执行页面修改

---
 src/views/eam/maintenance/modules/EamInspectionOrderModal.vue |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
index 67e0612..0ea19b4 100644
--- a/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
+++ b/src/views/eam/maintenance/modules/EamInspectionOrderModal.vue
@@ -5,6 +5,7 @@
     :visible="visible"
     :confirmLoading="confirmLoading"
     switchFullscreen
+    centered
     @ok="handleOk"
     @cancel="handleCancel"
     cancelText="鍏抽棴">
@@ -155,6 +156,7 @@
       },
       maintenanceCategory: 'POINT_INSPECTION',
       standardId:"",
+      standardType:false,
       detail: {
         loading: false,
         dataSource: [],
@@ -201,11 +203,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 +275,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 +297,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