Explorar o código

角色岗位禁用显示置灰

RuoYi %!s(int64=6) %!d(string=hai) anos
pai
achega
95b5b12c4d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/main/resources/templates/system/user/add.html

+ 1 - 1
src/main/resources/templates/system/user/add.html

@@ -67,7 +67,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}"></option>
+						<option th:each="post:${posts}" th:value="${post.postId}" th:text="${post.postName}" th:disabled="${post.status == '1'}"></option>
 					</select>
 					
 				</div>