Files
xh-medical-sign-web/clinical-web/src/views/management/document-permissions/mock.ts
T

109 lines
2.1 KiB
TypeScript

import type { DepartmentPermissionRow, PermissionColumn, RolePermissionRow } from './types'
export const permissionColumns: PermissionColumn[] = [
{
key: 'VIEW',
label: '可见',
description: '可浏览模板',
},
{
key: 'USE',
label: '可用',
description: '可发起签署',
},
{
key: 'MAINTAIN',
label: '可维护',
description: '可编辑、停用模板',
},
]
export const rolePermissionRows: RolePermissionRow[] = [
{
id: 'system-admin',
name: '系统管理员',
color: '#6b5bd2',
description: '系统配置、用户与权限管理、审计日志',
userCount: 2,
permissions: {
VIEW: true,
USE: true,
MAINTAIN: true,
},
},
{
id: 'medical-management',
name: '医务管理',
color: '#0e6e8c',
description: '全院文档库维护、报表分析、任务监督',
userCount: 4,
permissions: {
VIEW: true,
USE: true,
MAINTAIN: false,
},
},
{
id: 'department-signer',
name: '科室签署员',
color: '#0f9d6c',
description: '本科室文档发起签署、手写板 / 短信操作',
userCount: 23,
permissions: {
VIEW: false,
USE: false,
MAINTAIN: false,
},
},
{
id: 'audit-viewer',
name: '查询审计员',
color: '#d9821f',
description: '只读查询报表与审计留痕,不可发起',
userCount: 3,
permissions: {
VIEW: false,
USE: false,
MAINTAIN: false,
},
},
]
export const departmentPermissionRows: DepartmentPermissionRow[] = [
{
id: 'radiology',
department: '放射科',
own: true,
common: true,
other: false,
},
{
id: 'cardiology',
department: '心内科',
own: true,
common: true,
other: false,
},
{
id: 'orthopedics',
department: '骨科',
own: true,
common: true,
other: false,
},
{
id: 'health-management',
department: '健康管理中心',
own: true,
common: true,
other: false,
},
{
id: 'general',
department: '全院通用',
own: false,
common: true,
other: false,
},
]