fix: 日志查看页面优化
This commit is contained in:
@@ -1,48 +0,0 @@
|
|||||||
//package org.nl.system.service.lucene;
|
|
||||||
//
|
|
||||||
//import org.nl.system.service.lucene.dto.LuceneLogDto;
|
|
||||||
//
|
|
||||||
//import java.io.IOException;
|
|
||||||
//
|
|
||||||
///**
|
|
||||||
// * <p>
|
|
||||||
// * 日志检索服务
|
|
||||||
// * </p>
|
|
||||||
// *
|
|
||||||
// * @author generator
|
|
||||||
// * @since 2023-11-16
|
|
||||||
// */
|
|
||||||
//public interface LuceneExecuteLogService {
|
|
||||||
// /**
|
|
||||||
// * 设备光电变化实时光电信号
|
|
||||||
// *
|
|
||||||
// * @param device_code 设备编号
|
|
||||||
// * @param key plc信号
|
|
||||||
// * @param value plc信号值
|
|
||||||
// */
|
|
||||||
// void deviceItemValue(String device_code, String key, String value);
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * 设备执行日志,会保留历史记录
|
|
||||||
// *
|
|
||||||
// * @param luceneLogDto 日志结果对象
|
|
||||||
// */
|
|
||||||
// void deviceExecuteLog(LuceneLogDto luceneLogDto);
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * 接口日志,会保留历史记录
|
|
||||||
// * @param luceneLogDto 日志结果对象
|
|
||||||
// * @throws IOException
|
|
||||||
// */
|
|
||||||
// void interfaceExecuteLog(LuceneLogDto luceneLogDto) throws IOException;
|
|
||||||
//
|
|
||||||
// /**
|
|
||||||
// * 设备执行日志,会保留历史记录
|
|
||||||
// *
|
|
||||||
// * @param name 日志名称
|
|
||||||
// * @param message 日志信息
|
|
||||||
// */
|
|
||||||
// void extLog(String name, String message);
|
|
||||||
//
|
|
||||||
//
|
|
||||||
//}
|
|
||||||
@@ -62,6 +62,15 @@
|
|||||||
:end-placeholder="$t('Log.end_time')"
|
:end-placeholder="$t('Log.end_time')"
|
||||||
/>
|
/>
|
||||||
</el-form-item>
|
</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-form-item>
|
||||||
<el-button type="primary" size="mini" @click="queryData">
|
<el-button type="primary" size="mini" @click="queryData">
|
||||||
{{ $t('common.Query') }}
|
{{ $t('common.Query') }}
|
||||||
@@ -73,7 +82,8 @@
|
|||||||
<el-card shadow="hover" style="width: 100%" class="log-warpper">
|
<el-card shadow="hover" style="width: 100%" class="log-warpper">
|
||||||
<div style="width: 100%">
|
<div style="width: 100%">
|
||||||
<div v-for="(log, index) in logs" :key="index">
|
<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>
|
||||||
</div>
|
</div>
|
||||||
</el-card>
|
</el-card>
|
||||||
@@ -126,7 +136,8 @@ export default {
|
|||||||
size: 100,
|
size: 100,
|
||||||
total: 0,
|
total: 0,
|
||||||
createTime: ''
|
createTime: ''
|
||||||
}
|
},
|
||||||
|
compressedView: true
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
|
|||||||
Reference in New Issue
Block a user