list.vm
2.55 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
#set($page_title="任务管理")
#set($crumbs="首页:/home,任务管理")
<script language="javascript" type="text/javascript" src="$!{webUtils.getCommonAssetsPath("common/date/WdatePicker.js")}"></script>
<div class="row">
<div class="col-xs-12">
<div class="table-header">
任务管理
</div>
<div class="table-responsive">
<div id="sample-table-2_wrapper" class="dataTables_wrapper" role="grid">
<table id="sample-table-2"
class="table table-striped table-bordered table-hover dataTable"
aria-describedby="sample-table-2_info">
<thead>
<tr role="row">
<th>任务名称</th>
<th>任务描述</th>
<th>状态</th>
<th><i class="icon-time bigger-110 hidden-480"></i>操作</th>
</tr>
</thead>
<tbody role="alert" aria-live="polite" aria-relevant="all">
#foreach($obj in $!{list})
<tr>
<td>$!{obj.triggerName}</td>
<td>$!{obj.triggerDesc}</td>
<td>#if($!{obj.flagState})
运行
#else
停止
#end
</td>
<td>
#if($!{obj.flagState})
<a href="${webUtils.getLocalPath("
woker/stop.do?jobName=$!{obj.triggerName}")} " >停止</a>
#else
<a href="${webUtils.getLocalPath("
woker/start.do?jobName=$!{obj.triggerName}")} " >运行</a>
#end
<a href="${webUtils.getLocalPath("
woker/runningOnce.do?jobName=$!{obj.triggerName}")} " >运行一次</a>
</td>
#end
</tr>
</tbody>
</table>
<div class="row">
<div class="col-sm-6">
</div>
<div class="col-sm-6">
<div class="dataTables_paginate paging_bootstrap">
<div class="pull-right">
#page($!{page.totalPage},$!{page.currPage})
</div>
<span class="pull-right" style="line-height: 33px;">
#set($tmpPage = $page.currPage + 1)
查询出$!{page.totalSize}条数据,共$!{page.totalPage}页,当前第$!{tmpPage}页
</span>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<script type="text/javascript">
$(function (){
var state = $("#staId").val();;
if(state!=""){
$("#selectId option[value='"+state+"']").attr("selected",true);
}
})
function cleanForm(id) {
var form = $("#" + id);
form.find("input[type=text]").each(function() {
var obj = $(this);
obj.val("");
});
form.find("select").each(function() {
var obj = $(this);
obj.val("0");
});
form.find("input[type=radio],input[type=checkbox]").each(function() {
$(this).attr("checked", false);
})
}
</script>
<script src="$!{webUtils.getAssetsPath("/js/diligrp.form.js")}"></script>