month.vue
919 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
<template>
<div class="ipage-wrapper ipage-mall-day">
<ipage-option ref="ipageOption" pVal="format_month" @reportData="reportData"></ipage-option>
<keep-alive>
<component @reportEvt="reportEvt" :emitData="emitData" ref="comWrap" :is="reportVal"></component>
</keep-alive>
</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.reportVal = emitData.radio;
this.emitData = emitData;
},
reportEvt(data) {
this.$refs.ipageOption.setOption(data);
},
},
created() {},
mounted() {},
};
</script>
<style scoped>
</style>