调整操作日志界面
This commit is contained in:
@@ -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}]?',
|
||||
|
||||
@@ -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')"
|
||||
|
||||
@@ -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') }}
|
||||
|
||||
Reference in New Issue
Block a user