Browse Source

别名优化

main
cs 2 months ago
parent
commit
1f8fda8bd4
  1. 2
      src/pages/message/my/index.tsx
  2. 4
      src/pages/message/template/index.tsx
  3. 2
      src/types/message/template.ts

2
src/pages/message/my/index.tsx

@ -380,7 +380,7 @@ const MdwMessage = () => {
}} }}
onFinish={async (values) => { onFinish={async (values) => {
saveOrUpdate({...values, "alias": currentTemplate?.alias})
saveOrUpdate({...values, "code": currentTemplate?.code})
}} }}
columns={drawerColumns as ProFormColumnsType[]}/> columns={drawerColumns as ProFormColumnsType[]}/>
<BetaSchemaForm <BetaSchemaForm

4
src/pages/message/template/index.tsx

@ -123,8 +123,8 @@ const MdwMessage = () => {
} }
}, },
{ {
title: t(`${i18nPrefix}.columns.alias`, '模板别名'),
dataIndex: 'alias',
title: t(`${i18nPrefix}.columns.code`, '唯一code'),
dataIndex: 'code',
valueType: 'text', valueType: 'text',
fieldProps: { fieldProps: {
maxLength: 50, maxLength: 50,

2
src/types/message/template.ts

@ -6,7 +6,7 @@ export interface IMsgTemplate {
dest: string dest: string
type: string type: string
fields: string fields: string
alias: string
code: string
} }
export const coverType = (type: string) => { export const coverType = (type: string) => {

Loading…
Cancel
Save