month.vue 998 Bytes
<template>
    <div class="ipage-wrapper ipage-mall-day">
        <ipage-option ref="ipageOption" pVal="zone_month" @reportData="reportData"></ipage-option>
        <component @reportEvt="reportEvt" :emitData="emitData" ref="comWrap" :is="reportVal"></component>
    </div>
</template>

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

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

<style scoped>

</style>