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
ab51083c
Commit
ab51083c
authored
Jun 16, 2021
by
Bill
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修改平台规则设置-结算策略bug
parent
ff990d4c
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
2 deletions
+12
-2
index.tsx
...leSettingManage/platformSettlementStrategy/info/index.tsx
+12
-2
No files found.
src/pages/ruleSettingManage/platformSettlementStrategy/info/index.tsx
View file @
ab51083c
...
@@ -96,7 +96,7 @@ const MemberSettleAdd: React.FC = () => {
...
@@ -96,7 +96,7 @@ const MemberSettleAdd: React.FC = () => {
title
:
'操作'
,
title
:
'操作'
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
(
return
(
<
div
onClick=
{
()
=>
handleRemove
(
record
.
uniqueId
)
}
>
删除
</
div
>
<
a
onClick=
{
()
=>
handleRemove
(
record
.
uniqueId
)
}
>
删除
</
a
>
)
)
}
}
}
}
...
@@ -149,6 +149,10 @@ const MemberSettleAdd: React.FC = () => {
...
@@ -149,6 +149,10 @@ const MemberSettleAdd: React.FC = () => {
{
{
memberId
:
item
.
memberId
,
memberId
:
item
.
memberId
,
roleId
:
item
.
roleId
,
roleId
:
item
.
roleId
,
memberName
:
item
.
name
,
memberTypeName
:
item
.
memberTypeName
,
roleName
:
item
.
roleName
,
levelName
:
item
.
levelTag
,
}
}
)
)
);
);
...
@@ -201,6 +205,7 @@ const MemberSettleAdd: React.FC = () => {
...
@@ -201,6 +205,7 @@ const MemberSettleAdd: React.FC = () => {
return
{
return
{
days
:
length
>
0
&&
data
[
0
].
check
,
days
:
length
>
0
&&
data
[
0
].
check
,
month
:
length
>
1
&&
data
[
1
].
check
month
:
length
>
1
&&
data
[
1
].
check
};
};
}
}
// 从PAAS平台--规则配置--平台规则配置取已勾选的结算方式决定是否显示结算方式
// 从PAAS平台--规则配置--平台规则配置取已勾选的结算方式决定是否显示结算方式
...
@@ -232,7 +237,12 @@ const MemberSettleAdd: React.FC = () => {
...
@@ -232,7 +237,12 @@ const MemberSettleAdd: React.FC = () => {
})
})
formActions
.
setFieldValue
(
'Tabs.memberTab.layout.isDefault'
,
res
.
data
.
isDefault
)
formActions
.
setFieldValue
(
'Tabs.memberTab.layout.isDefault'
,
res
.
data
.
isDefault
)
const
list
=
res
.
data
.
memberList
.
map
((
item
)
=>
({...
item
,
uniqueId
:
item
.
memberId
+
"_"
+
item
.
roleId
}))
const
list
=
res
.
data
.
memberList
.
map
((
item
)
=>
({
...
item
,
uniqueId
:
item
.
memberId
+
"_"
+
item
.
roleId
,
name
:
item
.
memberName
,
levelTag
:
item
.
levelName
,
}))
formActions
.
setFieldValue
(
'Tabs.memberTab.someLists'
,
list
);
formActions
.
setFieldValue
(
'Tabs.memberTab.someLists'
,
list
);
// 必须设置key
// 必须设置key
memberRowCtl
.
setSelectRow
(
list
);
memberRowCtl
.
setSelectRow
(
list
);
...
...
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