156 lines
6.7 KiB
HTML
156 lines
6.7 KiB
HTML
<!DOCTYPE html>
|
||
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
|
||
<head>
|
||
<th:block th:include="include :: header('修改人员')" />
|
||
<th:block th:include="include :: datetimepicker-css" />
|
||
</head>
|
||
<body class="white-bg">
|
||
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
|
||
<form class="form-horizontal m" id="form-personnel-edit" th:object="${tAmentPersonnel}">
|
||
<input name="id" th:field="*{id}" type="hidden">
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">单位名称:</label>
|
||
<div class="col-sm-8">
|
||
<input name="unit" th:field="*{unit}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">人员姓名:</label>
|
||
<div class="col-sm-8">
|
||
<input name="name" th:field="*{name}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">民族:</label>
|
||
<div class="col-sm-8">
|
||
<input name="nation" th:field="*{nation}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">部门:</label>
|
||
<div class="col-sm-8">
|
||
<select name="deptId" th:field="*{deptId}" id="deptId" class="form-control">
|
||
</select>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">手机号码:</label>
|
||
<div class="col-sm-8">
|
||
<input name="mphone" th:field="*{mphone}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">邮箱:</label>
|
||
<div class="col-sm-8">
|
||
<input name="email" th:field="*{email}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">籍贯:</label>
|
||
<div class="col-sm-8">
|
||
<input name="nativePlace" th:field="*{nativePlace}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">岗位:</label>
|
||
<div class="col-sm-8">
|
||
<input name="post" th:field="*{post}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">职务:</label>
|
||
<div class="col-sm-8">
|
||
<input name="duties" th:field="*{duties}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">职称:</label>
|
||
<div class="col-sm-8">
|
||
<input name="title" th:field="*{title}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">参加工作时间:</label>
|
||
<div class="col-sm-8">
|
||
<div class="input-group date">
|
||
<input name="workDate" th:value="${#dates.format(tAmentPersonnel.workDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">支部ID:</label>
|
||
<div class="col-sm-8">
|
||
<input name="branchId" th:field="*{branchId}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">入党时间:</label>
|
||
<div class="col-sm-8">
|
||
<div class="input-group date">
|
||
<input name="partyDate" th:value="${#dates.format(tAmentPersonnel.partyDate, 'yyyy-MM-dd')}" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
||
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
||
</div>
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">党内职务:</label>
|
||
<div class="col-sm-8">
|
||
<input name="partyDuties" th:field="*{partyDuties}" class="form-control" type="text">
|
||
</div>
|
||
</div>
|
||
<div class="form-group">
|
||
<label class="col-sm-3 control-label">备注:</label>
|
||
<div class="col-sm-8">
|
||
<textarea name="remark" class="form-control">[[*{remark}]]</textarea>
|
||
</div>
|
||
</div>
|
||
</form>
|
||
</div>
|
||
<th:block th:include="include :: footer" />
|
||
<th:block th:include="include :: datetimepicker-js" />
|
||
<script th:inline="javascript">
|
||
var prefix = ctx + "base/personnel";
|
||
$("#form-personnel-edit").validate({
|
||
focusCleanup: true
|
||
});
|
||
|
||
$(document).ready(function () {
|
||
$("#deptId").on("change", function() {
|
||
console.log($(this).val())
|
||
});
|
||
$.ajax({
|
||
type: "post",
|
||
url: ctx + "base/personnel/deptList",
|
||
data: {
|
||
},
|
||
success: function(data) {
|
||
var opt = '<option value="">请选择</option>';
|
||
data.data.forEach(d=>{
|
||
opt += '<option value="'+d.deptId+'">'+d.deptName+'</option>';
|
||
})
|
||
$("#deptId").html(opt);
|
||
}
|
||
});
|
||
})
|
||
|
||
function submitHandler() {
|
||
if ($.validate.form()) {
|
||
$.operate.save(prefix + "/edit", $('#form-personnel-edit').serialize());
|
||
}
|
||
}
|
||
|
||
$("input[name='workDate']").datetimepicker({
|
||
format: "yyyy-mm-dd",
|
||
minView: "month",
|
||
autoclose: true
|
||
});
|
||
|
||
$("input[name='partyDate']").datetimepicker({
|
||
format: "yyyy-mm-dd",
|
||
minView: "month",
|
||
autoclose: true
|
||
});
|
||
</script>
|
||
</body>
|
||
</html> |