year.vue 994 Bytes
a<template>
    <div class="ipage-wrapper ipage-mall-year">
        <ipage-option ref="ipageOption" pVal="floor_year" @reportData="reportData"></ipage-option>
        <component @reportEvt="reportEvt" :emitData="emitData" ref="comWrap" :is="reportVal"></component>
    </div>
</template>

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

    },
    methods: {
        reportData(emitData){
           this.reportVal = emitData.radio;
           this.emitData = emitData;
        },
        reportEvt(data){
            this.$refs.ipageOption.setOption(data);
        }
    },
    created() {
         
    },
    mounted() {
        
    }
}
</script>

<style scoped>

</style>