From a1a6630f2eabfc78a379b5808b1bf7231a084d0b Mon Sep 17 00:00:00 2001 From: haoxuan <haoxuan> Date: 星期三, 11 十月 2023 18:02:44 +0800 Subject: [PATCH] 工序弹框的 列表和详情的更新同步 --- src/components/ProcessModel.vue | 13 ++++++++++++- 1 files changed, 12 insertions(+), 1 deletions(-) diff --git a/src/components/ProcessModel.vue b/src/components/ProcessModel.vue index f6792a9..89972b7 100644 --- a/src/components/ProcessModel.vue +++ b/src/components/ProcessModel.vue @@ -87,7 +87,8 @@ ref="processDetails" :processObj="processObj" :listData="listData" - @renew="renew" + :activeIndex='activeIndex' + @updateProcess="updateProcess" /> </div> @@ -126,6 +127,7 @@ index:null, isPage:false, isRenew:false, + activeIndex:'', }; }, mounted() { @@ -209,18 +211,27 @@ }, updateProcess(item,index){ this.processObj=item; + this.activeIndex=index; + if (this.isLoading[index]) { + return true; + } this.isLoading[index]=true; + this.$refs.processDetails.isLoading=true; updateProcessParams({procedureId:this.listData.Procedure.ID}).then(res=>{ if(res.code==200){ this.isLoading[index]=false; + this.$refs.processDetails.isLoading=false; this.$message.success('鏇存柊鎴愬姛锛�') this.renew(); }else{ this.isLoading[index]=false; + this.$refs.processDetails.isLoading=false; + this.$refs.processDetails.isUpdate=1; } }) setTimeout(()=>{ this.isLoading[index]=false; + this.$refs.processDetails.isLoading=false; },50000) }, onSubmitTop() { -- Gitblit v1.8.0