“dzb”
2022-10-11 387e8b0743240de72425e5b5c5709d629ace9aa4
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;
    },
}