角色岗位禁用显示置灰

master
RuoYi 7 years ago committed by Limy
parent 43b8c05bd7
commit 9914bc3b0e

@ -76,7 +76,7 @@
<label class="col-sm-3 control-label">角色:</label> <label class="col-sm-3 control-label">角色:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<label th:each="role:${roles}" class="checkbox-inline i-checks"> <label th:each="role:${roles}" class="checkbox-inline i-checks">
<input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}"> <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:disabled="${role.status == '1'}">
</label> </label>
</div> </div>
</div> </div>

@ -62,7 +62,7 @@
<label class="col-sm-3 control-label">岗位:</label> <label class="col-sm-3 control-label">岗位:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<select id="post" name="post" class="form-control select2-hidden-accessible" multiple=""> <select id="post" name="post" class="form-control select2-hidden-accessible" multiple="">
<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}"></option> <option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:selected="${post.flag}" th:disabled="${post.status == '1'}"></option>
</select> </select>
</div> </div>
@ -71,7 +71,7 @@
<label class="col-sm-3 control-label">角色:</label> <label class="col-sm-3 control-label">角色:</label>
<div class="col-sm-8"> <div class="col-sm-8">
<label th:each="role:${roles}" class="checkbox-inline i-checks"> <label th:each="role:${roles}" class="checkbox-inline i-checks">
<input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:checked="${role.flag}"> <input name="role" type="checkbox" th:value="${role.roleId}" th:text="${role.roleName}" th:checked="${role.flag}" th:disabled="${role.status == '1'}">
</label> </label>
</div> </div>
</div> </div>

Loading…
Cancel
Save