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

异常日志前端展示添加

parent 709888e4
This diff is collapsed.
...@@ -79,7 +79,7 @@ ...@@ -79,7 +79,7 @@
{label: "请求URI", prop: "uri"}, {label: "请求URI", prop: "uri"},
{label: "请求参数", prop: "requestData"}, {label: "请求参数", prop: "requestData",tooltip:"true"},
{label: "日志时间", prop: "logTime", formatter: this.formatterDate}, {label: "日志时间", prop: "logTime", formatter: this.formatterDate},
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<template slot="extra"> <template slot="extra">
<el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button> <el-button type="primary" @click="$router.go(-1)" size="small">返回</el-button>
</template> </template>
<el-descriptions-item label="追踪Id" label-class-name="labelClass" content-class-name="contentClass"> <el-descriptions-item label="追踪Id" label-class-name="labelClass" content-class-name="contentClass">
{{form.traceID}} {{form.traceID}}
</el-descriptions-item> </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">
...@@ -32,13 +32,13 @@ ...@@ -32,13 +32,13 @@
<el-descriptions-item label="请求URI" label-class-name="labelClass" content-class-name="contentClass"> <el-descriptions-item label="请求URI" label-class-name="labelClass" content-class-name="contentClass">
{{form.uri}} {{form.uri}}
</el-descriptions-item> </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}} {{form.requestParam}}
</el-descriptions-item> </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">
{{form.response}} {{form.response}}
</el-descriptions-item> </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)}} {{ util_formatterDate(form.logTime)}}
</el-descriptions-item> </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">
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
size="50%"> size="50%">
<el-form ref="form" :model="form" :rules="rules" label-width="120px"> <el-form ref="form" :model="form" :rules="rules" label-width="120px">
<el-row> <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="应用名称" prop="appName" v-model="form.appName" placeholder="请输入应用名称"/>
<Field label="实例IP" prop="hostName" v-model="form.hostName" placeholder="请输入实例IP"/> <Field label="实例IP" prop="hostName" v-model="form.hostName" placeholder="请输入实例IP"/>
<Field label="日志等级" prop="logLevel" v-model="form.logLevel" placeholder="请输入日志等级"/> <Field label="日志等级" prop="logLevel" v-model="form.logLevel" placeholder="请输入日志等级"/>
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
</el-row> </el-row>
<form-buttons @submit='submitForm' noCancelBtn />
</el-form> </el-form>
</el-drawer> </el-drawer>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
{ {
name: "eventTopic", name: "eventTopic",
type: "text", type: "text",
label: "记录埋点的事件主题,方便实时计算或同步进行数据筛选", label: "记录埋点的事件主题",
fuzzy: true fuzzy: true
}, },
{ {
...@@ -91,15 +91,15 @@ ...@@ -91,15 +91,15 @@
{label: "应用名称", prop: "appName"}, {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: "操作", label: "操作",
width: 120, width: 120,
......
...@@ -47,13 +47,19 @@ ...@@ -47,13 +47,19 @@
{ {
name: "traceID", name: "traceID",
type: "text", type: "text",
label: "追踪Id", label: "TraceId",
fuzzy: true fuzzy: true
}, },
{ {
name: "appName", name: "appName",
type: "text", type: "text",
label: "应用名称,宿主客户端运行唯一标识。", label: "应用标识",
fuzzy: true
},
{
name: "message",
type: "text",
label: "消息标识",
fuzzy: true fuzzy: true
}, },
], ],
...@@ -69,7 +75,7 @@ ...@@ -69,7 +75,7 @@
{label: "消息标识", prop: "message" ,tooltip:"true"}, {label: "消息标识", prop: "message" ,tooltip:"true"},
{label: "当前客户端使用平台", prop: "platform",formatter:this.formatter}, {label: "客户端使用平台", prop: "platform",formatter:this.formatter},
{label: "异常事件标记", prop: "tags"}, {label: "异常事件标记", prop: "tags"},
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
:direction="direction" :direction="direction"
size="75%"> size="75%">
<el-descriptions :column="column" :size="size" :colon="false" border> <el-descriptions :column="column" :size="size" :colon="false" border>
<el-descriptions-item label="TraceId" label-class-name="labelClass" content-class-name="contentClass"> <el-descriptions-item label="TraceId" label-class-name="labelClass" content-class-name="contentClass">
{{form.traceID}} {{form.traceID}}
</el-descriptions-item> </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">
...@@ -113,14 +113,13 @@ ...@@ -113,14 +113,13 @@
} }
} }
</script> </script>
<style lang="less"> <style lang="scss" scoped >
.labelClass{ .labelClass{
width: 250px; width: 250px;
font-size: 13px; font-size: 13px;
color: #191a1b;
} }
.el-descriptions-item__label{
color: #191a1b;
}
.el-descriptions__body{ .el-descriptions__body{
margin-left: 5px; margin-left: 5px;
margin-right: 5px; margin-right: 5px;
...@@ -128,6 +127,6 @@ color: #191a1b; ...@@ -128,6 +127,6 @@ color: #191a1b;
background-color: #FFF; background-color: #FFF;
} }
.contentClass{ .contentClass{
width: 500px; width: 888px;
} }
</style> </style>
\ No newline at end of file
...@@ -62,6 +62,7 @@ public class ErrorMessageConsumerListener { ...@@ -62,6 +62,7 @@ public class ErrorMessageConsumerListener {
errorLogEntity.setCheckNum(errorLogEntity.getCheckNum()+1); errorLogEntity.setCheckNum(errorLogEntity.getCheckNum()+1);
errorLogEntity.setLogTime(entity.getLogTime()); errorLogEntity.setLogTime(entity.getLogTime());
errorLogEntity.setThreadNo(entity.getThreadNo()); errorLogEntity.setThreadNo(entity.getThreadNo());
errorLogEntity.setCreateTime(new Date());
errorLogEntity.setUpdateTime(new Date()); errorLogEntity.setUpdateTime(new Date());
errorLogService.update(errorLogEntity); errorLogService.update(errorLogEntity);
} else { } 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