From 9c4f08a5449a060b5fd472b015cbfccc0252ab55 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E7=BF=94?= Date: Wed, 6 May 2026 15:36:27 +0800 Subject: [PATCH] =?UTF-8?q?refactor(role):=20=E5=BA=94=E7=94=A8=E7=BB=9F?= =?UTF-8?q?=E4=B8=80=E9=AA=8C=E8=AF=81=E8=A7=84=E5=88=99=E5=88=B0=E8=A7=92?= =?UTF-8?q?=E8=89=B2=E7=AE=A1=E7=90=86=E8=A1=A8=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 角色名称添加长度(2-50)校验,角色标识添加长度和格式校验, 排序使用 VALIDATION 常量的 initialValue 和 rules。 --- novalon-manage-web/src/pages/system/role/index.tsx | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/novalon-manage-web/src/pages/system/role/index.tsx b/novalon-manage-web/src/pages/system/role/index.tsx index eb580b7..7fc5a80 100644 --- a/novalon-manage-web/src/pages/system/role/index.tsx +++ b/novalon-manage-web/src/pages/system/role/index.tsx @@ -6,6 +6,7 @@ import { roleApi } from '@/api/role.api' import type { Role, CreateRoleRequest, UpdateRoleRequest, RolePageRequest, Permission } from '@/api/role.api' import type { PageResponse } from '@/api/user.api' import { RoleStatus, roleStatusMap } from '@/constants/status' +import { VALIDATION } from '@/constants/validation-rules' import PermissionGuard from '@/components/PermissionGuard' export default function RoleManagement() { @@ -158,13 +159,13 @@ export default function RoleManagement() { width={600} >
- + - + - +