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
eda923f7
Commit
eda923f7
authored
Oct 09, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
页面修改
parent
005fda73
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
89 additions
and
11 deletions
+89
-11
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+8
-0
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+77
-2
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+4
-9
No files found.
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
eda923f7
...
@@ -125,17 +125,25 @@ public class ReportController extends BaseController {
...
@@ -125,17 +125,25 @@ public class ReportController extends BaseController {
*/
*/
@RequestMapping
(
value
=
"view"
)
@RequestMapping
(
value
=
"view"
)
public
String
view
(
ReportEntity
reportEntity
,
Model
model
,
RedirectAttributes
redirectAttributes
)
{
public
String
view
(
ReportEntity
reportEntity
,
Model
model
,
RedirectAttributes
redirectAttributes
)
{
//获取举报提交文件列表
ReportAttachmentEntity
reportAttachment
=
new
ReportAttachmentEntity
();
ReportAttachmentEntity
reportAttachment
=
new
ReportAttachmentEntity
();
reportAttachment
.
setReportId
(
reportEntity
.
getId
());
reportAttachment
.
setReportId
(
reportEntity
.
getId
());
reportAttachment
.
setAttachmentType
(
"0"
);
reportAttachment
.
setAttachmentType
(
"0"
);
List
<
ReportAttachmentEntity
>
reportAttachmentList
=
reportService
.
getAttachmentInfo
(
reportAttachment
);
List
<
ReportAttachmentEntity
>
reportAttachmentList
=
reportService
.
getAttachmentInfo
(
reportAttachment
);
//获取补充提交文件列表
ReportAttachmentEntity
supplementAttachment
=
new
ReportAttachmentEntity
();
ReportAttachmentEntity
supplementAttachment
=
new
ReportAttachmentEntity
();
supplementAttachment
.
setReportId
(
reportEntity
.
getId
());
supplementAttachment
.
setReportId
(
reportEntity
.
getId
());
supplementAttachment
.
setAttachmentType
(
"1"
);
supplementAttachment
.
setAttachmentType
(
"1"
);
List
<
ReportAttachmentEntity
>
supplementAttachmentList
=
reportService
.
getAttachmentInfo
(
supplementAttachment
);
List
<
ReportAttachmentEntity
>
supplementAttachmentList
=
reportService
.
getAttachmentInfo
(
supplementAttachment
);
//获取处理成果文件列表
ReportAttachmentEntity
dealAttachment
=
new
ReportAttachmentEntity
();
dealAttachment
.
setReportId
(
reportEntity
.
getId
());
dealAttachment
.
setAttachmentType
(
"2"
);
List
<
ReportAttachmentEntity
>
dealAttachmentList
=
reportService
.
getAttachmentInfo
(
dealAttachment
);
model
.
addAttribute
(
"report"
,
reportEntity
);
model
.
addAttribute
(
"report"
,
reportEntity
);
model
.
addAttribute
(
"reportAttachmentList"
,
reportAttachmentList
);
model
.
addAttribute
(
"reportAttachmentList"
,
reportAttachmentList
);
model
.
addAttribute
(
"supplementAttachmentList"
,
supplementAttachmentList
);
model
.
addAttribute
(
"supplementAttachmentList"
,
supplementAttachmentList
);
model
.
addAttribute
(
"dealAttachmentList"
,
dealAttachmentList
);
return
"modules/report/reportDetail"
;
return
"modules/report/reportDetail"
;
}
}
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
eda923f7
...
@@ -11,6 +11,56 @@
...
@@ -11,6 +11,56 @@
$
(
"#btnTrack"
).
click
(
function
()
{
$
(
"#btnTrack"
).
click
(
function
()
{
window
.
location
.
href
=
"${ctx}/report/track?id=${report.id}"
;
window
.
location
.
href
=
"${ctx}/report/track?id=${report.id}"
;
});
});
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
=
"投诉"
;
}
$
(
"#supplementType"
).
val
(
supplementType
);
var
supplementArea
=
"${report.supplementArea}"
;
if
(
supplementArea
==
"North China"
){
supplementArea
=
"华北区域公司"
;
}
else
if
(
supplementArea
==
"BeiJing"
){
supplementArea
=
"北京区域公司"
;
}
else
if
(
supplementArea
==
"ShangHai"
){
supplementArea
=
"上海区域公司"
;
}
else
if
(
supplementArea
==
"SouthWest"
){
supplementArea
=
"西南区域公司"
;
}
else
if
(
supplementArea
==
"SouthEast"
){
supplementArea
=
"东南区域公司"
;
}
else
if
(
supplementArea
==
"Central China"
){
supplementArea
=
"华中区域公司"
;
}
else
if
(
supplementArea
==
"GuangShen"
){
supplementArea
=
"广深区域公司"
;
}
else
if
(
supplementArea
==
"Hainan"
){
supplementArea
=
"海南区域公司"
;
}
else
if
(
supplementArea
==
"Group"
){
supplementArea
=
"集团本部"
;
}
$
(
"#supplementArea"
).
val
(
supplementArea
);
var
dealResult
=
"${report.dealResult}"
;
if
(
dealResult
==
"1"
){
dealResult
=
"投诉"
;
}
else
if
(
dealResult
==
"2"
){
dealResult
=
"举报无效"
;
}
else
if
(
dealResult
==
"3"
){
dealResult
=
"举报属实"
;
}
$
(
"#dealResult"
).
val
(
dealResult
);
});
});
var
requestFlag
=
true
;
var
requestFlag
=
true
;
function
openDownloadDialog
(
id
){
function
openDownloadDialog
(
id
){
...
@@ -111,6 +161,7 @@
...
@@ -111,6 +161,7 @@
htmlEscape=
"false"
disabled=
"true"
/>
htmlEscape=
"false"
disabled=
"true"
/>
</div>
</div>
</div>
</div>
<c:if
test=
"${report.reportStatus ne '0'}"
>
<span
class=
"title"
>
举报信息补充
</span>
<span
class=
"title"
>
举报信息补充
</span>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
标题:
</label>
<label
class=
"control-label"
>
标题:
</label>
...
@@ -139,13 +190,13 @@
...
@@ -139,13 +190,13 @@
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
业务类型:
</label>
<label
class=
"control-label"
>
业务类型:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:input
path=
"supplementType"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
<form:input
id=
"supplementType"
path=
"supplementType"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label>
<label
class=
"control-label"
>
被举报区域:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:input
path=
"supplementArea"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
<form:input
id=
"supplementArea"
path=
"supplementArea"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
</div>
</div>
</div>
</div>
<div
class=
"control-group"
>
<div
class=
"control-group"
>
...
@@ -168,6 +219,30 @@
...
@@ -168,6 +219,30 @@
</c:forEach>
</c:forEach>
</div>
</div>
</div>
</div>
</c:if>
<c:if
test=
"${report.reportStatus eq '2'}"
>
<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"
/>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理成果文件:
</label>
<div
class=
"controls"
>
<c:forEach
items=
"${dealAttachmentList}"
var=
"dealAttachment"
varStatus=
"vs"
>
${vs.count}.
<a
href=
"${dealAttachment.attachmentPath}"
target=
"_blank"
>
${dealAttachment.attachmentName}
</a><br>
</c:forEach>
</div>
</div>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
处理结论:
</label>
<div
class=
"controls"
>
<form:input
id=
"dealResult"
path=
"dealResult"
htmlEscape=
"false"
maxlength=
"200"
class=
"input-xlarge required"
/>
</div>
</div>
</c:if>
<li
class=
"btns"
>
<li
class=
"btns"
>
<label
style=
"width:auto;"
>
<label
style=
"width:auto;"
>
<c:if
test=
"${report.reportStatus != '2'}"
><input
id=
"btnTrack"
class=
"btn btn-primary"
type=
"button"
value=
"跟踪"
/>
</c:if>
<c:if
test=
"${report.reportStatus != '2'}"
><input
id=
"btnTrack"
class=
"btn btn-primary"
type=
"button"
value=
"跟踪"
/>
</c:if>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
eda923f7
...
@@ -144,15 +144,10 @@
...
@@ -144,15 +144,10 @@
<div
class=
"control-group"
>
<div
class=
"control-group"
>
<label
class=
"control-label"
>
被举报区域:
</label>
<label
class=
"control-label"
>
被举报区域:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:radiobutton
path=
"supplementArea"
value=
"North China"
checked=
"true"
/>
华北区域公司
<form:select
id=
"supplementType"
path=
"supplementArea"
class=
"input-small required"
>
<form:radiobutton
path=
"supplementArea"
value=
"BeiJing"
/>
北京区域公司
<form:option
value=
" "
>
请选择
</form:option>
<form:radiobutton
path=
"supplementArea"
value=
"ShangHai"
/>
上海区域公司
<form:options
items=
"${fns:getDictList('supplement_area')}"
itemLabel=
"label"
itemValue=
"value"
<form:radiobutton
path=
"supplementArea"
value=
"SouthWest"
/>
西南区域公司
htmlEscape=
"false"
/></form:select>
<form:radiobutton
path=
"supplementArea"
value=
"SouthEast"
/>
东南区域公司
<form:radiobutton
path=
"supplementArea"
value=
"Central China"
/>
华中区域公司
<form:radiobutton
path=
"supplementArea"
value=
"GuangShen"
/>
广深区域公司
<form:radiobutton
path=
"supplementArea"
value=
"Hainan"
/>
海南区域公司
<form:radiobutton
path=
"supplementArea"
value=
"Group"
/>
集团本部
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
</div>
</div>
...
...
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