Files
EdgeAdmin/web/public/js/components/server/server-uam.js

32 lines
881 B
JavaScript
Raw Normal View History

2022-03-29 21:25:30 +08:00
// UAM模式配置
Vue.component("uam-config-box", {
props: ["v-uam-config", "v-is-location", "v-is-group"],
2022-03-29 21:25:30 +08:00
data: function () {
let config = this.vUamConfig
if (config == null) {
config = {
isPrior: false,
2022-03-29 21:25:30 +08:00
isOn: false
}
}
return {
config: config
}
},
template: `<div>
<input type="hidden" name="uamJSON" :value="JSON.stringify(config)"/>
<table class="ui table definition selectable">
<prior-checkbox :v-config="config" v-if="vIsLocation || vIsGroup"></prior-checkbox>
<tbody v-show="((!vIsLocation && !vIsGroup) || config.isPrior)">
<tr>
<td class="title">启用5秒盾</td>
<td>
<checkbox v-model="config.isOn"></checkbox>
<p class="comment"><plus-label></plus-label>访访</p>
</td>
</tr>
</tbody>
2022-03-29 21:25:30 +08:00
</table>
<div class="margin"></div>
</div>`
})