fix: 运维管理 日志管理修复部分bug
This commit is contained in:
parent
ea8620278a
commit
d8ca8ce212
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Search :columns="columns" target="search" @search="handleSearch" />
|
<pro-search :columns="columns" target="search" @search="handleSearch" />
|
||||||
<j-pro-table
|
<j-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
model="TABLE"
|
model="TABLE"
|
||||||
|
@ -94,7 +94,7 @@
|
||||||
<j-descriptions-item label="请求耗时">
|
<j-descriptions-item label="请求耗时">
|
||||||
{{
|
{{
|
||||||
descriptionsData?.responseTime -
|
descriptionsData?.responseTime -
|
||||||
descriptionsData?.requestTime +
|
descriptionsData?.responseTime +
|
||||||
'ms'
|
'ms'
|
||||||
}}
|
}}
|
||||||
</j-descriptions-item>
|
</j-descriptions-item>
|
||||||
|
@ -115,11 +115,10 @@
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup name="AccessLog">
|
<script lang="ts" setup name="AccessLog">
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index';
|
||||||
import type { AccessLogItem } from '../typings';
|
import type { AccessLogItem } from '../typings';
|
||||||
import { queryAccess } from '@/api/link/log';
|
import { queryAccess } from '@/api/link/log';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
|
||||||
import { modifySearchColumnValue } from '@/utils/comm';
|
import { modifySearchColumnValue } from '@/utils/comm';
|
||||||
|
|
||||||
const tableRef = ref<Record<string, any>>({});
|
const tableRef = ref<Record<string, any>>({});
|
||||||
|
@ -214,7 +213,19 @@ const columns = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const descriptionsData = ref<AccessLogItem>();
|
const descriptionsData = ref({
|
||||||
|
url: '',
|
||||||
|
httpMethod: '',
|
||||||
|
action: '',
|
||||||
|
target: '',
|
||||||
|
method: '',
|
||||||
|
ip: '',
|
||||||
|
requestTime: 0,
|
||||||
|
responseTime: 0,
|
||||||
|
httpHeaders: '',
|
||||||
|
parameters: '',
|
||||||
|
exception: '',
|
||||||
|
});
|
||||||
const visible = ref<boolean>(false);
|
const visible = ref<boolean>(false);
|
||||||
|
|
||||||
const handleOk = (e: MouseEvent) => {
|
const handleOk = (e: MouseEvent) => {
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<Search :columns="columns" target="search" @search="handleSearch" />
|
<pro-search :columns="columns" target="search" @search="handleSearch" />
|
||||||
<j-pro-table
|
<j-pro-table
|
||||||
ref="tableRef"
|
ref="tableRef"
|
||||||
model="TABLE"
|
model="TABLE"
|
||||||
|
@ -105,7 +105,7 @@
|
||||||
</j-modal>
|
</j-modal>
|
||||||
</template>
|
</template>
|
||||||
<script lang="ts" setup name="SystemLog">
|
<script lang="ts" setup name="SystemLog">
|
||||||
import type { ActionsType } from '@/components/Table/index.vue';
|
import type { ActionsType } from '@/components/Table/index';
|
||||||
import type { SystemLogItem } from '../typings';
|
import type { SystemLogItem } from '../typings';
|
||||||
import { querySystem } from '@/api/link/log';
|
import { querySystem } from '@/api/link/log';
|
||||||
import moment from 'moment';
|
import moment from 'moment';
|
||||||
|
@ -196,7 +196,20 @@ const columns = [
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
|
||||||
const descriptionsData = ref<SystemLogItem>();
|
const descriptionsData = ref<SystemLogItem>({
|
||||||
|
id: '',
|
||||||
|
threadName: '',
|
||||||
|
createTime: 0,
|
||||||
|
className: '',
|
||||||
|
level: '',
|
||||||
|
message: '',
|
||||||
|
exceptionStack: '',
|
||||||
|
context: '',
|
||||||
|
lineNumber: 0,
|
||||||
|
methodName: '',
|
||||||
|
name: '',
|
||||||
|
threadId: '',
|
||||||
|
});
|
||||||
const visible = ref<boolean>(false);
|
const visible = ref<boolean>(false);
|
||||||
|
|
||||||
const handleOk = (e: MouseEvent) => {
|
const handleOk = (e: MouseEvent) => {
|
||||||
|
|
Loading…
Reference in New Issue