<template>
|
<LoadingLayout :loading="isLoading" :error="isError" :loadError="refetch">
|
<JobDetailContent
|
:avatar="userResumeInfo.avatar"
|
:name="userResumeInfo.name"
|
:age="userResumeInfo.age"
|
:isReal="userResumeInfo.isReal"
|
:gender="userResumeInfo.gender"
|
:personalIdentityContent="userResumeInfo.personalIdentityContent"
|
:educationalBackgroundContent="userResumeInfo.educationalBackgroundContent"
|
:taskCount="userResumeInfo.taskCount"
|
:contactPhoneNumber="userResumeInfo.contactPhoneNumber"
|
:identity="userResumeInfo.identity"
|
:userExpectJobs="userResumeInfo.userExpectJobs"
|
:freeTime="userResumeInfo.freeTime"
|
:jobSeekingStatus="userResumeInfo.jobSeekingStatus"
|
:userCredentials="userResumeInfo.userCredentials"
|
:workSeniority="userResumeInfo.workSeniority"
|
:workExperience="userResumeInfo.workExperience"
|
:photos="userResumeInfo.photos"
|
:height="userResumeInfo.height"
|
:weight="userResumeInfo.weight"
|
:taskInfoUsers="userResumeInfo.taskInfoUsers"
|
:isCollapse="true"
|
>
|
<template #footer>
|
<PageFooterBtn
|
v-if="
|
enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Pass
|
"
|
type="primary"
|
plain
|
>解约</PageFooterBtn
|
>
|
<PageFooterBtn
|
type="primary"
|
@click="goToSign"
|
v-if="
|
enterpriseEmployeeInfo.userSignContractStatus === EnumTaskUserSignContractStatus.Wait
|
"
|
>签约</PageFooterBtn
|
>
|
</template>
|
</JobDetailContent>
|
</LoadingLayout>
|
</template>
|
|
<script setup lang="ts">
|
import Taro from '@tarojs/taro';
|
import { EnumTaskUserSignContractStatus } from '@12333/constants';
|
import { useGetEnterpriseEmployee, useUserResume } from '@12333/hooks';
|
|
defineOptions({
|
name: 'InnerPage',
|
});
|
|
const router = Taro.useRouter();
|
const enterpriseEmployeeId = router.params?.enterpriseEmployeeId ?? '';
|
|
const { isLoading, isError, userResumeInfo, refetch } = useUserResume({
|
enterpriseEmployeeId: enterpriseEmployeeId,
|
});
|
|
const { enterpriseEmployeeInfo } = useGetEnterpriseEmployee({
|
id: enterpriseEmployeeId,
|
});
|
|
function goToSign() {
|
Taro.navigateTo({
|
url: `${RouterPath.flexJobSign}?enterpriseEmployeeId=${enterpriseEmployeeId}`,
|
});
|
}
|
</script>
|
|
<style lang="scss">
|
@import '@/styles/common.scss';
|
</style>
|