Browse Source

企业基本信息

Xiao_123 9 months ago
parent
commit
6d39e2fe10

+ 6 - 1
src/views/recruit/enterprise/informationManagement/informationSettings.vue

@@ -7,7 +7,7 @@
       </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>
+          <component :is="val.path" ref="tabRef"></component>
         </v-window-item>
       </v-window>
     </v-card>
@@ -33,6 +33,7 @@ const route = useRoute()
 // const router = useRouter()
 const { t } = useI18n()
 // tab
+const tabRef = ref()
 const tab = ref(1)
 const tabList = [
   { label: t('enterprise.infoSetting.basicInfo'), value: 1, path: basicInfo },
@@ -46,6 +47,10 @@ const tabList = [
 
 watch(() => route?.query?.tabKey, (newVal) => { if (newVal) tab.value = newVal - 0 })
 const handleTabClick = () => {
+  // 基本信息-获取企业管理员实名认证信息
+  if (tab.value === 1) {
+    tabRef.value[0].getAuthInfo()
+  }
   // router.push(`${route.path}?tabKey=${tab.value.toString()}`)
 }
 </script>

+ 4 - 0
src/views/recruit/enterprise/informationManagement/informationSettingsComponents/basicInfo.vue

@@ -241,6 +241,10 @@ const handleSave = async () => {
   Snackbar.success(t('common.saveMsg'))
   getBaseInfo()
 }
+
+defineExpose({
+  getAuthInfo
+})
 </script>
 
 <style lang="scss" scoped>