Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
caf3a70d
提交
caf3a70d
authored
3月 15, 2024
作者:
ZhangLingKun
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'master' into develop
上级
9b50adcf
fcc3c033
流水线
#8501
已通过 于阶段
in 1 分 1 秒
变更
3
流水线
1
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
28 行增加
和
9 行删除
+28
-9
kustomization.yaml
kustomization/overlays/prod/kustomization.yaml
+1
-1
flyerCenterType.ts
src/api/interface/flyerCenterType.ts
+1
-0
index.tsx
src/pages/flyerManage/flyerDetail/index.tsx
+26
-8
没有找到文件。
kustomization/overlays/prod/kustomization.yaml
浏览文件 @
caf3a70d
...
@@ -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
src/api/interface/flyerCenterType.ts
浏览文件 @
caf3a70d
...
@@ -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
<
{
{
...
...
src/pages/flyerManage/flyerDetail/index.tsx
浏览文件 @
caf3a70d
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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论