Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
A
admin-ci-test
概览
概览
详情
活动
周期分析
版本库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
问题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程表
图表
维基
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
test-ci
admin-ci-test
Commits
e3cbdbdf
提交
e3cbdbdf
authored
10月 24, 2023
作者:
龚洪江
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'develop'
上级
131b2f37
f12f80e2
隐藏空白字符变更
内嵌
并排
正在显示
27 个修改的文件
包含
285 行增加
和
89 行删除
+285
-89
kustomization.yaml
kustomization/overlays/dev/kustomization.yaml
+1
-1
customManageType.ts
src/api/interface/customManageType.ts
+12
-0
flyerCenterType.ts
src/api/interface/flyerCenterType.ts
+9
-0
forumManageType.ts
src/api/interface/forumManageType.ts
+10
-1
customManage.ts
src/api/modules/customManage.ts
+4
-0
flyerCenterAPI.ts
src/api/modules/flyerCenterAPI.ts
+4
-0
forumManageAPI.ts
src/api/modules/forumManageAPI.ts
+4
-0
index.tsx
src/components/order/productOrder/sureOrder/index.tsx
+8
-1
index.scss
src/pages/customManage/customIdentity/index.scss
+8
-0
index.tsx
src/pages/customManage/customIdentity/index.tsx
+39
-4
index.tsx
src/pages/customManage/customList/index.tsx
+22
-6
index.tsx
src/pages/customManage/flyerManage/flyerAuthDaily/index.tsx
+0
-0
index.tsx
...flyerManage/flyerDetail/components/approveModal/index.tsx
+0
-0
index.scss
src/pages/customManage/flyerManage/flyerDetail/index.scss
+0
-0
index.tsx
src/pages/customManage/flyerManage/flyerDetail/index.tsx
+0
-0
index.tsx
...erManage/flyerList/components/updateRemarkModal/index.tsx
+0
-0
index.scss
src/pages/customManage/flyerManage/flyerList/index.scss
+8
-0
index.tsx
src/pages/customManage/flyerManage/flyerList/index.tsx
+29
-1
index.tsx
...Manage/withDrawList/components/applyStatusModal/index.tsx
+3
-3
index.tsx
src/pages/depleteManage/withDrawList/index.tsx
+1
-1
index.scss
src/pages/forumManage/dynamicList/index.scss
+6
-0
index.tsx
src/pages/forumManage/dynamicList/index.tsx
+69
-17
index.tsx
src/pages/forumManage/topicList/index.tsx
+6
-0
index.tsx
src/pages/orderManage/equipmentOrder/index.tsx
+1
-1
index.tsx
src/pages/orderManage/productOrder/orderList/index.tsx
+2
-2
index.tsx
src/pages/pointManage/pointList/index.tsx
+9
-9
router.tsx
src/router/router.tsx
+30
-42
没有找到文件。
kustomization/overlays/dev/kustomization.yaml
浏览文件 @
e3cbdbdf
...
...
@@ -14,4 +14,4 @@ patches:
images
:
-
name
:
REGISTRY/NAMESPACE/IMAGE:TAG
newName
:
mmc-registry.cn-shenzhen.cr.aliyuncs.com/sharefly-dev/admin
newTag
:
ad200dc1515c0c4aabd0709d354c997064ba1b19
newTag
:
14772f8788209f9b1f126639bb73e51b9256c3b7
src/api/interface/customManageType.ts
浏览文件 @
e3cbdbdf
...
...
@@ -9,6 +9,7 @@ export type listAppUserType = InterListFunction<
phoneNum
?:
string
;
startTime
?:
string
;
realAuthStatus
?:
number
;
xzAuthStatus
?:
number
;
},
{
id
:
number
;
...
...
@@ -49,6 +50,7 @@ export type listAppUserType = InterListFunction<
userAccountId
:
number
;
};
inviteCount
:
number
;
xzAuthStatus
:
number
;
}
>
;
// 加盟标签列表
...
...
@@ -268,3 +270,13 @@ export type authDetailType = InterFunction<
>
;
//实名认证-更新备注
export
type
authRemarkType
=
InterFunction
<
{
id
:
number
;
remark
:
string
},
any
>
;
// 商家列表-数据统计
export
type
listAppUserCountType
=
InterFunction
<
any
,
{
failAuditSum
:
number
;
passAuditSum
:
number
;
unAuditedSum
:
number
;
}
>
;
src/api/interface/flyerCenterType.ts
浏览文件 @
e3cbdbdf
...
...
@@ -69,3 +69,12 @@ export type updateAuditStatusType = InterFunction<
>
;
//飞手审批不通过原因列表
export
type
backListReasonType
=
InterFunction
<
any
,
{
id
:
number
;
reason
:
string
}[]
>
;
// 飞手审批数据统计
export
type
getPilotAuditSumType
=
InterFunction
<
any
,
{
failPilotAuditSum
:
number
;
passPilotAuditSum
:
number
;
unAuditedPilotSum
:
number
;
}
>
;
src/api/interface/forumManageType.ts
浏览文件 @
e3cbdbdf
...
...
@@ -2,7 +2,7 @@ import { InterFunction, InterListFunction } from '~/api/interface';
//论坛-列表
export
type
forumListType
=
InterListFunction
<
{
keyword
?:
string
},
{
keyword
?:
string
;
static
?:
number
},
{
id
:
number
;
description
:
string
;
...
...
@@ -142,3 +142,12 @@ export type updateGambitType = InterFunction<
},
any
>
;
// 话题-状态个数统计
export
type
countGambitType
=
InterFunction
<
any
,
{
failAuditSum
:
number
;
passAuditSum
:
number
;
unAuditedSum
:
number
;
}
>
;
src/api/modules/customManage.ts
浏览文件 @
e3cbdbdf
...
...
@@ -11,6 +11,7 @@ import {
deleteApplyTag
,
editUserApplyTag
,
editUserApplyTagDetails
,
listAppUserCountType
,
listAppUserType
,
listAuthPageType
,
listUserApplyTag
,
...
...
@@ -67,4 +68,7 @@ export class CustomManageAPI {
// 客户-实名认证更新备注
static
updateRemark
:
authRemarkType
=
(
params
)
=>
axios
.
get
(
'/userapp/real-name-auth/updateRemark'
,
{
params
});
// 商家列表-数据统计
static
getListAppUserCount
:
listAppUserCountType
=
()
=>
axios
.
get
(
'/userapp/cooperation/getAuditSum'
);
}
src/api/modules/flyerCenterAPI.ts
浏览文件 @
e3cbdbdf
...
...
@@ -4,6 +4,7 @@ import {
backListPilotType
,
backListReasonType
,
backPilotLogListType
,
getPilotAuditSumType
,
updateAuditStatusType
,
updateRemarkType
,
}
from
'~/api/interface/flyerCenterType'
;
...
...
@@ -28,4 +29,7 @@ export class FlyerCenterAPI {
axios
.
post
(
'/userapp/pilot/updateAuditStatus'
,
data
);
// 飞手审批不通过原因
static
getBackListReason
:
backListReasonType
=
()
=>
axios
.
get
(
'/userapp/pilot/backListReason'
);
// 飞手审批数据统计
static
getPilotAuditSum
:
getPilotAuditSumType
=
()
=>
axios
.
get
(
'/userapp/pilot/getPilotAuditSum'
);
}
src/api/modules/forumManageAPI.ts
浏览文件 @
e3cbdbdf
import
{
addGambitType
,
checkDynamicType
,
countGambitType
,
deleteForumType
,
deleteGambitType
,
forumDetailType
,
...
...
@@ -41,4 +42,7 @@ export class ForumManageAPI {
// 话题-编辑
static
updateGambit
:
updateGambitType
=
(
data
)
=>
axios
.
post
(
'/release/gambit/updateGambit'
,
data
);
// 话题-统计个数
static
getCountGambit
:
countGambitType
=
()
=>
axios
.
get
(
'/release/backstage/forum/getDynamicAuditSum'
);
}
src/components/order/productOrder/sureOrder/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -38,7 +38,14 @@ interface selfProps {
type
:
number
;
//0:采购订单,1:商城订单
}
const
SureOrder
:
FC
<
ModalProps
&
selfProps
>
=
({
open
,
onOk
,
onCancel
,
orderItem
,
type
})
=>
{
const
SureOrder
:
FC
<
ModalProps
&
selfProps
>
=
({
open
,
onOk
,
onCancel
,
orderItem
,
type
,
updateContract
,
})
=>
{
const
navigate
=
useNavigate
();
const
[
orderInfoForm
]
=
Form
.
useForm
<
{
orderTotalAmount
:
number
;
...
...
src/pages/customManage/customIdentity/index.scss
0 → 100644
浏览文件 @
e3cbdbdf
.custom-identity
{
.data-statistics
{
display
:
flex
;
align-items
:
center
;
color
:
red
;
justify-content
:
flex-end
;
}
}
src/pages/customManage/customIdentity/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -3,15 +3,19 @@ import SearchBox from '~/components/search-box';
import
{
CustomManageAPI
}
from
'~/api'
;
import
{
Button
,
message
,
Modal
,
Rate
,
Table
}
from
'antd'
;
import
{
ColumnsType
}
from
'antd/es/table'
;
import
{
InterListType
,
InterReqListType
}
from
'~/api/interface'
;
import
{
listUserApplyTag
}
from
'~/api/interface/customManageType'
;
import
{
Inter
DataType
,
Inter
ListType
,
InterReqListType
}
from
'~/api/interface'
;
import
{
list
AppUserCountType
,
list
UserApplyTag
}
from
'~/api/interface/customManageType'
;
import
ApprovalModal
from
'./comp/approvalModal'
;
import
AddEditModal
from
'~/pages/customManage/customIdentity/comp/addEditModal'
;
import
'./index.scss'
;
// 列表类型
type
TableType
=
InterListType
<
listUserApplyTag
>
;
// 请求的参数
type
ReqType
=
InterReqListType
<
listUserApplyTag
>
;
// 统计数据返回类型
type
statisticsDataType
=
InterDataType
<
listAppUserCountType
>
;
// 搜索表单的数据
let
query
:
ReqType
=
{};
// 审批状态
...
...
@@ -40,6 +44,9 @@ const CustomIdentityView = () => {
current
:
1
,
totalPage
:
0
,
});
// 数据统计
const
[
statisticsData
,
setStatisticsDataType
]
=
useState
<
statisticsDataType
>
();
// 加载列表
const
getTableList
=
async
(
value
=
{})
=>
{
// 只需要修改这个地方的接口即可
...
...
@@ -91,13 +98,24 @@ const CustomIdentityView = () => {
tableData
.
length
===
1
?
pagination
.
current
-
1
:
pagination
.
current
,
pagination
.
pageSize
,
);
getListAppUserCount
();
}
},
});
};
// 商家加盟状态数据统计
const
getListAppUserCount
=
()
=>
{
CustomManageAPI
.
getListAppUserCount
().
then
(({
result
})
=>
{
if
(
result
)
{
setStatisticsDataType
(
result
);
}
});
};
useEffect
(()
=>
{
getCooperationList
().
then
();
getTableList
().
then
();
getListAppUserCount
();
},
[]);
// 表格结构
const
columns
:
ColumnsType
<
TableType
[
0
]
>
=
[
...
...
@@ -192,7 +210,7 @@ const CustomIdentityView = () => {
},
];
return
(
<>
<
div
className=
'custom-identity'
>
<
SearchBox
search=
{
[
{
...
...
@@ -223,6 +241,22 @@ const CustomIdentityView = () => {
},
]
}
searchData=
{
onFinish
}
sufFixBtn=
{
<
div
className=
'data-statistics'
>
<
div
>
<
span
>
已通过:
</
span
>
<
span
>
{
statisticsData
?.
passAuditSum
||
0
}
</
span
>
</
div
>
<
div
>
<
span
>
审批中:
</
span
>
<
span
>
{
statisticsData
?.
unAuditedSum
||
0
}
</
span
>
</
div
>
<
div
>
<
span
>
未通过:
</
span
>
<
span
>
{
statisticsData
?.
failAuditSum
||
0
}
</
span
>
</
div
>
</
div
>
}
/>
<
Table
size=
'small'
...
...
@@ -250,6 +284,7 @@ const CustomIdentityView = () => {
setApprovalModalVisible
(
false
);
setEditData
(
undefined
);
paginationChange
(
pagination
.
current
,
pagination
.
pageSize
);
getListAppUserCount
();
}
}
/>
{
/*编辑弹窗*/
}
...
...
@@ -263,7 +298,7 @@ const CustomIdentityView = () => {
paginationChange
(
pagination
.
current
,
pagination
.
pageSize
);
}
}
/>
</>
</
div
>
);
};
...
...
src/pages/customManage/customList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -123,15 +123,15 @@ function CustomListView() {
render
:
(
text
:
number
)
=>
(
text
?
'已认证'
:
'未认证'
),
},
{
title
:
'认证企业'
,
dataIndex
:
'companyName'
,
align
:
'center'
,
},
{
title
:
'企业认证'
,
dataIndex
:
'companyAuthStatus'
,
align
:
'center'
,
render
:
(
text
)
=>
(
text
===
0
?
'未认证'
:
'已认证'
),
render
:
(
text
,
record
)
=>
(
<>
<
div
>
{
text
===
0
?
'未认证'
:
'已认证'
}
</
div
>
<
div
style=
{
{
color
:
'rgb(22,119,255)'
}
}
>
{
record
.
companyName
}
</
div
>
</>
),
},
{
title
:
'电子签约认证'
,
...
...
@@ -140,6 +140,12 @@ function CustomListView() {
render
:
(
_text
)
=>
`未认证`
,
},
{
title
:
'提现认证'
,
dataIndex
:
'xzAuthStatus'
,
align
:
'center'
,
render
:
(
text
:
number
)
=>
(
text
?
'已认证'
:
'未认证'
),
},
{
title
:
'用户来源'
,
dataIndex
:
'portType'
,
align
:
'center'
,
...
...
@@ -273,6 +279,16 @@ function CustomListView() {
{ value: 1, label: '已认证' },
],
},
{
label: '提现认证',
name: 'xzAuthStatus',
type: 'Select',
placeholder: '请选择认证状态',
options: [
{ value: 0, label: '未认证' },
{ value: 1, label: '已认证' },
],
},
]}
searchData={onFinish}
/>
...
...
src/pages/
flyerCenter
/flyerManage/flyerAuthDaily/index.tsx
→
src/pages/
customManage
/flyerManage/flyerAuthDaily/index.tsx
浏览文件 @
e3cbdbdf
File moved
src/pages/
flyerCenter
/flyerManage/flyerDetail/components/approveModal/index.tsx
→
src/pages/
customManage
/flyerManage/flyerDetail/components/approveModal/index.tsx
浏览文件 @
e3cbdbdf
File moved
src/pages/
flyerCenter
/flyerManage/flyerDetail/index.scss
→
src/pages/
customManage
/flyerManage/flyerDetail/index.scss
浏览文件 @
e3cbdbdf
File moved
src/pages/
flyerCenter
/flyerManage/flyerDetail/index.tsx
→
src/pages/
customManage
/flyerManage/flyerDetail/index.tsx
浏览文件 @
e3cbdbdf
File moved
src/pages/
flyerCenter
/flyerManage/flyerList/components/updateRemarkModal/index.tsx
→
src/pages/
customManage
/flyerManage/flyerList/components/updateRemarkModal/index.tsx
浏览文件 @
e3cbdbdf
File moved
src/pages/customManage/flyerManage/flyerList/index.scss
0 → 100644
浏览文件 @
e3cbdbdf
.flyer-list
{
.data-statistics
{
display
:
flex
;
align-items
:
center
;
color
:
red
;
justify-content
:
flex-end
;
}
}
src/pages/
flyerCenter
/flyerManage/flyerList/index.tsx
→
src/pages/
customManage
/flyerManage/flyerList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -4,10 +4,11 @@ import { ColumnsType } from 'antd/es/table';
import
{
CommonAPI
,
FlyerCenterAPI
}
from
'~/api'
;
import
{
useEffect
,
useState
}
from
'react'
;
import
{
InterDataType
,
InterReqListType
,
PaginationProps
}
from
'~/api/interface'
;
import
{
backListPilotType
}
from
'~/api/interface/flyerCenterType'
;
import
{
backListPilotType
,
getPilotAuditSumType
}
from
'~/api/interface/flyerCenterType'
;
import
{
getSecondDistrictInfoType
}
from
'~/api/interface/commonType'
;
import
{
useNavigate
}
from
'react-router-dom'
;
import
UpdateRemarkModal
from
'./components/updateRemarkModal'
;
import
'./index.scss'
;
//飞手列表返回类型
type
flyerListType
=
InterDataType
<
backListPilotType
>
[
'list'
];
...
...
@@ -15,6 +16,8 @@ type flyerListType = InterDataType<backListPilotType>['list'];
type
flyerListParameters
=
InterReqListType
<
backListPilotType
>
;
//地址返回数据
type
locationType
=
InterDataType
<
getSecondDistrictInfoType
>
;
// 飞手审批数据统计返回类型
type
statisticsDataType
=
InterDataType
<
getPilotAuditSumType
>
;
const
FlyerList
=
()
=>
{
const
navigate
=
useNavigate
();
...
...
@@ -146,6 +149,8 @@ const FlyerList = () => {
const
[
loading
,
setLoading
]
=
useState
<
boolean
>
(
false
);
//修改备注弹窗
const
[
updateRemarkModalShow
,
setUpdateRemarkModalShow
]
=
useState
<
boolean
>
(
false
);
// 飞手审批数据统计
const
[
approveStatistics
,
setApproveStatistics
]
=
useState
<
statisticsDataType
>
();
//飞手列表
const
getFlyerList
=
(
query
?:
flyerListParameters
)
=>
{
...
...
@@ -185,6 +190,12 @@ const FlyerList = () => {
setQuery
({
...
value
,
areaNumber
:
value
.
areaNumber
?
value
.
areaNumber
[
1
]
:
undefined
});
getFlyerList
({
...
value
,
areaNumber
:
value
.
areaNumber
?
value
.
areaNumber
[
1
]
:
undefined
});
};
// 获取飞手审批数据统计
const
getFlyerApproveStatistics
=
()
=>
{
FlyerCenterAPI
.
getPilotAuditSum
().
then
(({
result
})
=>
{
setApproveStatistics
(
result
);
});
};
//获取地域数据
const
getSecondDistrictInfo
=
()
=>
{
CommonAPI
.
getSecondDistrictInfo
().
then
(({
result
})
=>
{
...
...
@@ -228,6 +239,7 @@ const FlyerList = () => {
getFlyerList
();
getAbilityList
();
getSecondDistrictInfo
();
getFlyerApproveStatistics
();
},
[]);
return
(
...
...
@@ -240,6 +252,22 @@ const FlyerList = () => {
认证日志
</
Button
>
}
sufFixBtn=
{
<
div
className=
'data-statistics'
>
<
div
>
<
span
>
已通过:
</
span
>
<
span
>
{
approveStatistics
?.
passPilotAuditSum
||
0
}
</
span
>
</
div
>
<
div
>
<
span
>
审批中:
</
span
>
<
span
>
{
approveStatistics
?.
unAuditedPilotSum
||
0
}
</
span
>
</
div
>
<
div
>
<
span
>
未通过:
</
span
>
<
span
>
{
approveStatistics
?.
failPilotAuditSum
||
0
}
</
span
>
</
div
>
</
div
>
}
/>
<
Table
bordered
...
...
src/pages/depleteManage/withDrawList/components/applyStatusModal/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -40,7 +40,7 @@ const ApplyStatusModal: FC<ModalProps & selfProps> = ({
onCancel
();
};
return
(
<
Modal
title=
'审批'
open=
{
open
}
onOk=
{
handleOk
}
onCancel=
{
handleCancel
}
>
<
Modal
title=
'
提现
审批'
open=
{
open
}
onOk=
{
handleOk
}
onCancel=
{
handleCancel
}
>
<
Form
form=
{
form
}
initialValues=
{
{
applyStatus
:
1
}
}
...
...
@@ -49,8 +49,8 @@ const ApplyStatusModal: FC<ModalProps & selfProps> = ({
>
<
Form
.
Item
label=
'状态'
name=
'applyStatus'
>
<
Radio
.
Group
>
<
Radio
value=
{
1
}
>
提现成功
</
Radio
>
<
Radio
value=
{
2
}
>
提现失败
</
Radio
>
<
Radio
value=
{
1
}
>
同意
</
Radio
>
<
Radio
value=
{
2
}
>
拒绝
</
Radio
>
</
Radio
.
Group
>
</
Form
.
Item
>
<
Form
.
Item
label=
'备注'
name=
'remark'
>
...
...
src/pages/depleteManage/withDrawList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -104,7 +104,7 @@ const WithDrawManage = () => {
dataIndex
:
'tradeResult'
,
},
{
title
:
'时间'
,
title
:
'
申请
时间'
,
align
:
'center'
,
dataIndex
:
'createTime'
,
},
...
...
src/pages/forumManage/dynamicList/index.scss
浏览文件 @
e3cbdbdf
.dynamic-list
{
.data-statistics
{
display
:
flex
;
align-items
:
center
;
color
:
red
;
justify-content
:
flex-end
;
}
.forum-description
{
overflow
:
hidden
;
text-overflow
:
ellipsis
;
...
...
src/pages/forumManage/dynamicList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -5,12 +5,12 @@ import { useEffect, useState } from 'react';
import
DynamicDetailModal
from
'./components/dynamicDetailModal'
;
import
{
ForumManageAPI
}
from
'~/api'
;
import
{
InterDataType
,
InterListType
,
InterReqListType
,
PaginationProps
}
from
'~/api/interface'
;
import
{
forumDetailType
,
forumListType
}
from
'~/api/interface/forumManageType'
;
import
{
countGambitType
,
forumDetailType
,
forumListType
}
from
'~/api/interface/forumManageType'
;
import
'./index.scss'
;
// 动态审核状态
const
checkStatusList
=
[
{
label
:
'
审核中
'
,
value
:
0
},
{
label
:
'
待审核
'
,
value
:
0
},
{
label
:
'审核通过'
,
value
:
1
},
{
label
:
'审核不通过'
,
value
:
2
},
];
...
...
@@ -21,6 +21,8 @@ type forumType = InterListType<forumListType>;
type
forumParameters
=
InterReqListType
<
forumListType
>
;
//论坛详情返回类型
type
detailType
=
InterDataType
<
forumDetailType
>
;
//论坛统计数据返回类型
type
getCountGambitType
=
InterDataType
<
countGambitType
>
;
const
DynamicList
=
()
=>
{
const
searchColumnsData
:
searchColumns
[]
=
[
{
...
...
@@ -29,6 +31,13 @@ const DynamicList = () => {
name
:
'keyword'
,
placeholder
:
'用户名称/用户UID/用户手机号码'
,
},
{
label
:
'状态'
,
type
:
'Select'
,
name
:
'static'
,
placeholder
:
'帖子状态'
,
options
:
checkStatusList
,
},
];
const
tableColumns
:
ColumnsType
<
forumType
[
0
]
>
=
[
{
...
...
@@ -127,6 +136,7 @@ const DynamicList = () => {
const
[
forumDetail
,
setForumDetail
]
=
useState
<
detailType
>
();
const
[
query
,
setQuery
]
=
useState
<
forumParameters
>
();
const
[
dynamicDetailModalShow
,
setDynamicDetailModalShow
]
=
useState
<
boolean
>
(
false
);
const
[
countGambit
,
setCountGambit
]
=
useState
<
getCountGambitType
>
();
//动态列表
const
getDynamicList
=
(
query
?:
forumParameters
)
=>
{
...
...
@@ -153,6 +163,14 @@ const DynamicList = () => {
pagination
.
pageSize
=
pageSize
;
getDynamicList
(
query
);
};
// 获取动态不同状态个数
const
getCountGambit
=
()
=>
{
ForumManageAPI
.
getCountGambit
().
then
(({
result
})
=>
{
if
(
result
)
{
setCountGambit
(
result
);
}
});
};
//强制删除论坛
const
deleteForumClick
=
(
record
:
forumType
[
0
])
=>
{
Modal
.
confirm
({
...
...
@@ -166,6 +184,7 @@ const DynamicList = () => {
pagination
.
pageNo
-=
1
;
}
getDynamicList
(
query
);
getCountGambit
();
}
});
},
...
...
@@ -202,6 +221,17 @@ const DynamicList = () => {
}
});
};
// 审核请求
const
replyReq
=
async
(
record
:
forumType
[
0
],
status
:
boolean
)
=>
{
const
res
=
await
ForumManageAPI
.
checkDynamic
({
dynamicId
:
record
.
id
,
status
});
if
(
res
&&
res
.
code
===
'200'
)
{
message
.
success
(
'操作成功'
);
paginationChange
(
pagination
.
pageNo
,
pagination
.
pageSize
);
Modal
.
destroyAll
();
getCountGambit
();
}
};
// 是否确认审核
const
handleCheckStatus
=
(
record
:
forumType
[
0
])
=>
{
Modal
.
confirm
({
...
...
@@ -209,29 +239,51 @@ const DynamicList = () => {
content
:
`请确认是否审核通过?通过后动态将展示在论坛列表`
,
okText
:
'审核通过'
,
cancelText
:
'审核不通过'
,
onOk
:
async
()
=>
{
const
res
=
await
ForumManageAPI
.
checkDynamic
({
dynamicId
:
record
.
id
,
status
:
true
});
if
(
res
&&
res
.
code
===
'200'
)
{
message
.
success
(
'操作成功'
);
paginationChange
(
pagination
.
pageNo
,
pagination
.
pageSize
);
}
},
onCancel
:
async
()
=>
{
const
res
=
await
ForumManageAPI
.
checkDynamic
({
dynamicId
:
record
.
id
,
status
:
false
});
if
(
res
&&
res
.
code
===
'200'
)
{
message
.
success
(
'操作成功'
);
paginationChange
(
pagination
.
pageNo
,
pagination
.
pageSize
);
}
},
closable
:
true
,
maskClosable
:
true
,
footer
:
(
<
div
style=
{
{
textAlign
:
'right'
,
marginTop
:
'10px'
}
}
>
<
Button
type=
'default'
style=
{
{
marginRight
:
'10px'
}
}
onClick=
{
()
=>
replyReq
(
record
,
false
)
}
>
审核不通过
</
Button
>
<
Button
type=
'primary'
onClick=
{
()
=>
replyReq
(
record
,
true
)
}
>
审核通过
</
Button
>
</
div
>
),
});
};
// 组件挂载
useEffect
(()
=>
{
getDynamicList
();
getCountGambit
();
},
[]);
return
(
<
div
className=
'dynamic-list'
>
<
SearchBox
search=
{
searchColumnsData
}
searchData=
{
searchSuccess
}
/>
<
SearchBox
search=
{
searchColumnsData
}
searchData=
{
searchSuccess
}
sufFixBtn=
{
<
div
className=
'data-statistics'
>
<
div
>
<
span
>
审核通过:
</
span
>
<
span
>
{
countGambit
?.
passAuditSum
||
0
}
</
span
>
</
div
>
<
div
>
<
span
>
待审核:
</
span
>
<
span
>
{
countGambit
?.
unAuditedSum
||
0
}
</
span
>
</
div
>
<
div
>
<
span
>
审核不通过:
</
span
>
<
span
>
{
countGambit
?.
failAuditSum
||
0
}
</
span
>
</
div
>
</
div
>
}
/>
<
Table
size=
{
'small'
}
bordered
...
...
src/pages/forumManage/topicList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -155,6 +155,12 @@ const TopicList = () => {
</
Button
>
}
searchData=
{
searchSuccess
}
sufFixBtn=
{
<
div
style=
{
{
color
:
'red'
,
textAlign
:
'right'
}
}
>
<
span
>
话题总个数:
</
span
>
<
span
>
{
pagination
.
totalCount
}
</
span
>
</
div
>
}
/>
<
Table
bordered
...
...
src/pages/orderManage/equipmentOrder/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -332,7 +332,7 @@ function EquipmentOrderView() {
title
:
'操作'
,
dataIndex
:
'action'
,
fixed
:
'right'
,
width
:
'1
3
0px'
,
width
:
'1
5
0px'
,
onHeaderCell
:
()
=>
({
style
:
{
textAlign
:
'center'
,
...
...
src/pages/orderManage/productOrder/orderList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -117,7 +117,7 @@ function ProductOrderView() {
getTableList
();
};
// 订单状态筛选
const
statusChangeEvent
=
(
item
:
{
label
:
string
;
value
:
number
},
i
:
number
)
=>
{
const
statusChangeEvent
=
(
item
:
{
label
:
string
;
value
:
number
|
undefined
},
i
:
number
)
=>
{
pagination
.
current
=
1
;
pagination
.
pageSize
=
10
;
setStatusCodeButtonIndex
(
i
);
...
...
@@ -391,7 +391,7 @@ function ProductOrderView() {
dataIndex
:
'action'
,
// align: 'right',
fixed
:
'right'
,
width
:
'1
0
0px'
,
width
:
'1
5
0px'
,
onHeaderCell
:
()
=>
({
style
:
{
textAlign
:
'center'
,
...
...
src/pages/pointManage/pointList/index.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -102,15 +102,15 @@ export const PointList = () => {
title
:
'积分总额'
,
dataIndex
:
'totalPoints'
,
align
:
'center'
,
render
:
(
text
:
string
,
record
)
=>
{
return
(
<>
<
Button
type=
'link'
onClick=
{
()
=>
handleDetail
(
record
)
}
>
{
text
}
</
Button
>
</>
);
}
,
},
{
title
:
'操作'
,
align
:
'center'
,
render
:
(
_text
:
any
,
record
)
=>
(
<
Button
type=
'link'
onClick=
{
()
=>
handleDetail
(
record
)
}
>
详情
</
Button
>
)
,
},
];
useEffect
(()
=>
{
...
...
src/router/router.tsx
浏览文件 @
e3cbdbdf
...
...
@@ -150,11 +150,11 @@ const AddInstitutionsView = React.lazy(
);
//机构上传
//飞手中心
const
FlyerListView
=
React
.
lazy
(()
=>
import
(
'~/pages/
flyerCenter
/flyerManage/flyerList'
));
//飞手列表
const
FlyerListView
=
React
.
lazy
(()
=>
import
(
'~/pages/
customManage
/flyerManage/flyerList'
));
//飞手列表
const
FlyerAuthDailyView
=
React
.
lazy
(
()
=>
import
(
'~/pages/
flyerCenter
/flyerManage/flyerAuthDaily'
),
()
=>
import
(
'~/pages/
customManage
/flyerManage/flyerAuthDaily'
),
);
//飞手认证日志;
const
FlyerDetailsView
=
React
.
lazy
(()
=>
import
(
'~/pages/
flyerCenter
/flyerManage/flyerDetail'
));
//飞手详情、飞手审批
const
FlyerDetailsView
=
React
.
lazy
(()
=>
import
(
'~/pages/
customManage
/flyerManage/flyerDetail'
));
//飞手详情、飞手审批
// 系统管理
import
AccountManageView
from
'~/pages/systemManage/accountManage'
;
...
...
@@ -249,7 +249,7 @@ export const routerList: Array<RouteObjectType> = [
meta
:
{
id
:
200
,
icon
:
<
TeamOutlined
/>,
title
:
'
客
户管理'
,
title
:
'
用
户管理'
,
},
children
:
[
{
...
...
@@ -258,7 +258,7 @@ export const routerList: Array<RouteObjectType> = [
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
220
,
title
:
'
客
户列表'
,
title
:
'
用
户列表'
,
icon
:
<
SolutionOutlined
/>,
},
},
...
...
@@ -319,39 +319,17 @@ export const routerList: Array<RouteObjectType> = [
},
},
{
path
:
'/customManage/customIdentity'
,
element
:
withLoadingComponent
(<
CustomIdentityView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
240
,
title
:
'加盟入驻'
,
icon
:
<
AuditOutlined
/>,
},
},
],
},
{
path
:
'/flyerCenter'
,
element
:
<
LayoutView
/>,
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
1800
,
icon
:
<
UserOutlined
/>,
title
:
'飞手中心'
,
},
children
:
[
{
path
:
'/flyerCenter/flyerList'
,
path
:
'/customManage/flyerList'
,
element
:
withLoadingComponent
(<
FlyerListView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
1810
,
title
:
'飞手管理'
,
icon
:
<
User
Outlined
/>,
icon
:
<
Solution
Outlined
/>,
},
},
{
path
:
'/
flyerCenter
/flyerAuthDaily'
,
path
:
'/
customManage
/flyerAuthDaily'
,
element
:
withLoadingComponent
(<
FlyerAuthDailyView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
...
...
@@ -363,7 +341,7 @@ export const routerList: Array<RouteObjectType> = [
},
},
{
path
:
'/
flyerCenter
/flyerDetail'
,
path
:
'/
customManage
/flyerDetail'
,
element
:
withLoadingComponent
(<
FlyerDetailsView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
...
...
@@ -375,7 +353,7 @@ export const routerList: Array<RouteObjectType> = [
},
},
{
path
:
'/
flyerCenter
/flyerApprove'
,
path
:
'/
customManage
/flyerApprove'
,
element
:
withLoadingComponent
(<
FlyerDetailsView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
...
...
@@ -386,6 +364,16 @@ export const routerList: Array<RouteObjectType> = [
pid
:
1810
,
},
},
{
path
:
'/customManage/customIdentity'
,
element
:
withLoadingComponent
(<
CustomIdentityView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
240
,
title
:
'商家管理'
,
icon
:
<
AuditOutlined
/>,
},
},
],
},
{
...
...
@@ -537,26 +525,26 @@ export const routerList: Array<RouteObjectType> = [
meta
:
{
id
:
600
,
icon
:
<
MessageOutlined
/>,
title
:
'
论坛
管理'
,
title
:
'
社群
管理'
,
},
children
:
[
{
path
:
'/forumManage/
dynam
icList'
,
element
:
withLoadingComponent
(<
Dynam
icListView
/>),
path
:
'/forumManage/
top
icList'
,
element
:
withLoadingComponent
(<
Top
icListView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
6
1
0
,
title
:
'
动态
列表'
,
id
:
6
2
0
,
title
:
'
话题
列表'
,
icon
:
<
ThunderboltOutlined
/>,
},
},
{
path
:
'/forumManage/
top
icList'
,
element
:
withLoadingComponent
(<
Top
icListView
/>),
path
:
'/forumManage/
dynam
icList'
,
element
:
withLoadingComponent
(<
Dynam
icListView
/>),
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
6
2
0
,
title
:
'
话题
列表'
,
id
:
6
1
0
,
title
:
'
帖子
列表'
,
icon
:
<
ThunderboltOutlined
/>,
},
},
...
...
@@ -676,7 +664,7 @@ export const routerList: Array<RouteObjectType> = [
errorElement
:
<
ErrorPage
/>,
meta
:
{
id
:
850
,
title
:
'
需求
订单'
,
title
:
'
任务
订单'
,
icon
:
<
CreditCardOutlined
/>,
},
},
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论