2021-06-02 11:53:08 +08:00
|
|
|
|
Vue.component("ns-access-log-ref-box", {
|
2021-08-05 16:08:18 +08:00
|
|
|
|
props: ["v-access-log-ref", "v-is-parent"],
|
2021-06-02 11:53:08 +08:00
|
|
|
|
data: function () {
|
|
|
|
|
|
let config = this.vAccessLogRef
|
|
|
|
|
|
if (config == null) {
|
|
|
|
|
|
config = {
|
|
|
|
|
|
isOn: false,
|
2021-08-05 16:08:18 +08:00
|
|
|
|
isPrior: false,
|
|
|
|
|
|
logMissingDomains: false
|
2021-06-02 11:53:08 +08:00
|
|
|
|
}
|
|
|
|
|
|
}
|
2021-08-05 16:08:18 +08:00
|
|
|
|
if (typeof (config.logMissingDomains) == "undefined") {
|
|
|
|
|
|
config.logMissingDomains = false
|
|
|
|
|
|
}
|
2021-06-02 11:53:08 +08:00
|
|
|
|
return {
|
|
|
|
|
|
config: config
|
|
|
|
|
|
}
|
|
|
|
|
|
},
|
|
|
|
|
|
template: `<div>
|
|
|
|
|
|
<input type="hidden" name="accessLogJSON" :value="JSON.stringify(config)"/>
|
|
|
|
|
|
<table class="ui table definition selectable">
|
2021-08-05 16:08:18 +08:00
|
|
|
|
<prior-checkbox :v-config="config" v-if="!vIsParent"></prior-checkbox>
|
|
|
|
|
|
<tbody v-show="vIsParent || config.isPrior">
|
|
|
|
|
|
<tr>
|
2022-06-05 17:12:54 +08:00
|
|
|
|
<td class="title">启用</td>
|
2021-08-05 16:08:18 +08:00
|
|
|
|
<td>
|
|
|
|
|
|
<checkbox name="isOn" value="1" v-model="config.isOn"></checkbox>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
2022-09-22 18:41:43 +08:00
|
|
|
|
<td>只记录失败查询</td>
|
|
|
|
|
|
<td>
|
|
|
|
|
|
<checkbox v-model="config.missingRecordsOnly"></checkbox>
|
|
|
|
|
|
<p class="comment">选中后,表示只记录查询失败的日志。</p>
|
|
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
<tr>
|
|
|
|
|
|
<td>包含未添加的域名</td>
|
2021-08-05 16:08:18 +08:00
|
|
|
|
<td>
|
|
|
|
|
|
<checkbox name="logMissingDomains" value="1" v-model="config.logMissingDomains"></checkbox>
|
2022-09-22 18:41:43 +08:00
|
|
|
|
<p class="comment">选中后,表示日志中包含对没有在系统里创建的域名访问。</p>
|
2021-08-05 16:08:18 +08:00
|
|
|
|
</td>
|
|
|
|
|
|
</tr>
|
|
|
|
|
|
</tbody>
|
2021-06-02 11:53:08 +08:00
|
|
|
|
</table>
|
|
|
|
|
|
<div class="margin"></div>
|
|
|
|
|
|
</div>`
|
|
|
|
|
|
})
|