Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
J
jinfa-admin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
shenshaokai
jinfa-admin
Commits
44670edd
Commit
44670edd
authored
May 13, 2021
by
前端-许佳敏
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复字段错误
parent
a1654b4c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
22 additions
and
22 deletions
+22
-22
RightContent.tsx
src/layouts/RightContent.tsx
+1
-1
index.tsx
src/pages/authConfig/memberSystem/index.tsx
+1
-1
memberDetail.tsx
src/pages/authConfig/memberSystem/memberDetail.tsx
+2
-2
index.tsx
src/pages/capitalAccount/accountLists/index.tsx
+2
-2
index.ts
src/pages/capitalAccount/accountLists/schema/index.ts
+1
-1
checkDetails.tsx
src/pages/capitalAccount/checkWithdraw/checkDetails.tsx
+1
-1
paymentDetails.tsx
src/pages/capitalAccount/paymentWithdraw/paymentDetails.tsx
+1
-1
index.tsx
...System/orderDetail/components/orderProductTable/index.tsx
+1
-1
index.ts
src/pages/orderSystem/orderDetail/effects/index.ts
+1
-1
index.tsx
...ges/returnManage/components/RefundModal/Balance/index.tsx
+1
-1
RuleSetting.tsx
...SettingManage/transactionRules/components/RuleSetting.tsx
+9
-9
index.tsx
...pages/ruleSettingManage/transactionRules/schema/index.tsx
+1
-1
No files found.
src/layouts/RightContent.tsx
View file @
44670edd
...
...
@@ -70,7 +70,7 @@ const RightContent: React.FC<{}> = (props) => {
const
webSocketInit
=
useCallback
(()
=>
{
console
.
log
(
ws
.
current
)
if
(
SOCKET_URL
&&
/ws
\:\/\/
/
.
test
(
SOCKET_URL
)
&&
(
!
ws
.
current
||
ws
.
current
.
readyState
===
3
)
&&
userInfo
)
{
const
url
=
`
${
SOCKET_URL
}
/report/websocket?memberId=
${
userInfo
.
memberId
}
&roleId=
${
userInfo
.
MemberManageRole
Id
}
&token=
${
userInfo
.
token
}
&source=
${
99
}
`
const
url
=
`
${
SOCKET_URL
}
/report/websocket?memberId=
${
userInfo
.
memberId
}
&roleId=
${
userInfo
.
member
Id
}
&token=
${
userInfo
.
token
}
&source=
${
99
}
`
ws
.
current
=
new
WebSocket
(
url
);
ws
.
current
.
onopen
=
(
e
)
=>
{
console
.
log
(
e
)
...
...
src/pages/authConfig/memberSystem/index.tsx
View file @
44670edd
...
...
@@ -27,7 +27,7 @@ const MemberSystem: React.FC<{}> = () => {
const
deleteItem
=
async
(
record
)
=>
{
// 删除该项
await
PublicApi
.
postMemberManageRoleDelete
({
MemberManage
RoleId
:
record
.
id
member
RoleId
:
record
.
id
})
ref
.
current
.
reload
()
}
...
...
src/pages/authConfig/memberSystem/memberDetail.tsx
View file @
44670edd
...
...
@@ -71,7 +71,7 @@ const MemberDetail: React.FC<{}> = () => {
const
fetchRoleMenuDetail
=
async
(
id
)
=>
{
// 10秒缓存
const
res
=
await
PublicApi
.
getMemberManageRoleGet
({
MemberManage
RoleId
:
id
member
RoleId
:
id
},
{
useCache
:
true
,
ttl
:
10
*
1000
})
return
res
}
...
...
@@ -108,7 +108,7 @@ const MemberDetail: React.FC<{}> = () => {
if
(
pageStatus
===
PageStatus
.
EDIT
)
{
await
PublicApi
.
postMemberManageRoleUpdate
({
...
values
,
MemberManage
RoleId
:
id
,
member
RoleId
:
id
,
menuIds
})
}
else
{
...
...
src/pages/capitalAccount/accountLists/index.tsx
View file @
44670edd
...
...
@@ -125,7 +125,7 @@ const AccountLists: React.FC<{}> = () => {
return
{
memberType
:
memberTypes
.
map
(
item
=>
({
label
:
item
.
memberTypeName
,
value
:
item
.
memberTypeId
})),
MemberManage
RoleId
:
roles
.
map
(
item
=>
({
label
:
item
.
roleName
,
value
:
item
.
roleId
})),
member
RoleId
:
roles
.
map
(
item
=>
({
label
:
item
.
roleName
,
value
:
item
.
roleId
})),
memberLevel
:
levels
.
map
(
item
=>
({
label
:
item
.
levelTag
,
value
:
item
.
level
})),
}
}
...
...
@@ -169,7 +169,7 @@ const AccountLists: React.FC<{}> = () => {
FORM_FILTER_PATH
,
);
useAsyncInitSelect
(
[
'memberType'
,
'
MemberManage
RoleId'
,
'memberLevel'
],
[
'memberType'
,
'
member
RoleId'
,
'memberLevel'
],
fetchSelectOptions
,
);
}
}
...
...
src/pages/capitalAccount/accountLists/schema/index.ts
View file @
44670edd
...
...
@@ -48,7 +48,7 @@ export const searchSchema: ISchema = {
}
}
},
MemberManage
RoleId
:
{
member
RoleId
:
{
type
:
'string'
,
enum
:
[],
"x-component-props"
:
{
...
...
src/pages/capitalAccount/checkWithdraw/checkDetails.tsx
View file @
44670edd
...
...
@@ -43,7 +43,7 @@ const CheckDetail: React.FC<{}> = () => {
if
(
code
===
1000
)
{
let
bankRes
:
any
=
await
PublicApi
.
getSettleAccountsGetMemberAccountConfig
({
memberId
:
data
.
memberId
,
roleId
:
data
.
MemberManage
RoleId
,
roleId
:
data
.
member
RoleId
,
})
setBankDetail
(
bankRes
.
data
)
}
...
...
src/pages/capitalAccount/paymentWithdraw/paymentDetails.tsx
View file @
44670edd
...
...
@@ -50,7 +50,7 @@ const PaymentDetail: React.FC<{}> = () => {
if
(
code
===
1000
)
{
let
bankRes
:
any
=
await
PublicApi
.
getSettleAccountsGetMemberAccountConfig
({
memberId
:
data
.
memberId
,
roleId
:
data
.
MemberManage
RoleId
,
roleId
:
data
.
member
RoleId
,
})
setBankDetail
(
bankRes
.
data
)
}
...
...
src/pages/orderSystem/orderDetail/components/orderProductTable/index.tsx
View file @
44670edd
...
...
@@ -300,7 +300,7 @@ const OrderProductTable:React.FC<OrderProductTableProps> = (props) => {
return
await
Promise
.
all
(
asyncData
.
filter
(
v
=>
v
.
memberPrice
===
undefined
).
map
(
async
v
=>
{
const
{
code
,
data
}
=
await
PublicApi
.
getMemberManageUpperCreditParamGet
({
parentMemberId
:
v
.
memberId
,
parentMember
ManageRoleId
:
v
.
MemberManage
RoleId
parentMember
RoleId
:
v
.
member
RoleId
},
{
ttl
:
60
*
1000
,
useCache
:
true
})
return
code
===
1000
?
{
value
:
(
data
.
parameter
*
100
)
+
'%'
,
id
:
v
.
id
}
:
{
value
:
''
,
id
:
0
}
}
...
...
src/pages/orderSystem/orderDetail/effects/index.ts
View file @
44670edd
...
...
@@ -23,7 +23,7 @@ const asyncPadDataForProduct = async (ctx: ISchemaFormActions | ISchemaFormAsync
const
asyncPriceRequests
:
any
[]
=
await
Promise
.
all
(
productData
.
filter
(
v
=>
v
.
memberPrice
===
undefined
).
map
(
async
v
=>
{
const
{
code
,
data
}
=
await
PublicApi
.
getMemberManageUpperCreditParamGet
({
parentMemberId
:
v
.
memberId
,
parentMember
ManageRoleId
:
v
.
MemberManage
RoleId
parentMember
RoleId
:
v
.
member
RoleId
},
{
ttl
:
60
*
1000
,
useCache
:
true
})
return
code
===
1000
?
{
value
:
(
data
.
parameter
*
100
)
+
'%'
,
id
:
v
.
id
}
:
{
value
:
''
,
id
:
0
}
}
...
...
src/pages/returnManage/components/RefundModal/Balance/index.tsx
View file @
44670edd
...
...
@@ -47,7 +47,7 @@ const Balance: React.FC<BalanceProps> = ({
setLoading
(
true
);
PublicApi
.
getPayAssetAccountGetChildUserBalance
({
childMemberId
:
`
${
purchaserId
}
`
,
childMember
Manage
RoleId
:
`
${
purchaserRoleId
}
`
,
childMemberRoleId
:
`
${
purchaserRoleId
}
`
,
}).
then
(
res
=>
{
if
(
res
.
code
===
1000
)
{
setBalance
(
res
.
data
);
...
...
src/pages/ruleSettingManage/transactionRules/components/RuleSetting.tsx
View file @
44670edd
...
...
@@ -34,7 +34,7 @@ export interface RuleSettingProps {
const
RuleSetting
:
React
.
FC
<
RuleSettingProps
>
=
(
props
)
=>
{
const
{
addSchemaAction
,
schema
,
formSubmit
,
onFieldChange
=
()
=>
{}
}
=
props
const
[
visibleChannelRroduct
,
setVisibleChannelRroduct
]
=
useState
(
false
)
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
MemberManage
RoleId'
})
const
[
memberRowSelection
,
memberRowCtl
]
=
useRowSelectionTable
({
customKey
:
'
member
RoleId'
})
const
[
initValue
,
setInitialValue
]
=
useState
({})
const
[
membersLength
,
setMembersLength
]
=
useState
(
0
)
...
...
@@ -47,19 +47,19 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
fetchMembersList
=
async
(
params
)
=>
{
const
res
=
await
PublicApi
.
getMemberManageAllProviderPage
(
params
)
const
{
code
,
data
}
=
res
let
_data
=
data
.
data
.
map
(
item
=>
({
...
item
,
MemberManage
RoleId
:
item
.
memberId
+
'_'
+
item
.
roleId
}))
let
_data
=
data
.
data
.
map
(
item
=>
({
...
item
,
member
RoleId
:
item
.
memberId
+
'_'
+
item
.
roleId
}))
return
{
totalCount
:
data
.
totalCount
,
data
:
_data
}
}
// table删除商品
const
handleDeleteTable
=
(
id
)
=>
{
const
value
=
addSchemaAction
.
getFieldValue
(
'memberIds'
)
addSchemaAction
.
setFieldValue
(
'memberIds'
,
findItemAndDelete
(
value
,
id
,
'
MemberManage
RoleId'
))
addSchemaAction
.
setFieldValue
(
'memberIds'
,
findItemAndDelete
(
value
,
id
,
'
member
RoleId'
))
}
const
handleAddMemberBtn
=
()
=>
{
const
checkBoxs
=
addSchemaAction
.
getFieldValue
(
'memberIds'
)
memberRowCtl
.
setSelectedRowKeys
(
checkBoxs
.
map
(
v
=>
v
.
MemberManage
RoleId
))
memberRowCtl
.
setSelectedRowKeys
(
checkBoxs
.
map
(
v
=>
v
.
member
RoleId
))
memberRowCtl
.
setSelectRow
(
checkBoxs
)
setVisibleChannelRroduct
(
true
)
}
...
...
@@ -98,7 +98,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
{
dataIndex
:
'ctl'
,
title
:
'操作'
,
render
:
(
_
,
record
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
handleDeleteTable
(
record
.
MemberManage
RoleId
)
}
>
删除
</
Button
>
render
:
(
_
,
record
)
=>
<
Button
type=
'link'
onClick=
{
()
=>
handleDeleteTable
(
record
.
member
RoleId
)
}
>
删除
</
Button
>
}
]
...
...
@@ -120,9 +120,9 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
columnsSetProduct
:
any
[]
=
[
{
dataIndex
:
'
MemberManage
RoleId'
,
dataIndex
:
'
member
RoleId'
,
title
:
'MRID'
,
key
:
'
MemberManage
RoleId'
,
key
:
'
member
RoleId'
,
className
:
'commonHide'
},
{
...
...
@@ -258,7 +258,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
const
getBindingMembers
=
async
({
id
=
'1'
,
current
=
'1'
,
pageSize
=
'10'
})
=>
{
const
res
=
await
PublicApi
.
getOrderTradingRulesBackgroundMember
({
id
,
current
,
pageSize
})
const
{
code
,
data
}
=
res
let
_data
=
data
.
data
.
map
(
item
=>
({
...
item
,
MemberManage
RoleId
:
item
.
memberId
+
'_'
+
item
.
roleId
}))
let
_data
=
data
.
data
.
map
(
item
=>
({
...
item
,
member
RoleId
:
item
.
memberId
+
'_'
+
item
.
roleId
}))
return
{
totalCount
:
data
.
totalCount
,
data
:
_data
}
}
...
...
@@ -325,7 +325,7 @@ const RuleSetting:React.FC<RuleSettingProps> = (props) => {
}
}
tableProps=
{
{
rowKey
:
'
MemberManage
RoleId'
rowKey
:
'
member
RoleId'
}
}
/>
...
...
src/pages/ruleSettingManage/transactionRules/schema/index.tsx
View file @
44670edd
...
...
@@ -105,7 +105,7 @@ export const ruleDetailSchema: ISchema = padRequiredMessage({
type
:
'array:number'
,
"x-component"
:
'MultTable'
,
"x-component-props"
:
{
rowKey
:
'
MemberManage
RoleId'
,
rowKey
:
'
member
RoleId'
,
columns
:
"{{tableColumns}}"
,
prefix
:
"{{tableAddButton}}"
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment