feat(document-permissions): 重构权限页面按模板接入真实接口
This commit is contained in:
@@ -2,17 +2,17 @@ import type { DepartmentPermissionRow, PermissionColumn, RolePermissionRow } fro
|
||||
|
||||
export const permissionColumns: PermissionColumn[] = [
|
||||
{
|
||||
key: 'visible',
|
||||
key: 'VIEW',
|
||||
label: '可见',
|
||||
description: '可浏览模板',
|
||||
},
|
||||
{
|
||||
key: 'usable',
|
||||
key: 'USE',
|
||||
label: '可用',
|
||||
description: '可发起签署',
|
||||
},
|
||||
{
|
||||
key: 'maintainable',
|
||||
key: 'MAINTAIN',
|
||||
label: '可维护',
|
||||
description: '可编辑、停用模板',
|
||||
},
|
||||
@@ -26,9 +26,9 @@ export const rolePermissionRows: RolePermissionRow[] = [
|
||||
description: '系统配置、用户与权限管理、审计日志',
|
||||
userCount: 2,
|
||||
permissions: {
|
||||
visible: true,
|
||||
usable: true,
|
||||
maintainable: true,
|
||||
VIEW: true,
|
||||
USE: true,
|
||||
MAINTAIN: true,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -38,9 +38,9 @@ export const rolePermissionRows: RolePermissionRow[] = [
|
||||
description: '全院文档库维护、报表分析、任务监督',
|
||||
userCount: 4,
|
||||
permissions: {
|
||||
visible: true,
|
||||
usable: true,
|
||||
maintainable: false,
|
||||
VIEW: true,
|
||||
USE: true,
|
||||
MAINTAIN: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -50,9 +50,9 @@ export const rolePermissionRows: RolePermissionRow[] = [
|
||||
description: '本科室文档发起签署、手写板 / 短信操作',
|
||||
userCount: 23,
|
||||
permissions: {
|
||||
visible: false,
|
||||
usable: false,
|
||||
maintainable: false,
|
||||
VIEW: false,
|
||||
USE: false,
|
||||
MAINTAIN: false,
|
||||
},
|
||||
},
|
||||
{
|
||||
@@ -62,9 +62,9 @@ export const rolePermissionRows: RolePermissionRow[] = [
|
||||
description: '只读查询报表与审计留痕,不可发起',
|
||||
userCount: 3,
|
||||
permissions: {
|
||||
visible: false,
|
||||
usable: false,
|
||||
maintainable: false,
|
||||
VIEW: false,
|
||||
USE: false,
|
||||
MAINTAIN: false,
|
||||
},
|
||||
},
|
||||
]
|
||||
@@ -73,36 +73,26 @@ export const departmentPermissionRows: DepartmentPermissionRow[] = [
|
||||
{
|
||||
id: 'radiology',
|
||||
department: '放射科',
|
||||
ownDocuments: 'available',
|
||||
commonDocuments: 'available',
|
||||
otherDocuments: 'invisible',
|
||||
permissions: { VIEW: true, USE: true, MAINTAIN: false },
|
||||
},
|
||||
{
|
||||
id: 'cardiology',
|
||||
department: '心内科',
|
||||
ownDocuments: 'available',
|
||||
commonDocuments: 'available',
|
||||
otherDocuments: 'invisible',
|
||||
permissions: { VIEW: true, USE: true, MAINTAIN: false },
|
||||
},
|
||||
{
|
||||
id: 'orthopedics',
|
||||
department: '骨科',
|
||||
ownDocuments: 'available',
|
||||
commonDocuments: 'available',
|
||||
otherDocuments: 'invisible',
|
||||
permissions: { VIEW: true, USE: true, MAINTAIN: false },
|
||||
},
|
||||
{
|
||||
id: 'health-management',
|
||||
department: '健康管理中心',
|
||||
ownDocuments: 'available',
|
||||
commonDocuments: 'available',
|
||||
otherDocuments: 'invisible',
|
||||
permissions: { VIEW: true, USE: true, MAINTAIN: false },
|
||||
},
|
||||
{
|
||||
id: 'general',
|
||||
department: '全院通用',
|
||||
ownDocuments: 'available',
|
||||
commonDocuments: 'available',
|
||||
otherDocuments: 'invisible',
|
||||
permissions: { VIEW: true, USE: true, MAINTAIN: false },
|
||||
},
|
||||
]
|
||||
|
||||
Reference in New Issue
Block a user