|
@@ -2,40 +2,14 @@
|
|
|
<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-tabs v-model="tab" @update:model-value="handleTabClick" align-tabs="start" color="primary" bg-color="#fff">
|
|
|
+ <v-tab v-for="val in tabList" :key="val.value" :value="val.value">{{ val.label }}</v-tab>
|
|
|
+ </v-tabs>
|
|
|
+ <v-window v-model="tab" class="mt-3">
|
|
|
+ <v-window-item :value="val.value" v-for="val in tabList" :key="val.value">
|
|
|
+ <component :is="val.path"></component>
|
|
|
+ </v-window-item>
|
|
|
+ </v-window>
|
|
|
</v-card>
|
|
|
</div>
|
|
|
</template>
|
|
@@ -47,14 +21,26 @@ 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 authentication from './informationSettingsComponents/authentication.vue'
|
|
|
import { ref, watch } from 'vue'
|
|
|
import { useRoute, useRouter } from 'vue-router'
|
|
|
+import { useI18n } from '@/hooks/web/useI18n'
|
|
|
|
|
|
-const route = useRoute(); const router = useRouter()
|
|
|
+const route = useRoute()
|
|
|
+const router = useRouter()
|
|
|
+const { t } = useI18n()
|
|
|
// tab
|
|
|
const tab = ref(1)
|
|
|
+const tabList = [
|
|
|
+ { label: t('enterprise.infoSetting.basicInfo'), value: 1, path: basicInfo },
|
|
|
+ { label: t('enterprise.infoSetting.enterpriseLogo'), value: 2, path: enterpriseLogo },
|
|
|
+ { label: t('enterprise.infoSetting.enterpriseAlbum'), value: 3, path: enterpriseAlbum },
|
|
|
+ { label: t('enterprise.infoSetting.welfareLabel'), value: 4, path: welfareLabel },
|
|
|
+ { label: t('enterprise.infoSetting.businessInformation'), value: 5, path: businessInformation },
|
|
|
+ { label: t('setting.realNameAuthentication'), value: 6, path: authentication },
|
|
|
+]
|
|
|
+
|
|
|
+
|
|
|
watch(() => route?.query?.tabKey, (newVal) => { if (newVal) tab.value = newVal - 0 })
|
|
|
const handleTabClick = () => {
|
|
|
router.push(`${route.path}?tabKey=${tab.value.toString()}`)
|