Explorar el Código

fix(部门管理): 优化国际化

xieyonghong hace 3 años
padre
commit
7e22e689cd
Se han modificado 1 ficheros con 9 adiciones y 3 borrados
  1. 9 3
      src/pages/system/Department/index.tsx

+ 9 - 3
src/pages/system/Department/index.tsx

@@ -168,7 +168,10 @@ export default observer(() => {
     properties: {
     properties: {
       name: {
       name: {
         type: 'string',
         type: 'string',
-        title: '名称',
+        title: intl.formatMessage({
+          id: 'pages.table.name',
+          defaultMessage: '名称'
+        }),
         required: true,
         required: true,
         'x-decorator': 'FormItem',
         'x-decorator': 'FormItem',
         'x-component': 'Input',
         'x-component': 'Input',
@@ -179,13 +182,16 @@ export default observer(() => {
           },
           },
           {
           {
             required: true,
             required: true,
-            message: '请输入用户名',
+            message: '请输入名',
           },
           },
         ],
         ],
       },
       },
       sortIndex: {
       sortIndex: {
         type: 'string',
         type: 'string',
-        title: '排序',
+        title: intl.formatMessage({
+          id: 'pages.device.instanceDetail.detail.sort',
+          defaultMessage: '排序'
+        }),
         'x-decorator': 'FormItem',
         'x-decorator': 'FormItem',
         'x-component': 'NumberPicker',
         'x-component': 'NumberPicker',
       },
       },