Przeglądaj źródła

feat(组件): 角色说明

tangning 2 lat temu
rodzic
commit
24a2ff6e79
1 zmienionych plików z 11 dodań i 10 usunięć
  1. 11 10
      src/views/system/role/role.data.ts

+ 11 - 10
src/views/system/role/role.data.ts

@@ -9,17 +9,22 @@ import { useI18n } from '/@/hooks/web/useI18n';
   const { t } = useI18n();
 
 export const columns: BasicColumn[] = [
-  {
-    title: 'ID',
-    dataIndex: 'id',
-    width: 80,
-  },
+  // {
+  //   title: 'ID',
+  //   dataIndex: 'id',
+  //   width: 80,
+  // },
   {
     title: t('common.roleNameText'),
     dataIndex: 'roleName',
     width: 200,
   },
   {
+    title: t('routes.system.description'),
+    dataIndex: 'description',
+    width: 180,
+  },
+  {
     title: '系统用户数',
     dataIndex: 'adminCount',
     width: 100,
@@ -28,11 +33,6 @@ export const columns: BasicColumn[] = [
     },
   },
   {
-    title: t('routes.system.description'),
-    dataIndex: 'description',
-    width: 180,
-  },
-  {
     title: '创建人',
     dataIndex: 'createUserName',
     width: 100,
@@ -146,6 +146,7 @@ export const formSchema: FormSchema[] = [
     label: t('routes.system.description'),
     field: 'description',
     component: 'InputTextArea',
+    required: true,
     componentProps:{
       rows:4,
       maxLength: 200,