Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
bb8031a1
提交
bb8031a1
authored
8月 04, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
修复:飞手详情审批状态
上级
f5c5966e
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
75 行增加
和
4 行删除
+75
-4
index.tsx
...e/serviceCategoryList/components/addOrEditModal/index.tsx
+29
-0
index.tsx
src/pages/categoryManage/serviceCategoryList/index.tsx
+25
-1
index.tsx
src/pages/flyerCenter/flyerManage/flyerDetail/index.tsx
+21
-3
没有找到文件。
src/pages/categoryManage/serviceCategoryList/components/addOrEditModal/index.tsx
浏览文件 @
bb8031a1
import
{
FC
}
from
'react'
;
import
{
Form
,
Input
,
Modal
,
ModalProps
}
from
'antd'
;
interface
selfProps
{
onCancel
:
()
=>
void
;
onOk
:
()
=>
void
;
}
const
AddOrEditModal
:
FC
<
ModalProps
&
selfProps
>
=
({
open
,
onCancel
,
onOk
})
=>
{
const
handleCancel
=
()
=>
{
onCancel
();
};
const
handleOk
=
()
=>
{
onOk
();
};
return
(
<
Modal
title=
'新增分类'
open=
{
open
}
onCancel=
{
handleCancel
}
onOk=
{
handleOk
}
>
<
Form
>
<
Form
.
Item
label=
'分类名称'
>
<
Input
placeholder=
'请输入分类名称'
/>
</
Form
.
Item
>
<
Form
.
Item
label=
'分类图标'
></
Form
.
Item
>
<
Form
.
Item
label=
'分类描述'
></
Form
.
Item
>
</
Form
>
</
Modal
>
);
};
export
default
AddOrEditModal
;
src/pages/categoryManage/serviceCategoryList/index.tsx
浏览文件 @
bb8031a1
import
{
Button
,
Table
}
from
'antd'
;
import
{
Button
,
Table
}
from
'antd'
;
import
{
ArrowDownOutlined
,
ArrowUpOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
ArrowDownOutlined
,
ArrowUpOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
AddOrEditModal
from
'./components/addOrEditModal'
;
import
{
useState
}
from
'react'
;
const
ServiceCategoryList
=
()
=>
{
const
ServiceCategoryList
=
()
=>
{
const
tableColumns
:
ColumnsType
<
any
>
=
[
const
tableColumns
:
ColumnsType
<
any
>
=
[
...
@@ -33,17 +35,39 @@ const ServiceCategoryList = () => {
...
@@ -33,17 +35,39 @@ const ServiceCategoryList = () => {
align
:
'center'
,
align
:
'center'
,
},
},
];
];
const
[
addOrEditModalShow
,
setAddOrEditModalShow
]
=
useState
<
boolean
>
(
false
);
//新增分类弹窗
const
addOrEditModalClick
=
()
=>
{
setAddOrEditModalShow
(
true
);
};
const
addOrEditModalOk
=
()
=>
{
setAddOrEditModalShow
(
false
);
};
const
addOrEditModalCancel
=
()
=>
{
setAddOrEditModalShow
(
false
);
};
return
(
return
(
<
div
className=
'service-category-list'
>
<
div
className=
'service-category-list'
>
<
div
className=
'list-operate'
style=
{
{
marginBottom
:
'10px'
}
}
>
<
div
className=
'list-operate'
style=
{
{
marginBottom
:
'10px'
}
}
>
<
Button
type=
'primary'
icon=
{
<
PlusOutlined
/>
}
style=
{
{
marginRight
:
'10px'
}
}
>
<
Button
type=
'primary'
icon=
{
<
PlusOutlined
/>
}
style=
{
{
marginRight
:
'10px'
}
}
onClick=
{
addOrEditModalClick
}
>
新增分类
新增分类
</
Button
>
</
Button
>
<
Button
icon=
{
<
ArrowUpOutlined
/>
}
style=
{
{
marginRight
:
'10px'
}
}
type=
'primary'
></
Button
>
<
Button
icon=
{
<
ArrowUpOutlined
/>
}
style=
{
{
marginRight
:
'10px'
}
}
type=
'primary'
></
Button
>
<
Button
icon=
{
<
ArrowDownOutlined
/>
}
type=
'primary'
></
Button
>
<
Button
icon=
{
<
ArrowDownOutlined
/>
}
type=
'primary'
></
Button
>
</
div
>
</
div
>
<
Table
columns=
{
tableColumns
}
bordered
/>
<
Table
columns=
{
tableColumns
}
bordered
/>
<
AddOrEditModal
open=
{
addOrEditModalShow
}
onOk=
{
addOrEditModalOk
}
onCancel=
{
addOrEditModalCancel
}
/>
</
div
>
</
div
>
);
);
};
};
...
...
src/pages/flyerCenter/flyerManage/flyerDetail/index.tsx
浏览文件 @
bb8031a1
...
@@ -3,7 +3,7 @@ import { useSearchParams, useNavigate } from 'react-router-dom';
...
@@ -3,7 +3,7 @@ import { useSearchParams, useNavigate } from 'react-router-dom';
import
{
useEffect
,
useState
}
from
'react'
;
import
{
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
{
Button
,
Col
,
Descriptions
,
Image
,
Row
,
Tag
}
from
'antd'
;
import
{
B
adge
,
B
utton
,
Col
,
Descriptions
,
Image
,
Row
,
Tag
}
from
'antd'
;
import
'./index.scss'
;
import
'./index.scss'
;
import
ApproveModal
from
'./components/approveModal'
;
import
ApproveModal
from
'./components/approveModal'
;
...
@@ -70,12 +70,30 @@ const FlyerDetail = () => {
...
@@ -70,12 +70,30 @@ const FlyerDetail = () => {
<
Descriptions
title=
'执照认证'
bordered
column=
{
1
}
labelStyle=
{
{
width
:
'100px'
}
}
>
<
Descriptions
title=
'执照认证'
bordered
column=
{
1
}
labelStyle=
{
{
width
:
'100px'
}
}
>
<
Descriptions
.
Item
label=
'执照类型'
>
{
flyerDetail
?.
licenseType
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'执照类型'
>
{
flyerDetail
?.
licenseType
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'执照编号'
>
{
flyerDetail
?.
licenseNumber
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'执照编号'
>
{
flyerDetail
?.
licenseNumber
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'执照图片'
>
<
Descriptions
.
Item
label=
'认证状态'
>
<
Image
src=
{
flyerDetail
?.
licenseUrl
}
width=
{
100
}
/>
<
Badge
status=
{
flyerDetail
?.
auditStatus
===
0
?
'processing'
:
flyerDetail
?.
auditStatus
===
1
?
'success'
:
'error'
}
text=
{
flyerDetail
?.
auditStatus
===
0
?
'审核中'
:
flyerDetail
?.
auditStatus
===
1
?
'已通过'
:
'未通过'
}
/>
</
Descriptions
.
Item
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'个人简介'
>
<
Descriptions
.
Item
label=
'个人简介'
>
{
flyerDetail
?.
individualResume
}
{
flyerDetail
?.
individualResume
}
</
Descriptions
.
Item
>
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'执照图片'
>
<
Image
src=
{
flyerDetail
?.
licenseUrl
}
width=
{
100
}
/>
</
Descriptions
.
Item
>
</
Descriptions
>
</
Descriptions
>
</
div
>
</
div
>
</
Col
>
</
Col
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论