mirror of
https://github.com/TeaOSLab/EdgeAdmin.git
synced 2025-11-07 07:10:27 +08:00
改进文字提示
This commit is contained in:
@@ -1590,7 +1590,7 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
|
|||||||
<td>忽略常见文件</td>
|
<td>忽略常见文件</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox v-model="ignoreCommonFiles"></checkbox>
|
<checkbox v-model="ignoreCommonFiles"></checkbox>
|
||||||
<p class="comment">忽略js、css、jpg等常见文件名。</p>
|
<p class="comment">忽略js、css、jpg等常见在网页里被引用的文件名。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -2323,11 +2323,8 @@ Vue.component("traffic-map-box",{props:["v-stats","v-is-attack"],mounted:functio
|
|||||||
<button class="ui button small" type="button" @click.prevent="add">+添加认证方式</button>
|
<button class="ui button small" type="button" @click.prevent="add">+添加认证方式</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="margin"></div>
|
<div class="margin"></div>
|
||||||
</div>`}),Vue.component("user-selector",{mounted:function(){let t=this;Tea.action("/servers/users/options").post().success(function(e){t.users=e.data.users})},props:["v-user-id"],data:function(){let e=this.vUserId;return{users:[],userId:e=null==e?0:e}},watch:{userId:function(e){this.$emit("change",e)}},template:`<div>
|
</div>`}),Vue.component("user-selector",{props:["v-user-id"],data:function(){let e=this.vUserId;return{users:[],userId:e=null==e?0:e}},watch:{userId:function(e){this.$emit("change",e)}},template:`<div>
|
||||||
<select class="ui dropdown auto-width" name="userId" v-model="userId">
|
<combo-box placeholder="选择用户" :data-url="'/servers/users/options'" :data-key="'users'" name="userId" :v-value="userId"></combo-box>
|
||||||
<option value="0">[选择用户]</option>
|
|
||||||
<option v-for="user in users" :value="user.id">{{user.fullname}} ({{user.username}})</option>
|
|
||||||
</select>
|
|
||||||
</div>`}),Vue.component("uam-config-box",{props:["v-uam-config","v-is-location","v-is-group"],data:function(){let e=this.vUamConfig;return{config:e=null==e?{isPrior:!1,isOn:!1}:e}},template:`<div>
|
</div>`}),Vue.component("uam-config-box",{props:["v-uam-config","v-is-location","v-is-group"],data:function(){let e=this.vUamConfig;return{config:e=null==e?{isPrior:!1,isOn:!1}:e}},template:`<div>
|
||||||
<input type="hidden" name="uamJSON" :value="JSON.stringify(config)"/>
|
<input type="hidden" name="uamJSON" :value="JSON.stringify(config)"/>
|
||||||
<table class="ui table definition selectable">
|
<table class="ui table definition selectable">
|
||||||
|
|||||||
@@ -4948,7 +4948,7 @@ Vue.component("http-firewall-checkpoint-cc", {
|
|||||||
<td>忽略常见文件</td>
|
<td>忽略常见文件</td>
|
||||||
<td>
|
<td>
|
||||||
<checkbox v-model="ignoreCommonFiles"></checkbox>
|
<checkbox v-model="ignoreCommonFiles"></checkbox>
|
||||||
<p class="comment">忽略js、css、jpg等常见文件名。</p>
|
<p class="comment">忽略js、css、jpg等常见在网页里被引用的文件名。</p>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
@@ -7073,15 +7073,6 @@ Vue.component("http-auth-config-box", {
|
|||||||
})
|
})
|
||||||
|
|
||||||
Vue.component("user-selector", {
|
Vue.component("user-selector", {
|
||||||
mounted: function () {
|
|
||||||
let that = this
|
|
||||||
|
|
||||||
Tea.action("/servers/users/options")
|
|
||||||
.post()
|
|
||||||
.success(function (resp) {
|
|
||||||
that.users = resp.data.users
|
|
||||||
})
|
|
||||||
},
|
|
||||||
props: ["v-user-id"],
|
props: ["v-user-id"],
|
||||||
data: function () {
|
data: function () {
|
||||||
let userId = this.vUserId
|
let userId = this.vUserId
|
||||||
@@ -7099,10 +7090,7 @@ Vue.component("user-selector", {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
template: `<div>
|
template: `<div>
|
||||||
<select class="ui dropdown auto-width" name="userId" v-model="userId">
|
<combo-box placeholder="选择用户" :data-url="'/servers/users/options'" :data-key="'users'" name="userId" :v-value="userId"></combo-box>
|
||||||
<option value="0">[选择用户]</option>
|
|
||||||
<option v-for="user in users" :value="user.id">{{user.fullname}} ({{user.username}})</option>
|
|
||||||
</select>
|
|
||||||
</div>`
|
</div>`
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user