diff --git a/src/api/system/role/types.ts b/src/api/system/role/types.ts index 4558c78..7dbb6ff 100644 --- a/src/api/system/role/types.ts +++ b/src/api/system/role/types.ts @@ -45,7 +45,7 @@ export interface RoleForm { menuCheckStrictly: boolean; deptCheckStrictly: boolean; remark: string; - dataScope?: number; + dataScope?: string; roleId: string | undefined; menuIds: Array; deptIds: Array; diff --git a/src/views/system/role/index.vue b/src/views/system/role/index.vue index 04fc3df..48ed9c9 100644 --- a/src/views/system/role/index.vue +++ b/src/views/system/role/index.vue @@ -164,7 +164,7 @@ - + 展开/折叠 全选/全不选 父子联动 @@ -243,7 +243,7 @@ const initForm: RoleForm = { menuCheckStrictly: true, deptCheckStrictly: true, remark: '', - dataScope: 1, + dataScope: '1', menuIds: [], deptIds: [], }