重构代码:Html网页隐藏ID文本框设置type="hidden"

This commit is contained in:
Argo-MacBookPro 2018-09-12 21:09:55 +08:00
parent 8abc539e3b
commit 9567291e28
5 changed files with 5 additions and 5 deletions

View File

@ -52,7 +52,7 @@
<div class="modal-body">
<form class="form-inline">
<div class="form-row">
<input type="text" class="form-control d-none" id="dictID" data-default-val="0" />
<input type="hidden" id="dictID" data-default-val="0" />
<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" />

View File

@ -52,7 +52,7 @@
<input type="text" class="form-control" id="groupName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group col-sm-6">
<input type="text" class="form-control d-none" id="groupID" data-default-val="0" />
<input type="hidden" id="groupID" data-default-val="0" />
<label class="control-label" for="groupDesc">部门描述</label>
<input type="text" class="form-control" id="groupDesc" placeholder="描述信息(可为空)50字以内" maxlength="50" />
</div>

View File

@ -75,7 +75,7 @@
<form class="form-inline" id="dataForm">
<div class="form-row">
<div class="form-group col-sm-6">
<input type="text" class="form-control d-none" id="menuID" name="menuID" data-default-val="0" />
<input type="hidden" id="menuID" data-default-val="0" />
<label class="control-label" for="name">菜单名称</label>
<div class="input-group">
<input type="text" class="form-control" id="name" name="name" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />

View File

@ -62,7 +62,7 @@
<input type="text" class="form-control" id="roleName" placeholder="不可为空50字以内" maxlength="50" data-valid="true" />
</div>
<div class="form-group col-sm-6">
<input type="text" class="form-control d-none" id="roleID" data-default-val="0" />
<input type="hidden" id="roleID" data-default-val="0" />
<label class="control-label" for="roleDesc">角色描述</label>
<input type="text" class="form-control" id="roleDesc" placeholder="描述信息(可为空)50字以内" maxlength="50" />
</div>

View File

@ -46,7 +46,7 @@
</div>
<div class="modal-body">
<form class="form-inline">
<input type="text" class="form-control" hidden id="userID" data-default-val="0" />
<input type="hidden" id="userID" data-default-val="0" />
<div class="form-row">
<div class="form-group col-sm-6">
<label class="control-label" for="userName">登陆名称</label>