From 387e8b0743240de72425e5b5c5709d629ace9aa4 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期二, 11 十月 2022 20:17:43 +0800 Subject: [PATCH] 新增消息界面、处理遗留问题 --- src/components/process/index.vue | 47 ++++++++++++++--------------------------------- 1 files changed, 14 insertions(+), 33 deletions(-) diff --git a/src/components/process/index.vue b/src/components/process/index.vue index ef53b8b..e66ea59 100644 --- a/src/components/process/index.vue +++ b/src/components/process/index.vue @@ -43,45 +43,26 @@ return { active: 0, list: [ - { - title: '涓婃姤', - status: 'success', - }, - { - title: '绔嬫', - status: 'process', - }, - { - title: '娲鹃仯', - status: 'process', - }, - { - title: '澶勭疆', - status: 'process', - }, - { - title: '鏍告煡', - status: 'process', - }, - { - title: '缁撴', - status: 'process', - } ], } }, - props:['handlePassVo'], + props:['handlePassVo','baseCase'], created(){ - console.log('process'); - const {handlePassVo:{workflowConfigSteps:mylist}} = this; + const {handlePassVo:{workflowConfigSteps:mylist},baseCase:{state:mystate}} = this; // console.log(this.handlePassVo.workflowConfigSteps[0].name); // console.log(mylist); - mylist.forEach(item=>{ - if(item.disposeRecords.length!==0){ - this.active ++; - } - }) - console.log(this.active); + console.log(mystate); + if(mystate===0){ + this.active = -1; + }else if(mystate ===6){ + this.active = 1; + }else if(mystate===7){ + this.active = 2; + }else if(mystate ===8){ + this.active = 3; + }else if(mystate ===9){ + this.active = 4; + } this.list = mylist; }, } -- Gitblit v1.8.0