Commit 17ab5570 authored by XieZhiXiong's avatar XieZhiXiong

修改 levelId 为 level

parent d85cd3dc
......@@ -157,7 +157,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
const {
memberTypeId,
roleId,
levelId,
level,
countryCodeId,
phone,
email,
......@@ -183,7 +183,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
PublicApi.postMemberAbilitySubAdd({
memberTypeId,
roleId,
levelId,
level,
countryCodeId,
phone,
email,
......@@ -219,7 +219,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
validateId,
memberTypeId,
roleId,
levelId,
level,
countryCodeId,
phone,
email,
......@@ -294,8 +294,8 @@ const MemberForm: React.FC<MemberFormProps> = ({
linkage.value('roleId', undefined);
linkage.enum('roleId', []);
linkage.value('levelId', undefined);
linkage.enum('levelId', []);
linkage.value('level', undefined);
linkage.enum('level', []);
// 清空渠道原来数据
linkage.value('channelTypeId', undefined);
......@@ -359,8 +359,8 @@ const MemberForm: React.FC<MemberFormProps> = ({
// 手动触发改变的话重置等级下拉框
onFieldInputChange$('*(memberTypeId,roleId)').subscribe(() => {
linkage.value('levelId', undefined);
linkage.enum('levelId', []);
linkage.value('level', undefined);
linkage.enum('level', []);
});
// 根据会员类型和角色,查询等级下拉
......@@ -373,7 +373,7 @@ const MemberForm: React.FC<MemberFormProps> = ({
const otherValue = formActions.getFieldState(otherName, state => state.value);
if (selfValue && otherValue) {
linkage.loading('levelId');
linkage.loading('level');
PublicApi.getMemberAbilitySubPageitemsLevel({
memberTypeId: selfName == 'memberTypeId' ? selfValue : otherValue,
......@@ -383,11 +383,11 @@ const MemberForm: React.FC<MemberFormProps> = ({
}).then(res => {
if (res.code === 1000) {
const { data = [] } = res;
const options = data.map(item => ({ label: item.levelTag, value: item.levelId }));
linkage.enum('levelId', options);
const options = data.map(item => ({ label: item.levelTag, value: item.level }));
linkage.enum('level', options);
}
}).finally(() => {
linkage.loaded('levelId');
linkage.loaded('level');
});
}
}, 0);
......
......@@ -83,7 +83,7 @@ export const initDetailSchema = (props: any) => {
hasFeedback: true,
},
},
levelId: {
level: {
type: 'string',
required: true,
title: '会员等级',
......
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