feat(clinical-web): 添加管理端与工作台 API 模块及类型定义
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
export type PermissionSubjectFilter = 'all' | 'user' | 'role'
|
||||
|
||||
export interface PermissionFilterForm {
|
||||
keyword: string
|
||||
subjectType: PermissionSubjectFilter
|
||||
}
|
||||
|
||||
export interface PermissionTableRow {
|
||||
id: string
|
||||
subjectType: PermissionSubjectFilter
|
||||
subjectName: string
|
||||
documentName: string
|
||||
permission: 'view' | 'sign' | 'manage'
|
||||
updatedAt: string
|
||||
}
|
||||
@@ -0,0 +1,16 @@
|
||||
export type DocumentFilterStatus = 'all' | 'draft' | 'published' | 'archived'
|
||||
|
||||
export interface DocumentFilterForm {
|
||||
keyword: string
|
||||
status: DocumentFilterStatus
|
||||
}
|
||||
|
||||
export interface DocumentTableRow {
|
||||
id: string
|
||||
name: string
|
||||
category: string
|
||||
version: string
|
||||
status: DocumentFilterStatus
|
||||
updatedBy: string
|
||||
updatedAt: string
|
||||
}
|
||||
@@ -0,0 +1,21 @@
|
||||
export type ReportPeriodOption = 'today' | 'week' | 'month' | 'year'
|
||||
|
||||
export interface ReportFilterForm {
|
||||
period: ReportPeriodOption
|
||||
department: string
|
||||
}
|
||||
|
||||
export interface ReportMetricCard {
|
||||
key: string
|
||||
label: string
|
||||
value: number
|
||||
unit: string
|
||||
trend: number
|
||||
}
|
||||
|
||||
export interface ReportChartPoint {
|
||||
date: string
|
||||
signed: number
|
||||
rejected: number
|
||||
pending: number
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
export type SettingValue = string | number | boolean
|
||||
|
||||
export interface SettingFormItem {
|
||||
key: string
|
||||
label: string
|
||||
description: string
|
||||
value: SettingValue
|
||||
valueType: 'string' | 'number' | 'boolean'
|
||||
}
|
||||
|
||||
export interface SettingSection {
|
||||
key: string
|
||||
label: string
|
||||
items: SettingFormItem[]
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
export type UserFilterStatus = 'all' | 'enabled' | 'disabled'
|
||||
|
||||
export interface UserFilterForm {
|
||||
keyword: string
|
||||
department: string
|
||||
status: UserFilterStatus
|
||||
}
|
||||
|
||||
export interface UserTableRow {
|
||||
id: string
|
||||
name: string
|
||||
account: string
|
||||
department: string
|
||||
role: string
|
||||
status: UserFilterStatus
|
||||
lastLoginAt: string
|
||||
}
|
||||
Reference in New Issue
Block a user