index.vue 1.12 KB
<template>
    <div class=" base-analysis">
        <el-header>
            <span class="asis-title">{{$t('asis.comprehensiveRanking')}}</span>
        </el-header>
        <ipage-option ref="ipageOption" pVal="account_day" @reportData="reportData"></ipage-option>
        <div class="element-main base-main">
             <component @reportEvt="reportEvt" :emitData="emitData" ref="comWrap" :is="reportVal"></component>
        </div>
       
    </div>
</template>

<script>
import ipageOption from '../common/option/regionalRankingOption.vue';
import account from './account';
export default {
    data() {
        return {
            reportVal:'account',
            emitData:{}
        }
    },
    components: {
        ipageOption,
        account:account
    },
    watch: {

    },
    methods: {
        reportData(emitData){
           this.emitData = emitData;

        },
        reportEvt(data){
            this.$refs.ipageOption.setOption(data);
        }
    },
    created() {
         
    },
    mounted() {
        
    }
}
</script>

<style scoped>
    .element-main{
        margin-top: 100px !important;
    }
</style>