treeByEntName.html 1.9 KB
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
	<th:block th:include="include :: header('合同选择')" />
</head>
<style>
	body{height:auto;font-family: "Microsoft YaHei";}
	button{font-family: "SimSun","Helvetica Neue",Helvetica,Arial;}
</style>
<body class="hold-transition box box-main">
	<input id="contractId" name="contractId" type="hidden"/>
	<input id="contractName" name="contractName" type="hidden"/>
	<input id="protocolResponsibilityStaffName" name="protocolResponsibilityStaffName" type="hidden"/>
	<input id="remark" name="remark" type="hidden"/>
	<input id="serviceRemark" name="serviceRemark" type="hidden"/>
	<div class="col-sm-8">
		<div class="radio-box" th:each="dept : ${deptList}">
			<input type="radio" name="status" th:value="${dept.contractId}">
			<div>
				合同名称:<label class="contractName" th:text="${dept.headOffice}"></label>
			</div>
			<div>
				负责人名称:<label class="protocolResponsibilityStaffName" th:text="${dept.protocolResponsibilityStaffName}"></label>
			</div>
			<div>
				合同备注:<label class="remark" th:text="${dept.remark}"></label>
			</div>
			<div>
				服务备注:<label class="serviceRemark" th:text="${dept.serviceRemark}"></label>
			</div>
		</div>
	</div>
	<th:block th:include="include :: footer" />
	<script th:inline="javascript">
		$(function () {
			$('input').on('ifChecked', function(event) {
				var menuType = $(event.target).val();
				$("#contractId").val(menuType);
				$("#contractName").val($(event.target).parents(".radio-box").find('.contractName').text());
				$("#protocolResponsibilityStaffName").val($(event.target).parents(".radio-box").find('.protocolResponsibilityStaffName').text());
				$("#remark").val($(event.target).parents(".radio-box").find('.remark').text());
				$("#serviceRemark").val($(event.target).parents(".radio-box").find('.serviceRemark').text());
			})
		})
	</script>
</body>
</html>