<!-- 企业信息设置 -->
<template>
  <div>
    <v-card class="card-box pa-5" style="min-height: 500px">
      <div>
        <v-tabs v-model="tab" @update:model-value="handleTabClick" align-tabs="start" color="primary" bg-color="#fff">
          <v-tab :value="1">{{ $t('enterprise.infoSetting.basicInfo') }}</v-tab>
          <v-tab :value="2">{{ $t('enterprise.infoSetting.enterpriseLogo') }}</v-tab>
          <v-tab :value="3">{{ $t('enterprise.infoSetting.enterpriseAlbum') }}</v-tab>
          <v-tab :value="4">{{ $t('enterprise.infoSetting.welfareLabel') }}</v-tab>
          <v-tab :value="5">{{ $t('enterprise.infoSetting.businessInformation') }}</v-tab>
          <!-- <v-tab :value="5">{{ $t('enterprise.infoSetting.enterpriseVideo') }}</v-tab>
          <v-tab :value="6">{{ $t('enterprise.infoSetting.recruitmentQRCode') }}</v-tab> -->
        </v-tabs>
        <v-window v-model="tab" class="mt-3">
          <v-window-item :value="1">
            <basicInfo></basicInfo>
          </v-window-item>
          <v-window-item :value="2">
            <enterpriseLogo></enterpriseLogo>
          </v-window-item>
          <v-window-item :value="3">
            <enterpriseAlbum></enterpriseAlbum>
          </v-window-item>
          <v-window-item :value="4">
            <welfareLabel></welfareLabel>
          </v-window-item>
          <v-window-item :value="5">
            <businessInformation></businessInformation>
          </v-window-item>
          <!-- <v-window-item :value="5">
            <enterpriseVideo></enterpriseVideo>
          </v-window-item>
          <v-window-item :value="6">
            <recruitmentQRCode></recruitmentQRCode>
          </v-window-item> -->
        </v-window>
      </div>
    </v-card>
  </div>
</template>

<script setup>
defineOptions({ name: 'enterprise-system-management-information-settings'})
import basicInfo from './informationSettingsComponents/basicInfo.vue'
import enterpriseLogo from './informationSettingsComponents/enterpriseLogo.vue'
import enterpriseAlbum from './informationSettingsComponents/enterpriseAlbum.vue'
import welfareLabel from './informationSettingsComponents/welfareLabel.vue'
import businessInformation from './informationSettingsComponents/businessInformation.vue'
// import enterpriseVideo from './informationSettingsComponents/enterpriseVideo.vue'
// import recruitmentQRCode from './informationSettingsComponents/recruitmentQRCode.vue'
import { ref, watch } from 'vue'
import { useRoute, useRouter } from 'vue-router'

const route = useRoute(); const router = useRouter()
// tab
const tab = ref(1)
watch(() => route?.query?.tabKey, (newVal) => { if (newVal) tab.value = newVal - 0 })
const handleTabClick = () => {
  router.push(`${route.path}?tabKey=${tab.value.toString()}`)
}
</script>

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