app.vue 693 Bytes
<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>