app.vue
693 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
<template>
<com-tab :rows="tab.rows" :active.sync="tab.active" ></com-tab>
<template v-if="tab.active==0">
<uc-sale></uc-sale>
</template>
<template v-if="tab.active==1">
<uc-refund></uc-refund>
</template>
</template>
<script>
import tab from '../../../../components/tab/index';
import refund from './refundGoods';
import sale from './saleGoods';
export default {
components: {
comTab: tab,
ucRefund:refund,
ucSale:sale
},
data(){
return {
tab:{
rows:[
{name:"销售统计"},
{name:"退货统计"}
],
active:0
}
}
}//,
// events:{
// active(index){
// this.tab.active=index;
// }
// }
}
</script>