cyx-ament-pc/cyx-admin/src/main/resources/templates/base/affairs/add.html

166 lines
7.3 KiB
HTML
Raw Normal View History

2023-08-24 09:43:00 +08:00
<!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-affairs-add">
2023-08-24 16:25:17 +08:00
<!-- <div class="form-group"> -->
<!-- <label class="col-sm-3 control-label">单位名称:</label>-->
<!-- <div class="col-sm-8">-->
<!-- <input name="unit" class="form-control" type="text">-->
<!-- </div>-->
<!-- </div>-->
2023-08-24 09:43:00 +08:00
<div class="form-group">
2023-08-24 16:25:17 +08:00
<label class="col-sm-3 control-label">类型:</label>
2023-08-24 09:43:00 +08:00
<div class="col-sm-8">
2023-08-24 17:39:51 +08:00
<select required name="type" id="type-selector" class="form-control m-b">
2023-08-24 16:25:17 +08:00
<option value="">请选择</option>
<option value="党务及意识形态">党务及意识形态</option>
<option value="党风廉政建设">党风廉政建设</option>
<option value="日常考核指标">日常考核指标</option>
<option value="年度考核指标">年度考核指标</option>
</select>
2023-08-24 09:43:00 +08:00
</div>
</div>
2023-08-24 16:25:17 +08:00
<div class="form-group">
<label class="col-sm-3 control-label" id="target">目标项:</label>
2023-08-24 09:43:00 +08:00
<div class="col-sm-8">
2023-08-24 17:39:51 +08:00
<textarea required name="target" class="form-control"></textarea>
2023-08-24 09:43:00 +08:00
</div>
</div>
<div class="form-group">
2023-08-24 16:25:17 +08:00
<label class="col-sm-3 control-label" id="demand">目标要求:</label>
2023-08-24 09:43:00 +08:00
<div class="col-sm-8">
2023-08-24 17:39:51 +08:00
<textarea required name="demand" class="form-control"></textarea>
2023-08-24 09:43:00 +08:00
</div>
</div>
<div class="form-group">
2023-08-24 16:25:17 +08:00
<label class="col-sm-3 control-label" id="detailed">评分细则:</label>
2023-08-24 09:43:00 +08:00
<div class="col-sm-8">
2023-08-24 17:39:51 +08:00
<textarea required name="detailed" class="form-control"></textarea>
2023-08-24 09:43:00 +08:00
</div>
</div>
<div class="form-group">
2023-08-24 16:25:17 +08:00
<label class="col-sm-3 control-label" id="score">达标分:</label>
2023-08-24 09:43:00 +08:00
<div class="col-sm-8">
2023-08-24 17:39:51 +08:00
<input required name="score" class="form-control" />
2023-08-24 09:43:00 +08:00
</div>
</div>
<div class="form-group">
2023-08-24 16:25:17 +08:00
<label class="col-sm-3 control-label" id="method">考核方式:</label>
2023-08-24 09:43:00 +08:00
<div class="col-sm-8">
2023-08-24 17:39:51 +08:00
<textarea required name="method" class="form-control"></textarea>
2023-08-24 09:43:00 +08:00
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">负责人:</label>
<div class="col-sm-8">
<input name="head" 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="reviewed" 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="finishDate" 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="perId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">部门ID</label>
<div class="col-sm-8">
<input name="deptId" class="form-control" type="text">
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label">支部ID</label>
<div class="col-sm-8">
<input name="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">
<textarea name="remark" class="form-control"></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/affairs"
$("#form-affairs-add").validate({
2023-08-24 17:39:51 +08:00
onkeyup: false,
2023-08-24 09:43:00 +08:00
focusCleanup: true
});
2023-08-24 16:25:17 +08:00
$("#type-selector").on("change", function() {
var type = $(this).val();
var target = $("#target");
var demand = $("#demand");
var detailed = $("#detailed");
var score = $("#score");
var method = $("#method");
switch (type) {
case "党务及意识形态":
target[0].innerHTML = '目标项:'
demand[0].innerHTML = '目标要求:'
detailed[0].innerHTML = '评分细则:'
score[0].innerHTML = '达标分:'
method[0].innerHTML = '考核方式:'
break;
case "党风廉政建设":
target[0].innerHTML = '责任类别:'
demand[0].innerHTML = '目标要求:'
detailed[0].innerHTML = '指标明细:'
score[0].innerHTML = '总分值:'
method[0].innerHTML = '考核要求:'
break;
case "日常考核指标":
target[0].innerHTML = '考核内容:'
demand[0].innerHTML = '考核目标:'
detailed[0].innerHTML = '评分办法:'
score[0].innerHTML = '分值:'
method[0].innerHTML = '标准要求:'
break;
case "年度考核指标":
target[0].innerHTML = '考核内容:'
demand[0].innerHTML = '考核目标:'
detailed[0].innerHTML = '评分办法:'
score[0].innerHTML = '分值:'
method[0].innerHTML = '标准要求:'
break;
}
});
2023-08-24 09:43:00 +08:00
function submitHandler() {
if ($.validate.form()) {
$.operate.save(prefix + "/add", $('#form-affairs-add').serialize());
}
}
$("input[name='finishDate']").datetimepicker({
format: "yyyy-mm-dd",
minView: "month",
autoclose: true
});
</script>
</body>
</html>