| | |
| | | <div class="desc-title">环节用时:{{item.disposeRecords.length !==0 ? item.disposeRecords[0].linkTime : ''}}</div> |
| | | <div class="desc-content" v-if="active > index"> |
| | | <div class="desc-content-message">1111111</div> |
| | | <div class="desc-content-endtime">{{item.disposeRecords.length !==0 ? item.disposeRecords[0].endTime:''}}</div> |
| | | <div class="desc-content-endtime">{{item.disposeRecords.length !==0 ? filterTime(item.disposeRecords[0].endTime):''}}</div> |
| | | </div> |
| | | </div> |
| | | </div> |
| | |
| | | </div> |
| | | </template> |
| | | <script> |
| | | import helper from '@/utils/mydate' |
| | | export default { |
| | | data() { |
| | | 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 ===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; |
| | | }else{ |
| | | this.active = -1; |
| | | } |
| | | this.list = mylist; |
| | | }, |
| | | methods:{ |
| | | filterTime(time){ |
| | | if(time){ |
| | | return helper(time) |
| | | } |
| | | return; |
| | | } |
| | | } |
| | | } |
| | | </script> |
| | | <style lang="scss" scoped> |