提交 caf3a70d 作者: ZhangLingKun

Merge branch 'master' into develop

流水线 #8501 已通过 于阶段
in 1 分 1 秒
...@@ -14,4 +14,4 @@ patches: ...@@ -14,4 +14,4 @@ patches:
images: images:
- name: REGISTRY/NAMESPACE/IMAGE:TAG - name: REGISTRY/NAMESPACE/IMAGE:TAG
newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/admin newName: mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly/admin
newTag: cc1ebccedbfcd03220d7ae2615af87e5a3d9ce04 newTag: 4965923d95520a511bc18e51605b6877096bbceb
...@@ -27,6 +27,7 @@ type flyerItemType = { ...@@ -27,6 +27,7 @@ type flyerItemType = {
userName: number; userName: number;
yearsOfWorking: number; yearsOfWorking: number;
reason: string; reason: string;
pilotResume?: string;
}; };
export type backListPilotType = InterItemFunction< export type backListPilotType = InterItemFunction<
{ {
......
import { FlyerCenterAPI } from '~/api'; import { FlyerCenterAPI } from '~/api';
import { useSearchParams, useNavigate } from 'react-router-dom'; import { useSearchParams, useNavigate } from 'react-router-dom';
import { useEffect, useState } from 'react'; import React, { useEffect, useState } from 'react';
import { InterDataType } from '~/api/interface'; import { InterDataType } from '~/api/interface';
import { backDetailPilotType } from '~/api/interface/flyerCenterType'; import { backDetailPilotType } from '~/api/interface/flyerCenterType';
import { Badge, Button, Col, Descriptions, Image, Row, Tag } from 'antd'; import { Badge, Button, Col, Descriptions, Image, Row, Tag } from 'antd';
import './index.scss'; import './index.scss';
import ApproveModal from './components/approveModal'; import ApproveModal from './components/approveModal';
import { PlusOutlined } from '@ant-design/icons';
import { Uploader } from '~/components/uploader';
//飞手详情返回类型 //飞手详情返回类型
type flyerDetailType = InterDataType<backDetailPilotType>; type flyerDetailType = InterDataType<backDetailPilotType>;
...@@ -38,6 +40,14 @@ const FlyerDetail = () => { ...@@ -38,6 +40,14 @@ const FlyerDetail = () => {
const backRoute = () => { const backRoute = () => {
navigate(-1); navigate(-1);
}; };
// 转换飞手简历
const getPilotResume = () => {
try {
return JSON.parse(flyerDetail?.pilotResume || '[]');
} catch (e) {
return [];
}
};
useEffect(() => { useEffect(() => {
getFlyerDetail(Number(searchParams.get('id'))); getFlyerDetail(Number(searchParams.get('id')));
...@@ -78,15 +88,15 @@ const FlyerDetail = () => { ...@@ -78,15 +88,15 @@ const FlyerDetail = () => {
flyerDetail?.auditStatus === 0 flyerDetail?.auditStatus === 0
? 'processing' ? 'processing'
: flyerDetail?.auditStatus === 1 : flyerDetail?.auditStatus === 1
? 'success' ? 'success'
: 'error' : 'error'
} }
text={ text={
flyerDetail?.auditStatus === 0 flyerDetail?.auditStatus === 0
? '审核中' ? '审核中'
: flyerDetail?.auditStatus === 1 : flyerDetail?.auditStatus === 1
? '已通过' ? '已通过'
: '未通过' : '未通过'
} }
/> />
{flyerDetail?.auditStatus === 2 ? ( {flyerDetail?.auditStatus === 2 ? (
...@@ -101,6 +111,16 @@ const FlyerDetail = () => { ...@@ -101,6 +111,16 @@ const FlyerDetail = () => {
<Descriptions.Item label='执照图片'> <Descriptions.Item label='执照图片'>
<Image src={flyerDetail?.licenseUrl} width={100} /> <Image src={flyerDetail?.licenseUrl} width={100} />
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label='飞手简历'>
<Uploader
listType={'picture-card'}
fileUpload
disabled={true}
defaultFileList={getPilotResume()}
>
<PlusOutlined />
</Uploader>
</Descriptions.Item>
</Descriptions> </Descriptions>
</div> </div>
</Col> </Col>
...@@ -110,9 +130,7 @@ const FlyerDetail = () => { ...@@ -110,9 +130,7 @@ const FlyerDetail = () => {
<Descriptions.Item label='常驻地'>{flyerDetail?.residentCity}</Descriptions.Item> <Descriptions.Item label='常驻地'>{flyerDetail?.residentCity}</Descriptions.Item>
<Descriptions.Item label='工作年限'>{flyerDetail?.yearsOfWorking}</Descriptions.Item> <Descriptions.Item label='工作年限'>{flyerDetail?.yearsOfWorking}</Descriptions.Item>
<Descriptions.Item label='能力'> <Descriptions.Item label='能力'>
{flyerDetail?.pilotAbility.map((v) => ( {flyerDetail?.pilotAbility.map((v) => <Tag key={v.id}>{v.abilityName}</Tag>)}
<Tag key={v.id}>{v.abilityName}</Tag>
))}
</Descriptions.Item> </Descriptions.Item>
<Descriptions.Item label='业务案例'> <Descriptions.Item label='业务案例'>
{flyerDetail?.abilityUrl ? ( {flyerDetail?.abilityUrl ? (
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论