fix: 日志查看页面优化

This commit is contained in:
2024-08-08 09:22:20 +08:00
parent fcbe8c92ed
commit 153dcb1964
2 changed files with 13 additions and 50 deletions

View File

@@ -62,6 +62,15 @@
:end-placeholder="$t('Log.end_time')"
/>
</el-form-item>
<el-form-item label="压缩查看" prop="isRequest">
<el-switch
v-model="compressedView"
active-color="#409EFF"
inactive-color="#F56C6C"
:active-value="true"
:inactive-valu="false"
/>
</el-form-item>
<el-form-item>
<el-button type="primary" size="mini" @click="queryData">
{{ $t('common.Query') }}
@@ -73,7 +82,8 @@
<el-card shadow="hover" style="width: 100%" class="log-warpper">
<div style="width: 100%">
<div v-for="(log, index) in logs" :key="index">
<div style="margin-bottom: 5px; font-size: 14px;" v-html="log" />
<div v-if="compressedView === false" style="margin: 5px;font-size: 16px; word-break: break-all; white-space: pre-wrap;" v-html="log" />
<div v-else style="margin-bottom: 5px; font-size: 16px;" v-html="log" />
</div>
</div>
</el-card>
@@ -126,7 +136,8 @@ export default {
size: 100,
total: 0,
createTime: ''
}
},
compressedView: true
}
},
created() {