feat: 移除操作参数和操作结果列
This commit is contained in:
@@ -34,7 +34,6 @@ import { downloadByData, parseErrorFeedback } from '@/utils';
|
|||||||
import { useMutation } from '@tanstack/vue-query';
|
import { useMutation } from '@tanstack/vue-query';
|
||||||
import { isCancel } from 'axios';
|
import { isCancel } from 'axios';
|
||||||
import dayjs from 'dayjs';
|
import dayjs from 'dayjs';
|
||||||
import destr from 'destr';
|
|
||||||
import {
|
import {
|
||||||
NButton,
|
NButton,
|
||||||
NDataTable,
|
NDataTable,
|
||||||
@@ -44,8 +43,6 @@ import {
|
|||||||
NFormItemGi,
|
NFormItemGi,
|
||||||
NGrid,
|
NGrid,
|
||||||
NGridItem,
|
NGridItem,
|
||||||
NPopover,
|
|
||||||
NScrollbar,
|
|
||||||
NSelect,
|
NSelect,
|
||||||
NTag,
|
NTag,
|
||||||
type DataTableColumns,
|
type DataTableColumns,
|
||||||
@@ -113,52 +110,6 @@ const tableColumns: DataTableColumns<NdmVimpLogResultVO> = [
|
|||||||
{ title: '请求IP', key: 'requestIp' },
|
{ title: '请求IP', key: 'requestIp' },
|
||||||
{ title: '耗时(ms)', key: 'consumedTime' },
|
{ title: '耗时(ms)', key: 'consumedTime' },
|
||||||
{ title: '被调用设备', key: 'targetCode' },
|
{ title: '被调用设备', key: 'targetCode' },
|
||||||
{
|
|
||||||
title: '操作参数',
|
|
||||||
key: 'params',
|
|
||||||
width: 100,
|
|
||||||
render(rowData) {
|
|
||||||
const result = JSON.stringify(destr(rowData.params), null, 2);
|
|
||||||
return h(
|
|
||||||
NPopover,
|
|
||||||
{ trigger: 'click' },
|
|
||||||
{
|
|
||||||
trigger: () => h(NButton, { size: 'tiny', text: true, type: 'primary' }, { default: () => '查看' }),
|
|
||||||
default: () =>
|
|
||||||
h(
|
|
||||||
NScrollbar,
|
|
||||||
{ style: { maxHeight: '40vh' } },
|
|
||||||
{
|
|
||||||
default: () => h('pre', {}, { default: () => result }),
|
|
||||||
},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
title: '操作结果',
|
|
||||||
key: 'result',
|
|
||||||
width: 100,
|
|
||||||
render: (rowData) => {
|
|
||||||
const result = JSON.stringify(destr(rowData.result), null, 2);
|
|
||||||
return h(
|
|
||||||
NPopover,
|
|
||||||
{ trigger: 'click' },
|
|
||||||
{
|
|
||||||
trigger: () => h(NButton, { size: 'tiny', text: true, type: 'primary' }, { default: () => '查看' }),
|
|
||||||
default: () =>
|
|
||||||
h(
|
|
||||||
NScrollbar,
|
|
||||||
{ style: { maxHeight: '40vh' } },
|
|
||||||
{
|
|
||||||
default: () => h('pre', {}, { default: () => result }),
|
|
||||||
},
|
|
||||||
),
|
|
||||||
},
|
|
||||||
);
|
|
||||||
},
|
|
||||||
},
|
|
||||||
];
|
];
|
||||||
|
|
||||||
const tableData = ref<DataTableRowData[]>([]);
|
const tableData = ref<DataTableRowData[]>([]);
|
||||||
|
|||||||
Reference in New Issue
Block a user