Commit 7626ab73 authored by XieZhiXiong's avatar XieZhiXiong

fix: 会员模块小bug

parent 57507249
......@@ -2,7 +2,7 @@
* @Author: XieZhiXiong
* @Date: 2020-08-20 16:15:59
* @LastEditors: XieZhiXiong
* @LastEditTime: 2020-12-15 14:27:38
* @LastEditTime: 2020-12-15 16:45:41
* @Description: 基于 NormalTable 简单的可编辑列 Table
*/
import React, { useContext, useState, useEffect, useRef } from 'react';
......
......@@ -286,10 +286,6 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
dataIndex: 'product',
align: 'center',
ellipsis: true,
render: text => {
const product = isJSONStr(text) || {};
return product.productName || '';
},
},
{
title: '评价方',
......@@ -303,7 +299,7 @@ const SincerityInfo: React.FC<SincerityInfoProps> = ({
},
{
title: '订单号',
dataIndex: 'remark',
dataIndex: 'orderNo',
align: 'center',
},
];
......
......@@ -121,12 +121,8 @@ const MemberLevel: React.FC<[]> = () => {
PublicApi.postMemberAbilityLevelUpdatestatus({
id: record.id,
status: disabled ? 1 : 0,
}, {
ctlType: 'none',
}).then(res => {
if (res.code === 1000) {
const msg = disabled ? '启用成功' : '禁用成功'
message.success(msg);
ref.current.reload();
}
});
......
......@@ -19,7 +19,8 @@ export const levelSchema: ISchema = {
type: 'string',
'x-component': 'Search',
'x-component-props': {
placeholder: '搜索',
placeholder: '搜索',
tip: '输入 会员等级标签 进行搜索',
},
},
},
......
......@@ -203,7 +203,7 @@ const MemberPr1: React.FC<{}> = props => {
memberTypeId: memberTypes.map(item => ({ label: item.memberTypeName, value: item.memberTypeId })),
status: status.map(item => ({ label: item.text, value: item.id })),
roleId: roles.map(item => ({ label: item.roleName, value: item.roleId })),
level: levels.map(item => ({ label: item.level, value: item.levelTag })),
level: levels.map(item => ({ label: item.levelTag, value: item.level })),
source: sources.map(item => ({ label: item.text, value: item.id })),
};
}
......
......@@ -203,7 +203,7 @@ const MemberPr2: React.FC<{}> = props => {
memberTypeId: memberTypes.map(item => ({ label: item.memberTypeName, value: item.memberTypeId })),
status: status.map(item => ({ label: item.text, value: item.id })),
roleId: roles.map(item => ({ label: item.roleName, value: item.roleId })),
level: levels.map(item => ({ label: item.level, value: item.levelTag })),
level: levels.map(item => ({ label: item.levelTag, value: item.level })),
source: sources.map(item => ({ label: item.text, value: item.id })),
};
}
......
......@@ -209,7 +209,7 @@ const MemberPrConfirm: React.FC<{}> = props => {
memberTypeId: memberTypes.map(item => ({ label: item.memberTypeName, value: item.memberTypeId })),
status: status.map(item => ({ label: item.text, value: item.id })),
roleId: roles.map(item => ({ label: item.roleName, value: item.roleId })),
level: levels.map(item => ({ label: item.level, value: item.levelTag })),
level: levels.map(item => ({ label: item.levelTag, value: item.level })),
source: sources.map(item => ({ label: item.text, value: item.id })),
};
}
......
......@@ -203,7 +203,7 @@ const MemberPrSubmit: React.FC<{}> = props => {
memberTypeId: memberTypes.map(item => ({ label: item.memberTypeName, value: item.memberTypeId })),
status: status.map(item => ({ label: item.text, value: item.id })),
roleId: roles.map(item => ({ label: item.roleName, value: item.roleId })),
level: levels.map(item => ({ label: item.level, value: item.levelTag })),
level: levels.map(item => ({ label: item.levelTag, value: item.level })),
source: sources.map(item => ({ label: item.text, value: item.id })),
};
}
......
......@@ -56,6 +56,7 @@ const MemberUpgradeRule: React.FC<[]> = () => {
dataIndex: 'remark',
align: 'center',
ellipsis: true,
render: text => <span title={text}>{text}</span>,
},
{
title: '适用会员等级类型',
......@@ -111,12 +112,9 @@ const MemberUpgradeRule: React.FC<[]> = () => {
setSubmitLoading(true);
const res = await PublicApi.postMemberAbilityLevelRuleUpdatescore({
items: payload,
}, {
ctlType: 'none',
});
if (res.code === 1000) {
message.success('保存成功');
getRuleList({
current: page,
pageSize: size,
......
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