Commit a3884c1b authored by XieZhiXiong's avatar XieZhiXiong

fix: 修复编辑会员信息展示会员等级为0的问题

parent 3dd0d89b
......@@ -132,6 +132,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
outerStatusName,
roleName,
verifySteps,
level,
...rest
} = infoRes.data;
// 注册资料处理
......@@ -192,6 +193,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
areas: areaCodes,
channelLevel: channelLevelTag,
upperRelationId: upperMemberId,
level: level || undefined,
...detail,
});
......@@ -474,6 +476,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
if (res.code === 1000) {
const { data = [] } = res;
const options = data.map(item => ({ label: item.levelTag, value: item.level })).filter((item) => item.value);
console.log('optionsoptionsoptions', options)
linkage.enum('level', options);
}
}).catch((err) => {
......
......@@ -132,6 +132,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
outerStatusName,
roleName,
verifySteps,
level,
...rest
} = infoRes.data;
// 注册资料处理
......@@ -192,6 +193,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
areas: areaCodes,
channelLevel: channelLevelTag,
upperRelationId: upperMemberId,
level: level || undefined,
...detail,
});
......
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