| | |
| | | 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; |
| | | }, |
| | | } |