feat:【system】操作日志增加 userType 的展示

This commit is contained in:
YunaiV
2025-12-17 13:13:22 +08:00
parent 2202ef3b3c
commit fbcb498f5b
2 changed files with 19 additions and 1 deletions

View File

@@ -2,9 +2,13 @@ import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue';
import { DICT_TYPE } from '@vben/constants';
import { formatDateTime } from '@vben/utils';
import { getSimpleUserList } from '#/api/system/user';
import { DictTag } from '#/components/dict-tag';
import { getRangePickerDefaultProps } from '#/utils';
/** 列表的搜索表单 */
@@ -139,6 +143,11 @@ export function useDetailSchema(): DescriptionItemSchema[] {
field: 'userId',
label: '操作人编号',
},
{
field: 'userType',
label: '操作人类型',
render: (val) => h(DictTag, { type: DICT_TYPE.USER_TYPE, value: val }),
},
{
field: 'userName',
label: '操作人名字',

View File

@@ -2,9 +2,13 @@ import type { VbenFormSchema } from '#/adapter/form';
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
import type { DescriptionItemSchema } from '#/components/description';
import { h } from 'vue';
import { DICT_TYPE } from '@vben/constants';
import { formatDateTime } from '@vben/utils';
import { getSimpleUserList } from '#/api/system/user';
import { DictTag } from '#/components/dict-tag';
import { getRangePickerDefaultProps } from '#/utils';
/** 列表的搜索表单 */
@@ -133,12 +137,17 @@ export function useDetailSchema(): DescriptionItemSchema[] {
{
field: 'traceId',
label: '链路追踪',
show: (val) => !val,
show: (data) => !data?.traceId,
},
{
field: 'userId',
label: '操作人编号',
},
{
field: 'userType',
label: '操作人类型',
render: (val) => h(DictTag, { type: DICT_TYPE.USER_TYPE, value: val }),
},
{
field: 'userName',
label: '操作人名字',