year.vue 914 Bytes
<template>
    <div class="ipage-wrapper ipage-mall-year">
        <ipage-option pVal="mall_year" @reportData="reportData"></ipage-option>
        <keep-alive>
           <component :emitData="emitData" ref="comWrap" :is="reportVal"></component>
        </keep-alive>
    </div>
</template>

<script>
import ipageOption from '../common/option/option';
import monthCount from './year_count';
import monthDetail from './year_detail';
export default {
    data() {
        return {
            reportVal:'',
            emitData:{}
        }
    },
    components: {
        ipageOption,
        count:monthCount,
        detail:monthDetail
    },
    watch: {

    },
    methods: {
        reportData(emitData){
           this.reportVal = emitData.radio;
           this.emitData = emitData; 
        }
    },
    created() {
         
    },
    mounted() {
        
    }
}
</script>

<style scoped>

</style>