scheduleRealDaily.html
4.59 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
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
<style type="text/css">
.table-bordered {
border: 1px solid; }
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td,
.table-bordered > tbody > tr > th,
.table-bordered > tbody > tr > td,
.table-bordered > tfoot > tr > th,
.table-bordered > tfoot > tr > td {
border: 1px solid; }
.table-bordered > thead > tr > th,
.table-bordered > thead > tr > td {
border-bottom-width: 2px; }
.table > tbody + tbody {
border-top: 1px solid; }
</style>
<div class="page-head">
<div class="page-title">
<h1>$$$$$${txt-1350}</h1>
</div>
</div>
<div class="row">
<div class="col-md-12">
<div class="portlet light porttlet-fit bordered">
<div class="portlet-title">
<form class="form-inline" action="">
<div style="display: inline-block;">
<span class="item-label" style="width: 80px;">$$$$$${txt-3815}: </span>
<select class="form-control" name="line" id="line" style="width: 180px;"></select>
</div>
<div style="display: inline-block;margin-left: 15px;">
<span class="item-label" style="width: 80px;">$$$$$${txt-4004}: </span>
<input class="form-control" type="text" id="date" style="width: 180px;"/>
</div>
<div class="form-group">
<input class="btn btn-default" type="button" id="query" value="$$$$$${txt-3890}"/>
<input class="btn btn-default" type="button" id="export" value="$$$$$${txt-4163}"/>
</div>
</form>
</div>
<div class="portlet-body">
<div class="table-container" style="margin-top: 10px;overflow:auto;min-width: 906px">
<table class="table table-bordered table-hover table-checkable" id="forms">
<thead>
<tr>
<th colspan="7">$$$$$${txt-1350}</th>
</tr>
<tr>
<td>$$$$$${txt-3521}</td>
<td colspan="2"><span id="form_line"> </span></td>
<td>$$$$$${txt-3520}</td>
<td colspan="3"><span id="form_date"> </span></td>
</tr>
<tr>
<td>$$$$$${txt-2897}</td>
<td>$$$$$${txt-1327}</td>
<td>$$$$$${txt-2912}</td>
<td>$$$$$${txt-2913}</td>
<td>$$$$$${txt-2433}</td>
<td>$$$$$${txt-2431}</td>
<td>$$$$$${txt-3526}</td>
<td>$$$$$${txt-3186}</td>
<td>$$$$$${txt-1328}</td>
<td>$$$$$${txt-2434}</td>
<td>$$$$$${txt-2432}</td>
<td>$$$$$${txt-3067}</td>
</tr>
</thead>
<tbody class="scheduleRealDaily">
</tbody>
</table>
</div>
</div>
</div>
</div>
</div>
<script>
$(function(){
// 关闭左侧栏
if (!$('body').hasClass('page-sidebar-closed'))
$('.menu-toggler.sidebar-toggler').click();
$("#date").datetimepicker({
format : 'YYYY-MM-DD',
locale : 'zh-cn'
});
$('#line').select2({
ajax: {
url: '/realSchedule/findLine',
dataType: 'json',
delay: 150,
data: function(params){
return{line: params.term};
},
processResults: function (data) {
return {
results: data
};
},
cache: true
},
templateResult: function(repo){
if (repo.loading) return repo.text;
var h = '<span>'+repo.text+'</span>';
return h;
},
escapeMarkup: function (markup) { return markup; },
minimumInputLength: 1,
templateSelection: function(repo){
return repo.text;
},
language: {
noResults: function(){
return '<span style="color:red;font-size: 12px;">$$$$$${txt-807}</span>';
},
inputTooShort : function(e) {
return '<span style="color:gray;font-size: 12px;"><i class="fa fa-search"></i> $$$$$${txt-759}</span>';
},
searching : function() {
return '<span style="color:gray;font-size: 12px;"> $$$$$${txt-1379}</span>';
}
}
});
var line;
var date;
$("#query").on("click",function(){
line = $("#line").val();
date = $("#date").val();
});
});
</script>
<script type="text/html" id="scheduleRealDaily">
{{each list as obj i}}
<tr>
<td></td>
</tr>
{{/each}}
{{if list.length == 0}}
<tr>
<td colspan="7"><h6 class="muted">$$$$$${txt-750}</h6></td>
</tr>
{{/if}}
</script>