集群可以设置默认的WAF策略、缓存策略

This commit is contained in:
GoEdgeLab
2020-12-17 15:50:44 +08:00
parent ee549b945d
commit 41ac159e23
100 changed files with 1172 additions and 488 deletions

View File

@@ -4,14 +4,6 @@
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
<table class="ui table definition selectable">
<tr>
<td class="title">缓存策略 *</td>
<td>
<select class="ui dropdown auto-width" name="cachePolicyId" v-model="cachePolicyId">
<option v-for="cachePolicy in cachePolicies" :value="cachePolicy.id">{{cachePolicy.name}}</option>
</select>
</td>
</tr>
<tbody is="http-cache-ref-box" :v-cache-ref="cacheRef"></tbody>
</table>
<submit-btn></submit-btn>

View File

@@ -2,16 +2,7 @@ Tea.context(function () {
this.success = NotifyPopup
this.cacheRef = null
let cachePolicyId = 0
if (this.cachePolicies.length > 0) {
cachePolicyId = this.cachePolicies[0].id
}
if (window.parent.UPDATING_CACHE_REF != null) {
let cacheRef = window.parent.UPDATING_CACHE_REF
this.cacheRef = cacheRef
if (cacheRef.cachePolicy != null) {
cachePolicyId = cacheRef.cachePolicy.id
}
this.cacheRef = window.parent.UPDATING_CACHE_REF
}
this.cachePolicyId = cachePolicyId
})

View File

@@ -5,7 +5,7 @@
<div class="right-box">
<form method="post" class="ui form" data-tea-action="$" data-tea-success="success">
<input type="hidden" name="webId" :value="webId"/>
<http-cache-config-box :v-cache-config="cacheConfig"></http-cache-config-box>
<http-cache-config-box :v-cache-config="cacheConfig" :v-cache-policy="cachePolicy"></http-cache-config-box>
<submit-btn></submit-btn>
</form>
</div>