treeByEntName.html
1.9 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<!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>