From 5bd66255ccd4e995337b9039094964d2677db4cc Mon Sep 17 00:00:00 2001
From: zhangzengfei <zhangzengfei@smartai.com>
Date: 星期二, 22 二月 2022 17:19:06 +0800
Subject: [PATCH] 完善日志监控模块, 需要配合valog-server使用
---
src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue | 36 +++++++++++++++++++++++++++---------
1 files changed, 27 insertions(+), 9 deletions(-)
diff --git a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
index a036204..0449fbb 100644
--- a/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
+++ b/src/pages/shuohuangMonitorAnalyze/components/searchForVideoAnalyze.vue
@@ -265,7 +265,7 @@
</span>
</div>
<div v-else-if="hasError(data)" class="has-error">
- <span>鏈夊紓甯�</span>
+ <span>{{ errWord(data) }}</span>
</div>
<div v-else class="no-error">
<span>鏃犲紓甯�</span>
@@ -633,7 +633,7 @@
StartDate: this.searchTime[0],
EndDate: this.searchTime[1],
PageIndex:
- this.showType == "list" ? this.curTablePage : this.showType == "list",
+ this.showType == "list" ? this.curTablePage : this.curTabPage,
PageSize:
this.showType == "list" ? this.tablePageSize : this.tabPageSize,
IsDetail: this.showType == "list",
@@ -711,6 +711,20 @@
});
});
});
+ },
+ errWord(data) {
+ let text;
+ data.EventLst.forEach((item, i) => {
+ if (
+ item.state == 0 &&
+ item.Event.indexOf("杩涘嚭绔�") == -1 &&
+ item.Event.indexOf("淇″彿鏈�") == -1 &&
+ item.Event.indexOf("杩囧垎鐩�") == -1
+ ) {
+ text = item.Event;
+ }
+ });
+ return text || "鏈墜姣�";
},
hasError(data) {
let status = true;
@@ -1176,17 +1190,21 @@
.show-type {
display: flex;
.list span {
- font-size: 20px;
+ font-size: 18px;
+ line-height: 20px;
}
.type {
- font-size: 18px;
- padding: 2px 4px 0px 4px;
+ font-size: 17px;
border-radius: 4px;
cursor: pointer;
+ height: 20px;
+ width: 20px;
+ line-height: 19px;
+
&.menu {
- margin-right: 10px;
+ margin-right: 5px;
span {
- font-size: 15px;
+ font-size: 14px;
}
}
&.current {
@@ -1226,8 +1244,8 @@
cursor: pointer;
border-radius: 3px;
width: 100%;
- padding-top: 56.25%;
- height: 0;
+ // padding-top: 56.25%;
+ height: 57%;
position: relative;
img {
position: absolute;
--
Gitblit v1.8.0