|
|
|
@ -19,19 +19,19 @@
|
|
|
|
|
<input name="FRAMEWORK" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">人员名称:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="USERNAME" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">单位名称:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="deptName" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">培训类型:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="trainType" class="form-control m-b" th:with="type=${@dict.getType('sys_usertrain_typer')}">
|
|
|
|
@ -39,7 +39,7 @@
|
|
|
|
|
</select>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">培训对象:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<select name="trainSubject" class="form-control m-b" th:with="type=${@dict.getType('sys_usertrain_obj')}">
|
|
|
|
@ -53,25 +53,17 @@
|
|
|
|
|
<textarea name="trainAddress" class="form-control"></textarea>
|
|
|
|
|
</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="trainDate" 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>
|
|
|
|
|
<label class="col-sm-3 control-label">培训日期:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<div class="input-group date">
|
|
|
|
|
<input name="trainTimeend" class="form-control" placeholder="yyyy-MM-dd" type="text">
|
|
|
|
|
<span class="input-group-addon"><i class="fa fa-calendar"></i></span>
|
|
|
|
|
<div class="input-daterange input-group">
|
|
|
|
|
<input type="text" class="input-sm form-control" name="trainDate" id="laydate-startTime" placeholder="开始日期"/>
|
|
|
|
|
<span class="input-group-addon">到</span>
|
|
|
|
|
<input type="text" class="input-sm form-control" name="trainTimeend" id="laydate-endTime" placeholder="结束日期"/>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">填报人:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="createStaffid" class="form-control" type="text" >
|
|
|
|
@ -87,14 +79,14 @@
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">培训人员:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="trainName" class="form-control" type="text">
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
|
|
|
|
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<div class="form-group">
|
|
|
|
|
<label class="col-sm-3 control-label">部门:</label>
|
|
|
|
|
<div class="col-sm-8">
|
|
|
|
|
<input name="PART" class="form-control" type="text">
|
|
|
|
@ -109,18 +101,60 @@
|
|
|
|
|
$("#form-train-add").validate({
|
|
|
|
|
focusCleanup: true
|
|
|
|
|
});
|
|
|
|
|
layui.use('laydate', function(){
|
|
|
|
|
var laydate = layui.laydate;
|
|
|
|
|
|
|
|
|
|
var startDate = laydate.render({
|
|
|
|
|
elem: '#laydate-startTime',
|
|
|
|
|
theme: 'molv',
|
|
|
|
|
trigger: 'click',
|
|
|
|
|
done: function(value, date) {
|
|
|
|
|
// 结束时间大于开始时间
|
|
|
|
|
if (value !== '') {
|
|
|
|
|
endDate.config.min.year = date.year;
|
|
|
|
|
endDate.config.min.month = date.month - 1;
|
|
|
|
|
endDate.config.min.date = date.date;
|
|
|
|
|
} else {
|
|
|
|
|
endDate.config.min.year = '';
|
|
|
|
|
endDate.config.min.month = '';
|
|
|
|
|
endDate.config.min.date = '';
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
var endDate = laydate.render({
|
|
|
|
|
elem: '#laydate-endTime',
|
|
|
|
|
theme: 'molv',
|
|
|
|
|
trigger: 'click',
|
|
|
|
|
done: function(value, date) {
|
|
|
|
|
// Start date cannot be after end date
|
|
|
|
|
if (value !== '') {
|
|
|
|
|
startDate.config.max = {
|
|
|
|
|
year: date.year,
|
|
|
|
|
month: date.month - 1,
|
|
|
|
|
date: date.date
|
|
|
|
|
};
|
|
|
|
|
} else {
|
|
|
|
|
startDate.config.max = {
|
|
|
|
|
year: '',
|
|
|
|
|
month: '',
|
|
|
|
|
date: ''
|
|
|
|
|
};
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
});
|
|
|
|
|
});
|
|
|
|
|
function submitHandler() {
|
|
|
|
|
if ($.validate.form()) {
|
|
|
|
|
$.operate.save(prefix + "/add", $('#form-train-add').serialize());
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
$("input[name='trainDate']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
// $("input[name='trainDate']").datetimepicker({
|
|
|
|
|
// format: "yyyy-mm-dd",
|
|
|
|
|
// minView: "month",
|
|
|
|
|
// autoclose: true
|
|
|
|
|
// });
|
|
|
|
|
|
|
|
|
|
$("input[name='createDate']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
@ -134,11 +168,11 @@
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
|
|
|
|
|
$("input[name='trainTimeend']").datetimepicker({
|
|
|
|
|
format: "yyyy-mm-dd",
|
|
|
|
|
minView: "month",
|
|
|
|
|
autoclose: true
|
|
|
|
|
});
|
|
|
|
|
// $("input[name='trainTimeend']").datetimepicker({
|
|
|
|
|
// format: "yyyy-mm-dd",
|
|
|
|
|
// minView: "month",
|
|
|
|
|
// autoclose: true
|
|
|
|
|
// });
|
|
|
|
|
</script>
|
|
|
|
|
</body>
|
|
|
|
|
</html>
|
|
|
|
|
</html>
|
|
|
|
|