Commit c5af47d8 authored by XieZhiXiong's avatar XieZhiXiong

chore: 删除 columns 居中对齐

parent ac3987c0
......@@ -40,17 +40,14 @@ const columns = (target = '/memberCenter/memberAbility/manage/memberPrSubmit/det
{
title: '会员类型',
dataIndex: 'memberTypeName',
align: 'center',
},
{
title: '会员角色',
dataIndex: 'roleName',
align: 'center',
},
{
title: '外部状态',
dataIndex: 'outerStatusName',
align: 'center',
render: (text, record) => (
<StatusTag type={MEMBER_OUTER_STATUS_TYPE[record.outerStatus]} title={text} />
),
......@@ -58,7 +55,6 @@ const columns = (target = '/memberCenter/memberAbility/manage/memberPrSubmit/det
{
title: '内部状态',
dataIndex: 'innerStatusName',
align: 'center',
render: (text, record) => <Badge color={MEMBER_INNER_STATUS_BADGE_COLOR[record.innerStatus]} text={text} />,
},
]);
......
......@@ -41,17 +41,14 @@ const columns = (target = '/memberCenter/memberAbility/manage/memberPrSubmit/det
{
title: '会员类型',
dataIndex: 'memberTypeName',
align: 'center',
},
{
title: '会员角色',
dataIndex: 'roleName',
align: 'center',
},
{
title: '申请来源/时间',
dataIndex: 'sourceName',
align: 'center',
render: (text, record) => (
<>
<div>{text}</div>
......@@ -62,7 +59,6 @@ const columns = (target = '/memberCenter/memberAbility/manage/memberPrSubmit/det
{
title: '外部状态',
dataIndex: 'outerStatusName',
align: 'center',
render: (text, record) => (
<StatusTag type={MEMBER_OUTER_STATUS_TYPE[record.outerStatus]} title={text} />
),
......@@ -70,7 +66,6 @@ const columns = (target = '/memberCenter/memberAbility/manage/memberPrSubmit/det
{
title: '内部状态',
dataIndex: 'innerStatusName',
align: 'center',
render: (text, record) => <Badge color={MEMBER_INNER_STATUS_BADGE_COLOR[record.innerStatus] || '#606266'} text={text} />,
},
]);
......
......@@ -59,27 +59,22 @@ const LevelInfo: React.FC<LevelInfoProps> = ({
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '获取项目',
dataIndex: 'ruleName',
align: 'center',
},
{
title: '获取分值',
dataIndex: 'score',
align: 'center',
},
{
title: '获取时间',
dataIndex: 'createTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
},
];
......
......@@ -62,27 +62,22 @@ const MemberActivePointRecords: React.FC<IProps> = (props: IProps) => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '获取项目',
dataIndex: 'ruleName',
align: 'center',
},
{
title: '获取分值',
dataIndex: 'score',
align: 'center',
},
{
title: '获取时间',
dataIndex: 'createTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
},
];
......
......@@ -88,27 +88,22 @@ const MemberOrderEvaluation: React.FC<IProps> = (props: IProps) => {
{
title: ' ',
dataIndex: 'title',
align: 'center',
},
{
title: '最近7天',
dataIndex: 'last7days',
align: 'center',
},
{
title: '最近30天',
dataIndex: 'last30days',
align: 'center',
},
{
title: '最近180天',
dataIndex: 'last180days',
align: 'center',
},
{
title: '180天前',
dataIndex: 'before180days',
align: 'center',
},
];
......@@ -164,7 +159,6 @@ const MemberOrderEvaluation: React.FC<IProps> = (props: IProps) => {
{
title: '评论',
dataIndex: 'star',
align: 'center',
filters: [
{
text: '差评',
......@@ -185,30 +179,25 @@ const MemberOrderEvaluation: React.FC<IProps> = (props: IProps) => {
{
title: '评价内容',
dataIndex: 'comment',
align: 'center',
ellipsis: true,
},
{
title: '商品名称/数量',
dataIndex: 'product',
align: 'center',
ellipsis: true,
render: (text, record) => `${text}/${record.purchaseCount}`,
},
{
title: '评价方',
dataIndex: 'byMemberName',
align: 'center',
},
{
title: '交易时间',
dataIndex: 'createTime',
align: 'center',
},
{
title: '订单号',
dataIndex: 'orderNo',
align: 'center',
},
];
......
......@@ -115,19 +115,16 @@ const MemberFeedbackRecords: React.FC<IProps> = (props: IProps) => {
{
title: '事件时间',
dataIndex: 'eventTime',
align: 'center',
ellipsis: true,
},
{
title: '处理时间',
dataIndex: 'handleTime',
align: 'center',
ellipsis: true,
},
{
title: '处理结果',
dataIndex: 'result',
align: 'center',
ellipsis: true,
},
];
......
......@@ -103,27 +103,22 @@ const MemberRightsRecords: React.FC<IProps> = (props: IProps) => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '会员权益名称',
dataIndex: 'rightTypeName',
align: 'center',
},
{
title: '获取数量',
dataIndex: 'point',
align: 'center',
},
{
title: '获取时间',
dataIndex: 'createTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
},
];
......@@ -132,32 +127,26 @@ const MemberRightsRecords: React.FC<IProps> = (props: IProps) => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '会员权益名称',
dataIndex: 'rightTypeName',
align: 'center',
},
{
title: '会员权益使用名称',
dataIndex: 'spendTypeName',
align: 'center',
},
{
title: '使用数量',
dataIndex: 'point',
align: 'center',
},
{
title: '使用时间',
dataIndex: 'createTime',
align: 'center',
},
{
title: '备注',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
},
];
......
......@@ -123,18 +123,15 @@ export const MEMBER_OUTER_COLUMNS: EditableColumns[] = [
{
title: '序号',
dataIndex: 'index',
align: 'center',
render: (text, record, index) => index + 1,
},
{
title: '操作角色',
dataIndex: 'operatorRoleName',
align: 'center',
},
{
title: '状态',
dataIndex: 'outerStatusName',
align: 'center',
render: (text, record) => (
<StatusTag type={MEMBER_OUTER_STATUS_TYPE[record.outerStatus]} title={text} />
),
......@@ -142,18 +139,15 @@ export const MEMBER_OUTER_COLUMNS: EditableColumns[] = [
{
title: '操作',
dataIndex: 'operation',
align: 'center',
},
{
title: '操作时间',
dataIndex: 'createTime',
align: 'center',
ellipsis: true,
},
{
title: '审核意见',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
},
];
......@@ -162,28 +156,23 @@ export const MEMBER_INNER_COLUMNS: EditableColumns[] = [
{
title: '序号',
dataIndex: 'index',
align: 'center',
render: (text, record, index) => index + 1,
},
{
title: '操作人',
dataIndex: 'operatorName',
align: 'center',
},
{
title: '部门',
dataIndex: 'operatorOrgName',
align: 'center',
},
{
title: '职位',
dataIndex: 'operatorJobTitle',
align: 'center',
},
{
title: '状态',
dataIndex: 'innerStatusName',
align: 'center',
render: (text, record) => (
<Badge color={MEMBER_INNER_STATUS_BADGE_COLOR[record.innerStatus]} text={text} />
),
......@@ -191,18 +180,15 @@ export const MEMBER_INNER_COLUMNS: EditableColumns[] = [
{
title: '操作',
dataIndex: 'operation',
align: 'center',
},
{
title: '操作时间',
dataIndex: 'createTime',
align: 'center',
ellipsis: true,
},
{
title: '审核意见',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
},
];
\ No newline at end of file
......@@ -54,7 +54,6 @@ const ComingConfigTable = (props) => {
title: '操作',
dataIndex: 'option',
width: '20%',
align: 'center',
render: (_, record: any) => (
<>
{editable && (
......
......@@ -56,7 +56,6 @@ const PlatformConfigTable = (props: IProps) => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '中文名称',
......
......@@ -89,7 +89,6 @@ const MemberFlowRule: React.FC<[]> = () => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '流程规则名称',
......@@ -107,22 +106,18 @@ const MemberFlowRule: React.FC<[]> = () => {
{
title: '会员角色',
dataIndex: 'roleName',
align: 'center',
},
{
title: '角色类型',
dataIndex: 'roleTypeName',
align: 'center',
},
{
title: '会员类型',
dataIndex: 'memberTypeName',
align: 'center',
},
{
title: '业务类型',
dataIndex: 'businessTypeName',
align: 'center',
},
{
title: '操作时间',
......@@ -131,7 +126,6 @@ const MemberFlowRule: React.FC<[]> = () => {
{
title: '状态',
dataIndex: 'status',
align: 'center',
render: (_, record) => (
<StatusSwitch
fieldNames="status"
......@@ -144,7 +138,6 @@ const MemberFlowRule: React.FC<[]> = () => {
title: '操作',
dataIndex: 'option',
width: '20%',
align: 'center',
render: (_, record: any) => (
<>
<Button
......
......@@ -129,7 +129,6 @@ const MemberMaintain: React.FC<[]> = () => {
{
title: '外部状态',
dataIndex: 'outerStatusName',
align: 'center',
render: (text, record) => (
<StatusTag type={MEMBER_OUTER_STATUS_TYPE[record.outerStatus]} title={text} />
),
......@@ -138,7 +137,6 @@ const MemberMaintain: React.FC<[]> = () => {
title: '操作',
dataIndex: 'option',
width: '20%',
align: 'center',
render: (text: any, record: any) => (
<>
{/* 外部审核状态等于 待提交 可进行提交操作 */}
......
......@@ -77,39 +77,32 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '会员权益名称',
dataIndex: 'name',
align: 'center',
},
{
title: '会员权益说明',
dataIndex: 'remark',
align: 'center',
},
{
title: '权益获取方式',
dataIndex: 'acquireWay',
align: 'center',
},
{
title: '参数设置方式',
dataIndex: 'paramWay',
align: 'center',
},
{
title: '参数',
dataIndex: 'param',
align: 'center',
width: '20%',
editable: isEdit,
},
{
title: '状态',
dataIndex: 'status',
align: 'center',
render: (_, record: any) => (
isEdit ? (
<StatusSwitch
......
......@@ -32,12 +32,10 @@ const MemberLevel: React.FC<[]> = () => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
},
{
title: '会员等级',
dataIndex: 'level',
align: 'center',
render: (text: any, record: any) => (
<div className={styles[`levelIcon${record.level}`]}></div>
),
......@@ -45,7 +43,6 @@ const MemberLevel: React.FC<[]> = () => {
{
title: '会员等级标签',
dataIndex: 'levelTag',
align: 'center',
key: 'levelTag',
render: (text: any, record: any) => (
<EyePreview
......@@ -58,37 +55,30 @@ const MemberLevel: React.FC<[]> = () => {
{
title: '会员等级类型',
dataIndex: 'memberLevelTypeName',
align: 'center',
},
{
title: '升级分值标签',
dataIndex: 'scoreTag',
align: 'center',
},
{
title: '会员角色名称',
dataIndex: 'roleName',
align: 'center',
},
{
title: '角色类型',
dataIndex: 'roleTypeName',
align: 'center',
},
{
title: '会员类型',
dataIndex: 'memberTypeName',
align: 'center',
},
{
title: '升级阈值',
dataIndex: 'point',
align: 'center',
},
{
title: '状态',
dataIndex: 'status',
align: 'center',
render: (text: any, record: any) => (
<StatusSwitch
handleConfirm={() => handleModify(record)}
......@@ -100,7 +90,6 @@ const MemberLevel: React.FC<[]> = () => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (text: any, record: any) => (
<Button
type="link"
......
......@@ -93,14 +93,12 @@ const MemberMaintain: React.FC<[]> = () => {
title: '会员状态',
dataIndex: 'statusName',
filters: [],
align: 'center',
onFilter: (value, record) => record.status === value,
},
{
title: '外部状态',
dataIndex: 'outerStatusName',
filters: [],
align: 'center',
onFilter: (value, record) => record.outerStatus === value,
render: (text, record) => (
<StatusTag type={MEMBER_OUTER_STATUS_TYPE[record.outerStatus]} title={text} />
......@@ -110,14 +108,12 @@ const MemberMaintain: React.FC<[]> = () => {
title: '内部状态',
dataIndex: 'innerStatusName',
filters: [],
align: 'center',
onFilter: (value, record) => record.innerStatus === value,
render: (text, record) => <Badge color={MEMBER_INNER_STATUS_BADGE_COLOR[record.innerStatus] || '#606266'} text={text} />,
},
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<>
{record.showFreeze && (
......
......@@ -34,7 +34,6 @@ const MemberPrComingClassify: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -34,7 +34,6 @@ const MemberPrComingInvestigate: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyChange1: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyChange2: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyChangeConfrim: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyComing1: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyComing2: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyComingConfirm: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const MemberPrVerifyComingData: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -38,7 +38,6 @@ const memberPrVerifyComingQualifications: React.FC<{}> = props => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<Button
type="link"
......
......@@ -69,7 +69,6 @@ const MemberQuery: React.FC<{}> = () => {
{
title: '会员归属',
dataIndex: 'name',
align: 'center',
render: (text, record) => (
<EyePreview
url={`/memberCenter/memberAbility/profile/query/detail?validateId=${record.validateId}`}
......@@ -81,33 +80,27 @@ const MemberQuery: React.FC<{}> = () => {
{
title: '会员类型',
dataIndex: 'memberTypeName',
align: 'center',
},
{
title: '会员角色',
dataIndex: 'roleName',
align: 'center',
},
{
title: '会员等级',
dataIndex: 'level',
align: 'center',
render: text => <LevelBrand level={text} />,
},
{
title: '会员等级类型',
dataIndex: 'levelTypeName',
align: 'center',
},
{
title: '申请时间',
dataIndex: 'registerTime',
align: 'center',
},
{
title: '入库时间',
dataIndex: 'depositTime',
align: 'center',
},
{
title: '会员状态',
......@@ -124,7 +117,6 @@ const MemberQuery: React.FC<{}> = () => {
{
title: '操作',
dataIndex: 'option',
align: 'center',
render: (_, record) => (
<>
{/* 渠道会员, 且外部审核状态为不通过才可以 变更信息 */}
......
......@@ -44,32 +44,27 @@ const MemberUpgradeRule: React.FC<[]> = () => {
{
title: 'ID',
dataIndex: 'id',
align: 'center',
width: '15%',
},
{
title: '升级规则',
dataIndex: 'ruleName',
align: 'center',
width: '15%',
},
{
title: '升级规则说明',
dataIndex: 'remark',
align: 'center',
ellipsis: true,
render: text => <Tooltip title={text}>{text}</Tooltip>,
},
{
title: '适用会员等级类型',
dataIndex: 'levelTypeName',
align: 'center',
width: '15%',
},
{
title: '可获取的分值',
dataIndex: 'score',
align: 'center',
width: '15%',
editable: true,
},
......
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