<!DOCTYPE html>
|
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
<head>
|
<th:block th:include="include :: header('修改工作人员')" />
|
<th:block th:include="include :: bootstrap-select-css" />
|
<th:block th:include="include :: bootstrap-select-js" />
|
</head>
|
<body class="white-bg">
|
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
<form class="form-horizontal m" id="form-workUser-edit" th:object="${mjWorkUser}">
|
<input name="id" th:field="*{id}" type="hidden">
|
<input name="userId" th:field="*{userId}" type="hidden">
|
<input name="organizationId" th:field="*{organizationId}" type="hidden">
|
<input name="organizationName" th:field="*{organizationName}" type="hidden">
|
<input name="sort" th:field="*{sort}" type="hidden">
|
<div class="form-group">
|
<label class="col-sm-3 control-label">用户名称:</label>
|
<div class="col-sm-8">
|
<input name="userName" th:field="*{userName}" class="form-control" type="text" required>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">部门名称:</label>
|
<div class="col-sm-8">
|
<select class="form-control" name="deptId" th:with="dept=${@mjDeptServiceImpl.selectMjDeptList(null)}">
|
<option >请选择</option>
|
<option id="deptname" th:each="d:${dept}" th:text="${d.deptName}" th:value="${d.id}" th:selected="*{deptName}"></option>
|
</select>
|
</div>
|
</div>
|
<!--<div class="form-group">
|
<label class="col-sm-3 control-label">密码:</label>
|
<div class="col-sm-8">
|
<input name="pass" th:field="*{pass}" class="form-control" type="text" required>
|
</div>
|
</div>-->
|
<div class="form-group">
|
<label class="col-sm-3 control-label">是否激活:</label>
|
<div class="col-sm-8">
|
<select class="form-control" name="enable">
|
<option value="">请选择</option>
|
<option th:value="0" th:selected="${mjWorkUser.enable=='0'}">激活</option>
|
<option th:value="1" th:selected="${mjWorkUser.enable=='1'}">未激活</option>
|
</select>
|
</div>
|
</div>
|
<div class="form-group">
|
<label class="col-sm-3 control-label">用户权限:</label>
|
<div class="col-sm-8">
|
<select class="form-control" name="iPrivilege">
|
<option value="">请选择</option>
|
<option th:value="0" th:selected="${mjWorkUser.iPrivilege=='0'}">普通用户</option>
|
<option th:value="1" th:selected="${mjWorkUser.iPrivilege=='1'}">登记员</option>
|
<option th:value="2" th:selected="${mjWorkUser.iPrivilege=='2'}">管理员</option>
|
<option th:value="3" th:selected="${mjWorkUser.iPrivilege=='3'}">超级管理员</option>
|
</select>
|
</div>
|
</div>
|
</form>
|
</div>
|
<th:block th:include="include :: footer" />
|
<script th:inline="javascript">
|
var prefix = ctx + "station/workUser";
|
$("#form-workUser-edit").validate({
|
focusCleanup: true
|
});
|
|
function submitHandler() {
|
if ($.validate.form()) {
|
$.operate.save(prefix + "/edit", $('#form-workUser-edit').serialize());
|
}
|
}
|
</script>
|
</body>
|
</html>
|