feat:【system】操作日志增加 userType 的展示
This commit is contained in:
@@ -2,9 +2,13 @@ import type { VbenFormSchema } from '#/adapter/form';
|
|||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
import type { DescriptionItemSchema } from '#/components/description';
|
import type { DescriptionItemSchema } from '#/components/description';
|
||||||
|
|
||||||
|
import { h } from 'vue';
|
||||||
|
|
||||||
|
import { DICT_TYPE } from '@vben/constants';
|
||||||
import { formatDateTime } from '@vben/utils';
|
import { formatDateTime } from '@vben/utils';
|
||||||
|
|
||||||
import { getSimpleUserList } from '#/api/system/user';
|
import { getSimpleUserList } from '#/api/system/user';
|
||||||
|
import { DictTag } from '#/components/dict-tag';
|
||||||
import { getRangePickerDefaultProps } from '#/utils';
|
import { getRangePickerDefaultProps } from '#/utils';
|
||||||
|
|
||||||
/** 列表的搜索表单 */
|
/** 列表的搜索表单 */
|
||||||
@@ -139,6 +143,11 @@ export function useDetailSchema(): DescriptionItemSchema[] {
|
|||||||
field: 'userId',
|
field: 'userId',
|
||||||
label: '操作人编号',
|
label: '操作人编号',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'userType',
|
||||||
|
label: '操作人类型',
|
||||||
|
render: (val) => h(DictTag, { type: DICT_TYPE.USER_TYPE, value: val }),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'userName',
|
field: 'userName',
|
||||||
label: '操作人名字',
|
label: '操作人名字',
|
||||||
|
|||||||
@@ -2,9 +2,13 @@ import type { VbenFormSchema } from '#/adapter/form';
|
|||||||
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
import type { VxeTableGridOptions } from '#/adapter/vxe-table';
|
||||||
import type { DescriptionItemSchema } from '#/components/description';
|
import type { DescriptionItemSchema } from '#/components/description';
|
||||||
|
|
||||||
|
import { h } from 'vue';
|
||||||
|
|
||||||
|
import { DICT_TYPE } from '@vben/constants';
|
||||||
import { formatDateTime } from '@vben/utils';
|
import { formatDateTime } from '@vben/utils';
|
||||||
|
|
||||||
import { getSimpleUserList } from '#/api/system/user';
|
import { getSimpleUserList } from '#/api/system/user';
|
||||||
|
import { DictTag } from '#/components/dict-tag';
|
||||||
import { getRangePickerDefaultProps } from '#/utils';
|
import { getRangePickerDefaultProps } from '#/utils';
|
||||||
|
|
||||||
/** 列表的搜索表单 */
|
/** 列表的搜索表单 */
|
||||||
@@ -133,12 +137,17 @@ export function useDetailSchema(): DescriptionItemSchema[] {
|
|||||||
{
|
{
|
||||||
field: 'traceId',
|
field: 'traceId',
|
||||||
label: '链路追踪',
|
label: '链路追踪',
|
||||||
show: (val) => !val,
|
show: (data) => !data?.traceId,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
field: 'userId',
|
field: 'userId',
|
||||||
label: '操作人编号',
|
label: '操作人编号',
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
field: 'userType',
|
||||||
|
label: '操作人类型',
|
||||||
|
render: (val) => h(DictTag, { type: DICT_TYPE.USER_TYPE, value: val }),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
field: 'userName',
|
field: 'userName',
|
||||||
label: '操作人名字',
|
label: '操作人名字',
|
||||||
|
|||||||
Reference in New Issue
Block a user