detail.html
4.71 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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
<th:block th:include="include :: header('示范城市基础指标')" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
<form class="form-horizontal m" id="form-model-edit" th:object="${creditCityModel}">
<input name="id" th:field="*{id}" type="hidden">
<div class="form-group">
<label class="col-sm-3 control-label is-required">序号:</label>
<div class="col-sm-8">
<input name="serialNumber" th:field="*{serialNumber}" class="form-control" type="text" disabled>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">基础指标:</label>
<div class="col-sm-8">
<input name="basicIndex" th:field="*{basicIndex}" class="form-control" type="text" disabled>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">指标说明:</label>
<div class="col-sm-8">
<textarea name="indexContent" class="form-control" disabled>[[*{indexContent}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">评分标准:</label>
<div class="col-sm-8">
<textarea name="scoreStandard" class="form-control" disabled>[[*{scoreStandard}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">层级归属:</label>
<div class="col-sm-8">
<input name="layerBelong" th:field="*{layerBelong}" class="form-control" type="text" disabled>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">材料类别:</label>
<div class="col-sm-8">
<textarea name="contentType" class="form-control" disabled>[[*{contentType}]]</textarea>
</div>
</div>
<div class="form-group">
<label class="col-sm-3 control-label is-required">责任单位:</label>
<div class="col-sm-8">
<input name="responsibleUnit" th:field="*{responsibleUnit}" type="hidden">
<textarea name="responsibleName" class="form-control" disabled>[[*{responsibleName}]]</textarea>
</div>
</div>
</form>
<div class="row">
<div class="col-sm-12 select-table table-striped">
<table id="bootstrap-table"></table>
</div>
</div>
</div>
<th:block th:include="include :: footer" />
<script th:inline="javascript">
var prefix = ctx + "business/city/model";
$("#form-model-edit").validate({
focusCleanup: true
});
function submitHandler() {
}
$(function() {
var options = {
data: [[${creditCityModel.fileRespList}]],
sidePagination: "client",
showSearch: false,
showRefresh: false,
showToggle: false,
showColumns: false,
pagination: false,
pageSize: 50,
columns: [{
checkbox: false
},
{
field : 'id',
title : '文件ID',
visible: false
},
{
field : 'fileName',
title : '文件名'
},
{
field : 'deptName',
title : '上传部门'
},
{
title: '操作',
align: 'center',
formatter: function(value, row, index) {
var actions = [];
actions.push('<a class="btn btn-success btn-xs" href="javascript:void(0)" onclick="downloadCloud(\'' + row.filePath + '\')"><i class="fa fa-edit"></i>下载</a> ');
return actions.join('');
}
}]
};
$.table.init(options);
});
function downloadCloud(fileUrl) {
///window.location.href = fileUrl;
window.location.href = ctx + "business/common/oss/download?ossKey=" + encodeURI(fileUrl);
}
</script>
</body>
</html>