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
d79e6b73
Commit
d79e6b73
authored
Nov 02, 2017
by
java-lixy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
保存附件地址乱码
新增转为word文档功能
parent
de72a624
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
8 additions
and
4 deletions
+8
-4
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+4
-0
ReportToWordController.java
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
+0
-0
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+1
-1
reportList.jsp
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
+1
-1
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+2
-2
No files found.
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
d79e6b73
...
...
@@ -95,6 +95,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
if
(
StringUtils
.
isNotBlank
(
fileName
))
{
reportAttachmentEntity
.
setAttachmentName
(
fileName
);
}
int
index
=
path
.
lastIndexOf
(
"/"
)+
1
;
path
=
path
.
substring
(
0
,
index
)
+
fileName
;
reportAttachmentEntity
.
setAttachmentPath
(
path
);
File
file
=
new
File
(
reportAttachmentEntity
.
getAttachmentPath
());
long
length
=
file
.
length
();
...
...
@@ -165,6 +167,8 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
if
(
StringUtils
.
isNotBlank
(
fileName
))
{
reportAttachmentEntity
.
setAttachmentName
(
fileName
);
}
int
index
=
path
.
lastIndexOf
(
"/"
)+
1
;
path
=
path
.
substring
(
0
,
index
)
+
fileName
;
reportAttachmentEntity
.
setAttachmentPath
(
path
);
File
file
=
new
File
(
reportAttachmentEntity
.
getAttachmentPath
());
long
length
=
file
.
length
();
...
...
src/main/java/com/ejweb/modules/report/web/ReportToWordController.java
View file @
d79e6b73
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
d79e6b73
...
...
@@ -66,7 +66,7 @@
function
openDownloadDialog
(
id
){
if
(
requestFlag
==
true
){
$
.
ajax
({
url
:
"${ctx}/report/
document
?id="
+
id
,
url
:
"${ctx}/report/
toWord
?id="
+
id
,
dataType
:
"text"
,
traditional
:
true
,
//这里设置为true
cache
:
false
,
...
...
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
View file @
d79e6b73
...
...
@@ -41,7 +41,7 @@
function
openDownloadDialog
(
id
){
if
(
requestFlag
==
true
){
$
.
ajax
({
url
:
"${ctx}/report/
document
?id="
+
id
,
url
:
"${ctx}/report/
toWord
?id="
+
id
,
dataType
:
"text"
,
traditional
:
true
,
//这里设置为true
cache
:
false
,
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
d79e6b73
...
...
@@ -55,7 +55,7 @@
//发邮件
$
(
"#btnMail"
).
click
(
function
()
{
var
supplementType
=
$
(
"#supplementType"
).
find
(
"option:selected"
).
text
();
var
supplementInformant
=
$
(
"#supplementInformant"
).
val
()
;
var
supplementInformant
=
"${report.supplementInformant}"
;
var
path
=
"mailto:?subject=举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作"
;
path
+=
"&body=Dear,<br/>附件是举报核查-"
+
supplementType
+
"-"
+
supplementInformant
+
"违规操作,请核实是否属实。<br/>谢谢!"
;
...
...
@@ -71,7 +71,7 @@
var
url
=
$
(
this
).
text
();
path
+=
url
;
});
path
+=
"举报人信息</br>"
;
path
+=
"
</br>
举报人信息</br>"
;
path
+=
"姓名:${report.reportPersonName}</br>"
;
path
+=
"手机号:${report.reportPersonTel}</br>"
;
path
+=
"Email:${report.reportPersonEmail}</br>"
;
...
...
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