Commit a2b32314 authored by XieZhiXiong's avatar XieZhiXiong

chore: 修改前缀

parent c178c732
This diff is collapsed.
...@@ -42,15 +42,15 @@ const ComingConfigTable = (props) => { ...@@ -42,15 +42,15 @@ const ComingConfigTable = (props) => {
const columns: EditableColumns[] = [ const columns: EditableColumns[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.columns.id' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.columns.id' }),
dataIndex: 'id', dataIndex: 'id',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.columns.fieldLocalName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.columns.fieldLocalName' }),
dataIndex: 'fieldLocalName', dataIndex: 'fieldLocalName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.columns.groupName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.columns.groupName' }),
dataIndex: 'groupName', dataIndex: 'groupName',
}, },
{ {
...@@ -61,16 +61,16 @@ const ComingConfigTable = (props) => { ...@@ -61,16 +61,16 @@ const ComingConfigTable = (props) => {
<> <>
{editable && ( {editable && (
<Popconfirm <Popconfirm
title={intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.delete.tip' })} title={intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.delete.tip' })}
okText={intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.delete.yes' })} okText={intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.delete.yes' })}
cancelText={intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.delete.no' })} cancelText={intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.delete.no' })}
onConfirm={() => handleDelete(record.id)} onConfirm={() => handleDelete(record.id)}
> >
<Button <Button
type="link" type="link"
danger danger
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingConfigTable.delete' })} {intl.formatMessage({ id: 'member.memberFlowRule.components.ComingConfigTable.delete' })}
</Button> </Button>
</Popconfirm> </Popconfirm>
)} )}
......
...@@ -70,15 +70,15 @@ const ComingCtl = (props: IProps) => { ...@@ -70,15 +70,15 @@ const ComingCtl = (props: IProps) => {
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.columns.id' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.columns.id' }),
dataIndex: 'id', dataIndex: 'id',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.columns.fieldLocalName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.columns.fieldLocalName' }),
dataIndex: 'fieldLocalName', dataIndex: 'fieldLocalName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.columns.groupName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.columns.groupName' }),
dataIndex: 'groupName', dataIndex: 'groupName',
}, },
]; ];
...@@ -129,7 +129,7 @@ const ComingCtl = (props: IProps) => { ...@@ -129,7 +129,7 @@ const ComingCtl = (props: IProps) => {
icon={<PlusOutlined />} icon={<PlusOutlined />}
onClick={() => handleVisibleDrawer(true)} onClick={() => handleVisibleDrawer(true)}
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.add' })} {intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.add' })}
</Button> </Button>
)} )}
{/* <Button> {/* <Button>
...@@ -138,7 +138,7 @@ const ComingCtl = (props: IProps) => { ...@@ -138,7 +138,7 @@ const ComingCtl = (props: IProps) => {
</Space> </Space>
<Drawer <Drawer
title={intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.drawer.title' })} title={intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.drawer.title' })}
width={1000} width={1000}
onClose={() => handleVisibleDrawer(false)} onClose={() => handleVisibleDrawer(false)}
visible={visibleDrawer} visible={visibleDrawer}
......
...@@ -21,8 +21,8 @@ const querySchema: ISchema = { ...@@ -21,8 +21,8 @@ const querySchema: ISchema = {
type: 'string', type: 'string',
'x-component': 'Search', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.name.placeholder' }), placeholder: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.name.placeholder' }),
tip: intl.formatMessage({ id: 'member.management.memberFlowRule.components.ComingCtl.name.tip' }), tip: intl.formatMessage({ id: 'member.memberFlowRule.components.ComingCtl.name.tip' }),
advanced: false, advanced: false,
align: 'flex-left', align: 'flex-left',
}, },
......
...@@ -114,7 +114,7 @@ const FlowListFormItem = (props: IProps) => { ...@@ -114,7 +114,7 @@ const FlowListFormItem = (props: IProps) => {
className={styles.more} className={styles.more}
onClick={handleToogleMore} onClick={handleToogleMore}
> >
{!showMore ? intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowListFormItem.visible' }) : intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowListFormItem.hide' })} {!showMore ? intl.formatMessage({ id: 'member.memberFlowRule.components.FlowListFormItem.visible' }) : intl.formatMessage({ id: 'member.memberFlowRule.components.FlowListFormItem.hide' })}
{!showMore ? <CaretDownOutlined /> : <CaretUpOutlined />} {!showMore ? <CaretDownOutlined /> : <CaretUpOutlined />}
</div> </div>
)} )}
......
...@@ -64,23 +64,23 @@ const MemberRoleFormItem = (props) => { ...@@ -64,23 +64,23 @@ const MemberRoleFormItem = (props) => {
const columns: ColumnType<ValueType>[] = [ const columns: ColumnType<ValueType>[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.roleId' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.roleId' }),
dataIndex: 'roleId', dataIndex: 'roleId',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.roleName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.roleName' }),
dataIndex: 'roleName', dataIndex: 'roleName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.roleTypeName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.roleTypeName' }),
dataIndex: 'roleTypeName', dataIndex: 'roleTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.memberTypeName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.memberTypeName' }),
dataIndex: 'memberTypeName', dataIndex: 'memberTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.businessTypeName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.businessTypeName' }),
dataIndex: 'businessTypeName', dataIndex: 'businessTypeName',
}, },
]; ];
...@@ -98,7 +98,7 @@ const MemberRoleFormItem = (props) => { ...@@ -98,7 +98,7 @@ const MemberRoleFormItem = (props) => {
const handleConfirm = () => { const handleConfirm = () => {
if (!RowCtl.selectRow.length) { if (!RowCtl.selectRow.length) {
message.warning(intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.confirm.warning' })); message.warning(intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.confirm.warning' }));
} }
mutators.change(RowCtl.selectRow[0]); mutators.change(RowCtl.selectRow[0]);
handleVisibleDrawer(false); handleVisibleDrawer(false);
...@@ -114,19 +114,19 @@ const MemberRoleFormItem = (props) => { ...@@ -114,19 +114,19 @@ const MemberRoleFormItem = (props) => {
disabled={!editable} disabled={!editable}
block block
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.select' })} {intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.select' })}
</Button> </Button>
<div className={styles['memberRole-stamp']}> <div className={styles['memberRole-stamp']}>
<Descriptions column={1}> <Descriptions column={1}>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.roleName' })} labelStyle={{ width: 104 }}>{value?.roleName || ''}</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.roleName' })} labelStyle={{ width: 104 }}>{value?.roleName || ''}</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.roleTypeName' })} labelStyle={{ width: 104 }}>{value?.roleTypeName || ''}</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.roleTypeName' })} labelStyle={{ width: 104 }}>{value?.roleTypeName || ''}</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.memberTypeName' })} labelStyle={{ width: 104 }}>{value?.memberTypeName || ''}</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.memberTypeName' })} labelStyle={{ width: 104 }}>{value?.memberTypeName || ''}</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.businessTypeName' })} labelStyle={{ width: 104 }}>{value?.businessTypeName || ''}</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.businessTypeName' })} labelStyle={{ width: 104 }}>{value?.businessTypeName || ''}</Descriptions.Item>
</Descriptions> </Descriptions>
</div> </div>
<Drawer <Drawer
title={intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.drawer.title' })} title={intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.drawer.title' })}
width={1000} width={1000}
onClose={() => handleVisibleDrawer(false)} onClose={() => handleVisibleDrawer(false)}
visible={visibleDrawer} visible={visibleDrawer}
......
...@@ -20,8 +20,8 @@ const querySchema: ISchema = { ...@@ -20,8 +20,8 @@ const querySchema: ISchema = {
}, },
'x-component': 'Search', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.name.placeholder' }), placeholder: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.name.placeholder' }),
tip: intl.formatMessage({ id: 'member.management.memberFlowRule.components.MemberRoleFormItem.name.tip' }), tip: intl.formatMessage({ id: 'member.memberFlowRule.components.MemberRoleFormItem.name.tip' }),
advanced: false, advanced: false,
align: 'flex-left', align: 'flex-left',
}, },
......
...@@ -57,15 +57,15 @@ const PlatformConfigTable = (props: IProps) => { ...@@ -57,15 +57,15 @@ const PlatformConfigTable = (props: IProps) => {
const columns: EditableColumns[] = [ const columns: EditableColumns[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.PlatformConfigTable.columns.id' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.PlatformConfigTable.columns.id' }),
dataIndex: 'id', dataIndex: 'id',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.PlatformConfigTable.columns.fieldLocalName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.PlatformConfigTable.columns.fieldLocalName' }),
dataIndex: 'fieldLocalName', dataIndex: 'fieldLocalName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.PlatformConfigTable.columns.groupName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.PlatformConfigTable.columns.groupName' }),
dataIndex: 'groupName', dataIndex: 'groupName',
}, },
]; ];
...@@ -123,8 +123,8 @@ const PlatformConfigTable = (props: IProps) => { ...@@ -123,8 +123,8 @@ const PlatformConfigTable = (props: IProps) => {
<Descriptions.Item <Descriptions.Item
label={( label={(
<div style={{ display: 'flex', alignItems: 'center' }}> <div style={{ display: 'flex', alignItems: 'center' }}>
{intl.formatMessage({ id: 'member.management.memberFlowRule.components.PlatformConfigTable.title' })} {intl.formatMessage({ id: 'member.memberFlowRule.components.PlatformConfigTable.title' })}
<Tooltip title={intl.formatMessage({ id: 'member.management.memberFlowRule.components.PlatformConfigTable.title-description' })}> <Tooltip title={intl.formatMessage({ id: 'member.memberFlowRule.components.PlatformConfigTable.title-description' })}>
<QuestionCircleOutlined <QuestionCircleOutlined
style={{ margin: '0 3px', cursor: 'default', marginLeft: 3 }} style={{ margin: '0 3px', cursor: 'default', marginLeft: 3 }}
size={16} size={16}
...@@ -137,7 +137,7 @@ const PlatformConfigTable = (props: IProps) => { ...@@ -137,7 +137,7 @@ const PlatformConfigTable = (props: IProps) => {
paddingBottom: 0, paddingBottom: 0,
}} }}
> >
<Checkbox checked disabled>{intl.formatMessage({ id: 'member.management.memberFlowRule.components.PlatformConfigTable.default' })}</Checkbox> <Checkbox checked disabled>{intl.formatMessage({ id: 'member.memberFlowRule.components.PlatformConfigTable.default' })}</Checkbox>
</Descriptions.Item> </Descriptions.Item>
</Descriptions> </Descriptions>
</Col> </Col>
......
...@@ -89,7 +89,7 @@ const MySearch: React.FC<IProps> = (props: IProps) => { ...@@ -89,7 +89,7 @@ const MySearch: React.FC<IProps> = (props: IProps) => {
<Button <Button
onClick={handleReset} onClick={handleReset}
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.components.Search.reset' })} {intl.formatMessage({ id: 'member.memberFlowRule.components.Search.reset' })}
</Button> </Button>
</div> </div>
); );
......
...@@ -112,7 +112,7 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({ ...@@ -112,7 +112,7 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({
if (!id && isEdit) { if (!id && isEdit) {
setSubmitLoading(true); setSubmitLoading(true);
const msg = message.loading({ const msg = message.loading({
content: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.add.message' }), content: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.add.message' }),
duration: 0, duration: 0,
}); });
postMemberProcessRuleAdd({ postMemberProcessRuleAdd({
...@@ -138,7 +138,7 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({ ...@@ -138,7 +138,7 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({
if (id && isEdit) { if (id && isEdit) {
setSubmitLoading(true); setSubmitLoading(true);
const msg = message.loading({ const msg = message.loading({
content: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.save.message' }), content: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.save.message' }),
duration: 0, duration: 0,
}); });
postMemberProcessRuleUpdate({ postMemberProcessRuleUpdate({
...@@ -170,8 +170,8 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({ ...@@ -170,8 +170,8 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({
padding: 24, padding: 24,
}} }}
onBack={() => history.goBack()} onBack={() => history.goBack()}
backIcon={<ReutrnEle description={intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.back' })} />} backIcon={<ReutrnEle description={intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.back' })} />}
title={!id ? intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.title-add' }) : isEdit ? intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.title-edit' }) : intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.title-info' })} title={!id ? intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.title-add' }) : isEdit ? intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.title-edit' }) : intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.title-info' })}
extra={[ extra={[
(isEdit ? ( (isEdit ? (
<Button <Button
...@@ -181,7 +181,7 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({ ...@@ -181,7 +181,7 @@ const FlowRuleForm: React.FC<MemberFormProps> = ({
loading={submitLoading} loading={submitLoading}
onClick={() => formActions.submit()} onClick={() => formActions.submit()}
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.save' })} {intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.save' })}
</Button> </Button>
) : null), ) : null),
]} ]}
......
...@@ -24,7 +24,7 @@ const formSchema: ISchema = { ...@@ -24,7 +24,7 @@ const formSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'TabPane', 'x-component': 'TabPane',
'x-component-props': { 'x-component-props': {
tab: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.basic' }), tab: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.basic' }),
}, },
properties: { properties: {
MEGA_LAYOUT1: { MEGA_LAYOUT1: {
...@@ -39,9 +39,9 @@ const formSchema: ISchema = { ...@@ -39,9 +39,9 @@ const formSchema: ISchema = {
ruleName: { ruleName: {
type: 'string', type: 'string',
required: true, required: true,
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.basic.ruleName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.basic.ruleName' }),
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.basic.ruleName.placeholder' }), placeholder: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.basic.ruleName.placeholder' }),
}, },
'x-rules': [ 'x-rules': [
{ {
...@@ -53,7 +53,7 @@ const formSchema: ISchema = { ...@@ -53,7 +53,7 @@ const formSchema: ISchema = {
memberRole: { memberRole: {
type: 'string', type: 'string',
required: true, required: true,
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.basic.memberRole' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.basic.memberRole' }),
'x-component': 'MemberRoleFormItem', 'x-component': 'MemberRoleFormItem',
'x-component-props': { 'x-component-props': {
...@@ -67,7 +67,7 @@ const formSchema: ISchema = { ...@@ -67,7 +67,7 @@ const formSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'TabPane', 'x-component': 'TabPane',
'x-component-props': { 'x-component-props': {
tab: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.flow' }), tab: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.flow' }),
}, },
properties: { properties: {
MEGA_LAYOUT1: { MEGA_LAYOUT1: {
...@@ -82,7 +82,7 @@ const formSchema: ISchema = { ...@@ -82,7 +82,7 @@ const formSchema: ISchema = {
depositoryProcessId: { depositoryProcessId: {
type: 'string', type: 'string',
required: true, required: true,
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.flow.depositoryProcessId' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.flow.depositoryProcessId' }),
'x-component': 'FlowListFormItem', 'x-component': 'FlowListFormItem',
'x-component-props': { 'x-component-props': {
dataSource: [], dataSource: [],
...@@ -97,7 +97,7 @@ const formSchema: ISchema = { ...@@ -97,7 +97,7 @@ const formSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'TabPane', 'x-component': 'TabPane',
'x-component-props': { 'x-component-props': {
tab: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.platformConfig' }), tab: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.platformConfig' }),
}, },
properties: { properties: {
// MEGA_LAYOUT1: { // MEGA_LAYOUT1: {
...@@ -144,7 +144,7 @@ const formSchema: ISchema = { ...@@ -144,7 +144,7 @@ const formSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'TabPane', 'x-component': 'TabPane',
'x-component-props': { 'x-component-props': {
tab: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.configIds' }), tab: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.configIds' }),
}, },
properties: { properties: {
configIds: { configIds: {
...@@ -158,7 +158,7 @@ const formSchema: ISchema = { ...@@ -158,7 +158,7 @@ const formSchema: ISchema = {
type: 'object', type: 'object',
'x-component': 'TabPane', 'x-component': 'TabPane',
'x-component-props': { 'x-component-props': {
tab: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.changed' }), tab: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.changed' }),
}, },
properties: { properties: {
MEGA_LAYOUT1: { MEGA_LAYOUT1: {
...@@ -173,7 +173,7 @@ const formSchema: ISchema = { ...@@ -173,7 +173,7 @@ const formSchema: ISchema = {
changedProcessId: { changedProcessId: {
type: 'string', type: 'string',
required: true, required: true,
title: intl.formatMessage({ id: 'member.management.memberFlowRule.components.FlowRuleForm.form.changed.changedProcessId' }), title: intl.formatMessage({ id: 'member.memberFlowRule.components.FlowRuleForm.form.changed.changedProcessId' }),
'x-component': 'FlowListFormItem', 'x-component': 'FlowListFormItem',
'x-component-props': { 'x-component-props': {
dataSource: [], dataSource: [],
......
...@@ -54,7 +54,7 @@ const MemberFlowRule: React.FC<[]> = () => { ...@@ -54,7 +54,7 @@ const MemberFlowRule: React.FC<[]> = () => {
const handleDelete = (id: number) => { const handleDelete = (id: number) => {
const mesInstance = message.loading({ const mesInstance = message.loading({
content: intl.formatMessage({ id: 'member.management.memberFlowRule.delete.message' }), content: intl.formatMessage({ id: 'member.memberFlowRule.delete.message' }),
duration: 0, duration: 0,
}); });
postMemberProcessRuleDelete({ postMemberProcessRuleDelete({
...@@ -71,7 +71,7 @@ const MemberFlowRule: React.FC<[]> = () => { ...@@ -71,7 +71,7 @@ const MemberFlowRule: React.FC<[]> = () => {
const handleModify = (id: number, status: number) => { const handleModify = (id: number, status: number) => {
const mesInstance = message.loading({ const mesInstance = message.loading({
content: intl.formatMessage({ id: 'member.management.memberFlowRule.modify.message' }), content: intl.formatMessage({ id: 'member.memberFlowRule.modify.message' }),
duration: 0, duration: 0,
}); });
postMemberProcessRuleUpdateStatus({ postMemberProcessRuleUpdateStatus({
...@@ -89,11 +89,11 @@ const MemberFlowRule: React.FC<[]> = () => { ...@@ -89,11 +89,11 @@ const MemberFlowRule: React.FC<[]> = () => {
const defaultColumns: ColumnType<any>[] = [ const defaultColumns: ColumnType<any>[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.id' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.id' }),
dataIndex: 'id', dataIndex: 'id',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.ruleName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.ruleName' }),
dataIndex: 'ruleName', dataIndex: 'ruleName',
render: (text, record) => ( render: (text, record) => (
<> <>
...@@ -106,27 +106,27 @@ const MemberFlowRule: React.FC<[]> = () => { ...@@ -106,27 +106,27 @@ const MemberFlowRule: React.FC<[]> = () => {
), ),
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.roleName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.roleName' }),
dataIndex: 'roleName', dataIndex: 'roleName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.roleTypeName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.roleTypeName' }),
dataIndex: 'roleTypeName', dataIndex: 'roleTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.memberTypeName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.memberTypeName' }),
dataIndex: 'memberTypeName', dataIndex: 'memberTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.businessTypeName' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.businessTypeName' }),
dataIndex: 'businessTypeName', dataIndex: 'businessTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.createTime' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.createTime' }),
dataIndex: 'createTime', dataIndex: 'createTime',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberFlowRule.defaultColumns.status' }), title: intl.formatMessage({ id: 'member.memberFlowRule.defaultColumns.status' }),
dataIndex: 'status', dataIndex: 'status',
render: (_, record) => ( render: (_, record) => (
<StatusSwitch <StatusSwitch
...@@ -148,19 +148,19 @@ const MemberFlowRule: React.FC<[]> = () => { ...@@ -148,19 +148,19 @@ const MemberFlowRule: React.FC<[]> = () => {
history.push(`/memberCenter/memberAbility/ruleConfiguration/memberFlowRule/edit?id=${record.id}`) history.push(`/memberCenter/memberAbility/ruleConfiguration/memberFlowRule/edit?id=${record.id}`)
} }
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.modify' })} {intl.formatMessage({ id: 'member.memberFlowRule.modify' })}
</Button> </Button>
<Popconfirm <Popconfirm
title={intl.formatMessage({ id: 'member.management.memberFlowRule.delete.tip' })} title={intl.formatMessage({ id: 'member.memberFlowRule.delete.tip' })}
okText={intl.formatMessage({ id: 'member.management.memberFlowRule.delete.yes' })} okText={intl.formatMessage({ id: 'member.memberFlowRule.delete.yes' })}
cancelText={intl.formatMessage({ id: 'member.management.memberFlowRule.delete.no' })} cancelText={intl.formatMessage({ id: 'member.memberFlowRule.delete.no' })}
onConfirm={() => handleDelete(record.id)} onConfirm={() => handleDelete(record.id)}
> >
<Button <Button
type="link" type="link"
danger danger
> >
{intl.formatMessage({ id: 'member.management.memberFlowRule.delete' })} {intl.formatMessage({ id: 'member.memberFlowRule.delete' })}
</Button> </Button>
</Popconfirm> </Popconfirm>
</> </>
...@@ -180,7 +180,7 @@ const MemberFlowRule: React.FC<[]> = () => { ...@@ -180,7 +180,7 @@ const MemberFlowRule: React.FC<[]> = () => {
} }
> >
<PlusOutlined /> <PlusOutlined />
{intl.formatMessage({ id: 'member.management.memberFlowRule.add' })} {intl.formatMessage({ id: 'member.memberFlowRule.add' })}
</Button> </Button>
</Space> </Space>
</> </>
......
...@@ -35,8 +35,8 @@ export const querySchema: ISchema = { ...@@ -35,8 +35,8 @@ export const querySchema: ISchema = {
type: 'string', type: 'string',
'x-component': 'Search', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberFlowRule.name.placeholder' }), placeholder: intl.formatMessage({ id: 'member.memberFlowRule.name.placeholder' }),
tip: intl.formatMessage({ id: 'member.management.memberFlowRule.name.tip' }), tip: intl.formatMessage({ id: 'member.memberFlowRule.name.tip' }),
advanced: false, advanced: false,
}, },
}, },
......
...@@ -69,7 +69,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -69,7 +69,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
ctlType: 'none', ctlType: 'none',
}).then(res => { }).then(res => {
if (res.code === 1000) { if (res.code === 1000) {
const msg = disabled ? intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.status.active' }) : intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.status.disbled' }) const msg = disabled ? intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.status.active' }) : intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.status.disbled' })
message.success(msg); message.success(msg);
getMemberLevelInfo(); getMemberLevelInfo();
} }
...@@ -78,33 +78,33 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -78,33 +78,33 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
const columns: EditableColumns[] = [ const columns: EditableColumns[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.id' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.id' }),
dataIndex: 'id', dataIndex: 'id',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.name' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.name' }),
dataIndex: 'name', dataIndex: 'name',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.remark' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.remark' }),
dataIndex: 'remark', dataIndex: 'remark',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.acquireWay' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.acquireWay' }),
dataIndex: 'acquireWay', dataIndex: 'acquireWay',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.paramWay' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.paramWay' }),
dataIndex: 'paramWay', dataIndex: 'paramWay',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.param' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.param' }),
dataIndex: 'param', dataIndex: 'param',
width: '20%', width: '20%',
editable: isEdit, editable: isEdit,
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.status' }), title: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.status' }),
dataIndex: 'status', dataIndex: 'status',
render: (_, record: any) => ( render: (_, record: any) => (
isEdit ? ( isEdit ? (
...@@ -182,7 +182,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -182,7 +182,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
try { try {
const resArr = await Promise.all(promises); const resArr = await Promise.all(promises);
if (resArr.every((item: { code: number }) => item.code === 1000)) { if (resArr.every((item: { code: number }) => item.code === 1000)) {
message.success(intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.submit.success' })); message.success(intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.submit.success' }));
getMemberLevelInfo(); getMemberLevelInfo();
} }
// const errorItem = resArr.find(item => item.code !== 1000); // const errorItem = resArr.find(item => item.code !== 1000);
...@@ -211,11 +211,11 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -211,11 +211,11 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
rules: [ rules: [
{ {
required: true, required: true,
message: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.rules-required' }), message: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.rules-required' }),
}, },
{ {
pattern: PATTERN_MAPS.money, pattern: PATTERN_MAPS.money,
message: intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.columns.rules-legal' }), message: intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.columns.rules-legal' }),
}, },
], ],
addonAfter: '%', addonAfter: '%',
...@@ -248,7 +248,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -248,7 +248,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
disabled={submitDisabled} disabled={submitDisabled}
onClick={handleSubmit} onClick={handleSubmit}
> >
{intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.submit' })} {intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.submit' })}
</Button> </Button>
)} )}
</> </>
...@@ -276,19 +276,19 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -276,19 +276,19 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
padding: '0 32px', padding: '0 32px',
}} }}
> >
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.level' })}>{ levelInfo?.level }</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.level' })}>{ levelInfo?.level }</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.scoreTag' })}>{ levelInfo?.scoreTag }</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.scoreTag' })}>{ levelInfo?.scoreTag }</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.roleTypeName' })}>{ levelInfo?.roleTypeName }</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.roleTypeName' })}>{ levelInfo?.roleTypeName }</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.levelRemark' })}>{ levelInfo?.levelRemark }</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.levelRemark' })}>{ levelInfo?.levelRemark }</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.roleName' })}>{ levelInfo?.roleName }</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.roleName' })}>{ levelInfo?.roleName }</Descriptions.Item>
<Descriptions.Item label={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.memberTypeName' })}>{ levelInfo?.memberTypeName }</Descriptions.Item> <Descriptions.Item label={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.memberTypeName' })}>{ levelInfo?.memberTypeName }</Descriptions.Item>
</Descriptions> </Descriptions>
</PageHeader> </PageHeader>
</> </>
} }
> >
<Card <Card
title={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.threshold' })} title={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.threshold' })}
headStyle={{ headStyle={{
borderBottom: 'none', borderBottom: 'none',
}} }}
...@@ -297,7 +297,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -297,7 +297,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
<div className={styles.extra}> <div className={styles.extra}>
<div className={styles['extra-main']}> <div className={styles['extra-main']}>
<div className={classNames(styles['extra-main-content'], styles.left)}> <div className={classNames(styles['extra-main-content'], styles.left)}>
<div className={styles.icon}>{intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.threshold.current' })}</div> <div className={styles.icon}>{intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.threshold.current' })}</div>
<div className={styles.input}> <div className={styles.input}>
<div className={styles['input-main']}> <div className={styles['input-main']}>
<Input <Input
...@@ -323,7 +323,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({ ...@@ -323,7 +323,7 @@ const DetailInfo: React.FC<DetailInfoProps> = ({
</Card> </Card>
<Card <Card
title={intl.formatMessage({ id: 'member.management.memberLevel.components.DetailInfo.rights' })} title={intl.formatMessage({ id: 'member.memberLevel.components.DetailInfo.rights' })}
headStyle={{ headStyle={{
borderBottom: 'none', borderBottom: 'none',
}} }}
......
...@@ -32,18 +32,18 @@ const MemberLevel: React.FC<[]> = () => { ...@@ -32,18 +32,18 @@ const MemberLevel: React.FC<[]> = () => {
const columns: ColumnType<any>[] = [ const columns: ColumnType<any>[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.id' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.id' }),
dataIndex: 'id', dataIndex: 'id',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.level' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.level' }),
dataIndex: 'level', dataIndex: 'level',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<div className={styles[`levelIcon${record.level}`]}></div> <div className={styles[`levelIcon${record.level}`]}></div>
), ),
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.levelTag' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.levelTag' }),
dataIndex: 'levelTag', dataIndex: 'levelTag',
key: 'levelTag', key: 'levelTag',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
...@@ -55,31 +55,31 @@ const MemberLevel: React.FC<[]> = () => { ...@@ -55,31 +55,31 @@ const MemberLevel: React.FC<[]> = () => {
), ),
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.memberLevelTypeName' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.memberLevelTypeName' }),
dataIndex: 'memberLevelTypeName', dataIndex: 'memberLevelTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.scoreTag' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.scoreTag' }),
dataIndex: 'scoreTag', dataIndex: 'scoreTag',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.roleName' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.roleName' }),
dataIndex: 'roleName', dataIndex: 'roleName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.roleTypeName' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.roleTypeName' }),
dataIndex: 'roleTypeName', dataIndex: 'roleTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.memberTypeName' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.memberTypeName' }),
dataIndex: 'memberTypeName', dataIndex: 'memberTypeName',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.point' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.point' }),
dataIndex: 'point', dataIndex: 'point',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberLevel.query.columns.status' }), title: intl.formatMessage({ id: 'member.memberLevel.query.columns.status' }),
dataIndex: 'status', dataIndex: 'status',
render: (text: any, record: any) => ( render: (text: any, record: any) => (
<StatusSwitch <StatusSwitch
...@@ -99,7 +99,7 @@ const MemberLevel: React.FC<[]> = () => { ...@@ -99,7 +99,7 @@ const MemberLevel: React.FC<[]> = () => {
history.push(`/memberCenter/memberAbility/ruleConfiguration/level/edit?id=${record.id}`) history.push(`/memberCenter/memberAbility/ruleConfiguration/level/edit?id=${record.id}`)
} }
> >
{intl.formatMessage({ id: 'member.management.memberLevel.query.setting' })} {intl.formatMessage({ id: 'member.memberLevel.query.setting' })}
</Button> </Button>
), ),
}, },
......
...@@ -22,8 +22,8 @@ export const levelSchema: ISchema = { ...@@ -22,8 +22,8 @@ export const levelSchema: ISchema = {
type: 'string', type: 'string',
'x-component': 'Search', 'x-component': 'Search',
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberLevel.query.levelTag.placeholder' }), placeholder: intl.formatMessage({ id: 'member.memberLevel.query.levelTag.placeholder' }),
tip: intl.formatMessage({ id: 'member.management.memberLevel.query.levelTag.tip' }), tip: intl.formatMessage({ id: 'member.memberLevel.query.levelTag.tip' }),
}, },
}, },
}, },
...@@ -44,7 +44,7 @@ export const levelSchema: ISchema = { ...@@ -44,7 +44,7 @@ export const levelSchema: ISchema = {
type: 'string', type: 'string',
'x-component': 'Input', 'x-component': 'Input',
'x-component-props': { 'x-component-props': {
placeholder: intl.formatMessage({ id: 'member.management.memberLevel.query.roleName.placeholder' }), placeholder: intl.formatMessage({ id: 'member.memberLevel.query.roleName.placeholder' }),
allowClear: true, allowClear: true,
style: { style: {
width: 160, width: 160,
...@@ -54,7 +54,7 @@ export const levelSchema: ISchema = { ...@@ -54,7 +54,7 @@ export const levelSchema: ISchema = {
submit: { submit: {
'x-component': 'Submit', 'x-component': 'Submit',
'x-component-props': { 'x-component-props': {
children: intl.formatMessage({ id: 'member.management.memberLevel.query.query' }), children: intl.formatMessage({ id: 'member.memberLevel.query.query' }),
}, },
}, },
}, },
......
...@@ -45,28 +45,28 @@ const MemberUpgradeRule: React.FC<[]> = () => { ...@@ -45,28 +45,28 @@ const MemberUpgradeRule: React.FC<[]> = () => {
const columns: EditableColumns[] = [ const columns: EditableColumns[] = [
{ {
title: intl.formatMessage({ id: 'member.management.memberUpgradeRule.columns.id' }), title: intl.formatMessage({ id: 'member.memberUpgradeRule.columns.id' }),
dataIndex: 'id', dataIndex: 'id',
width: '15%', width: '15%',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberUpgradeRule.columns.ruleName' }), title: intl.formatMessage({ id: 'member.memberUpgradeRule.columns.ruleName' }),
dataIndex: 'ruleName', dataIndex: 'ruleName',
width: '15%', width: '15%',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberUpgradeRule.columns.remark' }), title: intl.formatMessage({ id: 'member.memberUpgradeRule.columns.remark' }),
dataIndex: 'remark', dataIndex: 'remark',
ellipsis: true, ellipsis: true,
render: text => <Tooltip title={text}>{text}</Tooltip>, render: text => <Tooltip title={text}>{text}</Tooltip>,
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberUpgradeRule.columns.levelTypeName' }), title: intl.formatMessage({ id: 'member.memberUpgradeRule.columns.levelTypeName' }),
dataIndex: 'levelTypeName', dataIndex: 'levelTypeName',
width: '15%', width: '15%',
}, },
{ {
title: intl.formatMessage({ id: 'member.management.memberUpgradeRule.columns.score' }), title: intl.formatMessage({ id: 'member.memberUpgradeRule.columns.score' }),
dataIndex: 'score', dataIndex: 'score',
width: '15%', width: '15%',
editable: true, editable: true,
...@@ -129,19 +129,19 @@ const MemberUpgradeRule: React.FC<[]> = () => { ...@@ -129,19 +129,19 @@ const MemberUpgradeRule: React.FC<[]> = () => {
[VIP_RULE_TRANSACTION]: [ [VIP_RULE_TRANSACTION]: [
{ {
pattern: /^([0]|[1-9]+[0-9]*)(\.[0-9]+)?$/, pattern: /^([0]|[1-9]+[0-9]*)(\.[0-9]+)?$/,
message: intl.formatMessage({ id: 'member.management.memberUpgradeRule.transaction.rules-legal' }), message: intl.formatMessage({ id: 'member.memberUpgradeRule.transaction.rules-legal' }),
}, },
], ],
[VIP_RULE_LOGIN]: [ [VIP_RULE_LOGIN]: [
{ {
pattern: /^[0]$|^[1-9]+[0-9]*$/, pattern: /^[0]$|^[1-9]+[0-9]*$/,
message: intl.formatMessage({ id: 'member.management.memberUpgradeRule.login.rules-legal' }), message: intl.formatMessage({ id: 'member.memberUpgradeRule.login.rules-legal' }),
}, },
], ],
[VIP_RULE_COMMENT]: [ [VIP_RULE_COMMENT]: [
{ {
pattern: /^[0]$|^[1-9]+[0-9]*$/, pattern: /^[0]$|^[1-9]+[0-9]*$/,
message: intl.formatMessage({ id: 'member.management.memberUpgradeRule.comment.rules-legal' }), message: intl.formatMessage({ id: 'member.memberUpgradeRule.comment.rules-legal' }),
}, },
], ],
}; };
...@@ -163,7 +163,7 @@ const MemberUpgradeRule: React.FC<[]> = () => { ...@@ -163,7 +163,7 @@ const MemberUpgradeRule: React.FC<[]> = () => {
rules: [ rules: [
{ {
required: true, required: true,
message: intl.formatMessage({ id: 'member.management.memberUpgradeRule.columns.rules-required' }), message: intl.formatMessage({ id: 'member.memberUpgradeRule.columns.rules-required' }),
}, },
...(rulesMap[record.ruleTypeEnum] || []), ...(rulesMap[record.ruleTypeEnum] || []),
], ],
...@@ -191,7 +191,7 @@ const MemberUpgradeRule: React.FC<[]> = () => { ...@@ -191,7 +191,7 @@ const MemberUpgradeRule: React.FC<[]> = () => {
disabled={submitDisabled} disabled={submitDisabled}
onClick={handleSubmit} onClick={handleSubmit}
> >
{intl.formatMessage({ id: 'member.management.memberUpgradeRule.save' })} {intl.formatMessage({ id: 'member.memberUpgradeRule.save' })}
</Button> </Button>
} }
> >
......
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