diff --git a/web/public/js/components.js b/web/public/js/components.js index e2f69ddd..9737a6c8 100644 --- a/web/public/js/components.js +++ b/web/public/js/components.js @@ -2860,7 +2860,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio 状态码:{{options.statusCode}} / 提示内容:[{{options.body.length}}字符][无] / 超时时间:{{options.timeout}}秒 -`}),Vue.component("http-access-log-config-box",{props:["v-access-log-config","v-fields","v-default-field-codes","v-is-location","v-is-group"],data:function(){let t=this,i=(setTimeout(function(){t.changeFields()},100),{isPrior:!1,isOn:!1,fields:[1,2,6,7],status1:!0,status2:!0,status3:!0,status4:!0,status5:!0,firewallOnly:!1,enableClientClosed:!1});return null!=this.vAccessLogConfig&&(i=this.vAccessLogConfig),this.vFields.forEach(function(e){null==t.vAccessLogConfig?e.isChecked=t.vDefaultFieldCodes.$contains(e.code):e.isChecked=i.fields.$contains(e.code)}),{accessLog:i,hasRequestBodyField:this.vFields.$contains(8)}},methods:{changeFields:function(){this.accessLog.fields=this.vFields.filter(function(e){return e.isChecked}).map(function(e){return e.code}),this.hasRequestBodyField=this.accessLog.fields.$contains(8)}},template:`
| 基础信息 | 默认记录客户端IP、请求URL等基础信息。 |
diff --git a/web/public/js/components.src.js b/web/public/js/components.src.js
index 25c88654..fd3c11c9 100755
--- a/web/public/js/components.src.js
+++ b/web/public/js/components.src.js
@@ -8412,7 +8412,8 @@ Vue.component("http-access-log-config-box", {
return {
accessLog: accessLog,
- hasRequestBodyField: this.vFields.$contains(8)
+ hasRequestBodyField: this.vFields.$contains(8),
+ showAdvancedOptions: false
}
},
methods: {
@@ -8423,6 +8424,9 @@ Vue.component("http-access-log-config-box", {
return v.code
})
this.hasRequestBodyField = this.accessLog.fields.$contains(8)
+ },
+ changeAdvanced: function (v) {
+ this.showAdvancedOptions = v
}
},
template: `
| 基础信息 | 默认记录客户端IP、请求URL等基础信息。 |
diff --git a/web/public/js/components/server/http-access-log-config-box.js b/web/public/js/components/server/http-access-log-config-box.js
index d0fce2e4..7d374478 100644
--- a/web/public/js/components/server/http-access-log-config-box.js
+++ b/web/public/js/components/server/http-access-log-config-box.js
@@ -35,7 +35,8 @@ Vue.component("http-access-log-config-box", {
return {
accessLog: accessLog,
- hasRequestBodyField: this.vFields.$contains(8)
+ hasRequestBodyField: this.vFields.$contains(8),
+ showAdvancedOptions: false
}
},
methods: {
@@ -46,6 +47,9 @@ Vue.component("http-access-log-config-box", {
return v.code
})
this.hasRequestBodyField = this.accessLog.fields.$contains(8)
+ },
+ changeAdvanced: function (v) {
+ this.showAdvancedOptions = v
}
},
template: `
| 基础信息 | 默认记录客户端IP、请求URL等基础信息。 |