Browse Source

角色岗位禁用显示置灰

pull/22/head
RuoYi 6 years ago
parent
commit
06e25ac4a3
  1. 2
      src/main/resources/templates/system/user/add.html
  2. 4
      src/main/resources/templates/system/user/edit.html

2
src/main/resources/templates/system/user/add.html

@ -76,7 +76,7 @@
<label class="col-sm-3 control-label">角色:</label>
<div class="col-sm-8">
<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>
</div>
</div>

4
src/main/resources/templates/system/user/edit.html

@ -62,7 +62,7 @@
<label class="col-sm-3 control-label">岗位:</label>
<div class="col-sm-8">
<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>
</div>
@ -71,7 +71,7 @@
<label class="col-sm-3 control-label">角色:</label>
<div class="col-sm-8">
<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>
</div>
</div>

Loading…
Cancel
Save