调整操作日志界面

This commit is contained in:
lai
2024-06-24 19:59:11 +08:00
parent 693ed533f9
commit 4c16c39243
3 changed files with 41 additions and 27 deletions

View File

@@ -1808,7 +1808,7 @@ export default {
requestMe:'Request Method',
host:'Request Host',
operStatus:'Status',
operDate:'Time',
operDate:'Time Stamp',
useTime:'Time Lap',
logInfo:'Operation Log Information',
delSure:'Are you sure to delete the data item with access number [{ids}]?',

View File

@@ -39,6 +39,8 @@ let queryParams = reactive({
title: '',
/**操作人员 */
operName: '',
/**租户名称 */
tenantName: '',
/**业务类型 */
businessType: undefined,
/**操作状态 */
@@ -58,6 +60,7 @@ function fnQueryReset() {
queryParams = Object.assign(queryParams, {
title: '',
operName: '',
tenantName: '',
businessType: undefined,
status: undefined,
beginTime: '',
@@ -121,6 +124,11 @@ let tableColumns: ColumnsType = [
align: 'left',
width: 120,
},
{
title: t('views.neUser.sub.tenantName'),
dataIndex: 'tenantName',
align: 'left',
},
// {
// title: t('views.system.log.operate.requestMe'),
// dataIndex: 'requestMethod',
@@ -140,16 +148,6 @@ let tableColumns: ColumnsType = [
align: 'center',
width: 150,
},
{
title: t('views.system.log.operate.operDate'),
dataIndex: 'operTime',
align: 'center',
width: 150,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);
},
},
{
title: t('views.system.log.operate.useTime'),
dataIndex: 'costTime',
@@ -160,6 +158,17 @@ let tableColumns: ColumnsType = [
return `${opt.value} ms`;
},
},
{
title: t('views.system.log.operate.operDate'),
dataIndex: 'operTime',
align: 'center',
width: 150,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);
},
},
{
title: t('common.operate'),
key: 'operId',
@@ -448,6 +457,17 @@ onMounted(() => {
</a-select>
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.neUser.sub.tenantName')"
name="tenantName "
>
<a-input
v-model:value="queryParams.tenantName"
allow-clear
></a-input>
</a-form-item>
</a-col>
<a-col :lg="8" :md="12" :xs="24">
<a-form-item
:label="t('views.system.log.operate.operTime')"

View File

@@ -140,16 +140,6 @@ let tableColumns: ColumnsType = [
align: 'center',
width: 150,
},
{
title: t('views.system.log.operate.operDate'),
dataIndex: 'operTime',
align: 'center',
width: 150,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);
},
},
{
title: t('views.system.log.operate.useTime'),
dataIndex: 'costTime',
@@ -161,9 +151,14 @@ let tableColumns: ColumnsType = [
},
},
{
title: t('common.operate'),
key: 'operId',
align: 'left',
title: t('views.system.log.operate.operDate'),
dataIndex: 'operTime',
align: 'center',
width: 150,
customRender(opt) {
if (+opt.value <= 0) return '';
return parseDateToStr(+opt.value);
},
},
];
@@ -508,7 +503,6 @@ onMounted(() => {
<a-button
type="dashed"
@click.prevent="fnExportList()"
v-perms:has="['system:log:operate:export']"
>
<template #icon><ExportOutlined /></template>
{{ t('common.export') }}