<template>
    <el-tabs v-model="tabActiveName" @tab-click="handleTabClick" style="margin-bottom:10px">
        <el-tab-pane label="总量分析" name="total"></el-tab-pane>
        <el-tab-pane label="体重分析" name="weight"></el-tab-pane>
        <el-tab-pane label="血压分析" name="bloodpressure"></el-tab-pane>
        <el-tab-pane label="透析龄分析" name="dialysisage"></el-tab-pane>
        <el-tab-pane label="转归分析" name="lapseto"></el-tab-pane>
        <el-tab-pane label="并发症分析" name="complication"></el-tab-pane>
        <el-tab-pane label="传染病分析" name="infectiousdiseases"></el-tab-pane>
    </el-tabs>
</template>
<script>
export default {
    props:{
        activeName:{
            type:String,
            default: 'total'
        }
    },
    data(){
        return{
            tabActiveName:'total',
        }
    }, 
    methods:{
        handleTabClick(tab, event) {
            this.$router.push({ path: "/qcd/patientanalysis/"+this.tabActiveName });
        }
    },
    created(){
        this.tabActiveName = this.activeName
    },
}
</script>

