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/test/one/formLeaveList.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=
"test:one:formLeave:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/test/one/formLeave/form"
title=
"增加"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加
</a>
<a
id=
"btnAdd"
href=
"${ctx}/test/one/formLeave/form?ViewFormType=FormTwo"
title=
"增加2"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加2
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:del"
>
<a
id=
"btnDeleteAll"
href=
"${ctx}/test/one/formLeave/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=
"test:one:formLeave:import"
>
<table:importExcel
url=
"
${
ctx
}
/test/one/formLeave/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:export"
>
<table:exportExcel
url=
"
${
ctx
}
/test/one/formLeave/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<a
href=
"${ctx}/test/one/formLeave/listVue"
title=
"Vue"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
Vue
</a>
<shiro:hasPermission
name=
"test:one:formLeave:total"
>
<a
href=
"${ctx}/test/one/formLeave/total"
title=
"统计图表"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计图表
</a>
<a
href=
"${ctx}/test/one/formLeave/totalMap"
title=
"统计地图"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计地图
</a>
</shiro:hasPermission>
<!-- 工具功能 -->
<%@ include
file=
"/WEB-INF/views/include/btnGroup.jsp"
%>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!-- 查询条件 -->
<form:form
id=
"searchForm"
modelAttribute=
"formLeave"
action=
"
${
ctx
}
/test/one/formLeave/"
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>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
formLeave
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeave
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control input-sm"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</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 user.name "
>
员工
</th>
<th
class=
"sort-column office.name "
>
归属部门
</th>
<th
class=
"sort-column area.name "
>
归属区域
</th>
<th
class=
"sort-column beginDate hidden-xs"
>
请假开始日期
</th>
<th
class=
"sort-column endDate hidden-xs"
>
请假结束日期
</th>
<th
class=
"sort-column remarks hidden-xs"
>
备注信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"formLeave"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${formLeave.id}"
user.id=
"${formLeave.user.id}"
office.id=
"${formLeave.office.id}"
area.id=
"${formLeave.area.id}"
remarks=
"${formLeave.remarks}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"${ctx}/test/one/formLeave/form?id=${formLeave.id}&action=view"
>
${formLeave.user.name}
</a></td>
<td
class=
""
>
${formLeave.office.name}
</td>
<td
class=
""
>
${formLeave.area.name}
</td>
<td
class=
"hidden-xs"
>
<fmt:formatDate
value=
"
${
formLeave
.
beginDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td
class=
"hidden-xs"
>
<fmt:formatDate
value=
"
${
formLeave
.
endDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td
class=
"hidden-xs"
>
${formLeave.remarks}
</td>
<td>
<shiro:hasPermission
name=
"test:one:formLeave:view"
>
<a
href=
"${ctx}/test/one/formLeave/form?id=${formLeave.id}&action=view"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:edit"
>
<a
href=
"${ctx}/test/one/formLeave/form?id=${formLeave.id}"
title=
"修改"
title=
"修改"
><i
class=
"fa fa-pencil"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:del"
>
<a
href=
"${ctx}/test/one/formLeave/delete?id=${formLeave.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()}
<!-- 统计 -->
<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>
<!-- 统计 end-->
</div>
</div>
</div>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/modules/test/one/formLeaveList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/one/formLeaveList.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/one/formLeaveListVue.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"
%>
<script
src=
"/staticViews/modules/test/one/formLeaveList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/one/formLeaveList.css"
rel=
"stylesheet"
/>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
id=
"rrapp"
>
<!-- 内容盒子-->
<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"
>
<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>
<shiro:hasPermission
name=
"test:one:formLeave:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/test/one/formLeave/form"
title=
"增加"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加
</a>
<a
id=
"btnAdd"
href=
"${ctx}/test/one/formLeave/form?ViewFormType=FormTwo"
title=
"增加2"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加2
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:del"
>
<a
id=
"btnDeleteAll"
href=
"${ctx}/test/one/formLeave/deleteAll"
title=
"删除"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-trash-o"
></i>
删除
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:import"
>
<table:importExcel
url=
"
${
ctx
}
/test/one/formLeave/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:export"
>
<table:exportExcel
url=
"
${
ctx
}
/test/one/formLeave/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<a
href=
"${ctx}/test/one/formLeave/list"
title=
"Vue"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
list
</a>
<shiro:hasPermission
name=
"test:one:formLeave:total"
>
<a
href=
"${ctx}/test/one/formLeave/total"
title=
"统计图表"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计图表
</a>
<a
href=
"${ctx}/test/one/formLeave/totalMap"
title=
"统计地图"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计地图
</a>
</shiro:hasPermission>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!--查询条件-->
<form:form
id=
"searchForm"
modelAttribute=
"formLeave"
action=
"
${
ctx
}
/../rest/test/one/formLeave/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}"
/>
<input
id=
"orderBy"
name=
"orderBy"
type=
"hidden"
value=
"${page.orderBy}"
/>
<div
class=
"form-group"
>
<span>
员工:
</span>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
formLeave
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeave
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control input-sm"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</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 user.name "
>
员工
</th>
<th
class=
"sort-column office.name "
>
归属部门
</th>
<th
class=
"sort-column area.name "
>
归属区域
</th>
<th
class=
"sort-column beginDate hidden-xs"
>
请假开始日期
</th>
<th
class=
"sort-column endDate hidden-xs"
>
请假结束日期
</th>
<th
class=
"sort-column remarks hidden-xs"
>
备注信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<tr
v-for=
"item in page"
>
<td>
<input
type=
"checkbox"
:id=
"item.id"
user.id=
"${formLeave.user.id}"
office.id=
"${formLeave.office.id}"
area.id=
"${formLeave.area.id}"
remarks=
"${formLeave.remarks}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"#"
v-on:click=
"openDialogView('查看请假', '${ctx}/test/one/formLeave/form?id='+item.id,'800px', '500px')"
>
{{item.user.name}}
</a></td>
<td
class=
""
>
{{item.office.name}}
</td>
<td
class=
""
>
{{item.area.name}}
</td>
<td
class=
"hidden-xs"
>
{{item.beginDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.endDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.remarks}}
</td>
<td>
<shiro:hasPermission
name=
"test:one:formLeave:view"
>
<a
href=
"${ctx}/test/one/formLeave/form?id=${formLeave.id}&action=view"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:edit"
>
<a
href=
"${ctx}/test/one/formLeave/form?id=${formLeave.id}"
title=
"修改"
title=
"修改"
><i
class=
"fa fa-pencil"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:one:formLeave:del"
>
<a
href=
"${ctx}/test/one/formLeave/delete?id=${formLeave.id}"
onclick=
"return confirmx('确认要删除该请假吗?', this.href)"
title=
"删除"
><i
class=
"fa fa-trash-o"
></i></a>
</shiro:hasPermission>
</td>
</tr>
</tbody>
</table>
<!-- 分页代码 -->
<div
v-html=
"result.html"
>
{{result.html}}
</div>
</div>
</div>
</div>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<script
src=
"/staticViews/viewBase.js"
></script>
<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/test/one/formLeaveSelect.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
()
{
});
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
user
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
user.id
"
);
var
office
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
office.id
"
);
var
area
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
area.id
"
);
var
beginDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
beginDate
"
);
var
endDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
endDate
"
);
var
remarks
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
remarks
"
);
var
obj
=
'
"id":id
'
;
if
(
user
.
id
==
undefined
)
user
.
id
=
""
;
obj
+=
'
,"user.id":"
'
+
user
.
id
+
'
"
'
;
if
(
office
.
id
==
undefined
)
office
.
id
=
""
;
obj
+=
'
,"office.id":"
'
+
office
.
id
+
'
"
'
;
if
(
area
.
id
==
undefined
)
area
.
id
=
""
;
obj
+=
'
,"area.id":"
'
+
area
.
id
+
'
"
'
;
if
(
beginDate
==
undefined
)
beginDate
=
""
;
obj
+=
'
,"beginDate":"
'
+
beginDate
+
'
"
'
;
if
(
endDate
==
undefined
)
endDate
=
""
;
obj
+=
'
,"endDate":"
'
+
endDate
+
'
"
'
;
if
(
remarks
==
undefined
)
remarks
=
""
;
obj
+=
'
,"remarks":"
'
+
remarks
+
'
"
'
;
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=
"formLeave"
action=
"
${
ctx
}
/test/one/formLeave/"
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=
"
${
formLeave
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeave
.
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"
>
<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 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=
"formLeave"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${formLeave.id}"
user.id=
"${formLeave.user.id}"
office.id=
"${formLeave.office.id}"
area.id=
"${formLeave.area.id}"
remarks=
"${formLeave.remarks}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看请假', '${ctx}/test/one/formLeave/form?id=${formLeave.id}','800px', '500px')"
>
${formLeave.user.name}
</a></td>
<td>
${formLeave.office.name}
</td>
<td>
${formLeave.area.name}
</td>
<td>
<fmt:formatDate
value=
"
${
formLeave
.
beginDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
<fmt:formatDate
value=
"
${
formLeave
.
endDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
${formLeave.remarks}
</td>
<td>
<!--shiro:hasPermission name="test:one:formLeave:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看请假', '${ctx}/test/one/formLeave/form?id=${formLeave.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/test/one/formLeaveTotal.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"
%>
<script
src=
"/staticViews/modules/test/one/formLeaveTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/one/formLeaveTotal.css"
rel=
"stylesheet"
/>
</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>
<!-- 工具功能 -->
<%@ include
file=
"/WEB-INF/views/include/btnGroup.jsp"
%>
</div>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!-- 查询条件 -->
<form:form
id=
"searchForm"
modelAttribute=
"formLeave"
action=
"
${
ctx
}
/test/one/formLeave/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>
</div>
<div
class=
"form-group"
>
<span>
员工:
</span>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
formLeave
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeave
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control input-sm"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
</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>
<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=
"formLeave"
>
<tr>
<td>
${formLeave.totalDate}
</td>
<td
style=
"text-align: right;"
class=
"totalCount"
>
${formLeave.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
id=
"messageBox"
>
${message}
</div>
<script
src=
"/staticViews/viewBase.js"
></script>
</body>
</head>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/one/formLeaveTotalMap.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/test/one/formLeaveTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/one/formLeaveTotal.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=
"formLeave"
action=
"
${
ctx
}
/test/one/formLeave/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>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
formLeave
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
formLeave
.
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"
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=
"formLeave"
>
{
title
:
"
${formLeave.totalDate}<br>统计${formLeave.totalCount}次
"
,
content
:
""
,
point
:(
113.271431
+
$
{
formLeave
.
totalCount
})
+
"
|
"
+
(
23.135336
+
$
{
formLeave
.
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/test/onetomany/testDataMainForm.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>
订票管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"testDataMain"
action=
"
${
ctx
}
/test/onetomany/testDataMain/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<div
class=
"form-unit"
>
基本信息
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
归属用户
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
testDataMain
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
testDataMain
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择归属用户
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
归属部门
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<sys:treeselect
id=
"office"
name=
"office.id"
value=
"
${
testDataMain
.
office
.
id
}
"
labelName=
"office.name"
labelValue=
"
${
testDataMain
.
office
.
name
}
"
title=
"部门"
url=
"/sys/office/treeData?type=2"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择归属部门
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
归属区域
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<sys:treeselect
id=
"area"
name=
"area.id"
value=
"
${
testDataMain
.
area
.
id
}
"
labelName=
"area.name"
labelValue=
"
${
testDataMain
.
area
.
name
}
"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择归属区域
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
名称
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写名称
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
性别
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:radiobuttons
path=
"sex"
items=
"
${
fns:
getDictList
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks required"
/>
<div
class=
"help-block"
>
请选择性别
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
加入日期
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<input
id=
"inDate"
name=
"inDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date required"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
inDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<div
class=
"help-block"
>
请选择加入日期
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
备注信息
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:textarea
path=
"remarks"
htmlEscape=
"false"
rows=
"4"
maxlength=
"255"
class=
"form-control "
/>
</div>
</div>
<div
class=
"tabs-container"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
data-toggle=
"tab"
href=
"#tab-1"
aria-expanded=
"true"
>
火车:
</a>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-2"
aria-expanded=
"false"
>
飞机:
</a>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-3"
aria-expanded=
"false"
>
汽车:
</a>
</li>
</ul>
<div
class=
"tab-content"
>
<div
id=
"tab-1"
class=
"tab-pane active"
>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#testDataChildList', testDataChildRowIdx, testDataChildTpl);testDataChildRowIdx = testDataChildRowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<th>
出发地
<font
color=
"red"
>
*
</font></th>
<th>
目的地
<font
color=
"red"
>
*
</font></th>
<th>
代理价格
<font
color=
"red"
>
*
</font></th>
<th>
备注信息
</th>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"testDataChildList"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"testDataChildTpl"
>
//
<!--
<
tr
id
=
"
testDataChildList{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChildList{{idx}}_id
"
name
=
"
testDataChildList[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChildList{{idx}}_delFlag
"
name
=
"
testDataChildList[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChildList{{idx}}_start"
name=
"testDataChildList[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChildList{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChildList{{idx}}_end"
name=
"testDataChildList[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChildList{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<
input
id
=
"
testDataChildList{{idx}}_price
"
name
=
"
testDataChildList[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control required number
"
/>
<
/td
>
<
td
>
<
textarea
id
=
"
testDataChildList{{idx}}_remarks
"
name
=
"
testDataChildList[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChildList{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/template"
id=
"testDataChildTpl2"
>
//
<!--
<
tr
id
=
"
testDataChildList{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChildList{{idx}}_id
"
name
=
"
testDataChildList[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChildList{{idx}}_delFlag
"
name
=
"
testDataChildList[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<
div
>
<
div
>
<
/div
>
<
div
>
出发地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChildList{{idx}}_start"
name=
"testDataChildList[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChildList{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
目的地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChildList{{idx}}_end"
name=
"testDataChildList[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChildList{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
代理价格
<
font
color
=
"
red
"
>*<
/font><input id="testDataChildList{{idx}}_price" name="testDataChildList
[
{{idx}}
]
.price" type="text" value="{{row.price}}" class="form-control required number"/
>
<
/div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
/div
>
<
div
>
备注信息
<
textarea
id
=
"
testDataChildList{{idx}}_remarks
"
name
=
"
testDataChildList[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/div
>
<
div
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChildList{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/javascript"
>
var
tpl
=
"
${param.Tpl}
"
;
if
(
tpl
==
null
||
tpl
==
""
)
tpl
=
"
Tpl
"
;
if
(
tpl
==
"
Tpl2
"
){
$
(
"
#contentTable>thead
"
).
remove
();
}
var
testDataChildRowIdx
=
0
,
testDataChildTpl
=
$
(
"
#testDataChild
"
+
tpl
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
$
(
document
).
ready
(
function
()
{
var
data
=
$
{
fns
:
toJson
(
testDataMain
.
testDataChildList
)};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
addRow
(
'
#testDataChildList
'
,
testDataChildRowIdx
,
testDataChildTpl
,
data
[
i
]);
testDataChildRowIdx
=
testDataChildRowIdx
+
1
;
}
});
</script>
</div>
<div
id=
"tab-2"
class=
"tab-pane"
>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#testDataChild2List', testDataChild2RowIdx, testDataChild2Tpl);testDataChild2RowIdx = testDataChild2RowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<th>
出发地
<font
color=
"red"
>
*
</font></th>
<th>
目的地
<font
color=
"red"
>
*
</font></th>
<th>
代理价格
</th>
<th>
备注信息
</th>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"testDataChild2List"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"testDataChild2Tpl"
>
//
<!--
<
tr
id
=
"
testDataChild2List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild2List{{idx}}_id
"
name
=
"
testDataChild2List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild2List{{idx}}_delFlag
"
name
=
"
testDataChild2List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild2List{{idx}}_start"
name=
"testDataChild2List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild2List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild2List{{idx}}_end"
name=
"testDataChild2List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild2List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<
input
id
=
"
testDataChild2List{{idx}}_price
"
name
=
"
testDataChild2List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/td
>
<
td
>
<
textarea
id
=
"
testDataChild2List{{idx}}_remarks
"
name
=
"
testDataChild2List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild2List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/template"
id=
"testDataChild2Tpl2"
>
//
<!--
<
tr
id
=
"
testDataChild2List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild2List{{idx}}_id
"
name
=
"
testDataChild2List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild2List{{idx}}_delFlag
"
name
=
"
testDataChild2List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<
div
>
<
div
>
<
/div
>
<
div
>
出发地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild2List{{idx}}_start"
name=
"testDataChild2List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild2List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
目的地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild2List{{idx}}_end"
name=
"testDataChild2List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild2List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
代理价格
<
input
id
=
"
testDataChild2List{{idx}}_price
"
name
=
"
testDataChild2List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
/div
>
<
div
>
备注信息
<
textarea
id
=
"
testDataChild2List{{idx}}_remarks
"
name
=
"
testDataChild2List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/div
>
<
div
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild2List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/javascript"
>
var
tpl
=
"
${param.Tpl}
"
;
if
(
tpl
==
null
||
tpl
==
""
)
tpl
=
"
Tpl
"
;
if
(
tpl
==
"
Tpl2
"
){
$
(
"
#contentTable>thead
"
).
remove
();
}
var
testDataChild2RowIdx
=
0
,
testDataChild2Tpl
=
$
(
"
#testDataChild2
"
+
tpl
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
$
(
document
).
ready
(
function
()
{
var
data
=
$
{
fns
:
toJson
(
testDataMain
.
testDataChild2List
)};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
addRow
(
'
#testDataChild2List
'
,
testDataChild2RowIdx
,
testDataChild2Tpl
,
data
[
i
]);
testDataChild2RowIdx
=
testDataChild2RowIdx
+
1
;
}
});
</script>
</div>
<div
id=
"tab-3"
class=
"tab-pane"
>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#testDataChild3List', testDataChild3RowIdx, testDataChild3Tpl);testDataChild3RowIdx = testDataChild3RowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<th>
出发地
<font
color=
"red"
>
*
</font></th>
<th>
目的地
<font
color=
"red"
>
*
</font></th>
<th>
代理价格
</th>
<th>
备注信息
</th>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"testDataChild3List"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"testDataChild3Tpl"
>
//
<!--
<
tr
id
=
"
testDataChild3List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild3List{{idx}}_id
"
name
=
"
testDataChild3List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild3List{{idx}}_delFlag
"
name
=
"
testDataChild3List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild3List{{idx}}_start"
name=
"testDataChild3List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild3List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild3List{{idx}}_end"
name=
"testDataChild3List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild3List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<
input
id
=
"
testDataChild3List{{idx}}_price
"
name
=
"
testDataChild3List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/td
>
<
td
>
<
textarea
id
=
"
testDataChild3List{{idx}}_remarks
"
name
=
"
testDataChild3List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild3List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/template"
id=
"testDataChild3Tpl2"
>
//
<!--
<
tr
id
=
"
testDataChild3List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild3List{{idx}}_id
"
name
=
"
testDataChild3List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild3List{{idx}}_delFlag
"
name
=
"
testDataChild3List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<
div
>
<
div
>
<
/div
>
<
div
>
出发地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild3List{{idx}}_start"
name=
"testDataChild3List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild3List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
目的地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild3List{{idx}}_end"
name=
"testDataChild3List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild3List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
代理价格
<
input
id
=
"
testDataChild3List{{idx}}_price
"
name
=
"
testDataChild3List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
/div
>
<
div
>
备注信息
<
textarea
id
=
"
testDataChild3List{{idx}}_remarks
"
name
=
"
testDataChild3List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/div
>
<
div
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild3List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/javascript"
>
var
tpl
=
"
${param.Tpl}
"
;
if
(
tpl
==
null
||
tpl
==
""
)
tpl
=
"
Tpl
"
;
if
(
tpl
==
"
Tpl2
"
){
$
(
"
#contentTable>thead
"
).
remove
();
}
var
testDataChild3RowIdx
=
0
,
testDataChild3Tpl
=
$
(
"
#testDataChild3
"
+
tpl
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
$
(
document
).
ready
(
function
()
{
var
data
=
$
{
fns
:
toJson
(
testDataMain
.
testDataChild3List
)};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
addRow
(
'
#testDataChild3List
'
,
testDataChild3RowIdx
,
testDataChild3Tpl
,
data
[
i
]);
testDataChild3RowIdx
=
testDataChild3RowIdx
+
1
;
}
});
</script>
</div>
</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>
</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/test/onetomany/testDataMainForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/onetomany/testDataMainForm.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/onetomany/testDataMainFormTwo.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>
订票管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"testDataMain"
action=
"
${
ctx
}
/test/onetomany/testDataMain/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<div
class=
"form-unit"
>
基本信息
</div>
<div
class=
"row"
>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
归属用户
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-8"
>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
testDataMain
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
testDataMain
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择归属用户
</div>
</div>
</div>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
归属部门
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-8"
>
<sys:treeselect
id=
"office"
name=
"office.id"
value=
"
${
testDataMain
.
office
.
id
}
"
labelName=
"office.name"
labelValue=
"
${
testDataMain
.
office
.
name
}
"
title=
"部门"
url=
"/sys/office/treeData?type=2"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择归属部门
</div>
</div>
</div>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
归属区域
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-8"
>
<sys:treeselect
id=
"area"
name=
"area.id"
value=
"
${
testDataMain
.
area
.
id
}
"
labelName=
"area.name"
labelValue=
"
${
testDataMain
.
area
.
name
}
"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择归属区域
</div>
</div>
</div>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
名称
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-8"
>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写名称
</div>
</div>
</div>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
性别
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-8"
>
<form:radiobuttons
path=
"sex"
items=
"
${
fns:
getDictList
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks required"
/>
<div
class=
"help-block"
>
请选择性别
</div>
</div>
</div>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
加入日期
<font
color=
"red"
>
*
</font></label>
<div
class=
"col-sm-8"
>
<input
id=
"inDate"
name=
"inDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date required"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
inDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<div
class=
"help-block"
>
请选择加入日期
</div>
</div>
</div>
<div
class=
"form-group col-xs-6"
>
<label
class=
"control-label col-sm-4 pull-left"
>
备注信息
</label>
<div
class=
"col-sm-8"
>
<form:textarea
path=
"remarks"
htmlEscape=
"false"
rows=
"4"
maxlength=
"255"
class=
"form-control "
/>
</div>
</div>
</div>
<div
class=
"tabs-container"
>
<ul
class=
"nav nav-tabs"
>
<li
class=
"active"
><a
data-toggle=
"tab"
href=
"#tab-1"
aria-expanded=
"true"
>
火车:
</a>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-2"
aria-expanded=
"false"
>
飞机:
</a>
</li>
<li
class=
""
><a
data-toggle=
"tab"
href=
"#tab-3"
aria-expanded=
"false"
>
汽车:
</a>
</li>
</ul>
<div
class=
"tab-content"
>
<div
id=
"tab-1"
class=
"tab-pane active"
>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#testDataChildList', testDataChildRowIdx, testDataChildTpl);testDataChildRowIdx = testDataChildRowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<th>
出发地
<font
color=
"red"
>
*
</font></th>
<th>
目的地
<font
color=
"red"
>
*
</font></th>
<th>
代理价格
<font
color=
"red"
>
*
</font></th>
<th>
备注信息
</th>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"testDataChildList"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"testDataChildTpl"
>
//
<!--
<
tr
id
=
"
testDataChildList{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChildList{{idx}}_id
"
name
=
"
testDataChildList[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChildList{{idx}}_delFlag
"
name
=
"
testDataChildList[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChildList{{idx}}_start"
name=
"testDataChildList[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChildList{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChildList{{idx}}_end"
name=
"testDataChildList[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChildList{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<
input
id
=
"
testDataChildList{{idx}}_price
"
name
=
"
testDataChildList[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control required number
"
/>
<
/td
>
<
td
>
<
textarea
id
=
"
testDataChildList{{idx}}_remarks
"
name
=
"
testDataChildList[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChildList{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/template"
id=
"testDataChildTpl2"
>
//
<!--
<
tr
id
=
"
testDataChildList{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChildList{{idx}}_id
"
name
=
"
testDataChildList[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChildList{{idx}}_delFlag
"
name
=
"
testDataChildList[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<
div
>
<
div
>
<
/div
>
<
div
>
出发地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChildList{{idx}}_start"
name=
"testDataChildList[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChildList{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
目的地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChildList{{idx}}_end"
name=
"testDataChildList[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChildList{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
代理价格
<
font
color
=
"
red
"
>*<
/font><input id="testDataChildList{{idx}}_price" name="testDataChildList
[
{{idx}}
]
.price" type="text" value="{{row.price}}" class="form-control required number"/
>
<
/div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
/div
>
<
div
>
备注信息
<
textarea
id
=
"
testDataChildList{{idx}}_remarks
"
name
=
"
testDataChildList[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/div
>
<
div
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChildList{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/javascript"
>
var
tpl
=
"
${param.Tpl}
"
;
if
(
tpl
==
null
||
tpl
==
""
)
tpl
=
"
Tpl
"
;
if
(
tpl
==
"
Tpl2
"
){
$
(
"
#contentTable>thead
"
).
remove
();
}
var
testDataChildRowIdx
=
0
,
testDataChildTpl
=
$
(
"
#testDataChild
"
+
tpl
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
$
(
document
).
ready
(
function
()
{
var
data
=
$
{
fns
:
toJson
(
testDataMain
.
testDataChildList
)};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
addRow
(
'
#testDataChildList
'
,
testDataChildRowIdx
,
testDataChildTpl
,
data
[
i
]);
testDataChildRowIdx
=
testDataChildRowIdx
+
1
;
}
});
</script>
</div>
<div
id=
"tab-2"
class=
"tab-pane"
>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#testDataChild2List', testDataChild2RowIdx, testDataChild2Tpl);testDataChild2RowIdx = testDataChild2RowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<th>
出发地
<font
color=
"red"
>
*
</font></th>
<th>
目的地
<font
color=
"red"
>
*
</font></th>
<th>
代理价格
</th>
<th>
备注信息
</th>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"testDataChild2List"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"testDataChild2Tpl"
>
//
<!--
<
tr
id
=
"
testDataChild2List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild2List{{idx}}_id
"
name
=
"
testDataChild2List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild2List{{idx}}_delFlag
"
name
=
"
testDataChild2List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild2List{{idx}}_start"
name=
"testDataChild2List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild2List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild2List{{idx}}_end"
name=
"testDataChild2List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild2List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<
input
id
=
"
testDataChild2List{{idx}}_price
"
name
=
"
testDataChild2List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/td
>
<
td
>
<
textarea
id
=
"
testDataChild2List{{idx}}_remarks
"
name
=
"
testDataChild2List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild2List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/template"
id=
"testDataChild2Tpl2"
>
//
<!--
<
tr
id
=
"
testDataChild2List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild2List{{idx}}_id
"
name
=
"
testDataChild2List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild2List{{idx}}_delFlag
"
name
=
"
testDataChild2List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<
div
>
<
div
>
<
/div
>
<
div
>
出发地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild2List{{idx}}_start"
name=
"testDataChild2List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild2List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
目的地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild2List{{idx}}_end"
name=
"testDataChild2List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild2List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
代理价格
<
input
id
=
"
testDataChild2List{{idx}}_price
"
name
=
"
testDataChild2List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
/div
>
<
div
>
备注信息
<
textarea
id
=
"
testDataChild2List{{idx}}_remarks
"
name
=
"
testDataChild2List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/div
>
<
div
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild2List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/javascript"
>
var
tpl
=
"
${param.Tpl}
"
;
if
(
tpl
==
null
||
tpl
==
""
)
tpl
=
"
Tpl
"
;
if
(
tpl
==
"
Tpl2
"
){
$
(
"
#contentTable>thead
"
).
remove
();
}
var
testDataChild2RowIdx
=
0
,
testDataChild2Tpl
=
$
(
"
#testDataChild2
"
+
tpl
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
$
(
document
).
ready
(
function
()
{
var
data
=
$
{
fns
:
toJson
(
testDataMain
.
testDataChild2List
)};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
addRow
(
'
#testDataChild2List
'
,
testDataChild2RowIdx
,
testDataChild2Tpl
,
data
[
i
]);
testDataChild2RowIdx
=
testDataChild2RowIdx
+
1
;
}
});
</script>
</div>
<div
id=
"tab-3"
class=
"tab-pane"
>
<a
class=
"btn btn-warning btn-sm"
onclick=
"addRow('#testDataChild3List', testDataChild3RowIdx, testDataChild3Tpl);testDataChild3RowIdx = testDataChild3RowIdx + 1;"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
<table
id=
"contentTable"
class=
"table table-striped table-condensed"
>
<thead>
<tr>
<th
class=
"hide"
></th>
<th>
出发地
<font
color=
"red"
>
*
</font></th>
<th>
目的地
<font
color=
"red"
>
*
</font></th>
<th>
代理价格
</th>
<th>
备注信息
</th>
<th
width=
"10"
>
</th>
</tr>
</thead>
<tbody
id=
"testDataChild3List"
>
</tbody>
</table>
<script
type=
"text/template"
id=
"testDataChild3Tpl"
>
//
<!--
<
tr
id
=
"
testDataChild3List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild3List{{idx}}_id
"
name
=
"
testDataChild3List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild3List{{idx}}_delFlag
"
name
=
"
testDataChild3List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild3List{{idx}}_start"
name=
"testDataChild3List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild3List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<sys:treeselect
id=
"testDataChild3List{{idx}}_end"
name=
"testDataChild3List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild3List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/td
>
<
td
>
<
input
id
=
"
testDataChild3List{{idx}}_price
"
name
=
"
testDataChild3List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/td
>
<
td
>
<
textarea
id
=
"
testDataChild3List{{idx}}_remarks
"
name
=
"
testDataChild3List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild3List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/template"
id=
"testDataChild3Tpl2"
>
//
<!--
<
tr
id
=
"
testDataChild3List{{idx}}
"
>
<
td
class
=
"
hide
"
>
<
input
id
=
"
testDataChild3List{{idx}}_id
"
name
=
"
testDataChild3List[{{idx}}].id
"
type
=
"
hidden
"
value
=
"
{{row.id}}
"
/>
<
input
id
=
"
testDataChild3List{{idx}}_delFlag
"
name
=
"
testDataChild3List[{{idx}}].delFlag
"
type
=
"
hidden
"
value
=
"
0
"
/>
<
/td
>
<
td
>
<
div
>
<
div
>
<
/div
>
<
div
>
出发地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild3List{{idx}}_start"
name=
"testDataChild3List[{{idx}}].start.id"
value=
"{{row.start.id}}"
labelName=
"testDataChild3List{{idx}}.start.name"
labelValue=
"{{row.start.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
目的地
<
font
color
=
"
red
"
>*<
/font>
<sys:treeselect
id=
"testDataChild3List{{idx}}_end"
name=
"testDataChild3List[{{idx}}].end.id"
value=
"{{row.end.id}}"
labelName=
"testDataChild3List{{idx}}.end.name"
labelValue=
"{{row.end.name}}"
title=
"区域"
url=
"/sys/area/treeData"
cssClass=
"form-control required"
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<
/div
>
<
div
>
<
/div
>
<
div
>
代理价格
<
input
id
=
"
testDataChild3List{{idx}}_price
"
name
=
"
testDataChild3List[{{idx}}].price
"
type
=
"
text
"
value
=
"
{{row.price}}
"
class
=
"
form-control number
"
/>
<
/div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
div
>
<
/div
>
<
div
>
备注信息
<
textarea
id
=
"
testDataChild3List{{idx}}_remarks
"
name
=
"
testDataChild3List[{{idx}}].remarks
"
rows
=
"
4
"
maxlength
=
"
255
"
class
=
"
form-control
"
>
{{
row
.
remarks
}}
<
/textarea
>
<
/div
>
<
div
>
<
/td
>
<
td
class
=
"
text-center
"
width
=
"
10
"
>
{{
#
delBtn
}}
<
span
class
=
"
close
"
onclick
=
"
delRow(this, '#testDataChild3List{{idx}}')
"
title
=
"
删除
"
>&
times
;
<
/span>{{/
delBtn
}}
<
/td
>
<
/tr>/
/-->
</script>
<script
type=
"text/javascript"
>
var
tpl
=
"
${param.Tpl}
"
;
if
(
tpl
==
null
||
tpl
==
""
)
tpl
=
"
Tpl
"
;
if
(
tpl
==
"
Tpl2
"
){
$
(
"
#contentTable>thead
"
).
remove
();
}
var
testDataChild3RowIdx
=
0
,
testDataChild3Tpl
=
$
(
"
#testDataChild3
"
+
tpl
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
$
(
document
).
ready
(
function
()
{
var
data
=
$
{
fns
:
toJson
(
testDataMain
.
testDataChild3List
)};
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
addRow
(
'
#testDataChild3List
'
,
testDataChild3RowIdx
,
testDataChild3Tpl
,
data
[
i
]);
testDataChild3RowIdx
=
testDataChild3RowIdx
+
1
;
}
});
</script>
</div>
</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>
</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/test/onetomany/testDataMainForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/onetomany/testDataMainForm.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/onetomany/testDataMainList.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=
"test:onetomany:testDataMain:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/test/onetomany/testDataMain/form"
title=
"增加"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加
</a>
<a
id=
"btnAdd"
href=
"${ctx}/test/onetomany/testDataMain/form?ViewFormType=FormTwo"
title=
"增加2"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加2
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:del"
>
<a
id=
"btnDeleteAll"
href=
"${ctx}/test/onetomany/testDataMain/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=
"test:onetomany:testDataMain:import"
>
<table:importExcel
url=
"
${
ctx
}
/test/onetomany/testDataMain/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:export"
>
<table:exportExcel
url=
"
${
ctx
}
/test/onetomany/testDataMain/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<a
href=
"${ctx}/test/onetomany/testDataMain/listVue"
title=
"Vue"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
Vue
</a>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:total"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/total"
title=
"统计图表"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计图表
</a>
<a
href=
"${ctx}/test/onetomany/testDataMain/totalMap"
title=
"统计地图"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计地图
</a>
</shiro:hasPermission>
<!-- 工具功能 -->
<%@ include
file=
"/WEB-INF/views/include/btnGroup.jsp"
%>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!-- 查询条件 -->
<form:form
id=
"searchForm"
modelAttribute=
"testDataMain"
action=
"
${
ctx
}
/test/onetomany/testDataMain/"
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=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
性别:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"sex"
items=
"
${
fns:
getDictListAddAll
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</div>
<div
class=
"form-group"
>
<span>
加入日期:
</span>
<input
id=
"beginInDate"
name=
"beginInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
beginInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endInDate"
name=
"endInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
endInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
<div
class=
"form-group"
>
<span>
更新时间:
</span>
<input
id=
"updateDate"
name=
"updateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
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 office.name "
>
归属部门
</th>
<th
class=
"sort-column area.name "
>
归属区域
</th>
<th
class=
"sort-column name hidden-xs"
>
名称
</th>
<th
class=
"sort-column sex hidden-xs"
>
性别
</th>
<th
class=
"sort-column inDate hidden-xs"
>
加入日期
</th>
<th
class=
"sort-column createDate hidden-xs"
>
创建时间
</th>
<th
class=
"sort-column updateDate hidden-xs"
>
更新时间
</th>
<th
class=
"sort-column remarks hidden-xs"
>
备注信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"testDataMain"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${testDataMain.id}"
office.id=
"${testDataMain.office.id}"
area.id=
"${testDataMain.area.id}"
name=
"${testDataMain.name}"
sex=
"${testDataMain.sex}"
remarks=
"${testDataMain.remarks}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.id}&action=view"
>
${testDataMain.office.name}
</a></td>
<td
class=
""
>
${testDataMain.area.name}
</td>
<td
class=
"hidden-xs"
>
${testDataMain.name}
</td>
<td
class=
"hidden-xs"
>
${fns:getDictLabel(testDataMain.sex, 'sex', '')}
</td>
<td
class=
"hidden-xs"
>
<fmt:formatDate
value=
"
${
testDataMain
.
inDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td
class=
"hidden-xs"
>
<fmt:formatDate
value=
"
${
testDataMain
.
createDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td
class=
"hidden-xs"
>
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td
class=
"hidden-xs"
>
${testDataMain.remarks}
</td>
<td>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:view"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.id}&action=view"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:edit"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.id}"
title=
"修改"
title=
"修改"
><i
class=
"fa fa-pencil"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:del"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/delete?id=${testDataMain.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()}
<!-- 统计 -->
<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>
<!-- 统计 end-->
</div>
</div>
</div>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<script
src=
"/staticViews/viewBase.js"
></script>
<script
src=
"/staticViews/modules/test/onetomany/testDataMainList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/onetomany/testDataMainList.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/onetomany/testDataMainListVue.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"
%>
<script
src=
"/staticViews/modules/test/onetomany/testDataMainList.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/onetomany/testDataMainList.css"
rel=
"stylesheet"
/>
</head>
<body>
<!-- 内容-->
<div
class=
"wrapper"
id=
"rrapp"
>
<!-- 内容盒子-->
<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"
>
<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>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/test/onetomany/testDataMain/form"
title=
"增加"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加
</a>
<a
id=
"btnAdd"
href=
"${ctx}/test/onetomany/testDataMain/form?ViewFormType=FormTwo"
title=
"增加2"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-plus"
></i>
增加2
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:del"
>
<a
id=
"btnDeleteAll"
href=
"${ctx}/test/onetomany/testDataMain/deleteAll"
title=
"删除"
class=
"btn btn-default btn-sm"
><i
class=
"fa fa-trash-o"
></i>
删除
</a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:import"
>
<table:importExcel
url=
"
${
ctx
}
/test/onetomany/testDataMain/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:export"
>
<table:exportExcel
url=
"
${
ctx
}
/test/onetomany/testDataMain/export"
></table:exportExcel>
<!-- 导出按钮 -->
</shiro:hasPermission>
<a
href=
"${ctx}/test/onetomany/testDataMain/list"
title=
"Vue"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
list
</a>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:total"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/total"
title=
"统计图表"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计图表
</a>
<a
href=
"${ctx}/test/onetomany/testDataMain/totalMap"
title=
"统计地图"
class=
"btn btn-default btn-sm"
><i
class=
"glyphicon glyphicon-repeat"
></i>
统计地图
</a>
</shiro:hasPermission>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!--查询条件-->
<form:form
id=
"searchForm"
modelAttribute=
"testDataMain"
action=
"
${
ctx
}
/../rest/test/onetomany/testDataMain/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}"
/>
<input
id=
"orderBy"
name=
"orderBy"
type=
"hidden"
value=
"${page.orderBy}"
/>
<div
class=
"form-group"
>
<span>
名称:
</span>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
性别:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"sex"
items=
"
${
fns:
getDictList
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</div>
<div
class=
"form-group"
>
<span>
加入日期:
</span>
<input
id=
"beginInDate"
name=
"beginInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
beginInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endInDate"
name=
"endInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
endInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
<div
class=
"form-group"
>
<span>
更新时间:
</span>
<input
id=
"updateDate"
name=
"updateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
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 office.name "
>
归属部门
</th>
<th
class=
"sort-column area.name "
>
归属区域
</th>
<th
class=
"sort-column name hidden-xs"
>
名称
</th>
<th
class=
"sort-column sex hidden-xs"
>
性别
</th>
<th
class=
"sort-column inDate hidden-xs"
>
加入日期
</th>
<th
class=
"sort-column createDate hidden-xs"
>
创建时间
</th>
<th
class=
"sort-column updateDate hidden-xs"
>
更新时间
</th>
<th
class=
"sort-column remarks hidden-xs"
>
备注信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<tr
v-for=
"item in page"
>
<td>
<input
type=
"checkbox"
:id=
"item.id"
office.id=
"${testDataMain.office.id}"
area.id=
"${testDataMain.area.id}"
name=
"${testDataMain.name}"
sex=
"${testDataMain.sex}"
remarks=
"${testDataMain.remarks}"
class=
"i-checks"
></td>
<td
class=
""
><a
href=
"#"
v-on:click=
"openDialogView('查看订票', '${ctx}/test/onetomany/testDataMain/form?id='+item.id,'800px', '500px')"
>
{{item.office.name}}
</a></td>
<td
class=
""
>
{{item.area.name}}
</td>
<td
class=
"hidden-xs"
>
{{item.name}}
</td>
<td
class=
"hidden-xs"
>
{{item.sexLabel}}
</td>
<td
class=
"hidden-xs"
>
{{item.inDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.createDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.updateDate}}
</td>
<td
class=
"hidden-xs"
>
{{item.remarks}}
</td>
<td>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:view"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.id}&action=view"
title=
"查看"
><i
class=
"fa fa-search-plus"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:edit"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.id}"
title=
"修改"
title=
"修改"
><i
class=
"fa fa-pencil"
></i></a>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:onetomany:testDataMain:del"
>
<a
href=
"${ctx}/test/onetomany/testDataMain/delete?id=${testDataMain.id}"
onclick=
"return confirmx('确认要删除该订票吗?', this.href)"
title=
"删除"
><i
class=
"fa fa-trash-o"
></i></a>
</shiro:hasPermission>
</td>
</tr>
</tbody>
</table>
<!-- 分页代码 -->
<div
v-html=
"result.html"
>
{{result.html}}
</div>
</div>
</div>
</div>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<script
src=
"/staticViews/viewBase.js"
></script>
<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/test/onetomany/testDataMainSelect.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
:
'
#beginInDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#endInDate
'
,
//目标元素。由于laydate.js封装了一个轻量级的选择器引擎,因此elem还允许你传入class、tag但必须按照这种方式 '#id .class'
event
:
'
focus
'
//响应事件。如果没有传入event,则按照默认的click
});
laydate
({
elem
:
'
#updateDate
'
,
//目标元素。由于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
office
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
office.id
"
);
var
area
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
area.id
"
);
var
name
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
name
"
);
var
sex
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
sex
"
);
var
inDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
inDate
"
);
var
createDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
createDate
"
);
var
updateDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
updateDate
"
);
var
remarks
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
remarks
"
);
var
obj
=
'
"id":id
'
;
if
(
office
.
id
==
undefined
)
office
.
id
=
""
;
obj
+=
'
,"office.id":"
'
+
office
.
id
+
'
"
'
;
if
(
area
.
id
==
undefined
)
area
.
id
=
""
;
obj
+=
'
,"area.id":"
'
+
area
.
id
+
'
"
'
;
if
(
name
==
undefined
)
name
=
""
;
obj
+=
'
,"name":"
'
+
name
+
'
"
'
;
if
(
sex
==
undefined
)
sex
=
""
;
obj
+=
'
,"sex":"
'
+
sex
+
'
"
'
;
if
(
inDate
==
undefined
)
inDate
=
""
;
obj
+=
'
,"inDate":"
'
+
inDate
+
'
"
'
;
if
(
createDate
==
undefined
)
createDate
=
""
;
obj
+=
'
,"createDate":"
'
+
createDate
+
'
"
'
;
if
(
updateDate
==
undefined
)
updateDate
=
""
;
obj
+=
'
,"updateDate":"
'
+
updateDate
+
'
"
'
;
if
(
remarks
==
undefined
)
remarks
=
""
;
obj
+=
'
,"remarks":"
'
+
remarks
+
'
"
'
;
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=
"testDataMain"
action=
"
${
ctx
}
/test/onetomany/testDataMain/"
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=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
" form-control input-sm"
/>
<span>
性别:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"sex"
items=
"
${
fns:
getDictList
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
加入日期:
</span>
<input
id=
"beginInDate"
name=
"beginInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
beginInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endInDate"
name=
"endInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
endInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
更新时间:
</span>
<input
id=
"updateDate"
name=
"updateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
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 office.name"
>
归属部门
</th>
<th
class=
"sort-column area.name"
>
归属区域
</th>
<th
class=
"sort-column name"
>
名称
</th>
<th
class=
"sort-column sex"
>
性别
</th>
<th
class=
"sort-column inDate"
>
加入日期
</th>
<th
class=
"sort-column createDate"
>
创建时间
</th>
<th
class=
"sort-column updateDate"
>
更新时间
</th>
<th
class=
"sort-column remarks"
>
备注信息
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"testDataMain"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${testDataMain.id}"
office.id=
"${testDataMain.office.id}"
area.id=
"${testDataMain.area.id}"
name=
"${testDataMain.name}"
sex=
"${testDataMain.sex}"
remarks=
"${testDataMain.remarks}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看订票', '${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.id}','800px', '500px')"
>
${testDataMain.office.name}
</a></td>
<td>
${testDataMain.area.name}
</td>
<td>
${testDataMain.name}
</td>
<td>
${fns:getDictLabel(testDataMain.sex, 'sex', '')}
</td>
<td>
<fmt:formatDate
value=
"
${
testDataMain
.
inDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
<fmt:formatDate
value=
"
${
testDataMain
.
createDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
${testDataMain.remarks}
</td>
<td>
<!--shiro:hasPermission name="test:onetomany:testDataMain:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看订票', '${ctx}/test/onetomany/testDataMain/form?id=${testDataMain.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/test/onetomany/testDataMainTotal.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"
%>
<script
src=
"/staticViews/modules/test/onetomany/testDataMainTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/onetomany/testDataMainTotal.css"
rel=
"stylesheet"
/>
</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>
<!-- 工具功能 -->
<%@ include
file=
"/WEB-INF/views/include/btnGroup.jsp"
%>
</div>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!-- 查询条件 -->
<form:form
id=
"searchForm"
modelAttribute=
"testDataMain"
action=
"
${
ctx
}
/test/onetomany/testDataMain/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>
</div>
<div
class=
"form-group"
>
<span>
名称:
</span>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
" form-control input-sm"
/>
</div>
<div
class=
"form-group"
>
<span>
性别:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"sex"
items=
"
${
fns:
getDictList
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</div>
<div
class=
"form-group"
>
<span>
加入日期:
</span>
<input
id=
"beginInDate"
name=
"beginInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
beginInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endInDate"
name=
"endInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
endInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
</div>
<div
class=
"form-group"
>
<span>
更新时间:
</span>
<input
id=
"updateDate"
name=
"updateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
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>
<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=
"testDataMain"
>
<tr>
<td>
${testDataMain.totalDate}
</td>
<td
style=
"text-align: right;"
class=
"totalCount"
>
${testDataMain.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
id=
"messageBox"
>
${message}
</div>
<script
src=
"/staticViews/viewBase.js"
></script>
</body>
</head>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/onetomany/testDataMainTotalMap.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/test/onetomany/testDataMainTotal.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/test/onetomany/testDataMainTotal.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=
"testDataMain"
action=
"
${
ctx
}
/test/onetomany/testDataMain/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=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
" form-control input-sm"
/>
<span>
性别:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"sex"
items=
"
${
fns:
getDictList
(
'sex'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
<span>
加入日期:
</span>
<input
id=
"beginInDate"
name=
"beginInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
beginInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
-
<input
id=
"endInDate"
name=
"endInDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
endInDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
更新时间:
</span>
<input
id=
"updateDate"
name=
"updateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
"
<fmt:formatDate
value=
"
${
testDataMain
.
updateDate
}
"
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=
"testDataMain"
>
{
title
:
"
${testDataMain.totalDate}<br>统计${testDataMain.totalCount}次
"
,
content
:
""
,
point
:(
113.271431
+
$
{
testDataMain
.
totalCount
})
+
"
|
"
+
(
23.135336
+
$
{
testDataMain
.
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/test/tree/testTreeForm.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>
数据字典管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"testTree"
action=
"
${
ctx
}
/test/tree/testTree/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<div
class=
"form-unit"
>
基本信息
</div>
<div
class=
"row"
>
<div
class=
"col-xs-6 form-group"
>
<label
class=
"control-label col-sm-4 pull-left"
><font
color=
"red"
>
*
</font>
名称:
</label>
<div
class=
"col-sm-8"
>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
"form-control required"
/>
</div>
</div>
<div
class=
"col-xs-6 form-group"
>
<label
class=
"control-label col-sm-4 pull-left"
><font
color=
"red"
>
*
</font>
排序:
</label>
<div
class=
"col-sm-8"
>
<form:input
path=
"sort"
htmlEscape=
"false"
class=
"form-control required digits"
/>
</div>
</div>
<div
class=
"col-xs-6 form-group"
>
<label
class=
"control-label col-sm-4 pull-left"
>
上级父级编号:
</label>
<div
class=
"col-sm-8"
>
<sys:treeselect
id=
"parent"
name=
"parent.id"
value=
"
${
testTree
.
parent
.
id
}
"
labelName=
"parent.name"
labelValue=
"
${
testTree
.
parent
.
name
}
"
title=
"父级编号"
url=
"/test/tree/testTree/treeData"
extId=
"
${
testTree
.
id
}
"
cssClass=
"form-control "
allowClear=
"true"
/>
</div>
</div>
<div
class=
"col-xs-6 form-group"
>
<label
class=
"control-label col-sm-4 pull-left"
>
备注信息:
</label>
<div
class=
"col-sm-8"
>
<form:textarea
path=
"remarks"
htmlEscape=
"false"
rows=
"4"
maxlength=
"255"
class=
"form-control "
/>
</div>
</div>
</div>
<div
id=
"iframeSave"
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>
</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
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
});
</script>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/test/tree/testTreeList.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/treetable.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=
"#"
class=
"btn btn-sm btn-default"
title=
"筛选"
><i
class=
"fa fa-filter"
></i>
筛选
</a>
<shiro:hasPermission
name=
"test:tree:testTree:add"
>
<a
id=
"btnAdd"
href=
"${ctx}/test/tree/testTree/form"
class=
"btn btn-default btn-sm"
title=
"新增"
><i
class=
"fa fa-plus"
></i>
新增
</a>
</shiro:hasPermission>
<button
data-placement=
"left"
onclick=
"refresh()"
class=
"btn btn-default btn-sm"
title=
"刷新"
><i
class=
"glyphicon glyphicon-repeat"
></i>
刷新
</button>
<!-- 工具功能 -->
<%@ include
file=
"/WEB-INF/views/include/btnGroup.jsp"
%>
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<!--查询条件-->
<form:form
id=
"searchForm"
modelAttribute=
"testTree"
action=
"
${
ctx
}
/test/tree/testTree/"
method=
"post"
class=
"form-inline"
>
<div
class=
"form-group"
>
<label>
名称:
</label>
<form:input
path=
"name"
htmlEscape=
"false"
maxlength=
"100"
class=
"form-control input-sm"
/>
</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=
"treeTable"
class=
"table table-hover table-condensed dataTables-example dataTable"
>
<thead>
<tr>
<th>
名称
</th>
<th>
备注信息
</th>
<shiro:hasPermission
name=
"test:tree:testTree:edit"
><th>
操作
</th></shiro:hasPermission>
</tr>
</thead>
<tbody
id=
"treeTableList"
></tbody>
</table>
</div>
</div>
</div>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
var
tpl
=
$
(
"
#treeTableTpl
"
).
html
().
replace
(
/
(\/\/
\<!
\-\-)
|
(\/\/\-\-
>
)
/g
,
""
);
var
data
=
$
{
fns
:
toJson
(
list
)},
ids
=
[],
rootIds
=
[];
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
ids
.
push
(
data
[
i
].
id
);
}
ids
=
'
,
'
+
ids
.
join
(
'
,
'
)
+
'
,
'
;
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
if
(
ids
.
indexOf
(
'
,
'
+
data
[
i
].
parentId
+
'
,
'
)
==
-
1
){
if
((
'
,
'
+
rootIds
.
join
(
'
,
'
)
+
'
,
'
).
indexOf
(
'
,
'
+
data
[
i
].
parentId
+
'
,
'
)
==
-
1
){
rootIds
.
push
(
data
[
i
].
parentId
);
}
}
}
for
(
var
i
=
0
;
i
<
rootIds
.
length
;
i
++
){
addRow
(
"
#treeTableList
"
,
tpl
,
data
,
rootIds
[
i
],
true
);
}
$
(
"
#treeTable
"
).
treeTable
({
expandLevel
:
5
});
});
function
addRow
(
list
,
tpl
,
data
,
pid
,
root
){
for
(
var
i
=
0
;
i
<
data
.
length
;
i
++
){
var
row
=
data
[
i
];
if
((
$
{
fns
:
jsGetVal
(
'
row.parentId
'
)})
==
pid
){
$
(
list
).
append
(
Mustache
.
render
(
tpl
,
{
dict
:
{
blank123
:
0
},
pid
:
(
root
?
0
:
pid
),
row
:
row
}));
addRow
(
list
,
tpl
,
data
,
row
.
id
);
}
}
}
function
refresh
(){
//刷新
window
.
location
=
"
${ctx}/test/tree/testTree/
"
;
}
</script>
<script
type=
"text/template"
id=
"treeTableTpl"
>
<
tr
id
=
"
{{row.id}}
"
pId
=
"
{{pid}}
"
>
<
td
><
a
href
=
"
#
"
onclick
=
"
openDialogView('查看树', '${ctx}/test/tree/testTree/form?id={{row.id}}','800px', '500px')
"
>
{{
row
.
name
}}
<
/a></
td
>
<
td
>
{{
row
.
remarks
}}
<
/td
>
<
td
>
<shiro:hasPermission
name=
"test:tree:testTree:view"
>
<
a
href
=
"
${ctx}/test/tree/testTree/form?id={{row.id}}
"
title
=
"
查看
"
><
i
class
=
"
fa fa-search-plus
"
><
/i></
a
>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:tree:testTree:edit"
>
<
a
href
=
"
${ctx}/test/tree/testTree/form?id={{row.id}}
"
title
=
"
修改
"
><
i
class
=
"
fa fa-pencil
"
><
/i></
a
>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:tree:testTree:del"
>
<
a
href
=
"
${ctx}/test/tree/testTree/delete?id={{row.id}}
"
onclick
=
"
return confirmx('确认要删除该树及所有子树吗?', this.href)
"
title
=
"
删除
"
><
i
class
=
"
fa fa-trash-o
"
><
/i></
a
>
</shiro:hasPermission>
<shiro:hasPermission
name=
"test:tree:testTree:add"
>
<
a
href
=
"
${ctx}/test/tree/testTree/form?parent.id={{row.id}}
"
><
i
class
=
"
fa fa-plus
"
><
/i> 添加下级树</
a
>
</shiro:hasPermission>
<
/td
>
<
/tr
>
</script>
<!-- 信息-->
<div
id=
"messageBox"
>
${message}
</div>
<%@ include
file=
"/WEB-INF/views/include/footJs.jsp"
%>
<script
src=
"/staticViews/viewBase.js"
></script>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/usercenter/sysUserCenterForm.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>
</head>
<body
class=
"gray-bg"
>
<form:form
id=
"inputForm"
modelAttribute=
"sysUserCenter"
action=
"
${
ctx
}
/usercenter/sysUserCenter/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<div
class=
"form-group"
>
<label
class=
"pull-left"
>
用户编号:
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"userId"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写用户编号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"pull-left"
>
用户名称:
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"userName"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写用户名称
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"pull-left"
>
用户手机号:
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"userPhone"
htmlEscape=
"false"
maxlength=
"64"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写用户手机号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"pull-left"
>
纬度:
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"lat"
htmlEscape=
"false"
maxlength=
"30"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写纬度
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"pull-left"
>
经度:
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"lng"
htmlEscape=
"false"
maxlength=
"30"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写经度
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"pull-left"
>
城市/地址/IP:
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
path=
"city"
htmlEscape=
"false"
maxlength=
"30"
class=
"form-control "
/>
<form:input
path=
"address"
htmlEscape=
"false"
maxlength=
"30"
class=
"form-control "
/>
<form:input
path=
"ip"
htmlEscape=
"false"
maxlength=
"30"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写城市/地址/IP
</div>
</div>
</div>
</form:form>
<div
id=
"iframeSave"
class=
"form-group ${action}"
>
<a
class=
"btn btn-success"
onclick=
"doSubmit();"
>
保存
</a>
<a
class=
"btn btn-primary"
onclick=
"top.closeSelectTabs()"
>
关闭
</a>
</div>
</div>
</body>
</html>
\ No newline at end of file
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/usercenter/sysUserCenterList.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
});
});
</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=
"sysUserCenter"
action=
"
${
ctx
}
/usercenter/sysUserCenter/"
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=
"userId"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
用户名称:
</span>
<form:input
path=
"userName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
用户手机号:
</span>
<form:input
path=
"userPhone"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
纬度:
</span>
<form:input
path=
"lat"
htmlEscape=
"false"
maxlength=
"30"
class=
" form-control input-sm"
/>
<span>
经度:
</span>
<form:input
path=
"lng"
htmlEscape=
"false"
maxlength=
"30"
class=
" form-control input-sm"
/>
<span>
城市:
</span>
<form:input
path=
"city"
htmlEscape=
"false"
maxlength=
"30"
class=
" form-control input-sm"
/>
<span>
地址:
</span>
<form:input
path=
"address"
htmlEscape=
"false"
maxlength=
"30"
class=
" form-control input-sm"
/>
<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=
"
${
sysUserCenter
.
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=
"
${
sysUserCenter
.
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=
"
${
sysUserCenter
.
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=
"
${
sysUserCenter
.
endUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
删除标记:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"delFlag"
items=
"
${
fns:
getDictList
(
'del_flag'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</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>
<shiro:hasPermission
name=
"usercenter:sysUserCenter:add"
>
<table:addRow
url=
"
${
ctx
}
/usercenter/sysUserCenter/form"
title=
"用户中心"
></table:addRow>
<!-- 增加按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"usercenter:sysUserCenter:edit"
>
<table:editRow
url=
"
${
ctx
}
/usercenter/sysUserCenter/form"
title=
"用户中心"
id=
"contentTable"
></table:editRow>
<!-- 编辑按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"usercenter:sysUserCenter:del"
>
<table:delRow
url=
"
${
ctx
}
/usercenter/sysUserCenter/deleteAll"
id=
"contentTable"
></table:delRow>
<!-- 删除按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"usercenter:sysUserCenter:import"
>
<table:importExcel
url=
"
${
ctx
}
/usercenter/sysUserCenter/import"
></table:importExcel>
<!-- 导入按钮 -->
</shiro:hasPermission>
<shiro:hasPermission
name=
"usercenter:sysUserCenter:export"
>
<table:exportExcel
url=
"
${
ctx
}
/usercenter/sysUserCenter/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()"
><i
class=
"fa fa-refresh"
></i>
重置
</button>
</div>
<div
class=
"pull-right"
>
<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>
<!-- 表格 -->
<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 userId"
>
用户编号
</th>
<th
class=
"sort-column userName"
>
用户名称
</th>
<th
class=
"sort-column userPhone"
>
用户手机号
</th>
<th
class=
"sort-column lat"
>
纬度
</th>
<th
class=
"sort-column lng"
>
经度
</th>
<th
class=
"sort-column city"
>
城市
</th>
<th
class=
"sort-column address"
>
地址
</th>
<th
class=
"sort-column createBy.id"
>
创建者
</th>
<th
class=
"sort-column createDate"
>
创建时间
</th>
<th
class=
"sort-column updateBy.id"
>
更新者
</th>
<th
class=
"sort-column updateDate"
>
更新时间
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"sysUserCenter"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${sysUserCenter.id}"
userId=
"${sysUserCenter.userId}"
userName=
"${sysUserCenter.userName}"
userPhone=
"${sysUserCenter.userPhone}"
lat=
"${sysUserCenter.lat}"
lng=
"${sysUserCenter.lng}"
createBy.id=
"${sysUserCenter.createBy.id}"
updateBy.id=
"${sysUserCenter.updateBy.id}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看用户中心', '${ctx}/usercenter/sysUserCenter/form?id=${sysUserCenter.id}','800px', '500px')"
>
${sysUserCenter.userId}
</a></td>
<td>
${sysUserCenter.userName}
</td>
<td>
${sysUserCenter.userPhone}
</td>
<td>
${sysUserCenter.lat}
</td>
<td>
${sysUserCenter.lng}
</td>
<td>
${sysUserCenter.city}
</td>
<td>
${sysUserCenter.address}
</td>
<td>
${sysUserCenter.createBy.id}
</td>
<td>
<fmt:formatDate
value=
"
${
sysUserCenter
.
createDate
}
"
pattern=
"yyyy-MM-dd"
/>
</td>
<td>
${sysUserCenter.updateBy.id}
</td>
<td>
<fmt:formatDate
value=
"
${
sysUserCenter
.
updateDate
}
"
pattern=
"yyyy-MM-dd"
/>
</td>
<td>
<!--shiro:hasPermission name="usercenter:sysUserCenter:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看用户中心', '${ctx}/usercenter/sysUserCenter/form?id=${sysUserCenter.id}','800px', '500px')"
class=
"btn btn-info btn-sm"
><i
class=
"fa fa-search-plus"
></i>
查看
</a>
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="usercenter:sysUserCenter:edit"-->
<a
href=
"#"
onclick=
"openDialog('修改用户中心', '${ctx}/usercenter/sysUserCenter/form?id=${sysUserCenter.id}','800px', '500px')"
class=
"btn btn-success btn-sm"
><i
class=
"fa fa-edit"
></i>
修改
</a>
<!--/shiro:hasPermission-->
<!--shiro:hasPermission name="usercenter:sysUserCenter:del"-->
<a
href=
"${ctx}/usercenter/sysUserCenter/delete?id=${sysUserCenter.id}"
onclick=
"return confirmx('确认要删除该用户中心吗?', this.href)"
class=
"btn btn-danger btn-sm"
><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
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/usercenter/sysUserCenterSelect.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
(){
// 正常打开
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
{
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
userId
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
userId
"
);
var
userName
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
userName
"
);
var
userPhone
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
userPhone
"
);
var
lat
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
lat
"
);
var
lng
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
lng
"
);
var
createBy
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
createBy.id
"
);
var
createDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
createDate
"
);
var
updateBy
.
id
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
updateBy.id
"
);
var
updateDate
=
$
(
"
#contentTable tbody tr td input.i-checks:checkbox:checked
"
).
attr
(
"
updateDate
"
);
var
obj
=
'
"id":id
'
;
if
(
userId
==
undefined
)
userId
=
""
;
obj
+=
'
,"userId":"
'
+
userId
+
'
"
'
;
if
(
userName
==
undefined
)
userName
=
""
;
obj
+=
'
,"userName":"
'
+
userName
+
'
"
'
;
if
(
userPhone
==
undefined
)
userPhone
=
""
;
obj
+=
'
,"userPhone":"
'
+
userPhone
+
'
"
'
;
if
(
lat
==
undefined
)
lat
=
""
;
obj
+=
'
,"lat":"
'
+
lat
+
'
"
'
;
if
(
lng
==
undefined
)
lng
=
""
;
obj
+=
'
,"lng":"
'
+
lng
+
'
"
'
;
if
(
createBy
.
id
==
undefined
)
createBy
.
id
=
""
;
obj
+=
'
,"createBy.id":"
'
+
createBy
.
id
+
'
"
'
;
if
(
createDate
==
undefined
)
createDate
=
""
;
obj
+=
'
,"createDate":"
'
+
createDate
+
'
"
'
;
if
(
updateBy
.
id
==
undefined
)
updateBy
.
id
=
""
;
obj
+=
'
,"updateBy.id":"
'
+
updateBy
.
id
+
'
"
'
;
if
(
updateDate
==
undefined
)
updateDate
=
""
;
obj
+=
'
,"updateDate":"
'
+
updateDate
+
'
"
'
;
if
(
window
.
opener
)
{
window
.
opener
.
returnValue
=
eval
(
"
({
"
+
obj
+
"
})
"
);
if
(
window
.
backup
!=
undefined
)
eval
(
"
window.opener.
"
+
window
.
opener
.
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-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=
"sysUserCenter"
action=
"
${
ctx
}
/usercenter/sysUserCenter/"
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=
"userId"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
用户名称:
</span>
<form:input
path=
"userName"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
用户手机号:
</span>
<form:input
path=
"userPhone"
htmlEscape=
"false"
maxlength=
"64"
class=
" form-control input-sm"
/>
<span>
纬度:
</span>
<form:input
path=
"lat"
htmlEscape=
"false"
maxlength=
"30"
class=
" form-control input-sm"
/>
<span>
经度:
</span>
<form:input
path=
"lng"
htmlEscape=
"false"
maxlength=
"30"
class=
" form-control input-sm"
/>
<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=
"
${
sysUserCenter
.
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=
"
${
sysUserCenter
.
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=
"
${
sysUserCenter
.
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=
"
${
sysUserCenter
.
endUpdateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<span>
删除标记:
</span>
<form:radiobuttons
class=
"i-checks"
path=
"delFlag"
items=
"
${
fns:
getDictList
(
'del_flag'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</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 userId"
>
用户编号
</th>
<th
class=
"sort-column userName"
>
用户名称
</th>
<th
class=
"sort-column userPhone"
>
用户手机号
</th>
<th
class=
"sort-column lat"
>
纬度
</th>
<th
class=
"sort-column lng"
>
经度
</th>
<th
class=
"sort-column createBy.id"
>
创建者
</th>
<th
class=
"sort-column createDate"
>
创建时间
</th>
<th
class=
"sort-column updateBy.id"
>
更新者
</th>
<th
class=
"sort-column updateDate"
>
更新时间
</th>
<th>
操作
</th>
</tr>
</thead>
<tbody>
<c:forEach
items=
"
${
page
.
list
}
"
var=
"sysUserCenter"
>
<tr>
<td>
<input
type=
"checkbox"
id=
"${sysUserCenter.id}"
userId=
"${sysUserCenter.userId}"
userName=
"${sysUserCenter.userName}"
userPhone=
"${sysUserCenter.userPhone}"
lat=
"${sysUserCenter.lat}"
lng=
"${sysUserCenter.lng}"
createBy.id=
"${sysUserCenter.createBy.id}"
updateBy.id=
"${sysUserCenter.updateBy.id}"
class=
"i-checks"
></td>
<td><a
href=
"#"
onclick=
"openDialogView('查看用户中心', '${ctx}/usercenter/sysUserCenter/form?id=${sysUserCenter.id}','800px', '500px')"
>
${sysUserCenter.userId}
</a></td>
<td>
${sysUserCenter.userName}
</td>
<td>
${sysUserCenter.userPhone}
</td>
<td>
${sysUserCenter.lat}
</td>
<td>
${sysUserCenter.lng}
</td>
<td>
${sysUserCenter.createBy.id}
</td>
<td>
<fmt:formatDate
value=
"
${
sysUserCenter
.
createDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
${sysUserCenter.updateBy.id}
</td>
<td>
<fmt:formatDate
value=
"
${
sysUserCenter
.
updateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
</td>
<td>
<!--shiro:hasPermission name="usercenter:sysUserCenter:view"-->
<a
href=
"#"
onclick=
"openDialogView('查看用户中心', '${ctx}/usercenter/sysUserCenter/form?id=${sysUserCenter.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/utils/map.jsp
0 → 100644
View file @
e2a64d42
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2017/11/30 0030
Time: 下午 2:54
To change this template use File | Settings | File Templates.
--%>
<%@ page
contentType=
"text/html;charset=UTF-8"
language=
"java"
%>
<!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
}
</style>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?key=&v=1.1&services=true"
></script>
</head>
<body
style=
"width: 100%; height: 100%;overflow: hidden"
>
<!--百度地图容器-->
<div
style=
"width:100%;height:100%;border:#ccc solid 1px;"
id=
"dituContent"
></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
(
$
{
lat
},
$
{
lng
});
//定义一个中心点坐标
map
.
centerAndZoom
(
point
,
12
);
//设定地图的中心点和坐标并将地图显示在地图容器中
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
lat
=
$
{
lat
}
+
0.05
;
var
lng
=
$
{
lng
}
+
0.05
;
//标注点数组
var
markerArr
=
[
{
title
:
"
我的位置
"
,
content
:
"
我的
"
,
point
:
"
${lat}|${lng}
"
,
isOpen
:
0
,
icon
:{
w
:
21
,
h
:
21
,
l
:
0
,
t
:
0
,
x
:
6
,
lb
:
5
}},
{
title
:
"
地标
"
,
content
:
"
地标
"
,
point
:
""
+
lat
+
"
|
"
+
lng
+
""
,
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
)});
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>
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/utils/mapUserCenter.jsp
0 → 100644
View file @
e2a64d42
<%--
Created by IntelliJ IDEA.
User: Administrator
Date: 2017/11/30 0030
Time: 下午 2:54
To change this template use File | Settings | File Templates.
--%>
<%@ 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
}
</style>
<script
type=
"text/javascript"
src=
"http://api.map.baidu.com/api?key=&v=1.1&services=true"
></script>
</head>
<body
style=
"width: 100%; height: 100%;overflow: hidden"
>
<!--查询条件-->
<div
class=
"row"
style=
"margin: 10px;"
>
<div
class=
"col-sm-12"
>
<form
id=
"searchForm"
action=
"${ctx}/../rest/utils/mapapi/getMapUserCenter"
method=
"post"
class=
"form-inline"
>
<div
class=
"form-group"
>
<span>
用户编号:
</span>
<input
name=
"userId"
htmlEscape=
"false"
maxlength=
"64"
value=
"${sysUserCenter.userId}"
class=
" form-control input-sm"
/>
<span>
用户名称:
</span>
<input
name=
"userName"
htmlEscape=
"false"
maxlength=
"64"
value=
"${sysUserCenter.userName}"
class=
" form-control input-sm"
/>
<span>
用户手机号:
</span>
<input
name=
"userPhone"
htmlEscape=
"false"
maxlength=
"64"
value=
"${sysUserCenter.userPhone}"
class=
" form-control input-sm"
/>
<span>
创建时间:
</span>
<input
id=
"beginCreateDate"
name=
"beginCreateDate"
type=
"text"
value=
"
<fmt:formatDate
value=
"
${
sysUserCenter
.
beginCreateDate
}
"
pattern=
"yyyy-MM-dd"
/>
"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
""
/>
-
<input
id=
"endCreateDate"
name=
"endCreateDate"
type=
"text"
value=
"
<fmt:formatDate
value=
"
${
sysUserCenter
.
endCreateDate
}
"
pattern=
"yyyy-MM-dd"
/>
"
maxlength=
"20"
class=
"laydate-icon form-control layer-date input-sm"
value=
""
/>
<input
type=
"submit"
value=
"查询"
/>
</div>
</form>
</div>
</div>
<!--百度地图容器-->
<div
style=
"width:100%;height:100%;border:#ccc solid 1px;"
id=
"dituContent"
></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=
"
${
sysUserCenterList
}
"
var=
"sysUserCenter"
>
{
title
:
"
${sysUserCenter.userName}<br>${sysUserCenter.userPhone}|
<fmt:formatDate
value=
"
${
sysUserCenter
.
createDate
}
"
pattern=
"yyyy-MM-dd HH:mm"
/>
"
,
content
:
"
${sysUserCenter.userId}|${sysUserCenter.userPhone}<br>${sysUserCenter.address}
"
,
point
:
"
${sysUserCenter.lng}|${sysUserCenter.lat}
"
,
isOpen
:
0
,
icon
:{
w
:
21
,
h
:
21
,
l
:
0
,
t
:
0
,
x
:
6
,
lb
:
5
}},
</c:forEach>
{
title
:
"
用户监控<br>日活用户数---${count}次。
"
,
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
:
"
180px
"
,
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>
JeeSpringCloud/jeespring-web/src/main/webapp/WEB-INF/views/modules/ylttrip/tfTicketForm.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>
订单管理
</div>
</div>
<!-- 内容盒子身体 -->
<div
class=
"box-body"
>
<form:form
id=
"inputForm"
modelAttribute=
"tfTicket"
action=
"
${
ctx
}
/ylttrip/tfTicket/save"
method=
"post"
class=
"form-horizontal content-background"
>
<div
class=
"content"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"
${
message
}
"
/>
<div
class=
"form-unit"
>
基本信息
</div>
<div
class=
"form-group"
>
<label
class=
"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=
"ticketNo"
htmlEscape=
"false"
maxlength=
"25"
class=
"form-control required"
/>
<div
class=
"help-block"
>
请填写订单编号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
商品编号
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"商品编号"
path=
"goodsNo"
htmlEscape=
"false"
maxlength=
"25"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写商品编号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
种类编号
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"种类编号"
path=
"goodsItemId"
htmlEscape=
"false"
maxlength=
"255"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写种类编号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
种类名称
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"种类名称"
path=
"goodsItemName"
htmlEscape=
"false"
maxlength=
"255"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写种类名称
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
商品数量
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"商品数量"
path=
"goodsNum"
htmlEscape=
"false"
maxlength=
"11"
class=
"form-control digits"
/>
<div
class=
"help-block"
>
请填写商品数量
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
商品单价
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"商品单价"
path=
"price"
htmlEscape=
"false"
class=
"form-control number"
/>
<div
class=
"help-block"
>
请填写商品单价
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
订单金额
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"订单金额"
path=
"salePrice"
htmlEscape=
"false"
class=
"form-control number"
/>
<div
class=
"help-block"
>
请填写订单金额
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
下单人
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<sys:treeselect
id=
"user"
name=
"user.id"
value=
"
${
tfTicket
.
user
.
id
}
"
labelName=
"user.name"
labelValue=
"
${
tfTicket
.
user
.
name
}
"
title=
"用户"
url=
"/sys/office/treeData?type=3"
cssClass=
"form-control "
allowClear=
"true"
notAllowSelectParent=
"true"
/>
<div
class=
"help-block"
>
请选择下单人
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
下单时间
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<input
id=
"orderDate"
name=
"orderDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date "
value=
"
<fmt:formatDate
value=
"
${
tfTicket
.
orderDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<div
class=
"help-block"
>
请选择下单时间
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
订单状态
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:radiobuttons
path=
"state"
items=
"
${
fns:
getDictList
(
'STATE'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请选择订单状态
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
状态时间
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<input
id=
"stateDate"
name=
"stateDate"
type=
"text"
maxlength=
"20"
class=
"laydate-icon form-control layer-date "
value=
"
<fmt:formatDate
value=
"
${
tfTicket
.
stateDate
}
"
pattern=
"yyyy-MM-dd HH:mm:ss"
/>
"
/>
<div
class=
"help-block"
>
请选择状态时间
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
客户姓名
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"客户姓名"
path=
"custName"
htmlEscape=
"false"
maxlength=
"50"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写客户姓名
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
联系电话
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"联系电话"
path=
"linkPhone"
htmlEscape=
"false"
maxlength=
"50"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写联系电话
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
收货地址
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"收货地址"
path=
"address"
htmlEscape=
"false"
maxlength=
"500"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写收货地址
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
付款方式
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:radiobuttons
path=
"payType"
items=
"
${
fns:
getDictList
(
'PAY_TYPE'
)
}
"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
class=
"i-checks "
/>
<div
class=
"help-block"
>
请选择付款方式
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
入园号
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"入园号"
path=
"checkinCode"
htmlEscape=
"false"
maxlength=
"255"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写入园号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"col-sm-2 pull-left"
>
票务系统订单号
</label>
<div
class=
"col-sm-9 col-lg-10 col-xs-12"
>
<form:input
placeholder=
"票务系统订单号"
path=
"reserveId"
htmlEscape=
"false"
maxlength=
"30"
class=
"form-control "
/>
<div
class=
"help-block"
>
请填写票务系统订单号
</div>
</div>
</div>
<div
class=
"form-group"
>
<label
class=
"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=
"/ylttrip/tfTicket"
/>
</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/ylttrip/tfTicketForm.js"
type=
"text/javascript"
></script>
<link
href=
"/staticViews/modules/ylttrip/tfTicketForm.css"
rel=
"stylesheet"
/>
</body>
</html>
\ No newline at end of file
Prev
1
…
11
12
13
14
15
16
17
18
19
…
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