mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-06 06:40:27 +08:00
多处增加是否独立配置选项
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
Vue.component("http-stat-config-box", {
|
||||
props: ["v-stat-config"],
|
||||
props: ["v-stat-config", "v-is-location"],
|
||||
data: function () {
|
||||
let stat = this.vStatConfig
|
||||
if (stat == null) {
|
||||
stat = {
|
||||
isPrior: false,
|
||||
isOn: true
|
||||
}
|
||||
}
|
||||
@@ -14,15 +15,18 @@ Vue.component("http-stat-config-box", {
|
||||
template: `<div>
|
||||
<input type="hidden" name="statJSON" :value="JSON.stringify(stat)"/>
|
||||
<table class="ui table definition selectable">
|
||||
<tr>
|
||||
<td class="title">是否开启统计</td>
|
||||
<td>
|
||||
<div class="ui checkbox">
|
||||
<input type="checkbox" v-model="stat.isOn"/>
|
||||
<label></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
<prior-checkbox :v-config="stat" v-if="vIsLocation" ></prior-checkbox>
|
||||
<tbody v-show="!vIsLocation || stat.isPrior">
|
||||
<tr>
|
||||
<td class="title">是否开启统计</td>
|
||||
<td>
|
||||
<div class="ui checkbox">
|
||||
<input type="checkbox" v-model="stat.isOn"/>
|
||||
<label></label>
|
||||
</div>
|
||||
</td>
|
||||
</tr>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="margin"></div>
|
||||
</div>`
|
||||
|
||||
Reference in New Issue
Block a user