<template>
  <div class="form-wrap">
    <div class="table-box">
      <el-tabs v-model="activeName">
        <el-tab-pane name="ByTimes">
          <span slot="label">
            按次数统计
          </span>

          <ByTimes v-if="activeName==='ByTimes'"></ByTimes>
        </el-tab-pane>

        <el-tab-pane name="ByPercent">
          <span slot="label">
            按次数比例统计
          </span>

          <ByPercent v-if="activeName==='ByPercent'"></ByPercent>
        </el-tab-pane>
      </el-tabs>
    </div>
  </div>
</template>

<script>
import ByTimes from './memberVisitsStatistics/ByTimes'
import ByPercent from './memberVisitsStatistics/ByPercent'

export default {
  name: 'memberVisitsStatistics',
  components: {
    ByTimes,
    ByPercent
  },
  data () {
    return {
      activeName: 'ByTimes'
    }
  }
}
</script>

<style lang="scss" scoped>
.table-box{
  border: 0;
  ::v-deep .el-tabs__nav-wrap{
   padding: 0 24px;
  }
}
</style>
