添加服务器ui调整

This commit is contained in:
linxiaozhi
2019-02-18 14:41:06 +08:00
parent 38e874a707
commit ad9dc965d6
4 changed files with 13 additions and 13 deletions

View File

@@ -71,8 +71,8 @@
<div class="layui-form-item">
<label class="layui-form-label mw200">验证登录类型</label>
<div class="layui-input-inline mw400">
<input type="radio" name="type" lay-verify="type" value="0" title="密码" checked>
<input type="radio" name="type" lay-verify="type" value="1" title="密钥" >
<input type="radio" name="type" lay-verify="type" lay-filter="type" value="0" title="密码" checked>
<input type="radio" name="type" lay-verify="type" lay-filter="type" value="1" title="密钥" >
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
@@ -133,7 +133,7 @@
})
return;
}
form.on('radio', function(data){
form.on('radio(type)', function(data){
if(data.value==1){
$(".key").show();
$(".password").hide();

View File

@@ -71,8 +71,8 @@
<div class="layui-form-item">
<label class="layui-form-label mw200">验证登录类型</label>
<div class="layui-input-inline mw400">
<input type="radio" name="type" lay-verify="type" value="0" title="密码" {{if eq .server.type 0}}checked{{end}}>
<input type="radio" name="type" lay-verify="type" value="1" title="密钥" {{if eq .server.type 1}}checked{{end}}>
<input type="radio" name="type" lay-verify="type" lay-filter="type" value="0" title="密码" {{if eq .server.type 0}}checked{{end}}>
<input type="radio" name="type" lay-verify="type" lay-filter="type" value="1" title="密钥" {{if eq .server.type 1}}checked{{end}}>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
@@ -131,7 +131,7 @@
})
return;
}
form.on('radio', function(data){
form.on('radio(type)', function(data){
if(data.value==1){
$(".key").show();
$(".password").hide();

View File

@@ -71,8 +71,8 @@
<div class="layui-form-item">
<label class="layui-form-label mw200">验证登录类型</label>
<div class="layui-input-inline mw400">
<input type="radio" name="type" lay-verify="type" value="0" title="密码" {{if eq .server.type 0}}checked{{end}}>
<input type="radio" name="type" lay-verify="type" value="1" title="密钥" {{if eq .server.type 1}}checked{{end}}>
<input type="radio" name="type" lay-verify="type" lay-filter="type" value="0" title="密码" {{if eq .server.type 0}}checked{{end}}>
<input type="radio" name="type" lay-verify="type" lay-filter="type" value="1" title="密钥" {{if eq .server.type 1}}checked{{end}}>
</div>
<div class="layui-form-mid layui-word-aux"></div>
</div>
@@ -132,7 +132,7 @@
})
return;
}
form.on('radio', function(data){
form.on('radio(type)', function(data){
if(data.value==1){
$(".key").show();
$(".password").hide();