fix: 修复操作类型列渲染错误的问题
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
const vimpOperationTypeOptions: SelectOption[] = [
|
||||
const vimpLogTypeOptions: SelectOption[] = [
|
||||
{ label: '视频点播', value: 10001 },
|
||||
{ label: '视频回放', value: 10002 },
|
||||
// { label: '停止视频回放', value: 10003 },
|
||||
@@ -102,7 +102,14 @@ watch(searchFields, () => {
|
||||
|
||||
const tableColumns: DataTableColumns<NdmVimpLogResultVO> = [
|
||||
{ title: '时间', key: 'createdTime' },
|
||||
{ title: '操作类型', key: 'description' },
|
||||
{
|
||||
title: '操作类型',
|
||||
key: 'logType',
|
||||
render: (rowData) => {
|
||||
const option = vimpLogTypeOptions.find((option) => option.value === rowData.logType);
|
||||
return `${option?.label ?? ''}`;
|
||||
},
|
||||
},
|
||||
{ title: '请求IP', key: 'requestIp' },
|
||||
{ title: '耗时(ms)', key: 'consumedTime' },
|
||||
{ title: '被调用设备', key: 'targetCode' },
|
||||
@@ -324,7 +331,7 @@ onBeforeUnmount(() => {
|
||||
/>
|
||||
</NFormItemGi>
|
||||
<NFormItemGi :span="1" label="操作类型" label-placement="left">
|
||||
<NSelect v-model:value="searchFields.logType_in" :options="vimpOperationTypeOptions" multiple clearable />
|
||||
<NSelect v-model:value="searchFields.logType_in" :options="vimpLogTypeOptions" multiple clearable />
|
||||
</NFormItemGi>
|
||||
<NFormItemGi span="1" label="时间" label-placement="left">
|
||||
<NDatePicker v-model:formatted-value="searchFields.createdTime" type="datetimerange" />
|
||||
|
||||
Reference in New Issue
Block a user