This commit is contained in:
zlwu committed 2026-06-29 11:15:39 +08:00
1 parent 493f8d6756
commit d84f4b944c
406 files changed
+58954 -10376

No files matched your search

@@ -9,3 +9,5 @@ export function list(data?: Record<string, any>) {
export function getDetail(data: { id: string }) {
return request.post({ url: '/web/monitor/operlog/detail', data })
}
export const detail = getDetail
+24 -1
View File
@@ -1,8 +1,10 @@
/** 操作日志视图对象 */
export interface OperLogVO {
id: number
id: string | number
title: string
businessType: number
businessId?: string
operSummary?: string
method?: string
operName?: string
operUrl?: string
@@ -22,6 +24,27 @@ export interface OperLogQuery {
pageSize?: number
title?: string
businessType?: number
businessId?: string
businessTitle?: string
operName?: string
status?: number
}
export const OPER_LOG_BUSINESS_TYPE_OPTIONS = [
{ label: '其他', value: 0, tagType: 'info' as const },
{ label: '新增', value: 1, tagType: 'success' as const },
{ label: '修改', value: 2, tagType: 'warning' as const },
{ label: '删除', value: 3, tagType: 'danger' as const },
{ label: '导出', value: 5, tagType: 'primary' as const },
{ label: '导入', value: 6, tagType: 'primary' as const }
]
export function getOperLogBusinessTypeLabel(value?: number) {
const item = OPER_LOG_BUSINESS_TYPE_OPTIONS.find((o) => o.value === value)
return item?.label ?? '其他'
}
export function getOperLogBusinessTypeTagType(value?: number) {
const item = OPER_LOG_BUSINESS_TYPE_OPTIONS.find((o) => o.value === value)
return item?.tagType ?? 'info'
}