|
@@ -7,9 +7,16 @@
|
|
|
<div class="ml-4">
|
|
|
<div class="contact-name">
|
|
|
{{ info.enterprise.name }}
|
|
|
- <v-icon color="primary" size="24">mdi-shield-check</v-icon>
|
|
|
+ <v-icon :color="statusInfo.color" size="20">{{ statusInfo.mdi }}</v-icon>
|
|
|
+ <span :style="{'color': statusInfo.color,'font-size': '14px'}">{{ statusInfo.label }}</span>
|
|
|
+ </div>
|
|
|
+ <div class="contact-info">
|
|
|
+ {{ info.business.type }}
|
|
|
+ <span v-if="info.business.type && info.scaleName">·</span>
|
|
|
+ {{ info.scaleName }}
|
|
|
+ <span v-if="info.industryName && info.scaleName">·</span>
|
|
|
+ {{ info.industryName }}
|
|
|
</div>
|
|
|
- <div class="contact-info">{{ info.business.type }} · {{ info.scaleName }} · {{ info.industryName }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="float-right d-flex">
|
|
@@ -67,9 +74,10 @@
|
|
|
|
|
|
<script setup>
|
|
|
defineOptions({ name: 'enterprise-details'})
|
|
|
-import { ref } from 'vue'
|
|
|
+import { ref, computed } from 'vue'
|
|
|
import EnterpriseIntroduction from './components/introduction.vue'
|
|
|
import recruitmentPositions from './components/positions.vue'
|
|
|
+import { getEnterpriseAuthDetails } from '@/api/position'
|
|
|
import { getEnterpriseDetails, getEnterpriseSubscribeCheck, getEnterpriseSubscribe, getEnterpriseUnsubscribe, enterpriseClick } from '@/api/enterprise'
|
|
|
import { timesTampChange } from '@/utils/date'
|
|
|
import { dealDictObjData } from '@/utils/position'
|
|
@@ -101,8 +109,16 @@ const handleEnterpriseClick = async () => {
|
|
|
}
|
|
|
handleEnterpriseClick()
|
|
|
|
|
|
+const statusList = [
|
|
|
+ { label: '未认证', color: '#fb8c00', value: null, mdi: 'mdi-shield-remove' },
|
|
|
+ { label: '审核中', color: '#fb8c00', value: '0', mdi: 'mdi-shield-half-full' },
|
|
|
+ { label: '已认证', color: 'var(--v-primary-base)', value: '1', mdi: 'mdi-shield-check' },
|
|
|
+ { label: '已驳回', color: '#fe574a', value: '2', mdi: 'mdi-shield-off' }
|
|
|
+]
|
|
|
+
|
|
|
// 企业详情
|
|
|
const info = ref({})
|
|
|
+const authInfo = ref({})
|
|
|
const getDetails = async () => {
|
|
|
if (!props.id) return
|
|
|
const data = await getEnterpriseDetails({ id: props.id })
|
|
@@ -111,9 +127,16 @@ const getDetails = async () => {
|
|
|
|
|
|
info.value = { ...data, ...dealDictObjData({}, data.enterprise) }
|
|
|
getCollectionStatus(props.id)
|
|
|
+ // 企业实名认证信息
|
|
|
+ authInfo.value = await getEnterpriseAuthDetails(props.id)
|
|
|
}
|
|
|
getDetails()
|
|
|
|
|
|
+const statusInfo = computed(() => {
|
|
|
+ const obj = (authInfo.value && Object.keys(authInfo.value).length) ? statusList.find(e => e.value === authInfo.value.status) : statusList[0]
|
|
|
+ return obj
|
|
|
+})
|
|
|
+
|
|
|
// 效验求职者是否关注该企业
|
|
|
const isCollection = ref(false)
|
|
|
const getCollectionStatus = async (id) => {
|