- | 是否只记录WAF相关日志 |
+ 只记录WAF相关日志 |
@@ -3666,9 +3681,9 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
| IP |
- 类型 |
- 级别 |
- 过期时间 |
+ 类型 |
+ 级别 |
+ 过期时间 |
备注 |
操作 |
@@ -3682,7 +3697,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-
+
{{item.ipFrom}} New
- {{item.ipTo}}
*
@@ -3851,7 +3866,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
-`}),Vue.component("label-on",{props:["v-is-on"],template:' 已启用已停用 '}),Vue.component("code-label",{methods:{click:function(e){this.$emit("click",e)}},template:''}),Vue.component("tiny-label",{template:''}),Vue.component("tiny-basic-label",{template:''}),Vue.component("micro-basic-label",{template:''}),Vue.component("grey-label",{props:["color"],data:function(){let e="grey";return{labelColor:e=null!=this.color&&0'}),Vue.component("optional-label",{template:'(可选)'}),Vue.component("plus-label",{template:'Plus专属功能。'}),Vue.component("first-menu",{props:[],template:' \t\t'}),Vue.component("more-options-indicator",{data:function(){return{visible:!1}},methods:{changeVisible:function(){this.visible=!this.visible,null!=Tea.Vue&&(Tea.Vue.moreOptionsVisible=this.visible),this.$emit("change",this.visible)}},template:'更多选项收起选项 '}),Vue.component("page-size-selector",{data:function(){let t=window.location.search,i=10;if(0
+`}),Vue.component("label-on",{props:["v-is-on"],template:'已启用已停用 '}),Vue.component("code-label",{methods:{click:function(e){this.$emit("click",e)}},template:''}),Vue.component("code-label-plain",{template:''}),Vue.component("tiny-label",{template:''}),Vue.component("tiny-basic-label",{template:''}),Vue.component("micro-basic-label",{template:''}),Vue.component("grey-label",{props:["color"],data:function(){let e="grey";return{labelColor:e=null!=this.color&&0'}),Vue.component("optional-label",{template:'(可选)'}),Vue.component("plus-label",{template:'Plus专属功能。'}),Vue.component("first-menu",{props:[],template:' \t\t'}),Vue.component("more-options-indicator",{data:function(){return{visible:!1}},methods:{changeVisible:function(){this.visible=!this.visible,null!=Tea.Vue&&(Tea.Vue.moreOptionsVisible=this.visible),this.$emit("change",this.visible)}},template:'更多选项收起选项 '}),Vue.component("page-size-selector",{data:function(){let t=window.location.search,i=10;if(0
`}),Vue.component("second-menu",{template:' \t\t'}),Vue.component("loading-message",{template:`
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index 38b03715..0c7a7374 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -7238,13 +7238,16 @@ Vue.component("http-access-log-box", {
},
methods: {
formatCost: function (seconds) {
- var s = (seconds * 1000).toString();
- var pieces = s.split(".");
+ if (seconds == null) {
+ return "0"
+ }
+ let s = (seconds * 1000).toString();
+ let pieces = s.split(".");
if (pieces.length < 2) {
return s;
}
- return pieces[0] + "." + pieces[1].substr(0, 3);
+ return pieces[0] + "." + pieces[1].substring(0, 3);
},
showLog: function () {
let that = this
@@ -7271,10 +7274,26 @@ Vue.component("http-access-log-box", {
}
},
template: `
- [{{accessLog.node.name}}节点]
- [服务]
- [{{accessLog.region}}] {{accessLog.remoteAddr}} [{{accessLog.timeLocal}}] "{{accessLog.requestMethod}} {{accessLog.scheme}}://{{accessLog.host}}{{accessLog.requestURI}} {{accessLog.proto}}" {{accessLog.status}} cache {{accessLog.attrs['cache.status'].toLowerCase()}} waf {{accessLog.firewallActions}} - {{tag}} - 耗时:{{formatCost(accessLog.requestTime)}} ms ({{accessLog.humanTime}})
-
+
`
})
@@ -7334,13 +7353,12 @@ Vue.component("http-access-log-config-box", {
- | 是否开启访问日志存储 |
+ 开启访问日志 |
-
|
@@ -7403,7 +7421,7 @@ Vue.component("http-access-log-config-box", {
WAF相关
- | 是否只记录WAF相关日志 |
+ 只记录WAF相关日志 |
@@ -10598,9 +10616,9 @@ Vue.component("ip-list-table", {
| IP |
- 类型 |
- 级别 |
- 过期时间 |
+ 类型 |
+ 级别 |
+ 过期时间 |
备注 |
操作 |
@@ -10614,7 +10632,7 @@ Vue.component("ip-list-table", {
-
+
{{item.ipFrom}} New
- {{item.ipTo}}
*
@@ -11587,6 +11605,11 @@ Vue.component("code-label", {
template: ``
})
+Vue.component("code-label-plain", {
+ template: ``
+})
+
+
// tiny标签
Vue.component("tiny-label", {
template: ``
| |