Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
iuav
admin
Commits
60bf6ec0
提交
60bf6ec0
authored
8月 04, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
功能:客户列表备注修改,认证状态筛选
上级
967c6918
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
104 行增加
和
12 行删除
+104
-12
customManageType.ts
src/api/interface/customManageType.ts
+5
-0
customManage.ts
src/api/modules/customManage.ts
+4
-0
index.tsx
src/pages/customManage/customList/index.tsx
+16
-11
index.tsx
.../customVerification/list/components/remarkModal/index.tsx
+46
-0
index.tsx
src/pages/customManage/customVerification/list/index.tsx
+30
-0
index.tsx
src/pages/flyerCenter/flyerManage/flyerDetail/index.tsx
+1
-1
index.tsx
src/pages/flyerCenter/flyerManage/flyerList/index.tsx
+2
-0
没有找到文件。
src/api/interface/customManageType.ts
浏览文件 @
60bf6ec0
...
...
@@ -8,6 +8,7 @@ export type listAppUserType = InterListFunction<
keyword
?:
string
;
phoneNum
?:
string
;
startTime
?:
string
;
realAuthStatus
?:
number
;
},
{
id
:
number
;
...
...
@@ -28,6 +29,7 @@ export type listAppUserType = InterListFunction<
companyAuthStatus
:
number
;
cooperationTagId
:
number
;
companyName
:
null
;
realAuthStatus
:
number
;
tagName
:
null
;
cooperationTagVOS
:
{
createTime
:
string
;
...
...
@@ -247,6 +249,7 @@ export type listAuthPageType = InterItemFunction<
uid
:
string
;
userName
:
string
;
createTime
:
string
;
remark
:
string
;
}[]
>
;
//实名认证详情返回类型
...
...
@@ -262,3 +265,5 @@ export type authDetailType = InterFunction<
userName
:
string
;
}
>
;
//实名认证-更新备注
export
type
authRemarkType
=
InterFunction
<
{
id
:
number
;
remark
:
string
},
any
>
;
src/api/modules/customManage.ts
浏览文件 @
60bf6ec0
...
...
@@ -3,6 +3,7 @@ import {
applyTagDetails
,
approvalApplyTag
,
authDetailType
,
authRemarkType
,
changeUserTagNew
,
changeUserTagType
,
CompanyListTag
,
...
...
@@ -63,4 +64,7 @@ export class CustomManageAPI {
// 客户-实名认证详情
static
getAuthDetail
:
authDetailType
=
(
params
)
=>
axios
.
get
(
'/userapp/real-name-auth/detail'
,
{
params
});
// 客户-实名认证更新备注
static
updateRemark
:
authRemarkType
=
(
params
)
=>
axios
.
get
(
'/userapp/real-name-auth/updateRemark'
,
{
params
});
}
src/pages/customManage/customList/index.tsx
浏览文件 @
60bf6ec0
...
...
@@ -60,7 +60,6 @@ function CustomListView() {
totalPage
,
});
setTableData
(
list
);
// console.log('加载列表 --->', list);
}
};
// 翻页
...
...
@@ -124,6 +123,12 @@ function CustomListView() {
align
:
'center'
,
},
{
title
:
'实名认证'
,
dataIndex
:
'realNameAuthStatus'
,
align
:
'center'
,
render
:
(
text
:
number
)
=>
(
text
?
'已认证'
:
'未认证'
),
},
{
title
:
'认证企业'
,
dataIndex
:
'companyName'
,
align
:
'center'
,
...
...
@@ -264,16 +269,16 @@ function CustomListView() {
{ value: 1, label: '已认证' },
],
},
//
{
// label: '电子签约
认证',
// name: 'contract
',
//
type: 'Select',
// placeholder: '请选择是否认证
',
//
options: [
// { value: 1
, label: '未认证' },
// { value: 2
, label: '已认证' },
//
],
//
},
{
label: '实名
认证',
name: 'realAuthStatus
',
type: 'Select',
placeholder: '请选择认证状态
',
options: [
{ value: 0
, label: '未认证' },
{ value: 1
, label: '已认证' },
],
},
]}
searchData={onFinish}
/>
...
...
src/pages/customManage/customVerification/list/components/remarkModal/index.tsx
0 → 100644
浏览文件 @
60bf6ec0
import
{
Form
,
Input
,
message
,
Modal
,
ModalProps
}
from
'antd'
;
import
{
FC
,
useEffect
}
from
'react'
;
import
{
InterDataType
}
from
'~/api/interface'
;
import
{
listAuthPageType
}
from
'~/api/interface/customManageType'
;
import
{
CustomManageAPI
}
from
'~/api'
;
type
listAuthType
=
InterDataType
<
listAuthPageType
>
[
'list'
];
interface
selfProps
{
onOk
:
()
=>
void
;
currentAuthItem
:
listAuthType
[
0
]
|
undefined
;
}
//实名认证列表返回类型
const
RemarkModal
:
FC
<
ModalProps
&
selfProps
>
=
({
open
,
onCancel
,
onOk
,
currentAuthItem
})
=>
{
const
[
form
]
=
Form
.
useForm
<
{
remark
:
string
}
>
();
const
handleOk
=
()
=>
{
if
(
currentAuthItem
)
{
form
.
validateFields
().
then
((
values
)
=>
{
CustomManageAPI
.
updateRemark
({
id
:
currentAuthItem
.
id
,
...
values
}).
then
(({
code
})
=>
{
if
(
code
===
'200'
)
{
message
.
success
(
'更新备注成功'
);
onOk
();
}
});
});
}
};
useEffect
(()
=>
{
if
(
currentAuthItem
)
{
form
.
setFieldValue
(
'remark'
,
currentAuthItem
.
remark
||
undefined
);
}
},
[
currentAuthItem
]);
return
(
<
Modal
open=
{
open
}
onCancel=
{
onCancel
}
onOk=
{
handleOk
}
title=
'备注弹窗'
>
<
Form
form=
{
form
}
>
<
Form
.
Item
label=
'备注'
name=
'remark'
>
<
Input
.
TextArea
placeholder=
'请输入备注'
maxLength=
{
70
}
showCount
rows=
{
4
}
/>
</
Form
.
Item
>
</
Form
>
</
Modal
>
);
};
export
default
RemarkModal
;
src/pages/customManage/customVerification/list/index.tsx
浏览文件 @
60bf6ec0
...
...
@@ -6,6 +6,7 @@ import { CustomManageAPI } from '~/api';
import
{
InterDataType
,
InterReqListType
,
PaginationProps
}
from
'~/api/interface'
;
import
{
listAuthPageType
}
from
'~/api/interface/customManageType'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
RemarkModal
from
'~/pages/customManage/customVerification/list/components/remarkModal'
;
//实名认证列表返回类型
type
listAuthType
=
InterDataType
<
listAuthPageType
>
[
'list'
];
...
...
@@ -53,6 +54,13 @@ const CustomVerification = () => {
title
:
'备注'
,
align
:
'center'
,
dataIndex
:
'remark'
,
width
:
'20%'
,
ellipsis
:
true
,
render
:
(
text
:
string
,
record
)
=>
(
<
Button
type=
'link'
onClick=
{
()
=>
remarkModalShowClick
(
record
)
}
>
{
text
||
'--'
}
</
Button
>
),
},
{
title
:
'操作'
,
...
...
@@ -72,6 +80,9 @@ const CustomVerification = () => {
pageSize
:
10
,
totalCount
:
0
,
});
//备注弹窗
const
[
remarkModalShow
,
setRemarkModalShow
]
=
useState
<
boolean
>
(
false
);
const
[
currentAuthItem
,
setCurrentAuthItem
]
=
useState
<
listAuthType
[
0
]
>
();
const
getAuthList
=
(
query
?:
listAuthParametersType
)
=>
{
CustomManageAPI
.
getListAuth
({
...
...
@@ -102,6 +113,19 @@ const CustomVerification = () => {
navigate
({
pathname
:
'/customManage/customVerificationDetail'
,
search
:
`id=
${
record
.
id
}
`
});
};
//修改备注操作
const
remarkModalShowClick
=
(
record
:
listAuthType
[
0
])
=>
{
setCurrentAuthItem
({
...
record
});
setRemarkModalShow
(
true
);
};
const
remarkModalCancel
=
()
=>
{
setRemarkModalShow
(
false
);
};
const
remarkModalOk
=
()
=>
{
getAuthList
(
query
);
setRemarkModalShow
(
false
);
};
useEffect
(()
=>
{
getAuthList
();
},
[]);
...
...
@@ -124,6 +148,12 @@ const CustomVerification = () => {
showTotal
:
(
total
,
range
)
=>
`当前 ${range[0]}-${range[1]} 条记录 / 共 ${total} 条数据`
,
}
}
/>
<
RemarkModal
open=
{
remarkModalShow
}
onCancel=
{
remarkModalCancel
}
onOk=
{
remarkModalOk
}
currentAuthItem=
{
currentAuthItem
}
/>
</
div
>
);
};
...
...
src/pages/flyerCenter/flyerManage/flyerDetail/index.tsx
浏览文件 @
60bf6ec0
...
...
@@ -91,7 +91,7 @@ const FlyerDetail = () => {
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
'业务案例'
>
{
flyerDetail
?.
abilityUrl
?
(
<
Image
.
PreviewGroup
items=
{
JSON
.
parse
(
flyerDetail
?.
abilityUrl
)
}
>
<
Image
.
PreviewGroup
>
{
JSON
.
parse
(
flyerDetail
?.
abilityUrl
).
map
((
v
:
string
,
index
:
number
)
=>
(
<
Image
src=
{
v
}
key=
{
index
}
width=
{
100
}
rootClassName=
'ability-img'
/>
))
}
...
...
src/pages/flyerCenter/flyerManage/flyerList/index.tsx
浏览文件 @
60bf6ec0
...
...
@@ -95,6 +95,8 @@ const FlyerList = () => {
title
:
'备注'
,
align
:
'center'
,
dataIndex
:
'remark'
,
width
:
'20%'
,
ellipsis
:
true
,
render
:
(
text
:
string
,
record
)
=>
(
<
Button
type=
'link'
onClick=
{
()
=>
updateRemarkClick
(
record
)
}
>
{
text
||
'--'
}
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论