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
d8c18c66
Commit
d8c18c66
authored
Sep 22, 2017
by
Java-李昕颖
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
转为文档、发邮件,以及各种改终极版
parent
5f12e018
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
13 changed files
with
175 additions
and
81 deletions
+175
-81
pom.xml
pom.xml
+12
-0
ReportDao.java
src/main/java/com/ejweb/modules/report/dao/ReportDao.java
+2
-1
ReportService.java
src/main/java/com/ejweb/modules/report/service/ReportService.java
+23
-1
ReportController.java
src/main/java/com/ejweb/modules/report/web/ReportController.java
+18
-23
ReportToPdfController.java
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
+0
-0
Position.java
src/main/java/com/ejweb/modules/sys/entity/Position.java
+26
-0
User.java
src/main/java/com/ejweb/modules/sys/entity/User.java
+5
-5
ReportDao.xml
src/main/resources/mappings/modules/report/ReportDao.xml
+5
-4
reportDeliver.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDeliver.jsp
+0
-0
reportDetail.jsp
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
+1
-1
reportForm.jsp
src/main/webapp/WEB-INF/views/modules/report/reportForm.jsp
+6
-15
reportList.jsp
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
+27
-2
reportTrack.jsp
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
+50
-29
No files found.
pom.xml
View file @
d8c18c66
...
@@ -615,6 +615,18 @@
...
@@ -615,6 +615,18 @@
<artifactId>
jfreechart
</artifactId>
<artifactId>
jfreechart
</artifactId>
<version>
1.0.13
</version>
<version>
1.0.13
</version>
</dependency>
</dependency>
<!-- https://mvnrepository.com/artifact/com.itextpdf/itextpdf -->
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itextpdf
</artifactId>
<version>
5.5.10
</version>
</dependency>
<!-- https://mvnrepository.com/artifact/com.itextpdf/itext-asian -->
<dependency>
<groupId>
com.itextpdf
</groupId>
<artifactId>
itext-asian
</artifactId>
<version>
5.2.0
</version>
</dependency>
<!-- 自定义jar依赖包
<!-- 自定义jar依赖包
<dependency>
<dependency>
...
...
src/main/java/com/ejweb/modules/report/dao/ReportDao.java
View file @
d8c18c66
...
@@ -6,6 +6,7 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
...
@@ -6,6 +6,7 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.entity.ReportExchangeHistory
;
import
com.ejweb.modules.report.entity.ReportExchangeHistory
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Position
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.workbench.Bean.WorkbenchBean
;
import
com.ejweb.modules.workbench.Bean.WorkbenchBean
;
import
com.ejweb.modules.workbench.entity.ReportNotice
;
import
com.ejweb.modules.workbench.entity.ReportNotice
;
...
@@ -85,7 +86,7 @@ public interface ReportDao extends CrudDao<ReportEntity> {
...
@@ -85,7 +86,7 @@ public interface ReportDao extends CrudDao<ReportEntity> {
* 查询职位列表
* 查询职位列表
* @return
* @return
*/
*/
public
List
<
User
>
getPositionList
();
public
List
<
Position
>
getPositionList
();
/**
/**
* 根据reportId查询消息表中是否已存在该条记录
* 根据reportId查询消息表中是否已存在该条记录
...
...
src/main/java/com/ejweb/modules/report/service/ReportService.java
View file @
d8c18c66
...
@@ -9,6 +9,8 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
...
@@ -9,6 +9,8 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.entity.ReportExchangeHistory
;
import
com.ejweb.modules.report.entity.ReportExchangeHistory
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Position
;
import
com.ejweb.modules.sys.entity.Role
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
com.ejweb.modules.workbench.entity.ReportNotice
;
import
com.ejweb.modules.workbench.entity.ReportNotice
;
...
@@ -190,6 +192,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -190,6 +192,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
* @return
* @return
*/
*/
public
Page
<
User
>
findUserPage
(
Page
<
User
>
page
,
User
user
){
public
Page
<
User
>
findUserPage
(
Page
<
User
>
page
,
User
user
){
page
.
setFuncParam
(
"1"
);
//标记为用户分页
user
.
setPage
(
page
);
user
.
setPage
(
page
);
page
.
setList
(
reportDao
.
findUser
(
user
));
page
.
setList
(
reportDao
.
findUser
(
user
));
return
page
;
return
page
;
...
@@ -215,7 +218,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -215,7 +218,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
* 查询职位列表
* 查询职位列表
* @return
* @return
*/
*/
public
List
<
User
>
getPositionList
(){
public
List
<
Position
>
getPositionList
(){
return
reportDao
.
getPositionList
();
return
reportDao
.
getPositionList
();
}
}
...
@@ -380,4 +383,23 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
...
@@ -380,4 +383,23 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
this
.
addRecord
(
reportEntity
,
"2"
);
this
.
addRecord
(
reportEntity
,
"2"
);
}
}
}
}
/**
* 判断当前用户是否为管理员
* @param user
* @return
*/
public
boolean
checkRole
(
User
user
)
{
boolean
isAdmin
=
false
;
List
<
Role
>
roleList
=
UserUtils
.
getRoleList
();
if
(
roleList
!=
null
&&
roleList
.
size
()
!=
0
){
for
(
Role
role
:
roleList
){
if
(
role
.
getName
().
equals
(
"系统管理员"
)){
isAdmin
=
true
;
break
;
}
}
}
return
isAdmin
;
}
}
}
src/main/java/com/ejweb/modules/report/web/ReportController.java
View file @
d8c18c66
package
com
.
ejweb
.
modules
.
report
.
web
;
package
com
.
ejweb
.
modules
.
report
.
web
;
import
com.alibaba.fastjson.JSONObject
;
import
com.ejweb.core.base.BaseController
;
import
com.ejweb.core.base.BaseController
;
import
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.persistence.Page
;
import
com.ejweb.core.utils.DateUtils
;
import
com.ejweb.core.utils.DateUtils
;
...
@@ -10,6 +9,7 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
...
@@ -10,6 +9,7 @@ import com.ejweb.modules.report.entity.ReportAttachmentEntity;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.entity.ReportEntity
;
import
com.ejweb.modules.report.service.ReportService
;
import
com.ejweb.modules.report.service.ReportService
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Office
;
import
com.ejweb.modules.sys.entity.Position
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.entity.User
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
com.ejweb.modules.sys.utils.UserUtils
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
import
org.apache.shiro.authz.annotation.RequiresPermissions
;
...
@@ -63,11 +63,8 @@ public class ReportController extends BaseController {
...
@@ -63,11 +63,8 @@ public class ReportController extends BaseController {
public
String
list
(
ReportEntity
reportEntity
,
String
flag
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
public
String
list
(
ReportEntity
reportEntity
,
String
flag
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
//判断登录人的角色
//判断登录人的角色
User
user
=
UserUtils
.
getUser
();
User
user
=
UserUtils
.
getUser
();
String
roleName
=
reportService
.
findRole
(
user
);
if
(!
reportService
.
checkRole
(
user
)){
if
(
StringUtils
.
isNotBlank
(
roleName
)){
reportEntity
.
setExchangeAfterUser
(
user
.
getId
());
if
(!
roleName
.
equals
(
"系统管理员"
)){
reportEntity
.
setExchangeAfterUser
(
user
.
getId
());
}
}
}
//判断标签状态 flag为空,跳转到核查中举报列表 flag为0,跳转到未处理举报列表 flag为1,跳转到举报列表
//判断标签状态 flag为空,跳转到核查中举报列表 flag为0,跳转到未处理举报列表 flag为1,跳转到举报列表
if
(
StringUtils
.
isNotBlank
(
flag
)){
if
(
StringUtils
.
isNotBlank
(
flag
)){
...
@@ -151,27 +148,23 @@ public class ReportController extends BaseController {
...
@@ -151,27 +148,23 @@ public class ReportController extends BaseController {
*/
*/
@RequestMapping
(
value
=
"track"
)
@RequestMapping
(
value
=
"track"
)
public
String
track
(
ReportEntity
reportEntity
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
public
String
track
(
ReportEntity
reportEntity
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
//判断登录人的角色
User
user
=
UserUtils
.
getUser
();
User
user
=
UserUtils
.
getUser
();
String
roleName
=
reportService
.
findRole
(
user
);
boolean
isAdmin
=
reportService
.
checkRole
(
user
);
String
transferFlag
=
"0"
;
if
(
roleName
.
equals
(
"系统管理员"
)){
transferFlag
=
"1"
;
}
List
<
Office
>
companyList
=
reportService
.
getCompanyList
();
List
<
Office
>
companyList
=
reportService
.
getCompanyList
();
List
<
Office
>
officeList
=
reportService
.
getOfficeList
();
List
<
Office
>
officeList
=
reportService
.
getOfficeList
();
List
<
User
>
positionList
=
reportService
.
getPositionList
();
List
<
Position
>
positionList
=
reportService
.
getPositionList
();
Page
<
User
>
page
=
reportService
.
findUserPage
(
new
Page
<
User
>(
request
,
response
),
user
);
User
userEntity
=
new
User
();
User
userEntity
=
new
User
();
Page
<
User
>
userP
age
=
reportService
.
findUserPage
(
new
Page
<
User
>(
request
,
response
),
userEntity
);
Page
<
User
>
p
age
=
reportService
.
findUserPage
(
new
Page
<
User
>(
request
,
response
),
userEntity
);
model
.
addAttribute
(
"page"
,
page
);
model
.
addAttribute
(
"page"
,
page
);
model
.
addAttribute
(
"user"
,
userEntity
);
model
.
addAttribute
(
"user"
,
userEntity
);
model
.
addAttribute
(
"userName"
,
user
.
getName
());
model
.
addAttribute
(
"currentUser"
,
user
.
getName
());
model
.
addAttribute
(
"currentUser"
,
user
.
getName
());
model
.
addAttribute
(
"transferFlag"
,
transferFlag
);
model
.
addAttribute
(
"report"
,
reportEntity
);
model
.
addAttribute
(
"report"
,
reportEntity
);
model
.
addAttribute
(
"companyList"
,
companyList
);
model
.
addAttribute
(
"companyList"
,
companyList
);
model
.
addAttribute
(
"officeList"
,
officeList
);
model
.
addAttribute
(
"officeList"
,
officeList
);
model
.
addAttribute
(
"positionList"
,
positionList
);
model
.
addAttribute
(
"positionList"
,
positionList
);
model
.
addAttribute
(
"
userPage"
,
userPage
);
model
.
addAttribute
(
"
isAdmin"
,
isAdmin
);
return
"modules/report/reportTrack"
;
return
"modules/report/reportTrack"
;
}
}
...
@@ -189,7 +182,7 @@ public class ReportController extends BaseController {
...
@@ -189,7 +182,7 @@ public class ReportController extends BaseController {
}
}
reportService
.
saveTrack
(
reportEntity
);
reportService
.
saveTrack
(
reportEntity
);
if
(
StringUtils
.
isNotBlank
(
reportEntity
.
getExchangeAfterUser
())){
if
(
StringUtils
.
isNotBlank
(
reportEntity
.
getExchangeAfterUser
())){
reportService
.
addNotice
(
reportEntity
,
"trans
g
er"
);
reportService
.
addNotice
(
reportEntity
,
"trans
f
er"
);
reportService
.
addRecord
(
reportEntity
,
"1"
);
reportService
.
addRecord
(
reportEntity
,
"1"
);
}
}
if
(
StringUtils
.
isNotBlank
(
reportEntity
.
getDealResult
())){
if
(
StringUtils
.
isNotBlank
(
reportEntity
.
getDealResult
())){
...
@@ -247,7 +240,11 @@ public class ReportController extends BaseController {
...
@@ -247,7 +240,11 @@ public class ReportController extends BaseController {
html
.
append
(
" <td>"
+
(
userEntity
.
getMobile
()
==
null
?
""
:
userEntity
.
getMobile
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getMobile
()
==
null
?
""
:
userEntity
.
getMobile
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getCompany
()
==
null
?
""
:
userEntity
.
getCompany
().
getName
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getCompany
()
==
null
?
""
:
userEntity
.
getCompany
().
getName
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getOffice
()
==
null
?
""
:
userEntity
.
getOffice
().
getName
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getOffice
()
==
null
?
""
:
userEntity
.
getOffice
().
getName
())
+
"</td>"
);
html
.
append
(
" <td>"
+
(
userEntity
.
getPositionName
()
==
null
?
""
:
userEntity
.
getPositionName
())
+
"</td>"
);
if
(
userEntity
.
getPosition
()
!=
null
){
html
.
append
(
" <td>"
+
(
userEntity
.
getPosition
().
getName
()
==
null
?
""
:
userEntity
.
getPosition
().
getName
())
+
"</td>"
);
}
else
{
html
.
append
(
" <td></td>"
);
}
}
else
if
(
flag
.
equals
(
"2"
)){
}
else
if
(
flag
.
equals
(
"2"
)){
html
.
append
(
" <td><input type='radio' value='"
+
userEntity
.
getId
()
+
"' onclick='chooseRen(this);'></td>"
);
html
.
append
(
" <td><input type='radio' value='"
+
userEntity
.
getId
()
+
"' onclick='chooseRen(this);'></td>"
);
html
.
append
(
" <td>"
+
i
+
"</td>"
);
html
.
append
(
" <td>"
+
i
+
"</td>"
);
...
@@ -302,11 +299,8 @@ public class ReportController extends BaseController {
...
@@ -302,11 +299,8 @@ public class ReportController extends BaseController {
public
String
deliverList
(
ReportEntity
reportEntity
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
public
String
deliverList
(
ReportEntity
reportEntity
,
HttpServletRequest
request
,
HttpServletResponse
response
,
Model
model
)
{
//判断登录人的角色
//判断登录人的角色
User
user
=
UserUtils
.
getUser
();
User
user
=
UserUtils
.
getUser
();
String
roleName
=
reportService
.
findRole
(
user
);
if
(!
reportService
.
checkRole
(
user
)){
if
(
StringUtils
.
isNotBlank
(
roleName
)){
reportEntity
.
setExchangeAfterUser
(
user
.
getId
());
if
(!
roleName
.
equals
(
"系统管理员"
)){
reportEntity
.
setExchangeAfterUser
(
user
.
getId
());
}
}
}
Page
<
ReportEntity
>
page
=
reportService
.
getChooseReportPage
(
new
Page
<
ReportEntity
>(
request
,
response
),
reportEntity
);
Page
<
ReportEntity
>
page
=
reportService
.
getChooseReportPage
(
new
Page
<
ReportEntity
>(
request
,
response
),
reportEntity
);
User
userEntity
=
new
User
();
User
userEntity
=
new
User
();
...
@@ -336,4 +330,5 @@ public class ReportController extends BaseController {
...
@@ -336,4 +330,5 @@ public class ReportController extends BaseController {
out
.
write
(
result
);
out
.
write
(
result
);
out
.
close
();
out
.
close
();
}
}
}
}
src/main/java/com/ejweb/modules/report/web/ReportToPdfController.java
0 → 100644
View file @
d8c18c66
This diff is collapsed.
Click to expand it.
src/main/java/com/ejweb/modules/sys/entity/Position.java
0 → 100644
View file @
d8c18c66
package
com
.
ejweb
.
modules
.
sys
.
entity
;
import
com.ejweb.core.persistence.DataEntity
;
public
class
Position
extends
DataEntity
<
Position
>
{
private
static
final
long
serialVersionUID
=
1L
;
private
String
name
;
private
String
code
;
public
String
getName
()
{
return
name
;
}
public
void
setName
(
String
name
)
{
this
.
name
=
name
;
}
public
String
getCode
()
{
return
code
;
}
public
void
setCode
(
String
code
)
{
this
.
code
=
code
;
}
}
src/main/java/com/ejweb/modules/sys/entity/User.java
View file @
d8c18c66
...
@@ -53,7 +53,7 @@ public class User extends DataEntity<User> {
...
@@ -53,7 +53,7 @@ public class User extends DataEntity<User> {
private
List
<
Role
>
roleList
=
Lists
.
newArrayList
();
// 拥有角色列表
private
List
<
Role
>
roleList
=
Lists
.
newArrayList
();
// 拥有角色列表
private
String
positionName
;
//职位
private
Position
position
;
//职位
public
User
()
{
public
User
()
{
super
();
super
();
...
@@ -311,12 +311,12 @@ public class User extends DataEntity<User> {
...
@@ -311,12 +311,12 @@ public class User extends DataEntity<User> {
}
}
}
}
public
String
getPositionName
()
{
public
Position
getPosition
()
{
return
position
Name
;
return
position
;
}
}
public
void
setPosition
Name
(
String
positionName
)
{
public
void
setPosition
(
Position
position
)
{
this
.
position
Name
=
positionName
;
this
.
position
=
position
;
}
}
/**
/**
...
...
src/main/resources/mappings/modules/report/ReportDao.xml
View file @
d8c18c66
...
@@ -221,7 +221,7 @@
...
@@ -221,7 +221,7 @@
su.mobile AS "mobile",
su.mobile AS "mobile",
so1.`name` AS "company.name",
so1.`name` AS "company.name",
so2.`name` AS "office.name",
so2.`name` AS "office.name",
sp.position_name AS "position
N
ame",
sp.position_name AS "position
.n
ame",
sr.`name` AS "role.name"
sr.`name` AS "role.name"
FROM
FROM
sys_user su
sys_user su
...
@@ -257,8 +257,8 @@
...
@@ -257,8 +257,8 @@
<if
test=
"office != null and office.id != null and office.id != ''"
>
<if
test=
"office != null and office.id != null and office.id != ''"
>
AND so2.id = #{office.id}
AND so2.id = #{office.id}
</if>
</if>
<if
test=
"position
Name != null and positionN
ame != ''"
>
<if
test=
"position
!= null and position.name != null and position.n
ame != ''"
>
AND sp.position_name = #{position
N
ame}
AND sp.position_name = #{position
.n
ame}
</if>
</if>
<if
test=
"loginName != null and loginName != ''"
>
<if
test=
"loginName != null and loginName != ''"
>
AND su.login_name LIKE
AND su.login_name LIKE
...
@@ -286,8 +286,9 @@
...
@@ -286,8 +286,9 @@
WHERE so.type = '1'
WHERE so.type = '1'
</select>
</select>
<select
id=
"getPositionList"
resultType=
"
User
"
>
<select
id=
"getPositionList"
resultType=
"
Position
"
>
SELECT
SELECT
position_code AS "id",
position_name AS "positionName"
position_name AS "positionName"
FROM sys_position
FROM sys_position
</select>
</select>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportDeliver.jsp
0 → 100644
View file @
d8c18c66
This diff is collapsed.
Click to expand it.
src/main/webapp/WEB-INF/views/modules/report/reportDetail.jsp
View file @
d8c18c66
...
@@ -12,7 +12,7 @@
...
@@ -12,7 +12,7 @@
window
.
location
.
href
=
"${ctx}/report/track?id=${report.id}"
;
window
.
location
.
href
=
"${ctx}/report/track?id=${report.id}"
;
});
});
$
(
"#btnDocument"
).
click
(
function
()
{
$
(
"#btnDocument"
).
click
(
function
()
{
$
(
"#inputForm"
).
attr
(
"action"
,
"${ctx}/report/document"
);
$
(
"#inputForm"
).
attr
(
"action"
,
"${ctx}/report/document
?id=${report.id}
"
);
$
(
"#inputForm"
).
submit
();
$
(
"#inputForm"
).
submit
();
});
});
});
});
...
...
src/main/webapp/WEB-INF/views/modules/report/reportForm.jsp
View file @
d8c18c66
...
@@ -9,19 +9,12 @@
...
@@ -9,19 +9,12 @@
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
"#inputForm"
).
validate
({
$
(
"#inputForm"
).
validate
({
submitHandler
:
function
(
form
)
{
submitHandler
:
function
(
form
)
{
if
(
$
(
"#nameFile"
).
val
().
length
==
0
)
{
submitCount
+=
1
;
$
(
"#checkFile"
).
show
();
if
(
submitCount
==
1
){
}
else
if
(
$
(
"#reportContent"
).
val
()
==
""
){
loading
(
'正在提交,请稍等...'
);
top
.
$
.
jBox
.
tip
(
'请填写内容'
,
'warning'
);
form
.
submit
();
}
else
{
}
else
{
submitCount
+=
1
;
return
false
;
if
(
submitCount
==
1
){
$
(
"#checkFile"
).
hide
();
loading
(
'正在提交,请稍等...'
);
form
.
submit
();
}
else
{
return
false
;
}
}
}
},
},
errorContainer
:
"#messageBox"
,
errorContainer
:
"#messageBox"
,
...
@@ -69,7 +62,6 @@
...
@@ -69,7 +62,6 @@
<label
class=
"control-label"
>
内容:
</label>
<label
class=
"control-label"
>
内容:
</label>
<div
class=
"controls"
>
<div
class=
"controls"
>
<form:textarea
id=
"reportContent"
htmlEscape=
"true"
path=
"reportContent"
rows=
"4"
maxlength=
"500"
class=
"input-xxlarge"
/>
<form:textarea
id=
"reportContent"
htmlEscape=
"true"
path=
"reportContent"
rows=
"4"
maxlength=
"500"
class=
"input-xxlarge"
/>
<span
class=
"help-inline"
><font
color=
"red"
>
*
</font>
</span>
</div>
</div>
</div>
</div>
</div>
</div>
...
@@ -80,7 +72,6 @@
...
@@ -80,7 +72,6 @@
maxlength=
"255"
class=
"input-xlarge"
/>
maxlength=
"255"
class=
"input-xlarge"
/>
<sys:ckfinder
input=
"nameFile"
type=
"files"
uploadPath=
"/file"
<sys:ckfinder
input=
"nameFile"
type=
"files"
uploadPath=
"/file"
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/>
selectMultiple=
"true"
maxWidth=
"100"
maxHeight=
"100"
/>
<label
id=
"checkFile"
class=
"error"
style=
"display: none;"
>
必填信息
</label>
</div>
</div>
</div>
</div>
<span
class=
"title"
>
举报人信息
</span>
<span
class=
"title"
>
举报人信息
</span>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportList.jsp
View file @
d8c18c66
...
@@ -5,11 +5,12 @@
...
@@ -5,11 +5,12 @@
<title>
举报管理
</title>
<title>
举报管理
</title>
<meta
name=
"decorator"
content=
"default"
/>
<meta
name=
"decorator"
content=
"default"
/>
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
requestFlag
=
true
;
$
(
document
).
ready
(
function
()
{
$
(
document
).
ready
(
function
()
{
$
(
"#btnExport"
).
click
(
function
(){
$
(
"#btnExport"
).
click
(
function
(){
top
.
$
.
jBox
.
confirm
(
"确认要导出数据吗?"
,
"系统提示"
,
function
(
v
,
h
,
f
){
top
.
$
.
jBox
.
confirm
(
"确认要导出数据吗?"
,
"系统提示"
,
function
(
v
,
h
,
f
){
if
(
v
==
"ok"
){
if
(
v
==
"ok"
){
$
(
"#searchForm"
).
attr
(
"action"
,
"${ctx}/report/export
?
"
);
$
(
"#searchForm"
).
attr
(
"action"
,
"${ctx}/report/export"
);
$
(
"#searchForm"
).
submit
();
$
(
"#searchForm"
).
submit
();
}
}
},{
buttonsFocus
:
1
});
},{
buttonsFocus
:
1
});
...
@@ -37,6 +38,30 @@
...
@@ -37,6 +38,30 @@
function
resetPageNo
()
{
function
resetPageNo
()
{
$
(
"#pageNo"
).
val
(
0
);
$
(
"#pageNo"
).
val
(
0
);
}
}
function
openDownloadDialog
(){
if
(
requestFlag
==
true
){
$
.
ajax
({
url
:
"${ctx}/report/document?id=${report.id}"
,
dataType
:
"text"
,
traditional
:
true
,
//这里设置为true
cache
:
false
,
beforeSend
:
function
()
{
requestFlag
=
false
;
},
success
:
function
(
url
)
{
//登录成功后返回的数据
window
.
location
.
href
=
url
;
},
error
:
function
(){
alert
(
"数据错误!"
);
},
complete
:
function
()
{
requestFlag
=
true
;
}
});
}
else
{
top
.
$
.
jBox
.
tip
(
'正在加载,请稍等'
,
'warning'
);
}
}
</script>
</script>
</head>
</head>
<body>
<body>
...
@@ -136,7 +161,7 @@
...
@@ -136,7 +161,7 @@
<td>
<td>
<a
href=
"${ctx}/report/view?id=${report.id}"
>
查看
</a>
<a
href=
"${ctx}/report/view?id=${report.id}"
>
查看
</a>
<c:if
test=
"${report.reportStatus ne '2'}"
><a
href=
"${ctx}/report/track?id=${report.id}"
>
跟踪
</a></c:if>
<c:if
test=
"${report.reportStatus ne '2'}"
><a
href=
"${ctx}/report/track?id=${report.id}"
>
跟踪
</a></c:if>
<a
href=
"
${ctx}/report/document?id=${report.id}
"
>
转为文档
</a>
<a
href=
"
#"
onclick=
"openDownloadDialog()
"
>
转为文档
</a>
</td>
</td>
</tr>
</tr>
</c:forEach>
</c:forEach>
...
...
src/main/webapp/WEB-INF/views/modules/report/reportTrack.jsp
View file @
d8c18c66
This diff is collapsed.
Click to expand it.
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