Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
sunac_report
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
java-sunac-report
sunac_report
Commits
b447f266
Commit
b447f266
authored
Nov 10, 2017
by
xurui
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
跟踪页面被覆盖重新提交
parent
d169b5dc
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
309 additions
and
247 deletions
+309
-247
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+309
-247
No files found.
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
b447f266
<
%@
taglib
prefix=
"from"
uri=
"http://www.springframework.org/tags/form"
%
>
<
%@
page
contentType=
"text/html;charset=UTF-8"
%
>
<
%@
include
file=
"/WEB-INF/views/include/taglib.jsp"
%
>
<html>
...
...
@@ -10,6 +9,9 @@
$
(
document
).
ready
(
function
()
{
$
(
"#inputForm"
).
validate
({
submitHandler
:
function
(
form
)
{
messages
:
{
supplementContent
:
{
maxlength
:
"最多输入{0}个字符"
}
}
if
(
$
(
"#supplementType"
).
val
()
==
" "
){
top
.
$
.
jBox
.
tip
(
'请选择业务类型'
,
'warning'
);
}
else
if
(
$
(
"#supplementArea"
).
val
()
==
" "
){
...
...
@@ -106,24 +108,23 @@
path
+=
"标题:${report.supplementTitle}</br>"
;
path
+=
"被举报公司:${report.supplementCompany}</br>"
;
path
+=
"被举报部门:${report.supplementDepartment}</br>"
;
//12:01注
<%--
var
supplementType
=
"${report.supplementType}"
;
--%>
<%--
if
(
supplementType
==
"1"
){
--%>
<%--
supplementType
=
"营销"
;
--%>
<%--
}
else
if
(
supplementType
==
"2"
){
--%>
<%--
supplementType
=
"工程"
;
--%>
<%--
}
else
if
(
supplementType
==
"3"
){
--%>
<%--
supplementType
=
"成本"
;
--%>
<%--
}
else
if
(
supplementType
==
"4"
){
--%>
<%--
supplementType
=
"招采"
;
--%>
<%--
}
else
if
(
supplementType
==
"5"
){
--%>
<%--
supplementType
=
"人力"
;
--%>
<%--
}
else
if
(
supplementType
==
"6"
){
--%>
<%--
supplementType
=
"物业"
;
--%>
<%--
}
else
if
(
supplementType
==
"7"
){
--%>
<%--
supplementType
=
"投诉"
;
--%>
<%--
}
--%>
// path += "业务类型:"+supplementType+"
<
/br>"
;
var
supplementType
=
"${report.supplementType}"
;
if
(
supplementType
==
"1"
){
supplementType
=
"营销"
;
}
else
if
(
supplementType
==
"2"
){
supplementType
=
"工程"
;
}
else
if
(
supplementType
==
"3"
){
supplementType
=
"成本"
;
}
else
if
(
supplementType
==
"4"
){
supplementType
=
"招采"
;
}
else
if
(
supplementType
==
"5"
){
supplementType
=
"人力"
;
}
else
if
(
supplementType
==
"6"
){
supplementType
=
"物业"
;
}
else
if
(
supplementType
==
"7"
){
supplementType
=
"投诉"
;
}
path
+=
"业务类型:"
+
supplementType
+
"</br>"
;
var
supplementArea
=
"${report.supplementArea}"
;
if
(
supplementArea
==
"North China"
){
supplementArea
=
"华北区域公司"
;
...
...
@@ -156,16 +157,16 @@
console
.
log
(
path
);
window
.
location
.
href
=
path
;
});
var
checkedNumber
=
"${report.supplementType}"
;
var
number
=
checkedNumber
.
split
(
","
);
var
ck
=
document
.
getElementsByName
(
"supplementType"
);
for
(
var
i
=
0
;
i
<
number
.
length
;
i
++
)
{
ck
[
number
[
i
]
-
1
].
checked
=
true
;
}
});
// 处理结果的隐藏和显示
// function doSome() {
// var dealResult = $("#dealResult option:selected").text();
// if(dealResult == "举报受理") {
// $("#dhide").attr("style","display:block");
// }else {
// $("#dhide").attr("style","display:none");
// }
// }
</script>
<style
type=
"text/css"
>
.title
{
...
...
@@ -196,6 +197,12 @@
z-index
:
1002
;
overflow
:
auto
;
}
/*#isTrue {*/
/*padding-left:180px;*/
/*height:45px;*/
/*line-height:45px;*/
/*}*/
#chooseContent
{
margin
:
20px
20px
20px
20px
;
}
...
...
@@ -208,60 +215,57 @@
<br/>
<form:form
id=
"inputForm"
modelAttribute=
"report"
action=
"${ctx}/report/addTrack"
method=
"post"
class=
"form-horizontal"
>
<form:hidden
path=
"id"
/>
<sys:message
content=
"${message}"
/>
<div
id=
"attachment1"
style=
"display: none"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:forEach
items=
"${reportAttachmentList}"
var=
"reportAttachment"
varStatus=
"vs"
>
<a
href=
"${reportAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${reportAttachment.attachmentName}
</a><br>
</c:forEach>
</c:if>
</div>
<span
class=
"title"
>
举报信息补充
</span>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报公司:
</label>
<div
class=
"controls"
>
<form:input
path=
"supplementCompany"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
<form:hidden
path=
"id"
/>
<sys:message
content=
"${message}"
/>
<div
id=
"attachment1"
style=
"display: none"
>
<c:if
test=
"${supplementAttachmentList ne null}"
>
<c:forEach
items=
"${reportAttachmentList}"
var=
"reportAttachment"
varStatus=
"vs"
>
<a
href=
"${reportAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${reportAttachment.attachmentName}
</a><br>
</c:forEach>
</c:if>
</div>
<span
class=
"title"
>
举报信息补充
</span>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报公司:
</label>
<div
class=
"controls"
>
<form:input
path=
"supplementCompany"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报部门:
</label
>
<div
class=
"controls"
>
<form:input
path=
"supplementDepartment"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/
>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
<
/div
>
</div
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报部门:
</label
>
<div
class=
"controls"
>
<form:input
path=
"supplementDepartment"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/
>
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
标题:
</label
>
<div
class=
"controls"
>
<form:input
path=
"supplementTitle"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/
>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
<
/div
>
</div
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
标题:
</label
>
<div
class=
"controls"
>
<form:input
path=
"supplementTitle"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/
>
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类型:
</label>
<div
class=
"controls"
>
<span
class=
"supplementType"
>
<form:checkboxes
path=
"supplementType"
items=
"${fns:getDictList('supplement_type')}"
itemLabel=
"label"
itemValue=
"value"
/>
</span>
<
%
--
<
form:select
id=
"supplementType"
path=
"supplementType"
class=
"input-small required"
>
--%>
<
%
--
<
form:option
value=
" "
>
请选择
</form:option>
--%>
<
%
--
<
form:options
items=
"${fns:getDictList('supplement_type')}"
itemLabel=
"label"
itemValue=
"value"
--
%
>
<
%
--htmlEscape=
"false"
/></form:select>
--%>
<
%
--
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
--%>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类型:
</label>
<div
class=
"controls"
>
<form:select
id=
"supplementType"
path=
"supplementType"
class=
"input-small required"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${fns:getDictList('supplement_type')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/></form:select>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label
>
<div
class=
"controls"
>
<form:select
id=
"supplementArea"
path=
"supplementArea"
class=
"input-small required
"
>
<form:option
value=
" "
>
请选择
</form:option
>
<form:options
items=
"${fns:getDictList('supplement_area')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/></form:select>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
<
/div
>
</div
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label
>
<div
class=
"controls
"
>
<form:select
id=
"supplementArea"
path=
"supplementArea"
class=
"input-small required"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${fns:getDictList('supplement_area')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/></form:select
>
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span
>
</div>
</div>
<
%
--
<
div
class=
"control-group"
>
--%>
<
%
--
<
label
class=
"control-label"
>
被举报项目:
</label>
--%>
<
%
--
<
div
class=
"controls"
>
--%>
...
...
@@ -269,58 +273,117 @@
<
%
--
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
--%>
<
%
--
</
div
>
--%>
<
%
--
</
div
>
--%>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
内容:
</label>
<div
class=
"controls"
>
<form:textarea
id=
"supplementContent"
htmlEscape=
"true"
path=
"supplementContent"
rows=
"4"
maxlength=
"500"
class=
"input-xxlarge"
/>
</div
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
内容:
</label>
<div
class=
"controls"
>
<form:textarea
id=
"supplementContent"
htmlEscape=
"true"
path=
"supplementContent"
rows=
"4"
maxlength=
"500"
class=
"input-xxlarge"
placeholder=
"最多输入3000个字符"
/
>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
附件:
</label
>
<div
id=
"attachment2"
class=
"controls"
>
<c:if
test=
"${supplementAttachmentList ne null}
"
>
<c:forEach
items=
"${supplementAttachmentList}"
var=
"supplementAttachment"
varStatus=
"vs
"
>
<a
href=
"${supplementAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${supplementAttachment.attachmentName}
</a><br
>
</c:forEach
>
</c:
if
>
<form:hidden
id=
"nameFile"
path=
"supplementAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"nameFile"
type=
"files"
uploadPath=
"/file"
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/>
</div
>
</div
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
附件:
</label
>
<div
id=
"attachment2"
class=
"controls
"
>
<c:if
test=
"${supplementAttachmentList ne null}
"
>
<c:forEach
items=
"${supplementAttachmentList}"
var=
"supplementAttachment"
varStatus=
"vs"
>
<a
href=
"${supplementAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${supplementAttachment.attachmentName}
</a><br
>
</c:
forEach
>
</c:if>
<form:hidden
id=
"nameFile"
path=
"supplementAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"nameFile"
type=
"files"
uploadPath=
"/file"
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/
>
</div>
<span
class=
"title"
>
处理结果
</span>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理人:
</label>
<div
class=
"controls"
>
<form:input
path=
"dealPersonName"
value=
"${currentUser}"
disabled=
"true"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
<
%
--
<
span
class=
"title"
>
信息分类
</span>
--%>
<
%
--
<
div
class=
"control-group"
>
--%>
<
%
--
<
c:if
test=
"${report.dealResult ne '3'}"
>
--%>
<
%
--
<
label
class=
"control-label"
>
处理结论:
</label>
--%>
<
%
--
<
div
class=
"controls"
>
--%>
<
%
--
&
lt
;%&
ndash
;
<
form:select
path=
"dealResult"
class=
"input-small required"
onchange=
"doSome()"
>
–
%
>
--%>
<
%
--
<
form:select
path=
"dealResult"
class=
"input-small required"
>
--%>
<
%
--
<
form:option
value=
" "
>
请选择
</form:option>
--%>
<
%
--
<
form:options
items=
"${fns:getDictList('deal_result')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
--%>
<
%
--
</
form:select
>
--%>
<
%
--
</
div
>
--%>
<
%
--
</
c:if
>
--%>
<
%
--
<
c:if
test=
"${report.dealResult eq '3'}"
>
--%>
<
%
--
<
div
class=
"control-group"
>
--%>
<
%
--
<
label
class=
"control-label"
>
处理结论:
</label>
--%>
<
%
--
<
div
class=
"controls"
>
--%>
<
%
--
&
lt
;%&
ndash
;
<
form:select
path=
"dealResult"
class=
"input-small required"
onchange=
"doSome()"
>
–
%
>
--%>
<
%
--
<
form:select
path=
"dealResult"
class=
"input-small required"
>
--%>
<
%
--
<
form:option
value=
" "
>
请选择
</form:option>
--%>
<
%
--
<
form:option
value=
"dealed"
>
已处理
</form:option>
--%>
<
%
--
<
form:option
value=
"dealing"
>
受理中
</form:option>
--%>
<
%
--
</
form:select
>
--%>
<
%
--
</
div
>
--%>
<
%
--
&
lt
;%&
ndash
;<
div
id=
"isTrue"
class=
"isTrue"
>
–
%
>
--%>
<
%
--
&
lt
;%&
ndash
;<
input
path=
"true"
type=
"radio"
value=
""
/>
属实
–
%
>
--%>
<
%
--
&
lt
;%&
ndash
;<
input
path=
"notTrue"
type=
"radio"
value=
""
/>
不属实
–
%
>
--%>
<
%
--
&
lt
;%&
ndash
;</
div
>
–
%
>
--%>
<
%
--
</
div
>
--%>
<
%
--
</
c:if
>
--%>
<
%
--
&
lt
;%&
ndash
;
<
div
id=
"dhide"
style=
"display:none"
>
–
%
>
--%>
<
%
--
<
span
class=
"title"
>
处理结果
</span>
--%>
<
%
--
<
div
class=
"control-group"
>
--%>
<
%
--
<
label
class=
"control-label"
>
处理人:
</label>
--%>
<
%
--
<
div
class=
"controls"
>
--%>
<
%
--
<
form:input
path=
"dealPersonName"
value=
"${currentUser}"
disabled=
"true"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
--%>
<
%
--
<
span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
--%>
<
%
--
</
div
>
--%>
<
%
--
</
div
>
--%>
<
%
--
<
div
class=
"control-group"
>
--%>
<
%
--
<
label
class=
"control-label"
>
处理成果文件:
</label>
--%>
<
%
--
<
div
id=
"attachment3"
class=
"controls"
>
--%>
<
%
--
<
c:if
test=
"${dealAttachmentList ne null}"
>
--%>
<
%
--
<
c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs"
>
--%>
<
%
--
&
nbsp
;&
nbsp
;<
a
href=
"${dealAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br>
--%>
<
%
--
</
c:forEach
>
--%>
<
%
--
</
c:if
>
--%>
<
%
--
<
form:hidden
id=
"dealFile"
path=
"dealAttachment"
htmlEscape=
"false"
--
%
>
<
%
--maxlength=
"255"
class=
"input-xlarge"
/>
--%>
<
%
--
<
sys:ckfinder
input=
"dealFile"
type=
"files"
uploadPath=
"/file"
--
%
>
<
%
--selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/>
--%>
<
%
--
<
label
id=
"checkFile"
class=
"error"
style=
"display: none;"
>
必填信息
</label>
--%>
<
%
--
</
div
>
--%>
<
%
--
</
div
>
--%>
<
%
--
</
div
>
--%>
<span
class=
"title"
>
处理结果
</span>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理人:
</label>
<div
class=
"controls"
>
<form:input
path=
"dealPersonName"
value=
"${currentUser}"
disabled=
"true"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理成果文件:
</label
>
<div
id=
"attachment3"
class=
"controls"
>
<c:if
test=
"${dealAttachmentList ne null}
"
>
<c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs
"
>
<a
href=
"${dealAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br
>
</c:forEach
>
</c:
if
>
<form:hidden
id=
"dealFile"
path=
"dealAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"dealFile"
type=
"files"
uploadPath=
"/file"
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/>
<label
id=
"checkFile"
class=
"error"
style=
"display: none;"
>
必填信息
</label
>
<
/div
>
</div
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理成果文件:
</label
>
<div
id=
"attachment3"
class=
"controls
"
>
<c:if
test=
"${dealAttachmentList ne null}
"
>
<c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs"
>
<a
href=
"${dealAttachment.attachmentPath}"
class=
"attachmentClass"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br
>
</c:
forEach
>
</c:if>
<form:hidden
id=
"dealFile"
path=
"dealAttachment"
htmlEscape=
"false"
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"dealFile"
type=
"files"
uploadPath=
"/file"
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/
>
<
label
id=
"checkFile"
class=
"error"
style=
"display: none;"
>
必填信息
</label
>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理结论:
</label>
<div
class=
"controls"
>
<form:select
path=
"dealResult"
class=
"input-small required"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${fns:getDictList('deal_result')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/></form:select>
</div>
<br>
<label
class=
"control-label"
>
处理结论:
</label>
<div
class=
"controls"
>
<form:select
path=
"dealResult"
class=
"input-small required"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${fns:getDictList('deal_result')}"
itemLabel=
"label"
itemValue=
"value"
htmlEscape=
"false"
/>
</form:select>
</div>
<br>
<c:if
test=
"${report.dealResult eq '3'}"
>
<div
class=
"controls"
>
<input
type=
"checkbox"
id=
"ifDone"
name=
"ifDone"
value=
"ifDone"
/>
是否完成
</div>
</c:if>
<span
class=
"title"
>
移交他人处理
</span>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
移交:
</label>
...
...
@@ -333,145 +396,145 @@
<input
id=
"btnSubmit"
class=
"btn btn-primary"
type=
"submit"
value=
"提交"
/>
<input
id=
"btnMail"
class=
"btn btn-primary"
type=
"button"
value=
"发邮件"
/>
</div>
</form:form>
<div
id=
"fade"
class=
"black_overlay"
></div>
<div
id=
"chooseDiv"
class=
"white_content"
>
<div
id=
"chooseContent"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"#btnSearch"
).
click
(
function
()
{
</form:form>
<div
id=
"fade"
class=
"black_overlay"
></div>
<div
id=
"chooseDiv"
class=
"white_content"
>
<div
id=
"chooseContent"
>
<script
type=
"text/javascript"
>
$
(
document
).
ready
(
function
()
{
$
(
"#btnSearch"
).
click
(
function
()
{
$
.
ajax
({
url
:
"${ctx}/report/viewTransfer?flag=1"
,
dataType
:
"html"
,
data
:
$
(
'#searchForm'
).
serialize
(),
cache
:
false
,
beforeSend
:
function
()
{
// 禁用按钮防止重复提交
$
(
"#btnSearch"
).
attr
({
disabled
:
"disabled"
});
},
success
:
function
(
data
)
{
//登录成功后返回的数据
$
(
"#userList"
).
empty
();
$
(
"#userList"
).
html
(
$
(
data
));
},
error
:
function
(){
alert
(
"数据错误!"
);
},
complete
:
function
()
{
$
(
"#btnSearch"
).
removeAttr
(
"disabled"
);
}
});
});
$
(
"input:radio"
).
click
(
function
()
{
$
(
"input:radio"
).
attr
(
"checked"
,
false
);
$
(
"#chooseItem"
).
empty
();
$
(
this
).
attr
(
"checked"
,
true
);
$
(
"#chooseItem"
).
html
(
"已选择 "
+
b
.
parent
().
next
().
next
().
next
().
html
()
+
"<span onclick='remove();'><font size='5'> ×</font></span>"
);
});
});
function
chooseRen
(
obj
)
{
$
(
"input:radio"
).
attr
(
"checked"
,
false
);
$
(
"#chooseItem"
).
empty
();
obj
.
checked
=
true
;
$
(
"#chooseItem"
).
html
(
"已选择 "
+
$
(
"input:radio:checked"
).
parent
().
next
().
next
().
next
().
html
()
+
"<span onclick='remove();'><font size='5'> ×</font></span>"
);
}
function
remove
(){
$
(
"input:radio"
).
attr
(
"checked"
,
false
);
$
(
"#chooseItem"
).
empty
();
}
function
page
(
n
,
s
){
$
(
"#pageNo"
).
val
(
n
);
$
(
"#pageSize"
).
val
(
s
);
$
.
ajax
({
url
:
"${ctx}/report/viewTransfer?flag=1"
,
dataType
:
"html"
,
data
:
$
(
'#searchForm'
).
serialize
(),
cache
:
false
,
beforeSend
:
function
()
{
// 禁用按钮防止重复提交
$
(
"#btnSearch"
).
attr
({
disabled
:
"disabled"
});
},
success
:
function
(
data
)
{
//登录成功后返回的数据
$
(
"#userList"
).
empty
();
$
(
"#userList"
).
html
(
$
(
data
));
},
error
:
function
(){
alert
(
"数据错误!"
);
},
complete
:
function
()
{
$
(
"#btnSearch"
).
removeAttr
(
"disabled"
);
}
});
});
$
(
"input:radio"
).
click
(
function
()
{
$
(
"input:radio"
).
attr
(
"checked"
,
false
);
$
(
"#chooseItem"
).
empty
();
$
(
this
).
attr
(
"checked"
,
true
);
$
(
"#chooseItem"
).
html
(
"已选择 "
+
$
(
"input:radio:checked"
).
parent
().
next
().
next
().
next
().
html
()
+
"<span onclick='remove();'><font size='5'> ×</font></span>"
);
});
});
function
chooseRen
(
obj
)
{
$
(
"input:radio"
).
attr
(
"checked"
,
false
);
$
(
"#chooseItem"
).
empty
();
obj
.
checked
=
true
;
$
(
"#chooseItem"
).
html
(
"已选择 "
+
$
(
"input:radio:checked"
).
parent
().
next
().
next
().
next
().
html
()
+
"<span onclick='remove();'><font size='5'> ×</font></span>"
);
}
function
remove
(){
$
(
"input:radio"
).
attr
(
"checked"
,
false
);
$
(
"#chooseItem"
).
empty
();
}
function
page
(
n
,
s
){
$
(
"#pageNo"
).
val
(
n
);
$
(
"#pageSize"
).
val
(
s
);
$
.
ajax
({
url
:
"${ctx}/report/viewTransfer?flag=1"
,
dataType
:
"html"
,
data
:
$
(
'#searchForm'
).
serialize
(),
cache
:
false
,
success
:
function
(
data
)
{
//登录成功后返回的数据
$
(
"#userList"
).
empty
();
$
(
"#userList"
).
html
(
$
(
data
));
},
error
:
function
(){
alert
(
"数据错误!"
);
}
});
return
false
;
}
function
resetPageNo
()
{
$
(
"#pageNo"
).
val
(
0
);
}
</script>
<span
class=
"title"
>
选择移交人员
</span>
<form:form
id=
"searchForm"
modelAttribute=
"user"
action=
"#"
method=
"post"
class=
"breadcrumb form-search"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<ul
class=
"ul-form"
>
<li><label>
员工号:
</label><form:input
onchange=
"resetPageNo();"
path=
"no"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-small"
/></li>
<li><label>
姓名:
</label><form:input
onchange=
"resetPageNo();"
path=
"name"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-small"
/></li>
<li><label>
手机号:
</label><form:input
onchange=
"resetPageNo();"
path=
"mobile"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-small"
/></li>
<li><label>
公司:
</label><form:select
onchange=
"resetPageNo();"
path=
"company.id"
class=
"input-small "
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${companyList}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/>
</form:select></li>
<li
class=
"clearfix"
></li>
<li><label>
部门:
</label><form:select
onchange=
"resetPageNo();"
path=
"office.id"
class=
"input-small"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${officeList}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/></form:select></li>
<li><label>
职位:
</label><form:select
onchange=
"resetPageNo();"
path=
"position.name"
class=
"input-small"
>
<form:option
value=
" "
selected=
"selected"
>
请选择
</form:option>
<form:options
items=
"${positionList}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/></form:select></li>
<li
class=
"btns"
>
<label
style=
"width:auto;"
><input
id=
"btnSearch"
class=
"btn btn-primary"
type=
"button"
value=
"筛选"
/>
</label>
</li>
<li
class=
"clearfix"
></li>
</ul>
</form:form>
<div
id=
"userList"
>
<table
id=
"contentTable"
class=
"table table-striped table-bordered table-condensed"
>
<thead>
<tr>
<th>
选择
</th>
<th>
ID
</th>
<th>
员工号
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
所属公司
</th>
<th>
所属部门
</th>
<th>
职位
</th>
</tr>
</thead>
<tbody>
return
false
;
}
function
resetPageNo
()
{
$
(
"#pageNo"
).
val
(
0
);
}
</script>
<span
class=
"title"
>
选择移交人员
</span>
<form:form
id=
"searchForm"
modelAttribute=
"user"
action=
"#"
method=
"post"
class=
"breadcrumb form-search"
>
<input
id=
"pageNo"
name=
"pageNo"
type=
"hidden"
value=
"${page.pageNo}"
/>
<input
id=
"pageSize"
name=
"pageSize"
type=
"hidden"
value=
"${page.pageSize}"
/>
<ul
class=
"ul-form"
>
<li><label>
员工号:
</label><form:input
onchange=
"resetPageNo();"
path=
"no"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-small"
/></li>
<li><label>
姓名:
</label><form:input
onchange=
"resetPageNo();"
path=
"name"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-small"
/></li>
<li><label>
手机号:
</label><form:input
onchange=
"resetPageNo();"
path=
"mobile"
htmlEscape=
"false"
maxlength=
"50"
class=
"input-small"
/></li>
<li><label>
公司:
</label><form:select
onchange=
"resetPageNo();"
path=
"company.id"
class=
"input-small "
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${companyList}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/>
</form:select></li>
<li
class=
"clearfix"
></li>
<li><label>
部门:
</label><form:select
onchange=
"resetPageNo();"
path=
"office.id"
class=
"input-small"
>
<form:option
value=
" "
>
请选择
</form:option>
<form:options
items=
"${officeList}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/></form:select></li>
<li><label>
职位:
</label><form:select
onchange=
"resetPageNo();"
path=
"position.name"
class=
"input-small"
>
<form:option
value=
" "
selected=
"selected"
>
请选择
</form:option>
<form:options
items=
"${positionList}"
itemLabel=
"name"
itemValue=
"id"
htmlEscape=
"false"
/></form:select></li>
<li
class=
"btns"
>
<label
style=
"width:auto;"
><input
id=
"btnSearch"
class=
"btn btn-primary"
type=
"button"
value=
"筛选"
/>
</label>
</li>
<li
class=
"clearfix"
></li>
</ul>
</form:form>
<div
id=
"userList"
>
<table
id=
"contentTable"
class=
"table table-striped table-bordered table-condensed"
>
<thead>
<tr>
<th>
选择
</th>
<th>
ID
</th>
<th>
员工号
</th>
<th>
姓名
</th>
<th>
手机号
</th>
<th>
所属公司
</th>
<th>
所属部门
</th>
<th>
职位
</th>
</tr>
</thead>
<tbody>
<c:if
test=
"${page.list.size()>0}"
>
<c:forEach
items=
"${page.list}"
var=
"user"
varStatus=
"vs"
>
<tr>
<td
id=
"radioBtn"
><input
type=
"radio"
value=
"${user.id}"
></td>
<td>
${vs.count}
</td>
<td>
${user.no}
</td>
<td>
${user.name}
</td>
<td>
${user.mobile}
</td>
<td>
${user.company.name}
</td>
<td>
${user.office.name}
</td>
<td>
${user.position.name}
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
<span
id=
"chooseItem"
></span>
<c:if
test=
"${page.list.size()=='0'}"
>
<span
style=
"color: #999999;margin: 20px 0 70px 20px;display: block;"
>
未查询到相关内容
</span>
</c:if>
<c:if
test=
"${page.list.size()>0}"
>
<c:forEach
items=
"${page.list}"
var=
"user"
varStatus=
"vs"
>
<tr>
<td
id=
"radioBtn"
><input
type=
"radio"
value=
"${user.id}"
></td>
<td>
${vs.count}
</td>
<td>
${user.no}
</td>
<td>
${user.name}
</td>
<td>
${user.mobile}
</td>
<td>
${user.company.name}
</td>
<td>
${user.office.name}
</td>
<td>
${user.position.name}
</td>
</tr>
</c:forEach>
<div
class=
"pagination"
>
${page}
</div>
</c:if>
</tbody>
</table>
<span
id=
"chooseItem"
></span>
<c:if
test=
"${page.list.size()=='0'}"
>
<span
style=
"color: #999999;margin: 20px 0 70px 20px;display: block;"
>
未查询到相关内容
</span>
</c:if>
<c:if
test=
"${page.list.size()>0}"
>
<div
class=
"pagination"
>
${page}
</div>
</c:if>
</div>
<li
class=
"btns"
>
<label
style=
"width:auto;"
><input
id=
"btnConfirm"
class=
"btn btn-primary"
type=
"button"
value=
"确定"
/>
<input
id=
"btnClose"
class=
"btn btn-primary"
type=
"button"
value=
"关闭"
/></label>
</li>
</div>
<li
class=
"btns"
>
<label
style=
"width:auto;"
><input
id=
"btnConfirm"
class=
"btn btn-primary"
type=
"button"
value=
"确定"
/>
<input
id=
"btnClose"
class=
"btn btn-primary"
type=
"button"
value=
"关闭"
/></label>
</li>
</div>
</div>
</body>
</html>
\ No newline at end of file
Write
Preview
Markdown
is supported
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