index.vue 1.71 KB
<template>
  <div class="app-container">
    <el-tabs v-model="activeName" @tab-change="handleTabChange">
      <el-tab-pane label="基础配置" name="first">
        <base-config />
      </el-tab-pane>
      <el-tab-pane label="费用配置" name="second">
        <cost-config />
      </el-tab-pane>
      <el-tab-pane label="收款账号配置" name="third">
        <account-config />
      </el-tab-pane>
      <el-tab-pane label="段位考试年限配置" name="fourth">
        <duan />
      </el-tab-pane>
      <el-tab-pane label="越段配置" name="fifth">
        <yue-duan />
      </el-tab-pane>
      <el-tab-pane label="年度业务配置" name="sixth">
        <annual-business ref="sixthRef" />
      </el-tab-pane>
      <el-tab-pane label="优惠政策配置" name="youHui">
        <you-hui />
      </el-tab-pane>
      <el-tab-pane label="个人会员审核配置" name="seventh">
        <personal-review />
      </el-tab-pane>
      <el-tab-pane label="单位会员审核配置" name="eighth">
        <unit-review />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup name="Config">

import { ref } from 'vue'
import BaseConfig from './components/base'
import CostConfig from './components/cost'
import AccountConfig from './components/account'
import Duan from './components/duan'
import YueDuan from './components/yueDuan'
import AnnualBusiness from './components/annual_business'
import youHui from './components/youHui'
import PersonalReview from './components/personalReview'
import UnitReview from './components/unitReview'

const activeName = ref('first')
const sixthRef = ref()

function handleTabChange(tabName) {
  if (tabName === 'sixth') {
    sixthRef.value.init()
  }
}

</script>