Commit a9a1cf43 authored by 赵啸非's avatar 赵啸非

异常日志前端展示添加

parent 709888e4
This diff is collapsed.
......@@ -79,7 +79,7 @@
{label: "请求URI", prop: "uri"},
{label: "请求参数", prop: "requestData"},
{label: "请求参数", prop: "requestData",tooltip:"true"},
{label: "日志时间", prop: "logTime", formatter: this.formatterDate},
......
......@@ -32,13 +32,13 @@
<el-descriptions-item label="请求URI" label-class-name="labelClass" content-class-name="contentClass">
{{form.uri}}
</el-descriptions-item>
<el-descriptions-item label="请求参数,json序列化" label-class-name="labelClass" content-class-name="contentClass">
<el-descriptions-item label="请求参数" label-class-name="labelClass" content-class-name="contentClass">
{{form.requestParam}}
</el-descriptions-item>
<el-descriptions-item label="响应结果" label-class-name="labelClass" content-class-name="contentClass">
{{form.response}}
</el-descriptions-item>
<el-descriptions-item label="日志产生时间" label-class-name="labelClass" content-class-name="contentClass">
<el-descriptions-item label="日志时间" label-class-name="labelClass" content-class-name="contentClass">
{{ util_formatterDate(form.logTime)}}
</el-descriptions-item>
<el-descriptions-item label="持续时间,单位毫秒" label-class-name="labelClass" content-class-name="contentClass">
......
......@@ -7,7 +7,7 @@
size="50%">
<el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row>
<Field label="追踪Id" prop="traceID" v-model="form.traceID" placeholder="请输入追踪Id"/>
<Field label="TraceId" prop="traceID" v-model="form.traceID" placeholder="请输入追踪Id"/>
<Field label="应用名称" prop="appName" v-model="form.appName" placeholder="请输入应用名称"/>
<Field label="实例IP" prop="hostName" v-model="form.hostName" placeholder="请输入实例IP"/>
<Field label="日志等级" prop="logLevel" v-model="form.logLevel" placeholder="请输入日志等级"/>
......@@ -20,7 +20,6 @@
</el-row>
<form-buttons @submit='submitForm' noCancelBtn />
</el-form>
</el-drawer>
......
......@@ -67,7 +67,7 @@
{
name: "eventTopic",
type: "text",
label: "记录埋点的事件主题,方便实时计算或同步进行数据筛选",
label: "记录埋点的事件主题",
fuzzy: true
},
{
......@@ -91,15 +91,15 @@
{label: "应用名称", prop: "appName"},
{label: "用户唯一标识", prop: "userCode"},
{label: "用户标识", prop: "userCode"},
{label: "设备唯一标识", prop: "deviceCode"},
{label: "设备标识", prop: "deviceCode"},
{label: "记录埋点的事件主题,方便实时计算或同步进行数据筛选", prop: "eventTopic"},
{label: "事件主题", prop: "eventTopic"},
{label: "记录埋点中文名称", prop: "eventTopicName"},
{label: "主题名称", prop: "eventTopicName"},
{label: "日志产生时间", prop: "logTime", formatter: this.formatterDate},
{label: "日志时间", prop: "logTime", formatter: this.formatterDate},
{
label: "操作",
width: 120,
......
......@@ -47,13 +47,19 @@
{
name: "traceID",
type: "text",
label: "追踪Id",
label: "TraceId",
fuzzy: true
},
{
name: "appName",
type: "text",
label: "应用名称,宿主客户端运行唯一标识。",
label: "应用标识",
fuzzy: true
},
{
name: "message",
type: "text",
label: "消息标识",
fuzzy: true
},
],
......@@ -69,7 +75,7 @@
{label: "消息标识", prop: "message" ,tooltip:"true"},
{label: "当前客户端使用平台", prop: "platform",formatter:this.formatter},
{label: "客户端使用平台", prop: "platform",formatter:this.formatter},
{label: "异常事件标记", prop: "tags"},
......
......@@ -113,14 +113,13 @@
}
}
</script>
<style lang="less">
<style lang="scss" scoped >
.labelClass{
width: 250px;
font-size: 13px;
color: #191a1b;
}
.el-descriptions-item__label{
color: #191a1b;
}
.el-descriptions__body{
margin-left: 5px;
margin-right: 5px;
......@@ -128,6 +127,6 @@ color: #191a1b;
background-color: #FFF;
}
.contentClass{
width: 500px;
width: 888px;
}
</style>
\ No newline at end of file
......@@ -62,6 +62,7 @@ public class ErrorMessageConsumerListener {
errorLogEntity.setCheckNum(errorLogEntity.getCheckNum()+1);
errorLogEntity.setLogTime(entity.getLogTime());
errorLogEntity.setThreadNo(entity.getThreadNo());
errorLogEntity.setCreateTime(new Date());
errorLogEntity.setUpdateTime(new Date());
errorLogService.update(errorLogEntity);
} else {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment