fix: bug#10080、10705、10707、10713修复日志管理部分bug

This commit is contained in:
jackhoo_98 2023-03-22 17:48:17 +08:00
parent c62c80ebc9
commit 0b32328ce6
3 changed files with 25 additions and 16 deletions

View File

@ -16,6 +16,9 @@
moment(slotProps.requestTime).format('YYYY-MM-DD HH:mm:ss')
}}
</template>
<template #description="slotProps">
{{ slotProps.action }}
</template>
<template #responseTime="slotProps">
<j-tag color="purple">
{{ slotProps.responseTime - slotProps.requestTime }} ms
@ -59,12 +62,7 @@
</template>
</j-pro-table>
</div>
<j-modal
:width="1100"
v-model:visible="visible"
title="详情"
@ok="handleOk"
>
<j-modal :width="1100" v-model:visible="visible" title="详情">
<j-descriptions :data="descriptionsData" title="" bordered :column="2">
<j-descriptions-item label="URL">
{{ descriptionsData?.url }}
@ -112,6 +110,9 @@
/>
</j-descriptions-item>
</j-descriptions>
<template #footer>
<j-button type="primary" @click="handleOk">关闭</j-button>
</template>
</j-modal>
</template>
<script lang="ts" setup name="AccessLog">
@ -145,6 +146,16 @@ const columns = [
},
ellipsis: true,
},
{
title: '说明',
dataIndex: 'description',
key: 'description',
scopedSlots: true,
search: {
type: 'string',
},
ellipsis: true,
},
{
title: '请求方法',
dataIndex: 'httpMethod',
@ -198,9 +209,9 @@ const columns = [
title: '请求用户',
dataIndex: 'username',
key: 'username',
search: {
type: 'string',
},
// search: {
// type: 'string',
// },
width: 150,
scopedSlots: true,
},

View File

@ -66,12 +66,7 @@
</template>
</j-pro-table>
</div>
<j-modal
:width="1100"
v-model:visible="visible"
title="详情"
@ok="handleOk"
>
<j-modal :width="1100" v-model:visible="visible" title="详情">
<div>
<span class="mr-10">[{{ descriptionsData?.threadName }}]</span>
<span class="mr-10">{{
@ -102,6 +97,9 @@
placeholder="暂无数据"
:auto-size="{ minRows: 24, maxRows: 28 }"
/>
<template #footer>
<j-button type="primary" @click="handleOk">关闭</j-button>
</template>
</j-modal>
</template>
<script lang="ts" setup name="SystemLog">

View File

@ -94,7 +94,7 @@
<template #label>
通知Token
<j-tooltip
title="接收OneNet推送的Token地址"
title="自定义token,可用于验证请求是否来自OneNet"
>
<AIcon
type="QuestionCircleOutlined"