Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
jinli gu
JeeSpringCloud
Commits
e2a64d42
Commit
e2a64d42
authored
Nov 12, 2018
by
Huang
Browse files
no commit message
parent
0844dd86
Changes
414
Hide whitespace changes
Inline
Side-by-side
Too many changes to show.
To preserve performance only
20 of 414+
files are displayed.
Plain diff
Email patch
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobForm.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度管理
</title>
<%@ include
file=
"/WEB-INF/views/include/headMeta.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headCss.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headJs.jsp"
%>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
>
<!-- 内容盒子-->
<div
class=
"box box-main"
>
<!-- 内容盒子头部 -->
<div
class=
"box-header"
>
<div
class=
"box-title"
><i
class=
"fa fa-edit"
></i>
<c:if
test=
"
${
action
ne
'view'
}
"
>
<c:if
test=
"
${
empty
oaNotify
.
id
}
"
>
新增
</c:if>
<c:if
test=
"
${
not
empty
oaNotify
.
id
}
"
>
编辑
</c:if>
</c:if>
<c:if
test=
"
${
action
eq
'view'
}
"
>
查看
</c:if>
定时任务调度管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/job/sysJob/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
任务名称
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"任务名称"
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务名称
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
任务组名
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"任务组名"
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务组名
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
任务方法
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"任务方法"
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写任务方法
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
方法参数
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"方法参数"
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写方法参数
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
cron执行表达式
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"cron执行表达式"
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写cron执行表达式
</div>
<div
class=
"help-block"
>
Cron表达式生成器:
<a
href=
"http://www.pdtools.net/tools/becron.jsp"
target=
"_blank"
>
http://www.pdtools.net/tools/becron.jsp
</a>
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
计划执行错误策略(0默认 1继续 2等待 3放弃)
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:radiobuttons
path=
"misfirePolicy"
items=
"
${
fns:
getDictList
(
'misfire_policy'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请填写计划执行错误策略(0默认 1继续 2等待 3放弃)
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
状态(0正常 1暂停)
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:radiobuttons
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请选择状态(0正常 1暂停)
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
备注信息
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:textarea
path=
"remark"
htmlEscape=
"false"
rows=
"4"
maxlength=
"500"
class=
"form-control "
/>
<sys:ckeditor
replace=
"remark"
height=
"400"
uploadPath=
"/job/sysJob"
/>
</div>
</div>
<div
class=
"form-group"
>
<c:if
test=
"
${
action
ne
'view'
}
"
>
<a
id=
"btnSubmit"
class=
"btn btn-primary"
>
保存
</a>
</c:if>
<a
id=
"btnBack"
class=
"btn btn-default"
>
返回
</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</div>
</div>
</div>
<div
id=
"messageBox"
>
${message}
</div>
<%@ include
file=
"/WEB-INF/views/include/footJs.jsp"
%>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/modules/job/sysJobForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job/sysJobForm.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobFormTwo.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobForm.css"
rel=
"stylesheet"
/>
</head>
<body
class=
"gray-bg"
>
<form:form
id=
"inputForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/job/sysJob/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<table
class=
"width-100 table-condensed dataTables-example dataTable no-footer"
>
<tbody>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
><font
color=
"red"
>
*
</font>
任务名称:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务名称
</div>
</td>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
><font
color=
"red"
>
*
</font>
任务组名:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务组名
</div>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
任务方法:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写任务方法
</div>
</td>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
方法参数:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写方法参数
</div>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
cron执行表达式:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写cron执行表达式
</div>
</td>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
计划执行错误策略(0默认 1继续 2等待 3放弃):
</label></td>
<td
class=
"width-35"
>
<form:radiobuttons
path=
"misfirePolicy"
items=
"
${
fns:
getDictList
(
'misfire_policy'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请填写计划执行错误策略(0默认 1继续 2等待 3放弃)
</div>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
状态(0正常 1暂停):
</label></td>
<td
class=
"width-35"
>
<form:radiobuttons
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请选择状态(0正常 1暂停)
</div>
</td>
<td></td><td></td></tr><tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
备注信息:
</label></td>
<td
class=
"width-35"
colspan=
"3"
>
<form:textarea
path=
"remark"
htmlEscape=
"false"
rows=
"4"
maxlength=
"500"
class=
"form-control "
/>
<sys:ckeditor
replace=
"remark"
height=
"400"
uploadPath=
"/job/sysJob"
/>
</td>
</tr>
</tbody>
</table>
<div
id=
"iframeSave"
class=
"form-group ${action}"
>
<a
class=
"btn btn-success"
onclick=
"doSubmit();"
>
保存
</a>
<a
class=
"btn btn-primary"
onclick=
"javascript:history.back(-1);"
>
返回
</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobList.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度管理
</title>
<%@ include
file=
"/WEB-INF/views/include/headMeta.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headCss.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headJs.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/echarts.jsp"
%>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
>
<!-- 内容盒子-->
<div
class=
"box box-main"
>
<!-- 内容盒子头部 -->
<div
class=
"box-header"
>
<div
class=
"box-title"
><i
class=
"fa fa-edit"
></i>
定时任务调度管理
</div>
<div
class=
"box-tools pull-right"
>
<a
id=
"btnSearchView"
href=
"#"
title=
"查询"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-filter"
></i></a>
<a
id=
"btnRefresh"
title=
"刷新"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i></a>
<shiro:hasPermission
name=
"job:sysJob:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/job/sysJob/form"
title=
"增加"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"sys:sysJob:del"
>
<a
id=
"btnDeleteAll"
href=
"${ctx}/job/sysJob/deleteAll"
title=
"删除"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-trash-o"
></i></a>
</shiro:hasPermission>
<a
id=
"btnTotalView"
href=
"#"
title=
"统计"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-file-pdf-o"
></i></a>
<shiro:hasPermission
name=
"job:sysJob:import"
>
<table:importExcel
url=
"
${
ctx
}
/job/sysJob/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:export"
>
<table:exportExcel
url=
"
${
ctx
}
/job/sysJob/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<!-- 工具功能 -->
<%@ include
file=
"/WEB-INF/views/include/btnGroup.jsp"
%>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!-- 查询条件 -->
<form:form
id=
"searchForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/job/sysJob/"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<input
id=
"orderBy"
name=
"orderBy"
type=
"hidden"
value=
"${page.orderBy}"
/>
<div
class=
"form-group"
>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
cron执行表达式:
</span>
<form:input
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
计划执行错误策略:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"misfirePolicy"
items=
"
${
fns:
getDictList
(
'misfire_policy'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</div>
<div
class=
"form-group"
>
<span>
状态:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</div>
<div
class=
"form-group"
>
<button
id=
"btnSearch"
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i>
查询
</button>
<button
id=
"btnReset"
class=
"btn btn-default"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
</form:form>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th><input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column jobName "
>
任务名称
</th>
<th
class=
"sort-column jobGroup "
>
任务组名
</th>
<th
class=
"sort-column methodName "
>
任务方法
</th>
<th
class=
"sort-column methodParams hidden-xs"
>
方法参数
</th>
<th
class=
"sort-column cronExpression hidden-xs"
>
cron执行表达式
</th>
<th
class=
"sort-column misfirePolicy hidden-xs"
>
计划执行错误策略
</th>
<th
class=
"sort-column status hidden-xs"
>
状态
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"sysJob"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${sysJob.id}"
jobName=
"${sysJob.jobName}"
jobGroup=
"${sysJob.jobGroup}"
methodName=
"${sysJob.methodName}"
methodParams=
"${sysJob.methodParams}"
cronExpression=
"${sysJob.cronExpression}"
misfirePolicy=
"${sysJob.misfirePolicy}"
status=
"${sysJob.status}"
createBy.id=
"${sysJob.createBy.id}"
delFlag=
"${sysJob.delFlag}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"${ctx}/job/sysJob/form?id=${sysJob.id}&action=view"
>
${sysJob.jobName}
</a></td>
<td
class=
""
>
${sysJob.jobGroup}
</td>
<td
class=
""
>
${sysJob.methodName}
</td>
<td
class=
"hidden-xs"
>
${sysJob.methodParams}
</td>
<td
class=
"hidden-xs"
>
${sysJob.cronExpression}
</td>
<td
class=
"hidden-xs"
>
${fns:getDictLabel(sysJob.misfirePolicy, 'misfire_policy', '')}
</td>
<td
class=
"hidden-xs"
>
${fns:getDictLabel(sysJob.status, 'job_status', '')}
</td>
<td>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<a
href=
"${ctx}/job/sysJob/run?id=${sysJob.id}"
title=
"立即执行"
title=
"立即执行"
><i
class=
"fa fa-edit"
></i>
立即执行
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<a
href=
"${ctx}/job/sysJob/changeStatus?id=${sysJob.id}"
title=
"启动/暂停"
title=
"启动/暂停"
><i
class=
"fa fa-edit"
></i>
启动/暂停
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:view"
>
<a
href=
"${ctx}/job/sysJob/form?id=${sysJob.id}&action=view"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<a
href=
"${ctx}/job/sysJob/form?id=${sysJob.id}"
title=
"修改"
title=
"修改"
><i
class=
"fa fa-pencil"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:del"
>
<a
href=
"${ctx}/job/sysJob/delete?id=${sysJob.id}"
onclick=
"return confirmx('确认要删除该定时任务调度吗?', this.href)"
title=
"删除"
><i
class=
"fa fa-trash-o"
></i></a>
</shiro:hasPermission>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
<table:page
page=
"
${
page
}
"
></table:page>
<br/>
<!-- 统计 -->
<div
class=
"row"
id=
"total"
style=
"margin-top: 10px;"
>
<div
class=
"col-sm-12 echartsEval"
>
<h4>
合计:${sumTotalCount}行;
</h4>
<div
id=
"pie"
class=
"main000"
></div>
<echarts:pie
id=
"pie"
title=
"定时任务调度数量饼图"
subtitle=
"定时任务调度数量饼图"
orientData=
"
${
orientData
}
"
/>
<div
id=
"line_normal"
class=
"main000"
></div>
<echarts:line
id=
"line_normal"
title=
"定时任务调度曲线"
subtitle=
"定时任务调度曲线"
xAxisData=
"
${
xAxisData
}
"
yAxisData=
"
${
yAxisData
}
"
xAxisName=
"时间"
yAxisName=
"数量"
/>
</div>
</div>
</div>
</div>
</div>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<%@ include
file=
"/WEB-INF/views/include/footJs.jsp"
%>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/modules/job/sysJobList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job/sysJobList.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobListVue.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobList.css"
rel=
"stylesheet"
/>
</head>
<body
class=
"gray-bg"
>
<div
class=
"wrapper wrapper-content"
id=
"rrapp"
>
<div
class=
"ibox"
>
<!--div class="ibox-title">
<h5>定时任务调度列表 </h5>
</div-->
<div
class=
"ibox-content"
>
<sys:message
content=
"
${
message
}
"
/>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/../rest/job/sysJob/list"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<table:sortColumn
id=
"orderBy"
name=
"orderBy"
value=
"
${
page
.
orderBy
}
"
callback=
"sortOrRefresh();"
/>
<!-- 支持排序 -->
<div
class=
"form-group"
>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
cron执行表达式:
</span>
<form:input
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
" form-control input-sm"
/>
<span>
计划执行错误策略(0默认 1继续 2等待 3放弃):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"misfirePolicy"
items=
"
${
fns:
getDictList
(
'misfire_policy'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
状态(0正常 1暂停):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
创建者:
</span>
<form:input
path=
"createBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
更新者:
</span>
<form:input
path=
"updateBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
更新时间:
</span>
<input
id=
"beginUpdateDate"
name=
"beginUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endUpdateDate"
name=
"endUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
备注信息:
</span>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"$('#searchForm').toggle();$('.fa-chevron').toggle();"
title=
"检索"
>
<i
class=
"fa-chevron fa fa-chevron-up"
></i><i
class=
"fa-chevron fa fa-chevron-down"
style=
"display:none"
></i>
检索
</button>
<button
class=
"btn btn-success btn-sm "
@
click=
"search()"
title=
"查询"
><i
class=
"fa fa-search"
></i>
查询
</button>
<shiro:hasPermission
name=
"job:sysJob:add"
>
<table:addRow
url=
"
${
ctx
}
/job/sysJob/form"
title=
"定时任务调度"
></table:addRow>
<!-- 增加按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<table:editRow
url=
"
${
ctx
}
/job/sysJob/form"
title=
"定时任务调度"
id=
"contentTable"
></table:editRow>
<!-- 编辑按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:del"
>
<table:delRow
url=
"
${
ctx
}
/job/sysJob/deleteAll"
id=
"contentTable"
></table:delRow>
<!-- 删除按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:import"
>
<table:importExcel
url=
"
${
ctx
}
/job/sysJob/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:export"
>
<table:exportExcel
url=
"
${
ctx
}
/job/sysJob/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"sortOrRefresh()"
title=
"刷新"
><i
class=
"glyphicon glyphicon-repeat"
></i>
刷新
</button>
<button
class=
"btn btn-white btn-sm "
onclick=
"reset()"
title=
"重置"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
<div
class=
"pull-right"
>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"top.openTab('${ctx}/job/sysJob','定时任务调度', false)"
title=
"list"
><i
class=
"glyphicon glyphicon-repeat"
></i>
list
</button>
<shiro:hasPermission
name=
"job:sysJob:total"
>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"top.openTab('${ctx}/job/sysJob/total','统计定时任务调度', false)"
title=
"统计图表"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计图表
</button>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"top.openTab('${ctx}/job/sysJob/totalMap','统计定时任务调度', false)"
title=
"统计地图"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计地图
</button>
</shiro:hasPermission>
<button
class=
"btn btn-success "
type=
"button"
name=
"toggle"
title=
"切换"
onclick=
"$('.table').toggle()"
><i
class=
"glyphicon glyphicon-list-alt icon-list-alt"
></i></button>
<div
class=
"btn-group"
title=
"其他"
>
<button
class=
"btn btn-success btn-sm dropdown-toggle"
data-toggle=
"dropdown"
type=
"button"
aria-expanded=
"false"
>
<i
class=
"glyphicon glyphicon-th icon-th"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li
data-type=
"放大"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:Number($('body').css('zoom'))+0.1})"
>
放大
</a></li>
<li
data-type=
"缩小"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:$('body').css('zoom')-0.1})"
>
缩小
</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- 表格 -->
<div
class=
"table"
style=
"display:none"
>
<div
style=
"border: 1px solid #e7eaec;padding: 8px;"
class=
"row"
v-for=
"item in page"
>
<div>
<input
type=
"checkbox"
:id=
"item.id"
jobName=
"${sysJob.jobName}"
jobGroup=
"${sysJob.jobGroup}"
methodName=
"${sysJob.methodName}"
methodParams=
"${sysJob.methodParams}"
cronExpression=
"${sysJob.cronExpression}"
misfirePolicy=
"${sysJob.misfirePolicy}"
status=
"${sysJob.status}"
createBy.id=
"${sysJob.createBy.id}"
delFlag=
"${sysJob.delFlag}"
class=
"i-checks"
>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
任务名称:
<a
href=
"#"
v-on:onclick=
"openDialogView('查看定时任务调度', '${ctx}/job/sysJob/form?id='+item.id,'800px', '500px')"
>
{{item.jobName}}
</a></span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
任务组名:
{{item.jobGroup}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
任务方法:
{{item.methodName}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
方法参数:
{{item.methodParams}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
cron执行表达式:
{{item.cronExpression}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
计划执行错误策略(0默认 1继续 2等待 3放弃):
{{item.misfirePolicyLabel}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
状态(0正常 1暂停):
{{item.statusLabel}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
创建者:
{{item.createBy.id}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
删除标记:
{{item.delFlagLabel}}
</span>
</div>
<div
class=
"col-xs-12 col-sm-12 col-md-12 col-lg-12"
>
<shiro:hasPermission
name=
"job:sysJob:view"
>
<a
href=
"#"
onclick=
"openDialogView('查看定时任务调度', '${ctx}/job/sysJob/form?id='+item.id,'800px', '500px')"
class=
"btn btn-info btn-sm"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i>
查看
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<a
href=
"#"
onclick=
"openDialog('修改定时任务调度', '${ctx}/job/sysJob/form?id='+item.id,'800px', '500px')"
class=
"btn btn-success btn-sm"
title=
"修改"
><i
class=
"fa fa-edit"
></i>
修改
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:del"
>
<a
href=
"${ctx}/job/sysJob/delete?id='+item.id"
onclick=
"return confirmx('确认要删除该定时任务调度吗?', this.href)"
class=
"btn btn-danger btn-sm"
title=
"删除"
><i
class=
"fa fa-trash"
></i>
删除
</a>
</shiro:hasPermission>
</div>
</div>
</div>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
<input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column jobName "
>
任务名称
</th>
<th
class=
"sort-column jobGroup "
>
任务组名
</th>
<th
class=
"sort-column methodName "
>
任务方法
</th>
<th
class=
"sort-column methodParams hidden-xs"
>
方法参数
</th>
<th
class=
"sort-column cronExpression hidden-xs"
>
cron执行表达式
</th>
<th
class=
"sort-column misfirePolicy hidden-xs"
>
计划执行错误策略(0默认 1继续 2等待 3放弃)
</th>
<th
class=
"sort-column status hidden-xs"
>
状态(0正常 1暂停)
</th>
<th
class=
"sort-column createBy.id hidden-xs"
>
创建者
</th>
<th
class=
"sort-column delFlag hidden-xs"
>
删除标记
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<tr
v-for=
"item in page"
>
<td>
<input
type=
"checkbox"
:id=
"item.id"
jobName=
"${sysJob.jobName}"
jobGroup=
"${sysJob.jobGroup}"
methodName=
"${sysJob.methodName}"
methodParams=
"${sysJob.methodParams}"
cronExpression=
"${sysJob.cronExpression}"
misfirePolicy=
"${sysJob.misfirePolicy}"
status=
"${sysJob.status}"
createBy.id=
"${sysJob.createBy.id}"
delFlag=
"${sysJob.delFlag}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"#"
v-on:click=
"openDialogView('查看定时任务调度', '${ctx}/job/sysJob/form?id='+item.id,'800px', '500px')"
>
{{item.jobName}}
</a></td>
<td
class=
""
>
{{item.jobGroup}}
</td>
<td
class=
""
>
{{item.methodName}}
</td>
<td
class=
"hidden-xs"
>
{{item.methodParams}}
</td>
<td
class=
"hidden-xs"
>
{{item.cronExpression}}
</td>
<td
class=
"hidden-xs"
>
{{item.misfirePolicy}}
</td>
<td
class=
"hidden-xs"
>
{{item.statusLabel}}
</td>
<td
class=
"hidden-xs"
>
{{item.createBy.id}}
</td>
<td
class=
"hidden-xs"
>
{{item.delFlagLabel}}
</td>
<td>
<shiro:hasPermission
name=
"job:sysJob:view"
>
<a
href=
"#"
v-on:click=
"openDialogView('查看定时任务调度', '${ctx}/job/sysJob/form?id='+item.id,'800px', '500px')"
class=
"btn btn-info btn-sm"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i>
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<a
href=
"#"
v-on:click=
"openDialog('修改定时任务调度', '${ctx}/job/sysJob/form?id='+item.id,'800px', '500px')"
class=
"btn btn-success btn-sm"
title=
"修改"
><i
class=
"fa fa-edit"
></i>
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:edit"
>
<a
href=
"#"
v-on:click=
"top.openTab('${ctx}/job/sysJob/form?id='+item.id,'修改定时任务调度', false)"
title=
"修改"
class=
"btn btn-success btn-sm"
title=
" 修改(页签)"
><i
class=
"fa fa-edit"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJob:del"
>
<a
v-bind:href=
"'${ctx}/job/sysJob/delete?id='+item.id"
onclick=
"return confirmx('确认要删除该定时任务调度吗?', this.href)"
class=
"btn btn-danger btn-sm"
title=
"删除"
><i
class=
"fa fa-trash"
></i>
</a>
</shiro:hasPermission>
</td>
</tr>
</tbody>
</table>
<!-- 分页代码 -->
<div
v-html=
"result.html"
>
{{result.html}}
</div>
<br/>
<br/>
</div>
</div>
</div>
<script
src=
"/static/vue/vue.min.js"
></script>
<script
src=
"/static/common/SpringUI.js"
></script>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogForm.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度日志管理
</title>
<%@ include
file=
"/WEB-INF/views/include/headMeta.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headCss.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headJs.jsp"
%>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
>
<!-- 内容盒子-->
<div
class=
"box box-main"
>
<!-- 内容盒子头部 -->
<div
class=
"box-header"
>
<div
class=
"box-title"
><i
class=
"fa fa-edit"
></i>
<c:if
test=
"
${
action
ne
'view'
}
"
>
<c:if
test=
"
${
empty
oaNotify
.
id
}
"
>
新增
</c:if>
<c:if
test=
"
${
not
empty
oaNotify
.
id
}
"
>
编辑
</c:if>
</c:if>
<c:if
test=
"
${
action
eq
'view'
}
"
>
查看
</c:if>
定时任务调度日志管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/job/sysJobLog/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
任务名称
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"任务名称"
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务名称
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
任务组名
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"任务组名"
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务组名
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
任务方法
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"任务方法"
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写任务方法
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
方法参数
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"方法参数"
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写方法参数
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
日志信息
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"日志信息"
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写日志信息
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
执行状态(0正常 1失败)
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:radiobuttons
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请选择执行状态(0正常 1失败)
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"control-label col-sm-2 pull-left"
>
异常信息
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:textarea
path=
"exceptionInfo"
htmlEscape=
"false"
rows=
"4"
class=
"form-control "
/>
<sys:ckeditor
replace=
"exceptionInfo"
height=
"400"
uploadPath=
"/job/sysJobLog"
/>
</div>
</div>
<div
class=
"form-group"
>
<c:if
test=
"
${
action
ne
'view'
}
"
>
<a
id=
"btnSubmit"
class=
"btn btn-primary"
>
保存
</a>
</c:if>
<a
id=
"btnBack"
class=
"btn btn-default"
>
返回
</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</div>
</div>
</div>
<div
id=
"messageBox"
>
${message}
</div>
<%@ include
file=
"/WEB-INF/views/include/footJs.jsp"
%>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/modules/job/sysJobLogForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job/sysJobLogForm.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogFormTwo.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度日志管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobLogForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobLogForm.css"
rel=
"stylesheet"
/>
</head>
<body
class=
"gray-bg"
>
<form:form
id=
"inputForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/job/sysJobLog/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<table
class=
"width-100 table-condensed dataTables-example dataTable no-footer"
>
<tbody>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
><font
color=
"red"
>
*
</font>
任务名称:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务名称
</div>
</td>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
><font
color=
"red"
>
*
</font>
任务组名:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写任务组名
</div>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
任务方法:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写任务方法
</div>
</td>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
方法参数:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写方法参数
</div>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
日志信息:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写日志信息
</div>
</td>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
执行状态(0正常 1失败):
</label></td>
<td
class=
"width-35"
>
<form:radiobuttons
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请选择执行状态(0正常 1失败)
</div>
</td>
</tr>
<tr>
<td></td></tr><tr>
<td
class=
"width-15 active"
valign=
"top"
><label
class=
"pull-left"
>
异常信息:
</label></td>
<td
class=
"width-35"
colspan=
"3"
>
<form:textarea
path=
"exceptionInfo"
htmlEscape=
"false"
rows=
"4"
class=
"form-control "
/>
<sys:ckeditor
replace=
"exceptionInfo"
height=
"400"
uploadPath=
"/job/sysJobLog"
/>
</td>
</tr>
</tbody>
</table>
<div
id=
"iframeSave"
class=
"form-group ${action}"
>
<a
class=
"btn btn-success"
onclick=
"doSubmit();"
>
保存
</a>
<a
class=
"btn btn-primary"
onclick=
"javascript:history.back(-1);"
>
返回
</a>
<!--a class="btn btn-primary" onclick="top.closeSelectTabs()">关闭</a-->
</div>
</div>
</form:form>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogList.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度日志管理
</title>
<%@ include
file=
"/WEB-INF/views/include/headMeta.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headCss.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/headJs.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/echarts.jsp"
%>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
>
<!-- 内容盒子-->
<div
class=
"box box-main"
>
<!-- 内容盒子头部 -->
<div
class=
"box-header"
>
<div
class=
"box-title"
><i
class=
"fa fa-edit"
></i>
定时任务调度日志管理
</div>
<div
class=
"box-tools pull-right"
>
<a
id=
"btnSearchView"
href=
"#"
title=
"查询"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-filter"
></i></a>
<a
id=
"btnRefresh"
title=
"刷新"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i></a>
<shiro:hasPermission
name=
"job:sysJobLog:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/job/sysJobLog/form"
title=
"增加"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"sys:sysJobLog:del"
>
<a
id=
"btnDeleteAll"
href=
"${ctx}/job/sysJobLog/deleteAll"
title=
"删除"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-trash-o"
></i></a>
</shiro:hasPermission>
<a
id=
"btnTotalView"
href=
"#"
title=
"统计"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-file-pdf-o"
></i></a>
<shiro:hasPermission
name=
"job:sysJobLog:import"
>
<table:importExcel
url=
"
${
ctx
}
/job/sysJobLog/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:export"
>
<table:exportExcel
url=
"
${
ctx
}
/job/sysJobLog/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!-- 查询条件 -->
<form:form
id=
"searchForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/job/sysJobLog/"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<input
id=
"orderBy"
name=
"orderBy"
type=
"hidden"
value=
"${page.orderBy}"
/>
<div
class=
"form-group"
>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
日志信息:
</span>
<form:input
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
执行状态:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</div>
<div
class=
"form-group"
>
<span>
异常信息:
</span>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
<div
class=
"form-group"
>
<button
id=
"btnSearch"
class=
"btn btn-primary"
><i
class=
"fa fa-search"
></i>
查询
</button>
<button
id=
"btnReset"
class=
"btn btn-default"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
</form:form>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th><input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column jobName "
>
任务名称
</th>
<th
class=
"sort-column jobGroup "
>
任务组名
</th>
<th
class=
"sort-column methodName "
>
任务方法
</th>
<th
class=
"sort-column methodParams hidden-xs"
>
方法参数
</th>
<th
class=
"sort-column jobMessage hidden-xs"
>
日志信息
</th>
<th
class=
"sort-column status hidden-xs"
>
执行状态
</th>
<th
class=
"sort-column exceptionInfo hidden-xs"
>
异常信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"sysJobLog"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${sysJobLog.id}"
jobName=
"${sysJobLog.jobName}"
jobGroup=
"${sysJobLog.jobGroup}"
methodName=
"${sysJobLog.methodName}"
methodParams=
"${sysJobLog.methodParams}"
jobMessage=
"${sysJobLog.jobMessage}"
status=
"${sysJobLog.status}"
createBy=
"${sysJobLog.createBy}"
updateDate=
"${sysJobLog.updateDate}"
updateBy=
"${sysJobLog.updateBy}"
delFlag=
"${sysJobLog.delFlag}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"${ctx}/job/sysJobLog/form?id=${sysJobLog.id}&action=view"
>
${sysJobLog.jobName}
</a></td>
<td
class=
""
>
${sysJobLog.jobGroup}
</td>
<td
class=
""
>
${sysJobLog.methodName}
</td>
<td
class=
"hidden-xs"
>
${sysJobLog.methodParams}
</td>
<td
class=
"hidden-xs"
>
${sysJobLog.jobMessage}
</td>
<td
class=
"hidden-xs"
>
${fns:getDictLabel(sysJobLog.status, 'job_status', '')}
</td>
<td
class=
"hidden-xs"
>
${sysJobLog.exceptionInfo}
</td>
<td>
<shiro:hasPermission
name=
"job:sysJobLog:view"
>
<a
href=
"${ctx}/job/sysJobLog/form?id=${sysJobLog.id}&action=view"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:edit"
>
<a
href=
"${ctx}/job/sysJobLog/form?id=${sysJobLog.id}"
title=
"修改"
><i
class=
"fa fa-pencil"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:del"
>
<a
href=
"${ctx}/job/sysJobLog/delete?id=${sysJobLog.id}"
onclick=
"return confirmx('确认要删除该定时任务调度日志吗?', this.href)"
title=
"删除"
><i
class=
"fa fa-trash-o"
></i></a>
</shiro:hasPermission>
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
${page.toStringPage()}
<br/>
<!-- 统计 -->
<div
class=
"row"
id=
"total"
style=
"margin-top: 10px;"
>
<div
class=
"col-sm-12 echartsEval"
>
<h4>
合计:${sumTotalCount}行;
</h4>
<div
id=
"pie"
class=
"main000"
></div>
<echarts:pie
id=
"pie"
title=
"定时任务调度日志数量饼图"
subtitle=
"定时任务调度日志数量饼图"
orientData=
"
${
orientData
}
"
/>
<div
id=
"line_normal"
class=
"main000"
></div>
<echarts:line
id=
"line_normal"
title=
"定时任务调度日志曲线"
subtitle=
"定时任务调度日志曲线"
xAxisData=
"
${
xAxisData
}
"
yAxisData=
"
${
yAxisData
}
"
xAxisName=
"时间"
yAxisName=
"数量"
/>
</div>
</div>
</div>
</div>
</div>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<%@ include
file=
"/WEB-INF/views/include/footJs.jsp"
%>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/modules/job/sysJobLogList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job/sysJobLogList.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogListVue.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度日志管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobLogList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobLogList.css"
rel=
"stylesheet"
/>
</head>
<body
class=
"gray-bg"
>
<div
class=
"wrapper wrapper-content"
id=
"rrapp"
>
<div
class=
"ibox"
>
<!--div class="ibox-title">
<h5>定时任务调度日志列表 </h5>
</div-->
<div
class=
"ibox-content"
>
<sys:message
content=
"
${
message
}
"
/>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/../rest/job/sysJobLog/list"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<table:sortColumn
id=
"orderBy"
name=
"orderBy"
value=
"
${
page
.
orderBy
}
"
callback=
"sortOrRefresh();"
/>
<!-- 支持排序 -->
<div
class=
"form-group"
>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
日志信息:
</span>
<form:input
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
执行状态(0正常 1失败):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
异常信息:
</span>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"$('#searchForm').toggle();$('.fa-chevron').toggle();"
title=
"检索"
>
<i
class=
"fa-chevron fa fa-chevron-up"
></i><i
class=
"fa-chevron fa fa-chevron-down"
style=
"display:none"
></i>
检索
</button>
<button
class=
"btn btn-success btn-sm "
@
click=
"search()"
title=
"查询"
><i
class=
"fa fa-search"
></i>
查询
</button>
<shiro:hasPermission
name=
"job:sysJobLog:add"
>
<table:addRow
url=
"
${
ctx
}
/job/sysJobLog/form"
title=
"定时任务调度日志"
></table:addRow>
<!-- 增加按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:edit"
>
<table:editRow
url=
"
${
ctx
}
/job/sysJobLog/form"
title=
"定时任务调度日志"
id=
"contentTable"
></table:editRow>
<!-- 编辑按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:del"
>
<table:delRow
url=
"
${
ctx
}
/job/sysJobLog/deleteAll"
id=
"contentTable"
></table:delRow>
<!-- 删除按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:import"
>
<table:importExcel
url=
"
${
ctx
}
/job/sysJobLog/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:export"
>
<table:exportExcel
url=
"
${
ctx
}
/job/sysJobLog/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"sortOrRefresh()"
title=
"刷新"
><i
class=
"glyphicon glyphicon-repeat"
></i>
刷新
</button>
<button
class=
"btn btn-white btn-sm "
onclick=
"reset()"
title=
"重置"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
<div
class=
"pull-right"
>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"top.openTab('${ctx}/job/sysJobLog','定时任务调度日志', false)"
title=
"list"
><i
class=
"glyphicon glyphicon-repeat"
></i>
list
</button>
<shiro:hasPermission
name=
"job:sysJobLog:total"
>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"top.openTab('${ctx}/job/sysJobLog/total','统计定时任务调度日志', false)"
title=
"统计图表"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计图表
</button>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"top.openTab('${ctx}/job/sysJobLog/totalMap','统计定时任务调度日志', false)"
title=
"统计地图"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计地图
</button>
</shiro:hasPermission>
<button
class=
"btn btn-success "
type=
"button"
name=
"toggle"
title=
"切换"
onclick=
"$('.table').toggle()"
><i
class=
"glyphicon glyphicon-list-alt icon-list-alt"
></i></button>
<div
class=
"btn-group"
title=
"其他"
>
<button
class=
"btn btn-success btn-sm dropdown-toggle"
data-toggle=
"dropdown"
type=
"button"
aria-expanded=
"false"
>
<i
class=
"glyphicon glyphicon-th icon-th"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li
data-type=
"放大"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:Number($('body').css('zoom'))+0.1})"
>
放大
</a></li>
<li
data-type=
"缩小"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:$('body').css('zoom')-0.1})"
>
缩小
</a></li>
</ul>
</div>
</div>
</div>
</div>
<!-- 表格 -->
<div
class=
"table"
style=
"display:none"
>
<div
style=
"border: 1px solid #e7eaec;padding: 8px;"
class=
"row"
v-for=
"item in page"
>
<div>
<input
type=
"checkbox"
:id=
"item.id"
jobName=
"${sysJobLog.jobName}"
jobGroup=
"${sysJobLog.jobGroup}"
methodName=
"${sysJobLog.methodName}"
methodParams=
"${sysJobLog.methodParams}"
jobMessage=
"${sysJobLog.jobMessage}"
status=
"${sysJobLog.status}"
exceptionInfo=
"${sysJobLog.exceptionInfo}"
createBy=
"${sysJobLog.createBy}"
updateDate=
"${sysJobLog.updateDate}"
updateBy=
"${sysJobLog.updateBy}"
delFlag=
"${sysJobLog.delFlag}"
class=
"i-checks"
>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
任务名称:
<a
href=
"#"
v-on:onclick=
"openDialogView('查看定时任务调度日志', '${ctx}/job/sysJobLog/form?id='+item.id,'800px', '500px')"
>
{{item.jobName}}
</a></span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
任务组名:
{{item.jobGroup}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
任务方法:
{{item.methodName}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
方法参数:
{{item.methodParams}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
日志信息:
{{item.jobMessage}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
执行状态(0正常 1失败):
{{item.statusLabel}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
异常信息:
{{item.exceptionInfo}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
创建时间:
{{item.createDate}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
创建者:
{{item.createBy}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
修改时间:
{{item.updateDate}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
修改者:
{{item.updateBy}}
</span>
</div>
<div
class=
"col-xs-6 col-sm-4 col-md-3 col-lg-2"
>
删除标记:
{{item.delFlagLabel}}
</span>
</div>
<div
class=
"col-xs-12 col-sm-12 col-md-12 col-lg-12"
>
<shiro:hasPermission
name=
"job:sysJobLog:view"
>
<a
href=
"#"
onclick=
"openDialogView('查看定时任务调度日志', '${ctx}/job/sysJobLog/form?id='+item.id,'800px', '500px')"
class=
"btn btn-info btn-sm"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i>
查看
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:edit"
>
<a
href=
"#"
onclick=
"openDialog('修改定时任务调度日志', '${ctx}/job/sysJobLog/form?id='+item.id,'800px', '500px')"
class=
"btn btn-success btn-sm"
title=
"修改"
><i
class=
"fa fa-edit"
></i>
修改
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:del"
>
<a
href=
"${ctx}/job/sysJobLog/delete?id='+item.id"
onclick=
"return confirmx('确认要删除该定时任务调度日志吗?', this.href)"
class=
"btn btn-danger btn-sm"
title=
"删除"
><i
class=
"fa fa-trash"
></i>
删除
</a>
</shiro:hasPermission>
</div>
</div>
</div>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
<input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column jobName "
>
任务名称
</th>
<th
class=
"sort-column jobGroup "
>
任务组名
</th>
<th
class=
"sort-column methodName "
>
任务方法
</th>
<th
class=
"sort-column methodParams hidden-xs"
>
方法参数
</th>
<th
class=
"sort-column jobMessage hidden-xs"
>
日志信息
</th>
<th
class=
"sort-column status hidden-xs"
>
执行状态(0正常 1失败)
</th>
<th
class=
"sort-column exceptionInfo hidden-xs"
>
异常信息
</th>
<th
class=
"sort-column createDate hidden-xs"
>
创建时间
</th>
<th
class=
"sort-column createBy hidden-xs"
>
创建者
</th>
<th
class=
"sort-column updateDate hidden-xs"
>
修改时间
</th>
<th
class=
"sort-column updateBy hidden-xs"
>
修改者
</th>
<th
class=
"sort-column delFlag hidden-xs"
>
删除标记
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<tr
v-for=
"item in page"
>
<td>
<input
type=
"checkbox"
:id=
"item.id"
jobName=
"${sysJobLog.jobName}"
jobGroup=
"${sysJobLog.jobGroup}"
methodName=
"${sysJobLog.methodName}"
methodParams=
"${sysJobLog.methodParams}"
jobMessage=
"${sysJobLog.jobMessage}"
status=
"${sysJobLog.status}"
exceptionInfo=
"${sysJobLog.exceptionInfo}"
createBy=
"${sysJobLog.createBy}"
updateDate=
"${sysJobLog.updateDate}"
updateBy=
"${sysJobLog.updateBy}"
delFlag=
"${sysJobLog.delFlag}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"#"
v-on:click=
"openDialogView('查看定时任务调度日志', '${ctx}/job/sysJobLog/form?id='+item.id,'800px', '500px')"
>
{{item.jobName}}
</a></td>
<td
class=
""
>
{{item.jobGroup}}
</td>
<td
class=
""
>
{{item.methodName}}
</td>
<td
class=
"hidden-xs"
>
{{item.methodParams}}
</td>
<td
class=
"hidden-xs"
>
{{item.jobMessage}}
</td>
<td
class=
"hidden-xs"
>
{{item.statusLabel}}
</td>
<td
class=
"hidden-xs"
>
{{item.exceptionInfo}}
</td>
<td
class=
"hidden-xs"
>
{{item.createDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.createBy}}
</td>
<td
class=
"hidden-xs"
>
{{item.updateDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.updateBy}}
</td>
<td
class=
"hidden-xs"
>
{{item.delFlagLabel}}
</td>
<td>
<shiro:hasPermission
name=
"job:sysJobLog:view"
>
<a
href=
"#"
v-on:click=
"openDialogView('查看定时任务调度日志', '${ctx}/job/sysJobLog/form?id='+item.id,'800px', '500px')"
class=
"btn btn-info btn-sm"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i>
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:edit"
>
<a
href=
"#"
v-on:click=
"openDialog('修改定时任务调度日志', '${ctx}/job/sysJobLog/form?id='+item.id,'800px', '500px')"
class=
"btn btn-success btn-sm"
title=
"修改"
><i
class=
"fa fa-edit"
></i>
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:edit"
>
<a
href=
"#"
v-on:click=
"top.openTab('${ctx}/job/sysJobLog/form?id='+item.id,'修改定时任务调度日志', false)"
title=
"修改"
class=
"btn btn-success btn-sm"
title=
" 修改(页签)"
><i
class=
"fa fa-edit"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"job:sysJobLog:del"
>
<a
v-bind:href=
"'${ctx}/job/sysJobLog/delete?id='+item.id"
onclick=
"return confirmx('确认要删除该定时任务调度日志吗?', this.href)"
class=
"btn btn-danger btn-sm"
title=
"删除"
><i
class=
"fa fa-trash"
></i>
</a>
</shiro:hasPermission>
</td>
</tr>
</tbody>
</table>
<!-- 分页代码 -->
<div
v-html=
"result.html"
>
{{result.html}}
</div>
<br/>
<br/>
</div>
</div>
</div>
<script
src=
"/static/vue/vue.min.js"
></script>
<script
src=
"/static/common/SpringUI.js"
></script>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogSelect.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度日志管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginCreateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endCreateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
function
openWindowSelect
(){
window
.
backup
=
"
selectData
"
;
// 正常打开
top
.
layer
.
open
({
type
:
2
,
area
:
[
'
800px
'
,
'
720px
'
],
title
:
"
选择部门
"
,
ajaxData
:{},
content
:
location
.
href
,
btn
:
[
'
确定
'
,
'
关闭
'
]
,
yes
:
function
(
index
,
layero
){
//或者使用btn1
var
window
=
layero
.
find
(
"
iframe
"
)[
0
].
contentWindow
;
//h.find("iframe").contents();
//回调方法,可以选择使用
window
.
backup
=
"
selectData
"
;
window
.
select
();
//直接处理returnValue值,可以选择使用
if
(
window
.
opener
)
{
console
.
log
(
"
openSelect:
"
+
window
.
opener
.
returnValue
);
}
else
if
(
window
.
parent
){
if
(
window
.
parent
.
returnValue
!=
undefined
)
console
.
log
(
"
openSelect:
"
+
window
.
parent
.
returnValue
);
}
else
{
console
.
log
(
"
openSelect:
"
+
window
.
returnValue
);
}
top
.
layer
.
close
(
index
);
},
cancel
:
function
(
index
){
//或者使用btn2
//按钮【按钮二】的回调
}
});
}
function
openSelect
(){
var
iWidth
=
560
;
//模态窗口宽度
var
iHeight
=
300
;
//模态窗口高度
var
iTop
=
(
window
.
screen
.
height
-
iHeight
-
100
)
/
2
;
var
iLeft
=
(
window
.
screen
.
width
-
iWidth
)
/
2
;
window
.
backup
=
"
selectData
"
;
window
.
open
(
location
.
href
,
"
newwindow
"
,
"
dialogHeight:
"
+
iHeight
+
"
px; dialogWidth:
"
+
iWidth
+
"
px; toolbar:no; menubar:no; scrollbars:no; resizable:no; location:no; status:no;left:200px;top:100px;
"
);
}
function
selectData
(){
if
(
window
.
opener
)
{
console
.
log
(
"
openSelect:
"
+
window
.
opener
.
returnValue
);
}
else
{
console
.
log
(
"
openSelect:
"
+
window
.
returnValue
);
}
}
function
select
(){
var
str
=
""
;
var
ids
=
""
;
var
size
=
$
(
"
#contentTable tbody tr td input.i-checks:checked
"
).
size
();
if
(
size
==
0
){
top
.
layer
.
alert
(
'
请至少选择一条数据!
'
,
{
icon
:
0
,
title
:
'
警告
'
});
return
;
}
if
(
size
>
1
){
top
.
layer
.
alert
(
'
只能选择一条数据!
'
,
{
icon
:
0
,
title
:
'
警告
'
});
return
;
}
var
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
id
"
);
var
jobName
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
jobName
"
);
var
jobGroup
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
jobGroup
"
);
var
methodName
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
methodName
"
);
var
methodParams
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
methodParams
"
);
var
jobMessage
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
jobMessage
"
);
var
status
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
status
"
);
var
exceptionInfo
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
exceptionInfo
"
);
var
createDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
createDate
"
);
var
createBy
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
createBy
"
);
var
updateDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
updateDate
"
);
var
updateBy
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
updateBy
"
);
var
delFlag
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
delFlag
"
);
var
obj
=
'
"id":id
'
;
if
(
jobName
==
undefined
)
jobName
=
""
;
obj
+=
'
,"jobName":"
'
+
jobName
+
'
"
'
;
if
(
jobGroup
==
undefined
)
jobGroup
=
""
;
obj
+=
'
,"jobGroup":"
'
+
jobGroup
+
'
"
'
;
if
(
methodName
==
undefined
)
methodName
=
""
;
obj
+=
'
,"methodName":"
'
+
methodName
+
'
"
'
;
if
(
methodParams
==
undefined
)
methodParams
=
""
;
obj
+=
'
,"methodParams":"
'
+
methodParams
+
'
"
'
;
if
(
jobMessage
==
undefined
)
jobMessage
=
""
;
obj
+=
'
,"jobMessage":"
'
+
jobMessage
+
'
"
'
;
if
(
status
==
undefined
)
status
=
""
;
obj
+=
'
,"status":"
'
+
status
+
'
"
'
;
if
(
exceptionInfo
==
undefined
)
exceptionInfo
=
""
;
obj
+=
'
,"exceptionInfo":"
'
+
exceptionInfo
+
'
"
'
;
if
(
createDate
==
undefined
)
createDate
=
""
;
obj
+=
'
,"createDate":"
'
+
createDate
+
'
"
'
;
if
(
createBy
==
undefined
)
createBy
=
""
;
obj
+=
'
,"createBy":"
'
+
createBy
+
'
"
'
;
if
(
updateDate
==
undefined
)
updateDate
=
""
;
obj
+=
'
,"updateDate":"
'
+
updateDate
+
'
"
'
;
if
(
updateBy
==
undefined
)
updateBy
=
""
;
obj
+=
'
,"updateBy":"
'
+
updateBy
+
'
"
'
;
if
(
delFlag
==
undefined
)
delFlag
=
""
;
obj
+=
'
,"delFlag":"
'
+
delFlag
+
'
"
'
;
if
(
window
.
opener
)
{
window
.
opener
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
opener
.
backup
!=
undefined
)
eval
(
"
window.opener.
"
+
window
.
opener
.
backup
+
"
();
"
);
}
else
if
(
window
.
parent
!=
undefined
){
window
.
parent
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
parent
.
backup
!=
undefined
)
eval
(
"
window.parent.
"
+
window
.
parent
.
backup
+
"
();
"
);
}
else
{
window
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
backup
!=
undefined
)
eval
(
"
window.
"
+
window
.
backup
+
"
();
"
);
}
window
.
close
();
}
</script>
</head>
<body
class=
"gray-bg"
>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"ibox"
>
<div
class=
"ibox-content"
>
<sys:message
content=
"
${
message
}
"
/>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/job/sysJobLog/"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<table:sortColumn
id=
"orderBy"
name=
"orderBy"
value=
"
${
page
.
orderBy
}
"
callback=
"sortOrRefresh();"
/>
<!-- 支持排序 -->
<div
class=
"form-group"
>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
日志信息:
</span>
<form:input
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
执行状态(0正常 1失败):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
异常信息:
</span>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"sortOrRefresh()"
title=
"刷新"
><i
class=
"glyphicon glyphicon-repeat"
></i>
刷新
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"openSelect()"
><i
class=
"fa fa-refresh"
></i>
OpenSelect
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"openWindowSelect()"
><i
class=
"fa fa-refresh"
></i>
OpenWindowSelect
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"select()"
><i
class=
"fa fa-refresh"
></i>
select
</button>
</div>
<div
class=
"pull-right"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
</div>
</div>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
<input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column jobName"
>
任务名称
</th>
<th
class=
"sort-column jobGroup"
>
任务组名
</th>
<th
class=
"sort-column methodName"
>
任务方法
</th>
<th
class=
"sort-column methodParams"
>
方法参数
</th>
<th
class=
"sort-column jobMessage"
>
日志信息
</th>
<th
class=
"sort-column status"
>
执行状态(0正常 1失败)
</th>
<th
class=
"sort-column exceptionInfo"
>
异常信息
</th>
<th
class=
"sort-column createDate"
>
创建时间
</th>
<th
class=
"sort-column createBy"
>
创建者
</th>
<th
class=
"sort-column updateDate"
>
修改时间
</th>
<th
class=
"sort-column updateBy"
>
修改者
</th>
<th
class=
"sort-column delFlag"
>
删除标记
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"sysJobLog"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${sysJobLog.id}"
jobName=
"${sysJobLog.jobName}"
jobGroup=
"${sysJobLog.jobGroup}"
methodName=
"${sysJobLog.methodName}"
methodParams=
"${sysJobLog.methodParams}"
jobMessage=
"${sysJobLog.jobMessage}"
status=
"${sysJobLog.status}"
exceptionInfo=
"${sysJobLog.exceptionInfo}"
createBy=
"${sysJobLog.createBy}"
updateDate=
"${sysJobLog.updateDate}"
updateBy=
"${sysJobLog.updateBy}"
delFlag=
"${sysJobLog.delFlag}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看定时任务调度日志', '${ctx}/job/sysJobLog/form?id=${sysJobLog.id}','800px', '500px')"
>
${sysJobLog.jobName}
</a></td>
<td>
${sysJobLog.jobGroup}
</td>
<td>
${sysJobLog.methodName}
</td>
<td>
${sysJobLog.methodParams}
</td>
<td>
${sysJobLog.jobMessage}
</td>
<td>
${fns:getDictLabel(sysJobLog.status, 'job_status', '')}
</td>
<td>
${sysJobLog.exceptionInfo}
</td>
<td>
<fmt:formatDate
value=
"
${
sysJobLog
.
createDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
${sysJobLog.createBy}
</td>
<td>
${sysJobLog.updateDate}
</td>
<td>
${sysJobLog.updateBy}
</td>
<td>
${fns:getDictLabel(sysJobLog.delFlag, 'del_flag', '')}
</td>
<td>
<!--shiro:hasPermission name="job:sysJobLog:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看定时任务调度日志', '${ctx}/job/sysJobLog/form?id=${sysJobLog.id}','800px', '500px')"
class=
"btn btn-info btn-sm"
><i
class=
"fa fa-search-plus"
></i>
查看
</a>
<!--/shiro:hasPermission-->
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
<table:page
page=
"
${
page
}
"
></table:page>
<br/>
<br/>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogTotal.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/echarts.jsp"
%>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobLogTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobLogTotal.css"
rel=
"stylesheet"
/>
<div
class=
"wrapper wrapper-content content-background"
>
<div
class=
"ibox"
>
<div
class=
"ibox-content"
>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/job/sysJobLog/total"
method=
"post"
class=
"form-inline"
>
<div
class=
"form-group"
>
<input
id=
"run"
type=
"checkbox"
value=
"true"
name=
"run"
checked
/>
自动刷新
<form:select
path=
"totalType"
class=
"form-control m-b"
>
<form:option
value=
""
label=
""
/>
<form:options
items=
"
${
fns:
getDictList
(
'total_type'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
日志信息:
</span>
<form:input
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
执行状态(0正常 1失败):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
异常信息:
</span>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"$('#searchForm').toggle();$('.fa-chevron').toggle();"
title=
"检索"
>
<i
class=
"fa-chevron fa fa-chevron-up"
></i><i
class=
"fa-chevron fa fa-chevron-down"
style=
"display:none"
></i>
检索
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
</div>
<div
class=
"pull-right"
>
<div
class=
"btn-group"
title=
"其他"
>
<button
class=
"btn btn-success btn-sm dropdown-toggle"
data-toggle=
"dropdown"
type=
"button"
aria-expanded=
"false"
>
<i
class=
"glyphicon glyphicon-th icon-th"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li
data-type=
"放大"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:Number($('body').css('zoom'))+0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
放大
</a></li>
<li
data-type=
"缩小"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:$('body').css('zoom')-0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
缩小
</a></li>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 10px;"
>
<div
class=
"col-sm-12 echartsEval"
>
<div
id=
"pie"
class=
"main000"
></div>
<echarts:pie
id=
"pie"
title=
"定时任务调度日志数量饼图"
subtitle=
"定时任务调度日志数量饼图"
orientData=
"
${
orientData
}
"
/>
<div
id=
"line_normal"
class=
"main000"
></div>
<echarts:line
id=
"line_normal"
title=
"定时任务调度日志曲线"
subtitle=
"定时任务调度日志曲线"
xAxisData=
"
${
xAxisData
}
"
yAxisData=
"
${
yAxisData
}
"
xAxisName=
"时间"
yAxisName=
"数量"
/>
</div>
</div>
<!-- 表格 -->
<table
class=
"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
时间段
</th>
<th>
数量
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
list
}
"
var=
"sysJobLog"
>
<tr>
<td>
${sysJobLog.totalDate}
</td>
<td
style=
"text-align: right;"
class=
"totalCount"
>
${sysJobLog.totalCount}
</td>
</tr>
</c:forEach>
</tbody>
<tfoot>
<tr
id=
"totalRow"
>
<td>
合计:
</td>
<td
id=
"totalCount"
style=
"text-align: right;"
><script>
sumColumn
(
"
totalCount
"
);
</script></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobLogTotalMap.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
style=
"width:100%; height:100%;"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=gb2312"
/>
<meta
name=
"keywords"
content=
"百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"
/>
<meta
name=
"description"
content=
"百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"
/>
<title>
百度地图API自定义地图
</title>
<!--引用百度地图API-->
<style
type=
"text/css"
>
html
,
body
{
margin
:
0
;
padding
:
0
;}
.iw_poi_title
{
color
:
#CC5522
;
font-size
:
14px
;
font-weight
:
bold
;
overflow
:
hidden
;
padding-right
:
13px
;
white-space
:
nowrap
}
.iw_poi_content
{
font
:
12px
arial
,
sans-serif
;
overflow
:
visible
;
padding-top
:
4px
;
white-space
:
-moz-pre-wrap
;
word-wrap
:
break-word
}
.BMapLabel
{
max-width
:
none
;}
</style>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?key=&v=1.1&services=true"
></script>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobLogTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobLogTotal.css"
rel=
"stylesheet"
/>
</head>
<body
style=
"width: 100%; height: 100%;overflow: hidden"
>
<div
class=
"wrapper wrapper-content"
style=
"padding: 0px 20px 0px 20px;"
>
<div
class=
"ibox"
>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
style=
"z-index: 1000;background-color: white;"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJobLog"
action=
"
${
ctx
}
/job/sysJobLog/totalMap"
method=
"post"
class=
"form-inline"
style=
"display:none"
>
<div
class=
"form-group"
>
<input
id=
"run"
type=
"checkbox"
value=
"true"
name=
"run"
checked
/>
自动刷新
<form:select
path=
"totalType"
class=
"form-control m-b"
>
<form:option
value=
""
label=
""
/>
<form:options
items=
"
${
fns:
getDictList
(
'total_type'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
日志信息:
</span>
<form:input
path=
"jobMessage"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
执行状态(0正常 1失败):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
异常信息:
</span>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJobLog
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
style=
"z-index: 1000;background-color: white;"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"$('#searchForm').toggle();$('.fa-chevron').toggle();"
title=
"检索"
>
<i
class=
"fa-chevron fa fa-chevron-up"
></i><i
class=
"fa-chevron fa fa-chevron-down"
style=
"display:none"
></i>
检索
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
</div>
<div
class=
"pull-right"
>
<div
class=
"btn-group"
title=
"其他"
>
<button
class=
"btn btn-success btn-sm dropdown-toggle"
data-toggle=
"dropdown"
type=
"button"
aria-expanded=
"false"
>
<i
class=
"glyphicon glyphicon-th icon-th"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li
data-type=
"放大"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:Number($('body').css('zoom'))+0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
放大
</a></li>
<li
data-type=
"缩小"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:$('body').css('zoom')-0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
缩小
</a></li>
</ul>
</div>
</div>
</div>
</div>
<!--查询条件-->
</div>
</div>
<!--百度地图容器-->
<div
style=
"width:100%;height:100%;position: absolute; bottom: 0px;top: 0px;"
>
<div
style=
"width:100%;height:100%;border:#ccc solid 1px;"
id=
"dituContent"
></div>
</div>
</body>
<script
type=
"text/javascript"
>
//创建和初始化地图函数:
function
initMap
(){
createMap
();
//创建地图
setMapEvent
();
//设置地图事件
addMapControl
();
//向地图添加控件
addMarker
();
//向地图中添加marker
}
//创建地图函数:
function
createMap
(){
var
map
=
new
BMap
.
Map
(
"
dituContent
"
);
//在百度地图容器中创建一个地图
var
point
=
new
BMap
.
Point
(
113.271431
,
23.135336
);
//定义一个中心点坐标
map
.
centerAndZoom
(
point
,
13
);
//设定地图的中心点和坐标并将地图显示在地图容器中
window
.
map
=
map
;
//将map变量存储在全局
}
//地图事件设置函数:
function
setMapEvent
(){
map
.
enableDragging
();
//启用地图拖拽事件,默认启用(可不写)
map
.
enableScrollWheelZoom
();
//启用地图滚轮放大缩小
map
.
enableDoubleClickZoom
();
//启用鼠标双击放大,默认启用(可不写)
map
.
enableKeyboard
();
//启用键盘上下左右键移动地图
}
//地图控件添加函数:
function
addMapControl
(){
//向地图中添加缩放控件
var
ctrl_nav
=
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_TOP_LEFT
,
type
:
BMAP_NAVIGATION_CONTROL_LARGE
});
map
.
addControl
(
ctrl_nav
);
//向地图中添加缩略图控件
var
ctrl_ove
=
new
BMap
.
OverviewMapControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_RIGHT
,
isOpen
:
1
});
map
.
addControl
(
ctrl_ove
);
//向地图中添加比例尺控件
var
ctrl_sca
=
new
BMap
.
ScaleControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_LEFT
});
map
.
addControl
(
ctrl_sca
);
}
//标注点数组
var
markerArr
=
[
<c:forEach
items=
"
${
list
}
"
var=
"sysJobLog"
>
{
title
:
"
${sysJobLog.totalDate}<br>统计${sysJobLog.totalCount}次
"
,
content
:
""
,
point
:(
113.271431
+
$
{
sysJobLog
.
totalCount
})
+
"
|
"
+
(
23.135336
+
$
{
sysJobLog
.
totalCount
}),
isOpen
:
0
,
icon
:{
w
:
21
,
h
:
21
,
l
:
0
,
t
:
0
,
x
:
6
,
lb
:
5
}},
</c:forEach>
{
title
:
"
定时任务调度日志<br>统计${sumTotalCount}次。
"
,
content
:
""
,
point
:
"
113.271431|23.135336
"
,
isOpen
:
0
,
icon
:{
w
:
21
,
h
:
21
,
l
:
0
,
t
:
0
,
x
:
6
,
lb
:
5
}}
];
//创建marker
function
addMarker
(){
for
(
var
i
=
0
;
i
<
markerArr
.
length
;
i
++
){
var
json
=
markerArr
[
i
];
var
p0
=
json
.
point
.
split
(
"
|
"
)[
0
];
var
p1
=
json
.
point
.
split
(
"
|
"
)[
1
];
var
point
=
new
BMap
.
Point
(
p0
,
p1
);
var
iconImg
=
createIcon
(
json
.
icon
);
var
marker
=
new
BMap
.
Marker
(
point
,{
icon
:
iconImg
});
var
iw
=
createInfoWindow
(
i
);
var
label
=
new
BMap
.
Label
(
json
.
title
,{
"
offset
"
:
new
BMap
.
Size
(
json
.
icon
.
lb
-
json
.
icon
.
x
+
10
,
-
20
)});
label
.
setStyle
({
width
:
"
300px
"
,
color
:
'
#fff
'
,
borderRadius
:
"
5px
"
,
textAlign
:
"
center
"
,
height
:
"
50px
"
,
lineHeight
:
"
26px
"
});
marker
.
setLabel
(
label
);
map
.
addOverlay
(
marker
);
label
.
setStyle
({
borderColor
:
"
#808080
"
,
color
:
"
#333
"
,
cursor
:
"
pointer
"
});
(
function
(){
var
index
=
i
;
var
_iw
=
createInfoWindow
(
i
);
var
_marker
=
marker
;
_marker
.
addEventListener
(
"
click
"
,
function
(){
this
.
openInfoWindow
(
_iw
);
});
_iw
.
addEventListener
(
"
open
"
,
function
(){
_marker
.
getLabel
().
hide
();
})
_iw
.
addEventListener
(
"
close
"
,
function
(){
_marker
.
getLabel
().
show
();
})
label
.
addEventListener
(
"
click
"
,
function
(){
_marker
.
openInfoWindow
(
_iw
);
})
if
(
!!
json
.
isOpen
){
label
.
hide
();
_marker
.
openInfoWindow
(
_iw
);
}
})()
}
}
//创建InfoWindow
function
createInfoWindow
(
i
){
var
json
=
markerArr
[
i
];
var
iw
=
new
BMap
.
InfoWindow
(
"
<b class='iw_poi_title' title='
"
+
json
.
title
+
"
'>
"
+
json
.
title
+
"
</b><div class='iw_poi_content'>
"
+
json
.
content
+
"
</div>
"
);
return
iw
;
}
//创建一个Icon
function
createIcon
(
json
){
var
icon
=
new
BMap
.
Icon
(
"
http://api.map.baidu.com/lbsapi/creatmap/images/us_cursor.gif
"
,
new
BMap
.
Size
(
json
.
w
,
json
.
h
),{
imageOffset
:
new
BMap
.
Size
(
-
json
.
l
,
-
json
.
t
),
infoWindowOffset
:
new
BMap
.
Size
(
json
.
lb
+
5
,
1
),
offset
:
new
BMap
.
Size
(
json
.
x
,
json
.
h
)})
return
icon
;
}
initMap
();
//创建和初始化地图
</script>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobSelect.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
定时任务调度管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginCreateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endCreateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#beginUpdateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endUpdateDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
function
openWindowSelect
(){
window
.
backup
=
"
selectData
"
;
// 正常打开
top
.
layer
.
open
({
type
:
2
,
area
:
[
'
800px
'
,
'
720px
'
],
title
:
"
选择部门
"
,
ajaxData
:{},
content
:
location
.
href
,
btn
:
[
'
确定
'
,
'
关闭
'
]
,
yes
:
function
(
index
,
layero
){
//或者使用btn1
var
window
=
layero
.
find
(
"
iframe
"
)[
0
].
contentWindow
;
//h.find("iframe").contents();
//回调方法,可以选择使用
window
.
backup
=
"
selectData
"
;
window
.
select
();
//直接处理returnValue值,可以选择使用
if
(
window
.
opener
)
{
console
.
log
(
"
openSelect:
"
+
window
.
opener
.
returnValue
);
}
else
if
(
window
.
parent
){
if
(
window
.
parent
.
returnValue
!=
undefined
)
console
.
log
(
"
openSelect:
"
+
window
.
parent
.
returnValue
);
}
else
{
console
.
log
(
"
openSelect:
"
+
window
.
returnValue
);
}
top
.
layer
.
close
(
index
);
},
cancel
:
function
(
index
){
//或者使用btn2
//按钮【按钮二】的回调
}
});
}
function
openSelect
(){
var
iWidth
=
560
;
//模态窗口宽度
var
iHeight
=
300
;
//模态窗口高度
var
iTop
=
(
window
.
screen
.
height
-
iHeight
-
100
)
/
2
;
var
iLeft
=
(
window
.
screen
.
width
-
iWidth
)
/
2
;
window
.
backup
=
"
selectData
"
;
window
.
open
(
location
.
href
,
"
newwindow
"
,
"
dialogHeight:
"
+
iHeight
+
"
px; dialogWidth:
"
+
iWidth
+
"
px; toolbar:no; menubar:no; scrollbars:no; resizable:no; location:no; status:no;left:200px;top:100px;
"
);
}
function
selectData
(){
if
(
window
.
opener
)
{
console
.
log
(
"
openSelect:
"
+
window
.
opener
.
returnValue
);
}
else
{
console
.
log
(
"
openSelect:
"
+
window
.
returnValue
);
}
}
function
select
(){
var
str
=
""
;
var
ids
=
""
;
var
size
=
$
(
"
#contentTable tbody tr td input.i-checks:checked
"
).
size
();
if
(
size
==
0
){
top
.
layer
.
alert
(
'
请至少选择一条数据!
'
,
{
icon
:
0
,
title
:
'
警告
'
});
return
;
}
if
(
size
>
1
){
top
.
layer
.
alert
(
'
只能选择一条数据!
'
,
{
icon
:
0
,
title
:
'
警告
'
});
return
;
}
var
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
id
"
);
var
jobName
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
jobName
"
);
var
jobGroup
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
jobGroup
"
);
var
methodName
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
methodName
"
);
var
methodParams
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
methodParams
"
);
var
cronExpression
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
cronExpression
"
);
var
misfirePolicy
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
misfirePolicy
"
);
var
status
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
status
"
);
var
createBy
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
createBy.id
"
);
var
delFlag
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
delFlag
"
);
var
obj
=
'
"id":id
'
;
if
(
jobName
==
undefined
)
jobName
=
""
;
obj
+=
'
,"jobName":"
'
+
jobName
+
'
"
'
;
if
(
jobGroup
==
undefined
)
jobGroup
=
""
;
obj
+=
'
,"jobGroup":"
'
+
jobGroup
+
'
"
'
;
if
(
methodName
==
undefined
)
methodName
=
""
;
obj
+=
'
,"methodName":"
'
+
methodName
+
'
"
'
;
if
(
methodParams
==
undefined
)
methodParams
=
""
;
obj
+=
'
,"methodParams":"
'
+
methodParams
+
'
"
'
;
if
(
cronExpression
==
undefined
)
cronExpression
=
""
;
obj
+=
'
,"cronExpression":"
'
+
cronExpression
+
'
"
'
;
if
(
misfirePolicy
==
undefined
)
misfirePolicy
=
""
;
obj
+=
'
,"misfirePolicy":"
'
+
misfirePolicy
+
'
"
'
;
if
(
status
==
undefined
)
status
=
""
;
obj
+=
'
,"status":"
'
+
status
+
'
"
'
;
if
(
createBy
.
id
==
undefined
)
createBy
.
id
=
""
;
obj
+=
'
,"createBy.id":"
'
+
createBy
.
id
+
'
"
'
;
if
(
delFlag
==
undefined
)
delFlag
=
""
;
obj
+=
'
,"delFlag":"
'
+
delFlag
+
'
"
'
;
if
(
window
.
opener
)
{
window
.
opener
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
opener
.
backup
!=
undefined
)
eval
(
"
window.opener.
"
+
window
.
opener
.
backup
+
"
();
"
);
}
else
if
(
window
.
parent
!=
undefined
){
window
.
parent
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
parent
.
backup
!=
undefined
)
eval
(
"
window.parent.
"
+
window
.
parent
.
backup
+
"
();
"
);
}
else
{
window
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
backup
!=
undefined
)
eval
(
"
window.
"
+
window
.
backup
+
"
();
"
);
}
window
.
close
();
}
</script>
</head>
<body
class=
"gray-bg"
>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"ibox"
>
<div
class=
"ibox-content"
>
<sys:message
content=
"
${
message
}
"
/>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/job/sysJob/"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<table:sortColumn
id=
"orderBy"
name=
"orderBy"
value=
"
${
page
.
orderBy
}
"
callback=
"sortOrRefresh();"
/>
<!-- 支持排序 -->
<div
class=
"form-group"
>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
cron执行表达式:
</span>
<form:input
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
" form-control input-sm"
/>
<span>
计划执行错误策略(0默认 1继续 2等待 3放弃):
</span>
<form:input
path=
"misfirePolicy"
htmlEscape=
"false"
maxlength=
"20"
class=
" form-control input-sm"
/>
<span>
状态(0正常 1暂停):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
创建者:
</span>
<form:input
path=
"createBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
更新者:
</span>
<form:input
path=
"updateBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
更新时间:
</span>
<input
id=
"beginUpdateDate"
name=
"beginUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endUpdateDate"
name=
"endUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
备注信息:
</span>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"sortOrRefresh()"
title=
"刷新"
><i
class=
"glyphicon glyphicon-repeat"
></i>
刷新
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"openSelect()"
><i
class=
"fa fa-refresh"
></i>
OpenSelect
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"openWindowSelect()"
><i
class=
"fa fa-refresh"
></i>
OpenWindowSelect
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"select()"
><i
class=
"fa fa-refresh"
></i>
select
</button>
</div>
<div
class=
"pull-right"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
</div>
</div>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
<input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column jobName"
>
任务名称
</th>
<th
class=
"sort-column jobGroup"
>
任务组名
</th>
<th
class=
"sort-column methodName"
>
任务方法
</th>
<th
class=
"sort-column methodParams"
>
方法参数
</th>
<th
class=
"sort-column cronExpression"
>
cron执行表达式
</th>
<th
class=
"sort-column misfirePolicy"
>
计划执行错误策略(0默认 1继续 2等待 3放弃)
</th>
<th
class=
"sort-column status"
>
状态(0正常 1暂停)
</th>
<th
class=
"sort-column createBy.id"
>
创建者
</th>
<th
class=
"sort-column delFlag"
>
删除标记
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"sysJob"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${sysJob.id}"
jobName=
"${sysJob.jobName}"
jobGroup=
"${sysJob.jobGroup}"
methodName=
"${sysJob.methodName}"
methodParams=
"${sysJob.methodParams}"
cronExpression=
"${sysJob.cronExpression}"
misfirePolicy=
"${sysJob.misfirePolicy}"
status=
"${sysJob.status}"
createBy.id=
"${sysJob.createBy.id}"
delFlag=
"${sysJob.delFlag}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看定时任务调度', '${ctx}/job/sysJob/form?id=${sysJob.id}','800px', '500px')"
>
${sysJob.jobName}
</a></td>
<td>
${sysJob.jobGroup}
</td>
<td>
${sysJob.methodName}
</td>
<td>
${sysJob.methodParams}
</td>
<td>
${sysJob.cronExpression}
</td>
<td>
${sysJob.misfirePolicy}
</td>
<td>
${fns:getDictLabel(sysJob.status, 'job_status', '')}
</td>
<td>
${sysJob.createBy.id}
</td>
<td>
${fns:getDictLabel(sysJob.delFlag, 'del_flag', '')}
</td>
<td>
<!--shiro:hasPermission name="job:sysJob:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看定时任务调度', '${ctx}/job/sysJob/form?id=${sysJob.id}','800px', '500px')"
class=
"btn btn-info btn-sm"
><i
class=
"fa fa-search-plus"
></i>
查看
</a>
<!--/shiro:hasPermission-->
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
<table:page
page=
"
${
page
}
"
></table:page>
<br/>
<br/>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobTotal.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/echarts.jsp"
%>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobTotal.css"
rel=
"stylesheet"
/>
<div
class=
"wrapper wrapper-content content-background"
>
<div
class=
"ibox"
>
<div
class=
"ibox-content"
>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/job/sysJob/total"
method=
"post"
class=
"form-inline"
>
<div
class=
"form-group"
>
<input
id=
"run"
type=
"checkbox"
value=
"true"
name=
"run"
checked
/>
自动刷新
<form:select
path=
"totalType"
class=
"form-control m-b"
>
<form:option
value=
""
label=
""
/>
<form:options
items=
"
${
fns:
getDictList
(
'total_type'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
cron执行表达式:
</span>
<form:input
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
" form-control input-sm"
/>
<span>
计划执行错误策略(0默认 1继续 2等待 3放弃):
</span>
<form:input
path=
"misfirePolicy"
htmlEscape=
"false"
maxlength=
"20"
class=
" form-control input-sm"
/>
<span>
状态(0正常 1暂停):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
创建者:
</span>
<form:input
path=
"createBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
更新者:
</span>
<form:input
path=
"updateBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
更新时间:
</span>
<input
id=
"beginUpdateDate"
name=
"beginUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endUpdateDate"
name=
"endUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
备注信息:
</span>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"$('#searchForm').toggle();$('.fa-chevron').toggle();"
title=
"检索"
>
<i
class=
"fa-chevron fa fa-chevron-up"
></i><i
class=
"fa-chevron fa fa-chevron-down"
style=
"display:none"
></i>
检索
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
</div>
<div
class=
"pull-right"
>
<div
class=
"btn-group"
title=
"其他"
>
<button
class=
"btn btn-success btn-sm dropdown-toggle"
data-toggle=
"dropdown"
type=
"button"
aria-expanded=
"false"
>
<i
class=
"glyphicon glyphicon-th icon-th"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li
data-type=
"放大"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:Number($('body').css('zoom'))+0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
放大
</a></li>
<li
data-type=
"缩小"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:$('body').css('zoom')-0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
缩小
</a></li>
</ul>
</div>
</div>
</div>
</div>
<div
class=
"row"
style=
"margin-top: 10px;"
>
<div
class=
"col-sm-12 echartsEval"
>
<div
id=
"pie"
class=
"main000"
></div>
<echarts:pie
id=
"pie"
title=
"定时任务调度数量饼图"
subtitle=
"定时任务调度数量饼图"
orientData=
"
${
orientData
}
"
/>
<div
id=
"line_normal"
class=
"main000"
></div>
<echarts:line
id=
"line_normal"
title=
"定时任务调度曲线"
subtitle=
"定时任务调度曲线"
xAxisData=
"
${
xAxisData
}
"
yAxisData=
"
${
yAxisData
}
"
xAxisName=
"时间"
yAxisName=
"数量"
/>
</div>
</div>
<!-- 表格 -->
<table
class=
"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
时间段
</th>
<th>
数量
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
list
}
"
var=
"sysJob"
>
<tr>
<td>
${sysJob.totalDate}
</td>
<td
style=
"text-align: right;"
class=
"totalCount"
>
${sysJob.totalCount}
</td>
</tr>
</c:forEach>
</tbody>
<tfoot>
<tr
id=
"totalRow"
>
<td>
合计:
</td>
<td
id=
"totalCount"
style=
"text-align: right;"
><script>
sumColumn
(
"
totalCount
"
);
</script></td>
</tr>
</tfoot>
</table>
</div>
</div>
</div>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/job/sysJobTotalMap.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns=
"http://www.w3.org/1999/xhtml"
style=
"width:100%; height:100%;"
>
<head>
<meta
http-equiv=
"Content-Type"
content=
"text/html; charset=gb2312"
/>
<meta
name=
"keywords"
content=
"百度地图,百度地图API,百度地图自定义工具,百度地图所见即所得工具"
/>
<meta
name=
"description"
content=
"百度地图API自定义地图,帮助用户在可视化操作下生成百度地图"
/>
<title>
百度地图API自定义地图
</title>
<!--引用百度地图API-->
<style
type=
"text/css"
>
html
,
body
{
margin
:
0
;
padding
:
0
;}
.iw_poi_title
{
color
:
#CC5522
;
font-size
:
14px
;
font-weight
:
bold
;
overflow
:
hidden
;
padding-right
:
13px
;
white-space
:
nowrap
}
.iw_poi_content
{
font
:
12px
arial
,
sans-serif
;
overflow
:
visible
;
padding-top
:
4px
;
white-space
:
-moz-pre-wrap
;
word-wrap
:
break-word
}
.BMapLabel
{
max-width
:
none
;}
</style>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?key=&v=1.1&services=true"
></script>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/modules/job//sysJobTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/job//sysJobTotal.css"
rel=
"stylesheet"
/>
</head>
<body
style=
"width: 100%; height: 100%;overflow: hidden"
>
<div
class=
"wrapper wrapper-content"
style=
"padding: 0px 20px 0px 20px;"
>
<div
class=
"ibox"
>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
style=
"z-index: 1000;background-color: white;"
>
<form:form
id=
"searchForm"
modelAttribute=
"sysJob"
action=
"
${
ctx
}
/job/sysJob/totalMap"
method=
"post"
class=
"form-inline"
style=
"display:none"
>
<div
class=
"form-group"
>
<input
id=
"run"
type=
"checkbox"
value=
"true"
name=
"run"
checked
/>
自动刷新
<form:select
path=
"totalType"
class=
"form-control m-b"
>
<form:option
value=
""
label=
""
/>
<form:options
items=
"
${
fns:
getDictList
(
'total_type'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
<span>
任务名称:
</span>
<form:input
path=
"jobName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务组名:
</span>
<form:input
path=
"jobGroup"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
任务方法:
</span>
<form:input
path=
"methodName"
htmlEscape=
"false"
maxlength=
"500"
class=
" form-control input-sm"
/>
<span>
方法参数:
</span>
<form:input
path=
"methodParams"
htmlEscape=
"false"
maxlength=
"200"
class=
" form-control input-sm"
/>
<span>
cron执行表达式:
</span>
<form:input
path=
"cronExpression"
htmlEscape=
"false"
maxlength=
"255"
class=
" form-control input-sm"
/>
<span>
计划执行错误策略(0默认 1继续 2等待 3放弃):
</span>
<form:input
path=
"misfirePolicy"
htmlEscape=
"false"
maxlength=
"20"
class=
" form-control input-sm"
/>
<span>
状态(0正常 1暂停):
</span>
<form:radiobuttons
class=
"i-checks"
path=
"status"
items=
"
${
fns:
getDictList
(
'job_status'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
创建者:
</span>
<form:input
path=
"createBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
更新者:
</span>
<form:input
path=
"updateBy.id"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
更新时间:
</span>
<input
id=
"beginUpdateDate"
name=
"beginUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
beginUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endUpdateDate"
name=
"endUpdateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
sysJob
.
endUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
备注信息:
</span>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
style=
"z-index: 1000;background-color: white;"
>
<div
class=
"pull-left"
>
<button
class=
"btn btn-success btn-sm "
onclick=
"$('#searchForm').toggle();$('.fa-chevron').toggle();"
title=
"检索"
>
<i
class=
"fa-chevron fa fa-chevron-up"
></i><i
class=
"fa-chevron fa fa-chevron-down"
style=
"display:none"
></i>
检索
</button>
<button
class=
"btn btn-success btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
</div>
<div
class=
"pull-right"
>
<div
class=
"btn-group"
title=
"其他"
>
<button
class=
"btn btn-success btn-sm dropdown-toggle"
data-toggle=
"dropdown"
type=
"button"
aria-expanded=
"false"
>
<i
class=
"glyphicon glyphicon-th icon-th"
></i>
<span
class=
"caret"
></span>
</button>
<ul
class=
"dropdown-menu"
role=
"menu"
>
<li
data-type=
"放大"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:Number($('body').css('zoom'))+0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
放大
</a></li>
<li
data-type=
"缩小"
><a
href=
"javascript:void(0)"
onclick=
"$('body').css({zoom:$('body').css('zoom')-0.1});$('body .echartsEval script').each(function(){eval($(this).html())});"
>
缩小
</a></li>
</ul>
</div>
</div>
</div>
</div>
<!--查询条件-->
</div>
</div>
<!--百度地图容器-->
<div
style=
"width:100%;height:100%;position: absolute; bottom: 0px;top: 0px;"
>
<div
style=
"width:100%;height:100%;border:#ccc solid 1px;"
id=
"dituContent"
></div>
</div>
</body>
<script
type=
"text/javascript"
>
//创建和初始化地图函数:
function
initMap
(){
createMap
();
//创建地图
setMapEvent
();
//设置地图事件
addMapControl
();
//向地图添加控件
addMarker
();
//向地图中添加marker
}
//创建地图函数:
function
createMap
(){
var
map
=
new
BMap
.
Map
(
"
dituContent
"
);
//在百度地图容器中创建一个地图
var
point
=
new
BMap
.
Point
(
113.271431
,
23.135336
);
//定义一个中心点坐标
map
.
centerAndZoom
(
point
,
13
);
//设定地图的中心点和坐标并将地图显示在地图容器中
window
.
map
=
map
;
//将map变量存储在全局
}
//地图事件设置函数:
function
setMapEvent
(){
map
.
enableDragging
();
//启用地图拖拽事件,默认启用(可不写)
map
.
enableScrollWheelZoom
();
//启用地图滚轮放大缩小
map
.
enableDoubleClickZoom
();
//启用鼠标双击放大,默认启用(可不写)
map
.
enableKeyboard
();
//启用键盘上下左右键移动地图
}
//地图控件添加函数:
function
addMapControl
(){
//向地图中添加缩放控件
var
ctrl_nav
=
new
BMap
.
NavigationControl
({
anchor
:
BMAP_ANCHOR_TOP_LEFT
,
type
:
BMAP_NAVIGATION_CONTROL_LARGE
});
map
.
addControl
(
ctrl_nav
);
//向地图中添加缩略图控件
var
ctrl_ove
=
new
BMap
.
OverviewMapControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_RIGHT
,
isOpen
:
1
});
map
.
addControl
(
ctrl_ove
);
//向地图中添加比例尺控件
var
ctrl_sca
=
new
BMap
.
ScaleControl
({
anchor
:
BMAP_ANCHOR_BOTTOM_LEFT
});
map
.
addControl
(
ctrl_sca
);
}
//标注点数组
var
markerArr
=
[
<c:forEach
items=
"
${
list
}
"
var=
"sysJob"
>
{
title
:
"
${sysJob.totalDate}<br>统计${sysJob.totalCount}次
"
,
content
:
""
,
point
:(
113.271431
+
$
{
sysJob
.
totalCount
})
+
"
|
"
+
(
23.135336
+
$
{
sysJob
.
totalCount
}),
isOpen
:
0
,
icon
:{
w
:
21
,
h
:
21
,
l
:
0
,
t
:
0
,
x
:
6
,
lb
:
5
}},
</c:forEach>
{
title
:
"
定时任务调度<br>统计${sumTotalCount}次。
"
,
content
:
""
,
point
:
"
113.271431|23.135336
"
,
isOpen
:
0
,
icon
:{
w
:
21
,
h
:
21
,
l
:
0
,
t
:
0
,
x
:
6
,
lb
:
5
}}
];
//创建marker
function
addMarker
(){
for
(
var
i
=
0
;
i
<
markerArr
.
length
;
i
++
){
var
json
=
markerArr
[
i
];
var
p0
=
json
.
point
.
split
(
"
|
"
)[
0
];
var
p1
=
json
.
point
.
split
(
"
|
"
)[
1
];
var
point
=
new
BMap
.
Point
(
p0
,
p1
);
var
iconImg
=
createIcon
(
json
.
icon
);
var
marker
=
new
BMap
.
Marker
(
point
,{
icon
:
iconImg
});
var
iw
=
createInfoWindow
(
i
);
var
label
=
new
BMap
.
Label
(
json
.
title
,{
"
offset
"
:
new
BMap
.
Size
(
json
.
icon
.
lb
-
json
.
icon
.
x
+
10
,
-
20
)});
label
.
setStyle
({
width
:
"
300px
"
,
color
:
'
#fff
'
,
borderRadius
:
"
5px
"
,
textAlign
:
"
center
"
,
height
:
"
50px
"
,
lineHeight
:
"
26px
"
});
marker
.
setLabel
(
label
);
map
.
addOverlay
(
marker
);
label
.
setStyle
({
borderColor
:
"
#808080
"
,
color
:
"
#333
"
,
cursor
:
"
pointer
"
});
(
function
(){
var
index
=
i
;
var
_iw
=
createInfoWindow
(
i
);
var
_marker
=
marker
;
_marker
.
addEventListener
(
"
click
"
,
function
(){
this
.
openInfoWindow
(
_iw
);
});
_iw
.
addEventListener
(
"
open
"
,
function
(){
_marker
.
getLabel
().
hide
();
})
_iw
.
addEventListener
(
"
close
"
,
function
(){
_marker
.
getLabel
().
show
();
})
label
.
addEventListener
(
"
click
"
,
function
(){
_marker
.
openInfoWindow
(
_iw
);
})
if
(
!!
json
.
isOpen
){
label
.
hide
();
_marker
.
openInfoWindow
(
_iw
);
}
})()
}
}
//创建InfoWindow
function
createInfoWindow
(
i
){
var
json
=
markerArr
[
i
];
var
iw
=
new
BMap
.
InfoWindow
(
"
<b class='iw_poi_title' title='
"
+
json
.
title
+
"
'>
"
+
json
.
title
+
"
</b><div class='iw_poi_content'>
"
+
json
.
content
+
"
</div>
"
);
return
iw
;
}
//创建一个Icon
function
createIcon
(
json
){
var
icon
=
new
BMap
.
Icon
(
"
http://api.map.baidu.com/lbsapi/creatmap/images/us_cursor.gif
"
,
new
BMap
.
Size
(
json
.
w
,
json
.
h
),{
imageOffset
:
new
BMap
.
Size
(
-
json
.
l
,
-
json
.
t
),
infoWindowOffset
:
new
BMap
.
Size
(
json
.
lb
+
5
,
1
),
offset
:
new
BMap
.
Size
(
json
.
x
,
json
.
h
)})
return
icon
;
}
initMap
();
//创建和初始化地图
</script>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/jsp说明必看和处理.txt
0 → 100644
View file @
e2a64d42
本模块jsp;
注意:一定复制到web项目中。
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/monitor/info.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html
lang=
"en"
class=
"app js no-touch no-android chrome no-firefox no-iemobile no-ie no-ie10 no-ie11 no-ios no-ios7 ipad"
>
<head>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"${ctxStatic}/echarts-2.2.7/build/dist/echarts-all.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
src=
"${ctxStatic}/common/systemInfo.js"
></script>
<script
type=
"text/javascript"
>
function
modifySer
(
key
){
$
.
ajax
({
async
:
false
,
url
:
"
${ctx}/monitor/modifySetting?
"
+
key
+
"
=
"
+
$
(
"
#
"
+
key
).
val
(),
dataType
:
"
json
"
,
success
:
function
(
data
)
{
if
(
data
.
success
){
alert
(
"
更新成功!
"
);
}
else
{
alert
(
"
更新失败!
"
);
}
}
});
}
</script>
</head>
<body
class=
""
style=
""
>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"row animated fadeInRight"
>
<div
class=
"col-sm-12"
>
<div
class=
"panel panel-primary"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-rss-square"
></i>
实时监控(秒)
</div>
<div
class=
"panel-body"
>
<table
style=
"width: 100%;"
>
<tr>
<td
width=
"33.3%"
><div
id=
"main_one"
style=
"height: 240px;"
></div></td>
<td
width=
"33.3%"
><div
id=
"main_two"
style=
"height: 240px;"
></div></td>
<td
width=
"33.3%"
><div
id=
"main_three"
style=
"height: 240px;"
></div></td>
</tr>
</table>
<br>
<div
id=
"main"
class=
"col-sm-6"
style=
"height: 400px;"
></div>
<div
id=
"mainSecond"
class=
"col-sm-6"
style=
"height: 400px;"
></div>
</div>
</div>
</div>
</div>
<div
class=
"row animated fadeInRight"
>
<div
class=
"col-sm-12"
>
<div
class=
"panel panel-danger"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-fire"
></i>
实时监控(分/时)
</div>
<div
class=
"panel-body"
>
<div
id=
"mainMin"
class=
"col-sm-6"
style=
"height: 400px;"
></div>
<div
id=
"mainHour"
class=
"col-sm-6"
style=
"height: 400px;"
></div>
</div>
</div>
</div>
</div>
<div
class=
"row animated fadeInRight"
>
<div
class=
"col-sm-6"
>
<div
class=
"panel panel-success"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-briefcase"
></i>
警告设置
</div>
<table
class=
"table table-hover table-bordered"
width=
"100%"
style=
"vertical-align: middle;height: 400px"
>
<thead>
<tr
style=
"text-align: center;"
>
<td
width=
"100"
>
名称
</td>
<td
width=
"100"
>
参数
</td>
<td
width=
"205"
>
预警设置
</td>
<td
width=
"205"
>
邮箱设置
</td>
</tr>
</thead>
<tbody
id=
"tbody"
>
<tr>
<td
style=
'padding-left: 10px; text-align: left;vertical-align: middle;'
>
CPU
</td>
<td
style=
'padding-left: 10px; text-align: left;vertical-align: middle;'
>
当前使用率:
<span
id=
"td_cpuUsage"
style=
"color: red;"
>
50
</span>
%
</td>
<td
align=
"center"
>
<table>
<tr>
<td>
使用率超出
<br>
<input
class=
'inputclass'
name=
'cpu'
id=
'cpu'
style=
'width: 100px'
type=
'text'
value=
'${cpu}'
/>
%
<a
class=
'btn btn-info'
href=
'javascript:void(0)'
onclick=
'modifySer("cpu");'
>
修改
</a><br>
发送邮箱提示
</td>
</tr>
</table>
</td>
<td
rowspan=
'3'
align=
"center"
style=
"vertical-align: middle;"
><input
class=
'inputclass'
style=
'width: 180px; height: 32px;'
name=
'toEmail'
id=
'toEmail'
type=
'text'
value=
'${toEmail}'
/><a
class=
'btn btn-info'
href=
'javascript:void(0)'
onclick=
'modifySer("toEmail");'
>
修改
</a></td>
</tr>
<tr>
<td
style=
'padding-left: 10px; text-align: left;vertical-align: middle;'
>
服务器内存
</td>
<td
style=
'padding-left: 10px; text-align: left;vertical-align: middle;'
>
当前使用率:
<span
id=
"td_serverUsage"
style=
"color: blue;"
>
50
</span>
%
</td>
<td
align=
"center"
>
<table>
<tr>
<td>
使用率超出
<br>
<input
class=
'inputclass'
name=
'ram'
id=
'ram'
style=
'width: 100px'
type=
'text'
value=
'${ram}'
/>
%
<a
class=
'btn btn-info'
href=
'javascript:void(0)'
onclick=
'modifySer("ram");'
>
修改
</a><br>
发送邮箱提示
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td
style=
'padding-left: 10px; text-align: left;vertical-align: middle;'
>
JVM内存
</td>
<td
style=
'padding-left: 10px; text-align: left;vertical-align: middle;'
>
当前使用率:
<span
id=
"td_jvmUsage"
style=
"color: green;"
>
50
</span>
%
</td>
<td
align=
"center"
>
<table>
<tr>
<td>
使用率超出
<br>
<input
class=
'inputclass'
name=
'jvm'
id=
'jvm'
style=
'width: 100px'
type=
'text'
value=
'${jvm}'
/>
%
<a
class=
'btn btn-info'
href=
'javascript:void(0)'
onclick=
'modifySer("jvm");'
>
修改
</a><br>
发送邮箱提示
</td>
</tr>
</table>
</tr>
</tbody>
</table>
</div>
</div>
<div
class=
"col-sm-6"
>
<div
class=
"panel panel-info"
>
<div
class=
"panel-heading"
>
<i
class=
"fa fa-th-list"
></i>
服务器信息
</div>
<div
class=
"panel-body"
style=
"padding: 0px"
>
<div
style=
"height: 400px;"
class=
"embed-responsive"
>
<iframe
class=
"embed-responsive-item"
src=
"${ctx}/monitor/systemInfo"
></iframe>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/monitor/monitor.jsp
0 → 100644
View file @
e2a64d42
<%@ page
language=
"java"
import=
"java.util.*"
pageEncoding=
"UTF-8"
%>
<iframe
id=
"ifm"
src=
"${pageContext.request.contextPath}/monitor/info.shtml"
width=
"100%"
height=
"1300px"
frameborder=
"no"
border=
"0"
marginwidth=
"0"
marginheight=
"0"
allowtransparency=
"yes"
></iframe>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/monitor/systemInfo.jsp
0 → 100644
View file @
e2a64d42
<%@ page
language=
"java"
contentType=
"text/html; charset=UTF-8"
pageEncoding=
"UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<!-- 引入bootstrap插件 -->
<!-- bootswatch主题效果不怎么好,停止切换,使用官网的默认版本,如果你想切换主题请访问http://bootswatch.com/下载最新版版主题,by刘高峰 -->
<!-- <link href="${ctxStatic}/bootstrap/3.3.4/css_${not empty cookie.theme.value ? cookie.theme.value : 'default'}/bootstrap.min.css" type="text/css" rel="stylesheet" />-->
<link
href=
"${ctxStatic}/bootstrap/3.3.4/css_default/bootstrap.min.css"
type=
"text/css"
rel=
"stylesheet"
/>
<script
src=
"${ctxStatic}/bootstrap/3.3.4/js/bootstrap.min.js"
type=
"text/javascript"
></script>
<link
href=
"${ctxStatic}/awesome/4.4/css/font-awesome.min.css"
rel=
"stylesheet"
/>
<link
href=
"${ctxStatic}/common/css/style.css?v=3.2.0"
type=
"text/css"
rel=
"stylesheet"
/>
</head>
<body>
<table
class=
"table table-hover"
>
<tbody>
<tr>
<td
class=
"left"
>
ip地址
</td>
<td
id=
"hostIp"
class=
"left"
>
${systemInfo.hostIp}
</td>
</tr>
<tr>
<td
class=
"left"
>
主机名
</td>
<td
class=
"left"
id=
"hostName"
>
${systemInfo.hostName}
</td>
</tr>
<tr>
<td
class=
"left"
>
操作系统的名称
</td>
<td
class=
"left"
id=
"osName"
>
${systemInfo.osName}
</td>
</tr>
<tr>
<td
class=
"left"
>
操作系统的构架
</td>
<td
class=
"left"
id=
"arch"
>
${systemInfo.arch}
</td>
</tr>
<tr>
<td
class=
"left"
>
操作系统的版本
</td>
<td
class=
"left"
id=
"osVersion"
>
${systemInfo.osVersion}
</td>
</tr>
<tr>
<td
class=
"left"
>
处理器个数
</td>
<td
class=
"left"
id=
"processors"
>
${systemInfo.processors}
</td>
</tr>
<tr>
<td
class=
"left"
>
Java的运行环境版本
</td>
<td
class=
"left"
id=
"javaVersion"
>
${systemInfo.javaVersion}
</td>
</tr>
<tr>
<td
class=
"left"
>
Java供应商的URL
</td>
<td
class=
"left"
id=
"javaUrl"
>
${systemInfo.javaUrl}
</td>
</tr>
<tr>
<td
class=
"left"
>
Java的安装路径
</td>
<td
class=
"left"
id=
"javaHome"
>
${systemInfo.javaHome}
</td>
</tr>
<tr>
<td
class=
"left"
>
临时文件路径
</td>
<td
class=
"left"
id=
"tmpdir"
>
${systemInfo.tmpdir}
</td>
</tr>
</tbody>
</table>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/mvvmoa/formLeavemForm.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
请假单管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
src=
"/staticViews/formSubmit.js"
type=
"text/javascript"
></script>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
laydate
({
elem
:
'
#beginDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
});
</script>
</head>
<body>
<form:form
id=
"inputForm"
modelAttribute=
"formLeavem"
action=
"
${
ctx
}
/mvvmoa/formLeavem/save"
method=
"post"
class=
"form-horizontal"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<table
class=
"table table-bordered table-condensed dataTables-example dataTable no-footer"
>
<tbody>
<tr>
<td
class=
"width-15 active"
><label
class=
"pull-right"
><font
color=
"red"
>
*
</font>
员工:
</label></td>
<td
class=
"width-35"
>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
formLeavem
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeavem
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</td>
<td
class=
"width-15 active"
><label
class=
"pull-right"
><font
color=
"red"
>
*
</font>
归属部门:
</label></td>
<td
class=
"width-35"
>
<sys:treeselect
id=
"office"
name=
"office.id"
value=
"
${
formLeavem
.
office
.
id
}
"
labelName=
"office.name"
labelValue=
"
${
formLeavem
.
office
.
name
}
"
title=
"部门"
url=
"/sys/office/treeData?type=2"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
><label
class=
"pull-right"
>
归属区域:
</label></td>
<td
class=
"width-35"
>
<sys:treeselect
id=
"area"
name=
"area.id"
value=
"
${
formLeavem
.
area
.
id
}
"
labelName=
"area.name"
labelValue=
"
${
formLeavem
.
area
.
name
}
"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control "
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</td>
<td
class=
"width-15 active"
><label
class=
"pull-right"
><font
color=
"red"
>
*
</font>
请假开始日期:
</label></td>
<td
class=
"width-35"
>
<input
id=
"beginDate"
name=
"beginDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date required"
value=
"
<fmt:formatDate
value=
"
${
formLeavem
.
beginDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</td>
</tr>
<tr>
<td
class=
"width-15 active"
><label
class=
"pull-right"
><font
color=
"red"
>
*
</font>
请假结束日期:
</label></td>
<td
class=
"width-35"
>
<input
id=
"endDate"
name=
"endDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date required"
value=
"
<fmt:formatDate
value=
"
${
formLeavem
.
endDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</td>
<td
class=
"width-15 active"
><label
class=
"pull-right"
>
备注信息:
</label></td>
<td
class=
"width-35"
>
<form:input
path=
"remarks"
htmlEscape=
"false"
maxlength=
"255"
class=
"form-control "
/>
</td>
</tr>
</tbody>
</table>
</form:form>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/mvvmoa/formLeavemList.jsp
0 → 100644
View file @
e2a64d42
<%@ page
contentType=
"text/html;charset=UTF-8"
%>
<%@ include
file=
"/WEB-INF/views/include/taglib.jsp"
%>
<html>
<head>
<title>
请假单管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<%@ include
file=
"/WEB-INF/views/include/head.jsp"
%>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
});
</script>
</head>
<body
class=
"gray-bg"
>
<div
class=
"wrapper wrapper-content"
>
<div
class=
"ibox"
>
<div
class=
"ibox-title"
>
<h5>
请假单列表
</h5>
<div
class=
"ibox-tools"
>
<a
class=
"collapse-link"
>
<i
class=
"fa fa-chevron-up"
></i>
</a>
<a
class=
"dropdown-toggle"
data-toggle=
"dropdown"
href=
"#"
>
<i
class=
"fa fa-wrench"
></i>
</a>
<ul
class=
"dropdown-menu dropdown-user"
>
<li><a
href=
"#"
>
选项1
</a>
</li>
<li><a
href=
"#"
>
选项2
</a>
</li>
</ul>
<a
class=
"close-link"
>
<i
class=
"fa fa-times"
></i>
</a>
</div>
</div>
<div
class=
"ibox-content"
>
<sys:message
content=
"
${
message
}
"
/>
<!--查询条件-->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<form:form
id=
"searchForm"
modelAttribute=
"formLeavem"
action=
"
${
ctx
}
/mvvmoa/formLeavem/"
method=
"post"
class=
"form-inline"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<table:sortColumn
id=
"orderBy"
name=
"orderBy"
value=
"
${
page
.
orderBy
}
"
callback=
"sortOrRefresh();"
/>
<!-- 支持排序 -->
<div
class=
"form-group"
>
<span>
员工:
</span>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
formLeavem
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeavem
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control input-sm"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</div>
</form:form>
<br/>
</div>
</div>
<!-- 工具栏 -->
<div
class=
"row"
>
<div
class=
"col-sm-12"
>
<div
class=
"pull-left"
>
<!--shiro:hasPermission name="mvvmoa:formLeavem:add"-->
<table:addRow
url=
"
${
ctx
}
/mvvmoa/formLeavem/form"
title=
"请假单"
></table:addRow>
<!-- 增加按钮 -->
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="mvvmoa:formLeavem:edit"-->
<table:editRow
url=
"
${
ctx
}
/mvvmoa/formLeavem/form"
title=
"请假单"
id=
"contentTable"
></table:editRow>
<!-- 编辑按钮 -->
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="mvvmoa:formLeavem:del"-->
<table:delRow
url=
"
${
ctx
}
/mvvmoa/formLeavem/deleteAll"
id=
"contentTable"
></table:delRow>
<!-- 删除按钮 -->
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="mvvmoa:formLeavem:import"-->
<table:importExcel
url=
"
${
ctx
}
/mvvmoa/formLeavem/import"
></table:importExcel>
<!-- 导入按钮 -->
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="mvvmoa:formLeavem:export"-->
<table:exportExcel
url=
"
${
ctx
}
/mvvmoa/formLeavem/export"
></table:exportExcel>
<!-- 导出按钮 -->
<!--/shiro:hasPermission-->
<button
class=
"btn btn-white btn-sm "
data-toggle=
"tooltip"
data-placement=
"left"
onclick=
"sortOrRefresh()"
title=
"刷新"
><i
class=
"glyphicon glyphicon-repeat"
></i>
刷新
</button>
</div>
<div
class=
"pull-right"
>
<button
class=
"btn btn-primary btn-rounded btn-outline btn-sm "
onclick=
"search()"
><i
class=
"fa fa-search"
></i>
查询
</button>
<button
class=
"btn btn-primary btn-rounded btn-outline btn-sm "
onclick=
"reset()"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
</div>
</div>
<!-- 表格 -->
<table
id=
"contentTable"
class=
"table table-striped table-bordered table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
<input
type=
"checkbox"
class=
"i-checks"
></th>
<th
class=
"sort-column user.name"
>
员工
</th>
<th
class=
"sort-column office.name"
>
归属部门
</th>
<th
class=
"sort-column area.name"
>
归属区域
</th>
<th
class=
"sort-column beginDate"
>
请假开始日期
</th>
<th
class=
"sort-column endDate"
>
请假结束日期
</th>
<th
class=
"sort-column remarks"
>
备注信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"formLeavem"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${formLeavem.id}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看请假单', '${ctx}/mvvmoa/formLeavem/form?id=${formLeavem.id}','800px', '500px')"
>
${formLeavem.user.name}
</a></td>
<td>
${formLeavem.office.name}
</td>
<td>
${formLeavem.area.name}
</td>
<td>
<fmt:formatDate
value=
"
${
formLeavem
.
beginDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
<fmt:formatDate
value=
"
${
formLeavem
.
endDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
${formLeavem.remarks}
</td>
<td>
<!--shiro:hasPermission name="mvvmoa:formLeavem:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看请假单', '${ctx}/mvvmoa/formLeavem/form?id=${formLeavem.id}','800px', '500px')"
class=
"btn btn-info btn-xs"
><i
class=
"fa fa-search-plus"
></i>
查看
</a>
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="mvvmoa:formLeavem:edit"-->
<a
href=
"#"
onclick=
"openDialog('修改请假单', '${ctx}/mvvmoa/formLeavem/form?id=${formLeavem.id}','800px', '500px')"
class=
"btn btn-success btn-xs"
><i
class=
"fa fa-edit"
></i>
修改
</a>
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="mvvmoa:formLeavem:del"-->
<a
href=
"${ctx}/mvvmoa/formLeavem/delete?id=${formLeavem.id}"
onclick=
"return confirmx('确认要删除该请假单吗?', this.href)"
class=
"btn btn-danger btn-xs"
><i
class=
"fa fa-trash"
></i>
删除
</a>
<!--/shiro:hasPermission-->
</td>
</tr>
</c:forEach>
</tbody>
</table>
<!-- 分页代码 -->
<table:page
page=
"
${
page
}
"
></table:page>
<br/>
<br/>
</div>
</div>
</div>
</body>
</html>
\ No newline at end of file
Prev
1
…
7
8
9
10
11
12
13
14
15
…
21
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment