修改BUG:字典表长度自适应

This commit is contained in:
Argo-MacBookPro 2018-08-04 01:51:33 +08:00
parent 7507937345
commit 0baecc98c5
3 changed files with 30 additions and 34 deletions

View File

@ -20,11 +20,11 @@
</div>
<div class="form-group col-sm-6 col-md-5">
<label class="control-label" for="txt_dict_define">字典类别</label>
<div class="dropdown lgbDropdown">
<a id="txt_dict_define" class="btn btn-success" data-toggle="dropdown">
<div class="lgbDropdown">
<button id="txt_dict_define" class="btn btn-success dropdown-toggle" data-toggle="dropdown">
<span>全部</span>
<span class="caret"></span>
</a>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" data-val="">全部</a></li>
<li class="divider"></li>
@ -53,32 +53,26 @@
<button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
</div>
<div class="modal-body">
<form class="form-horizontal">
<form class="form-inline">
<input type="text" class="form-control d-none" id="dictID" data-default-val="0" />
<div class="form-group">
<label class="control-label col-sm-2" for="dictCate">字典标签</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="dictCate" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group col-12">
<label class="control-label" for="dictCate">字典标签</label>
<input type="text" class="form-control form-control-url" id="dictCate" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="dictName">字典名称</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="dictName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group col-12">
<label class="control-label" for="dictName">字典名称</label>
<input type="text" class="form-control form-control-url" id="dictName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="dictCode">字典代码</label>
<div class="col-sm-10">
<input type="text" class="form-control" id="dictCode" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group col-12">
<label class="control-label" for="dictCode">字典代码</label>
<input type="text" class="form-control form-control-url" id="dictCode" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group">
<label class="control-label col-sm-2" for="dictDefine">字典类型</label>
<div class="dropdown lgbDropdown dropup col-sm-10">
<a id="dictDefine" class="btn btn-success" data-toggle="dropdown" data-default-val="1">
<div class="form-group col-12">
<label class="control-label" for="dictDefine">字典类型</label>
<div class="lgbDropdown">
<button id="dictDefine" class="btn btn-success dropdown-toggle" data-toggle="dropdown" data-default-val="1">
<span>全部</span><span class="caret"></span>
</a>
</button>
<ul class="dropdown-menu" role="menu">
<li><a href="#" data-val="0">系统使用</a></li>
<li><a href="#" data-val="1">自定义</a></li>

View File

@ -34,11 +34,11 @@
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSaveDisplayName">
<form class="form-inline">
<div class="form-row">
<div class="form-group col-xs-12 col-sm-6">
<div class="form-group col-sm-6">
<label class="control-label" for="userName">登陆名称</label>
<input type="text" class="form-control ignore" id="userName" name="userName" value="@Model.UserName" readonly />
</div>
<div class="form-group col-xs-12 col-sm-6">
<div class="form-group col-sm-6">
<label class="control-label" for="DisplayName">显示名称</label>
<input type="text" class="form-control" id="displayName" name="displayName" value="@Model.DisplayName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
@ -54,17 +54,17 @@
<div class="card-body" data-toggle="LgbValidate" data-valid-button="#btnSavePassword">
<form class="form-inline">
<div class="form-row">
<div class="form-group col-xs-12">
<div class="form-group">
<label class="control-label" for="currentPassword">原密码: </label>
<input type="password" class="form-control" id="currentPassword" placeholder="原密码50字以内" maxlength="50" data-valid="true" />
</div>
</div>
<div class="form-row">
<div class="form-group col-sm-6 col-xs-12">
<div class="form-group col-sm-6">
<label class="control-label" for="newPassword">新密码: </label>
<input type="password" class="form-control" id="newPassword" placeholder="新密码50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group col-sm-6 col-xs-12">
<div class="form-group col-sm-6">
<label class="control-label" for="confirmPassword">确认密码: </label>
<input type="password" class="form-control" id="confirmPassword" placeholder="与新密码一致50字以内" maxlength="50" data-valid="true" />
</div>
@ -80,7 +80,7 @@
<div class="card-body">
<form class="form-inline">
<div class="form-row">
<div class="form-group col-xs-12">
<div class="form-group">
<label class="control-label" for="userName">样式</label>
<select id="css" class="select form-control">
<option value="">默认样式</option>

View File

@ -13,6 +13,12 @@
}
}
@media (min-width: 576px) {
.form-group .form-control-url {
width: calc(100% - 90px);
}
}
@media (min-width: 568px) {
.toolbar {
display: none;
@ -30,10 +36,6 @@
position: absolute;
overflow: auto;
}
.form-group .form-control-url {
width: calc(100% - 90px);
}
}
@media (min-width: 769px) {