<template>
  <div>
    <el-tabs v-model="tabIndex" type="border-card">
      <el-tab-pane label="驾照类型" :name="0" v-if="checkPermi(['school:setting:cartype'])">
        <SettingCartype v-if="tabIndex == 0" />
      </el-tab-pane>
      <el-tab-pane label="区域" :name="10" v-if="checkPermi(['school:setting:area'])">
        <SettingArea v-if="tabIndex == 10" />
      </el-tab-pane>
    </el-tabs>
  </div>
</template>

<script setup name="SchoolSetting">
import SettingCartype from './Comp/SettingCartype.vue'
import SettingArea from './Comp/SettingArea.vue'
import { checkPermi } from '@/utils/permission'

const tabIndex = ref(0)
</script>

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