<template>
  <el-tabs v-model="activeName" style="padding-left: 20px; padding-right: 20px;">
    <el-tab-pane label="活动进度" name="schedule">
      <schedule :batchNo="batchNo" :sessionName="sessionName"></schedule>
    </el-tab-pane>
    <el-tab-pane label="活动统计" name="statistics">
      <statistics :batchNo="batchNo"></statistics>
    </el-tab-pane>
  </el-tabs>
</template>

<script setup>
import { ref } from 'vue'
import { useRoute } from 'vue-router'

import statistics from '@/views/activity/component/statistics/index.vue'
import schedule from '@/views/activity/component/schedule/index.vue'

const route = useRoute()
const batchNo = route.params.batchNo
const sessionName = route.params.sessionName

const activeName = ref('schedule')
</script>

<style lang="scss" scoped></style>
