Commit ab51083c authored by Bill's avatar Bill

fix: 修改平台规则设置-结算策略bug

parent ff990d4c
...@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment