From a1a6630f2eabfc78a379b5808b1bf7231a084d0b Mon Sep 17 00:00:00 2001
From: haoxuan <haoxuan>
Date: 星期三, 11 十月 2023 18:02:44 +0800
Subject: [PATCH] 工序弹框的 列表和详情的更新同步

---
 src/components/ProcessModelDetails.vue |   35 +++++++++++++++++++++--------------
 1 files changed, 21 insertions(+), 14 deletions(-)

diff --git a/src/components/ProcessModelDetails.vue b/src/components/ProcessModelDetails.vue
index f37de9e..24346de 100644
--- a/src/components/ProcessModelDetails.vue
+++ b/src/components/ProcessModelDetails.vue
@@ -110,6 +110,12 @@
         return {};
       },
     },
+    activeIndex:{
+      type:[String,Number],
+      default: () => {
+        return '';
+      },
+    }
   },
   data() {
     return {
@@ -132,20 +138,21 @@
       if (this.isLoading) {
         return true;
       }
-      this.isLoading=true;
-      updateProcessParams({procedureId:this.listData.Procedure.ID}).then(res=>{
-        if(res.code==200){
-          this.isLoading=false;
-          this.$message.success('鏇存柊鎴愬姛锛�')
-          this.$emit('renew')
-        }else{
-          this.isLoading=false;
-          this.isUpdate=1
-        }
-      })
-      setTimeout(()=>{
-        this.isLoading=false;
-      },50000)
+      this.$emit('updateProcess',this.processObj,this.activeIndex)
+      // this.isLoading=true;
+      // updateProcessParams({procedureId:this.listData.Procedure.ID}).then(res=>{
+      //   if(res.code==200){
+      //     this.isLoading=false;
+      //     this.$message.success('鏇存柊鎴愬姛锛�')
+      //     this.$emit('renew')
+      //   }else{
+      //     this.isLoading=false;
+      //     this.isUpdate=1
+      //   }
+      // })
+      // setTimeout(()=>{
+      //   this.isLoading=false;
+      // },50000)
     },
     closeClick() {
       this.shutdown();

--
Gitblit v1.8.0