mirror of https://github.com/bjdgyc/anylink.git
审计日志配置页显示审计去重间隔
This commit is contained in:
parent
5f5ab3fbca
commit
86ee88a20c
|
@ -7,6 +7,7 @@ import (
|
|||
"net/http"
|
||||
"regexp"
|
||||
|
||||
"github.com/bjdgyc/anylink/base"
|
||||
"github.com/bjdgyc/anylink/dbdata"
|
||||
)
|
||||
|
||||
|
@ -82,6 +83,7 @@ func SetOtherAuditLog(w http.ResponseWriter, r *http.Request) {
|
|||
RespError(w, RespInternalErr, err)
|
||||
return
|
||||
}
|
||||
data.AuditInterval = base.Cfg.AuditInterval
|
||||
RespSucess(w, data)
|
||||
}
|
||||
|
||||
|
|
|
@ -21,6 +21,7 @@ type SettingSmtp struct {
|
|||
}
|
||||
|
||||
type SettingAuditLog struct {
|
||||
AuditInterval int `json:"audit_interval"`
|
||||
LifeDay int `json:"life_day"`
|
||||
ClearTime string `json:"clear_time"`
|
||||
}
|
||||
|
|
|
@ -34,6 +34,10 @@
|
|||
|
||||
<el-tab-pane label="审计日志" name="dataAuditLog">
|
||||
<el-form :model="dataAuditLog" ref="dataAuditLog" :rules="rules" label-width="100px" class="tab-one">
|
||||
<el-form-item label="审计去重间隔" prop="audit_interval">
|
||||
<el-input-number v-model="dataAuditLog.audit_interval" :min="-1" size="small" label="秒" :disabled="true"></el-input-number> 秒
|
||||
<p class="input_tip">如需开启审计日志功能,请修改配置文件中的 audit_interval 参数并重启服务, <strong style="color:#EA3323;">-1 代表关闭</strong></p>
|
||||
</el-form-item>
|
||||
<el-form-item label="存储时长" prop="life_day">
|
||||
<el-input-number v-model="dataAuditLog.life_day" :min="0" :max="365" size="small" label="天数"></el-input-number> 天
|
||||
<p class="input_tip">范围: 0 ~ 365天 , <strong style="color:#EA3323;">0 代表永久保存</strong></p>
|
||||
|
@ -253,7 +257,7 @@ export default {
|
|||
|
||||
<style scoped>
|
||||
.tab-one {
|
||||
width: 600px;
|
||||
width: 700px;
|
||||
}
|
||||
|
||||
.input_tip {
|
||||
|
|
Loading…
Reference in New Issue