Commit 8c7f1b5e by Java-李昕颖

举报查看、跟踪各种改

parent 750c8c76
...@@ -33,4 +33,18 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -33,4 +33,18 @@ public interface ReportDao extends CrudDao<ReportEntity> {
* @return * @return
*/ */
public int addReportAttachment(ReportAttachmentEntity reportAttachmentEntity); public int addReportAttachment(ReportAttachmentEntity reportAttachmentEntity);
/**
* 举报信息补充
* @param reportEntity
* @return
*/
public int addTrack(ReportEntity reportEntity);
/**
* 更新举报状态
* @param reportEntity
* @return
*/
public int updateReportStatus(ReportEntity reportEntity);
} }
...@@ -3,6 +3,8 @@ package com.ejweb.modules.report.entity; ...@@ -3,6 +3,8 @@ package com.ejweb.modules.report.entity;
import com.ejweb.core.persistence.DataEntity; import com.ejweb.core.persistence.DataEntity;
import java.util.List;
/** /**
* 举报Entity * 举报Entity
* @author lixy * @author lixy
...@@ -36,7 +38,12 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -36,7 +38,12 @@ public class ReportEntity extends DataEntity<ReportEntity> {
private String reportTimeFrom; //举报时间起 private String reportTimeFrom; //举报时间起
private String reportTimeTo; //举报时间止 private String reportTimeTo; //举报时间止
private ReportAttachmentEntity reportAttachmentEntity; private List<ReportAttachmentEntity> reportAttachmentEntityList;
private List<String> reportAttachmentList; //举报提交文件
private List<String> supplementAttachmentList; //补充提交文件
private List<String> dealAttachmentList; //处理成果文件
public String getReportProject() { public String getReportProject() {
return reportProject; return reportProject;
...@@ -222,11 +229,35 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -222,11 +229,35 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportTimeTo = reportTimeTo; this.reportTimeTo = reportTimeTo;
} }
public ReportAttachmentEntity getReportAttachmentEntity() { public List<ReportAttachmentEntity> getReportAttachmentEntityList() {
return reportAttachmentEntity; return reportAttachmentEntityList;
}
public void setReportAttachmentEntityList(List<ReportAttachmentEntity> reportAttachmentEntityList) {
this.reportAttachmentEntityList = reportAttachmentEntityList;
}
public List<String> getReportAttachmentList() {
return reportAttachmentList;
}
public void setReportAttachmentList(List<String> reportAttachmentList) {
this.reportAttachmentList = reportAttachmentList;
}
public List<String> getSupplementAttachmentList() {
return supplementAttachmentList;
}
public void setSupplementAttachmentList(List<String> supplementAttachmentList) {
this.supplementAttachmentList = supplementAttachmentList;
}
public List<String> getDealAttachmentList() {
return dealAttachmentList;
} }
public void setReportAttachmentEntity(ReportAttachmentEntity reportAttachmentEntity) { public void setDealAttachmentList(List<String> dealAttachmentList) {
this.reportAttachmentEntity = reportAttachmentEntity; this.dealAttachmentList = dealAttachmentList;
} }
} }
...@@ -2,10 +2,12 @@ package com.ejweb.modules.report.service; ...@@ -2,10 +2,12 @@ package com.ejweb.modules.report.service;
import com.ejweb.core.service.CrudService; import com.ejweb.core.service.CrudService;
import com.ejweb.core.utils.IdGen; import com.ejweb.core.utils.IdGen;
import com.ejweb.core.utils.StringUtils;
import com.ejweb.modules.report.dao.ReportDao; import com.ejweb.modules.report.dao.ReportDao;
import com.ejweb.modules.report.entity.ReportAttachmentEntity; 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.sys.entity.User; import com.ejweb.modules.sys.entity.User;
import com.ejweb.modules.sys.utils.UserUtils;
import org.springframework.beans.factory.annotation.Autowired; import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional; import org.springframework.transaction.annotation.Transactional;
...@@ -14,6 +16,7 @@ import java.io.File; ...@@ -14,6 +16,7 @@ import java.io.File;
import java.io.UnsupportedEncodingException; import java.io.UnsupportedEncodingException;
import java.net.URLDecoder; import java.net.URLDecoder;
import java.text.SimpleDateFormat; import java.text.SimpleDateFormat;
import java.util.List;
/** /**
* 举报Service * 举报Service
...@@ -41,7 +44,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -41,7 +44,7 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
* @param reportEntity * @param reportEntity
*/ */
@Transactional(readOnly = false) @Transactional(readOnly = false)
public void save(ReportEntity reportEntity) { public void saveReport(ReportEntity reportEntity) {
//保存举报信息 //保存举报信息
reportEntity.preInsert(); reportEntity.preInsert();
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
...@@ -52,25 +55,98 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -52,25 +55,98 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
reportEntity.setExchangeAfterUser(reportEntity.getCreateBy().getId()); reportEntity.setExchangeAfterUser(reportEntity.getCreateBy().getId());
dao.addReport(reportEntity); dao.addReport(reportEntity);
//保存附件信息 List<String> reportAttachmentList = reportEntity.getReportAttachmentList();
ReportAttachmentEntity reportAttachmentEntity = reportEntity.getReportAttachmentEntity(); if (reportAttachmentList != null && reportAttachmentList.size() > 0) {
reportAttachmentEntity.setId(IdGen.uuid()); for (String path : reportAttachmentList) {
reportAttachmentEntity.setReportId(reportEntity.getId()); //保存举报提交附件信息
//获取文件名 ReportAttachmentEntity reportAttachmentEntity = new ReportAttachmentEntity();
int beginIndex = reportAttachmentEntity.getAttachmentPath().indexOf("%"); reportAttachmentEntity.setId(IdGen.uuid());
int endIndex = reportAttachmentEntity.getAttachmentPath().lastIndexOf("."); reportAttachmentEntity.setReportId(reportEntity.getId());
String fileNameUrlCode = reportAttachmentEntity.getAttachmentPath().substring(beginIndex,endIndex); //获取文件名
String prefixName = reportAttachmentEntity.getAttachmentPath().substring(endIndex,reportAttachmentEntity.getAttachmentPath().length()); String fileName = this.getFilename(path);
if (StringUtils.isNotBlank(fileName)) {
reportAttachmentEntity.setAttachmentName(fileName);
}
reportAttachmentEntity.setAttachmentPath(path);
File file = new File(reportAttachmentEntity.getAttachmentPath());
long length = file.length();
reportAttachmentEntity.setAttachmentType("0");
reportDao.addReportAttachment(reportAttachmentEntity);
}
}
}
/**
* 举报补充
* @param reportEntity
*/
@Transactional(readOnly = false)
public void saveTrack(ReportEntity reportEntity) {
//保存举报补充信息
reportEntity.preUpdate();
User user = UserUtils.getUser();
reportEntity.setDealPersonName(user.getName());
dao.addTrack(reportEntity);
List<String> supplementAttachmentList = reportEntity.getSupplementAttachmentList();
if (supplementAttachmentList != null && supplementAttachmentList.size() > 0) {
for (String path : supplementAttachmentList) {
//保存补充提交附件信息
ReportAttachmentEntity reportAttachmentEntity = reportAttachmentEntity = new ReportAttachmentEntity();
reportAttachmentEntity.setId(IdGen.uuid());
reportAttachmentEntity.setReportId(reportEntity.getId());
//获取文件名
String fileName = this.getFilename(path);
if (StringUtils.isNotBlank(fileName)) {
reportAttachmentEntity.setAttachmentName(fileName);
}
reportAttachmentEntity.setAttachmentPath(path);
File file = new File(reportAttachmentEntity.getAttachmentPath());
long length = file.length();
reportAttachmentEntity.setAttachmentType("1");
reportDao.addReportAttachment(reportAttachmentEntity);
}
}
List<String> dealAttachmentList = reportEntity.getDealAttachmentList();
if (dealAttachmentList != null && dealAttachmentList.size() > 0) {
for (String path : dealAttachmentList) {
//保存处理结果附件信息
ReportAttachmentEntity reportAttachmentEntity = reportAttachmentEntity = new ReportAttachmentEntity();
reportAttachmentEntity.setId(IdGen.uuid());
reportAttachmentEntity.setReportId(reportEntity.getId());
//获取文件名
String fileName = this.getFilename(path);
if (StringUtils.isNotBlank(fileName)) {
reportAttachmentEntity.setAttachmentName(fileName);
}
reportAttachmentEntity.setAttachmentPath(path);
File file = new File(reportAttachmentEntity.getAttachmentPath());
long length = file.length();
reportAttachmentEntity.setAttachmentType("2");
reportDao.addReportAttachment(reportAttachmentEntity);
}
}
//更新举报状态
reportEntity.setReportStatus("1");
if (StringUtils.isNotBlank(reportEntity.getDealResult())){
reportEntity.setReportStatus("2");
}
reportDao.updateReportStatus(reportEntity);
}
public String getFilename(String path){
int beginIndex = path.indexOf("%");
int endIndex = path.lastIndexOf(".");
String fileNameUrlCode = path.substring(beginIndex, endIndex);
String prefixName = path.substring(endIndex, path.length());
try { try {
String fileName = URLDecoder.decode(fileNameUrlCode,"UTF-8"); String utlToName = URLDecoder.decode(fileNameUrlCode, "UTF-8");
reportAttachmentEntity.setAttachmentName(fileName+prefixName); String fileName = utlToName + prefixName;
return fileName;
} catch (UnsupportedEncodingException e) { } catch (UnsupportedEncodingException e) {
e.printStackTrace(); e.printStackTrace();
return null;
} }
File file = new File(reportAttachmentEntity.getAttachmentPath());
long length = file.length();
reportAttachmentEntity.setAttachmentType("0");
reportDao.addReportAttachment(reportAttachmentEntity);
} }
} }
...@@ -94,7 +94,7 @@ public class ReportController extends BaseController { ...@@ -94,7 +94,7 @@ public class ReportController extends BaseController {
} }
/** /**
* 举报保存 * 举报信息保存
* *
* @param reportEntity * @param reportEntity
* @param model * @param model
...@@ -105,7 +105,7 @@ public class ReportController extends BaseController { ...@@ -105,7 +105,7 @@ public class ReportController extends BaseController {
if (!beanValidator(model, reportEntity)) { if (!beanValidator(model, reportEntity)) {
return form(reportEntity, model); return form(reportEntity, model);
} }
reportService.save(reportEntity); reportService.saveReport(reportEntity);
addMessage(redirectAttributes, "添加举报"+ reportEntity.getReportProject() + "'成功"); addMessage(redirectAttributes, "添加举报"+ reportEntity.getReportProject() + "'成功");
return "redirect:" + adminPath + "/report/list/?repage&flag=0"; return "redirect:" + adminPath + "/report/list/?repage&flag=0";
} }
...@@ -144,4 +144,21 @@ public class ReportController extends BaseController { ...@@ -144,4 +144,21 @@ public class ReportController extends BaseController {
return "modules/report/reportTrack"; return "modules/report/reportTrack";
} }
/**
* 举报跟踪信息保存
*
* @param reportEntity
* @param model
* @return
*/
@RequestMapping(value = "addTrack")
public String addTrack(ReportEntity reportEntity, Model model, RedirectAttributes redirectAttributes) {
if (!beanValidator(model, reportEntity)) {
return form(reportEntity, model);
}
reportService.saveTrack(reportEntity);
addMessage(redirectAttributes, "补充举报"+ reportEntity.getSupplementTitle() + "'成功");
return "redirect:" + adminPath + "/report/list/?repage&flag=0";
}
} }
...@@ -28,11 +28,7 @@ ...@@ -28,11 +28,7 @@
r.create_by AS "createBy", r.create_by AS "createBy",
r.create_date AS "createDate", r.create_date AS "createDate",
r.update_by AS "updateBy", r.update_by AS "updateBy",
r.update_date AS "updateDate", r.update_date AS "updateDate"
ra.attachment_name AS "reportAttachmentEntity.attachmentName",
ra.attachment_path AS "reportAttachmentEntity.attachmentPath",
ra.attachment_size AS "reportAttachmentEntity.attachmentSize",
ra.attachment_type AS "reportAttachmentEntity.attachmentType"
</sql> </sql>
...@@ -44,7 +40,6 @@ ...@@ -44,7 +40,6 @@
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
FROM report r FROM report r
<include refid="reportJoins"/>
WHERE r.id = #{id} WHERE r.id = #{id}
</select> </select>
...@@ -52,7 +47,6 @@ ...@@ -52,7 +47,6 @@
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
FROM report r FROM report r
<include refid="reportJoins"/>
<where> <where>
1 = 1 1 = 1
<if test="exchangeAfterUser != null and exchangeAfterUser != ''"> <if test="exchangeAfterUser != null and exchangeAfterUser != ''">
...@@ -105,7 +99,6 @@ ...@@ -105,7 +99,6 @@
SELECT SELECT
<include refid="reportColumns"/> <include refid="reportColumns"/>
FROM report r FROM report r
<include refid="reportJoins"/>
<choose> <choose>
<when test="page !=null and page.orderBy != null and page.orderBy != ''"> <when test="page !=null and page.orderBy != null and page.orderBy != ''">
ORDER BY ${page.orderBy} ORDER BY ${page.orderBy}
...@@ -181,24 +174,26 @@ ...@@ -181,24 +174,26 @@
) )
</insert> </insert>
<update id="update"> <update id="addTrack">
UPDATE sys_area SET UPDATE report SET
parent_id = #{parent.id}, supplement_company = #{supplementCompany},
parent_ids = #{parentIds}, supplement_department = #{supplementDepartment},
code = #{code}, supplement_informant = #{supplementInformant},
name = #{name}, supplement_title = #{supplementTitle},
sort = #{sort}, supplement_type = #{supplementType},
type = #{type}, supplement_area = #{supplementArea},
update_by = #{updateBy.id}, supplement_project = #{supplementProject},
update_date = #{updateDate}, supplement_content = #{supplementContent},
remarks = #{remarks} deal_person_name = #{dealPersonName},
WHERE id = #{id} deal_result = #{dealResult},
</update> update_by = #{updateBy.id},
update_date = #{updateDate}
WHERE id = #{id}
</update>
<update id="updateParentIds"> <update id="updateReportStatus">
UPDATE sys_area SET UPDATE report SET
parent_id = #{parent.id}, report_status = #{reportStatus}
parent_ids = #{parentIds}
WHERE id = #{id} WHERE id = #{id}
</update> </update>
......
...@@ -5,32 +5,15 @@ ...@@ -5,32 +5,15 @@
<title>举报管理</title> <title>举报管理</title>
<meta name="decorator" content="default"/> <meta name="decorator" content="default"/>
<script type="text/javascript"> <script type="text/javascript">
var submitCount = 0;
$(document).ready(function () { $(document).ready(function () {
$("#inputForm").validate({ $("input[type='text']").attr("disabled",true);
submitHandler: function (form) {
if ($("#nameFile").val().length == 0) { $("#btnTrack").click(function () {
$("#checkFile").show(); window.location.href = "${ctx}/report/track?id=${report.id}";
} else { });
submitCount += 1; $("#btnDocument").click(function () {
if(submitCount == 1){ $("#inputForm").attr("action", "${ctx}/report/document");
$("#checkFile").hide(); $("#inputForm").submit();
loading('正在提交,请稍等...');
form.submit();
}else{
return false;
}
}
},
errorContainer: "#messageBox",
errorPlacement: function (error, element) {
$("#messageBox").text("输入有误,请先更正。");
if (element.is(":checkbox") || element.is(":radio") || element.parent().is(".input-append")) {
error.appendTo(element.parent().parent());
} else {
error.insertAfter(element);
}
}
}); });
}); });
</script> </script>
...@@ -43,38 +26,41 @@ ...@@ -43,38 +26,41 @@
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/report/form">举报录入</a></li> <li class="active"><a href="${ctx}/report/form">举报详情</a></li>
</ul> </ul>
<br/> <br/>
<form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addReport" method="post" class="form-horizontal"> <form:form id="inputForm" modelAttribute="report" action="${ctx}/report/track" method="post" class="form-horizontal">
<sys:message content="${message}"/> <sys:message content="${message}"/>
<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>
<div class="controls"> <div class="controls">
<form:input path="reportProject" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <form:input path="reportProject" 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="reportTime" 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="reportCity" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <form:input path="reportCity" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</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: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" disabled="true"/>
<span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</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:hidden id="nameFile" path="reportAttachmentEntity.attachmentPath" htmlEscape="false" <form:hidden id="nameFile" path="reportAttachmentList" htmlEscape="false"
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="false" maxWidth="100" maxHeight="100"/> selectMultiple="false" maxWidth="100" maxHeight="100"/>
...@@ -86,35 +72,91 @@ ...@@ -86,35 +72,91 @@
<label class="control-label">姓名:</label> <label class="control-label">姓名:</label>
<div class="controls"> <div class="controls">
<form:input path="reportPersonName" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <form:input path="reportPersonName" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</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="reportPersonTel" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <form:input path="reportPersonTel" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
<label class="control-label">Email:</label> <label class="control-label">Email:</label>
<div class="controls"> <div class="controls">
<form:input path="reportPersonEmail" htmlEscape="false" maxlength="200" class="input-xlarge required"/> <form:input path="reportPersonEmail" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
<span class="help-inline"><font color="red">*</font> </span>
</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:radiobutton path="reportSource" value="tel" checked="true"/>电话&emsp; <form:radiobuttons path="reportSource" items="${fns:getDictList('report_source')}" itemLabel="label" itemValue="value"
<form:radiobutton path="reportSource" value="email"/>邮件&emsp; htmlEscape="false" disabled="true"/>
<form:radiobutton path="reportSource" value="visit"/>来访
<span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
<div class="form-actions"> <span class="title">举报信息补充</span>
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp; <div class="control-group">
<label class="control-label">标题:</label>
<div class="controls">
<form:input path="supplementTitle" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">被举报公司:</label>
<div class="controls">
<form:input path="supplementCompany" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</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"/>
</div>
</div>
<div class="control-group">
<label class="control-label">被举报人:</label>
<div class="controls">
<form:input path="supplementInformant" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">业务类型:</label>
<div class="controls">
<form:input path="supplementType" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">被举报区域:</label>
<div class="controls">
<form:input path="supplementArea" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">被举报项目:</label>
<div class="controls">
<form:input path="supplementProject" htmlEscape="false" maxlength="200" class="input-xlarge required"/>
</div>
</div>
<div class="control-group">
<label class="control-label">内容:</label>
<div class="controls">
<form:textarea id="reportContent" htmlEscape="true" path="supplementContent" rows="4" maxlength="500" class="input-xxlarge" disabled="true"/>
</div>
</div>
<div class="control-group">
<label class="control-label">附件:</label>
<div class="controls">
<form:hidden id="nameFile" path="supplementAttachmentList" htmlEscape="false"
maxlength="255" class="input-xlarge"/>
<sys:ckfinder input="nameFile" type="files" uploadPath="/file"
selectMultiple="false" maxWidth="100" maxHeight="100"/>
<label id="checkFile" class="error" style="display: none;">必填信息</label>
</div>
</div> </div>
<li class="btns">
<label style="width:auto;"><input id="btnTrack" class="btn btn-primary" type="button" value="跟踪"/>&nbsp;&nbsp;
<input id="btnDocument" class="btn btn-primary" type="button" value="转为文档"/>&nbsp;&nbsp;
<input id="btnReturn" class="btn btn-primary" type="button" value="返回" onclick="history.go(-1)"/></label>
</li>
</form:form> </form:form>
</body> </body>
......
...@@ -11,7 +11,9 @@ ...@@ -11,7 +11,9 @@
submitHandler: function (form) { submitHandler: function (form) {
if ($("#nameFile").val().length == 0) { if ($("#nameFile").val().length == 0) {
$("#checkFile").show(); $("#checkFile").show();
} else { } else if ($("#reportContent").val() == ""){
top.$.jBox.tip('请填写内容', 'warning');
}else {
submitCount += 1; submitCount += 1;
if(submitCount == 1){ if(submitCount == 1){
$("#checkFile").hide(); $("#checkFile").hide();
...@@ -74,7 +76,7 @@ ...@@ -74,7 +76,7 @@
<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:hidden id="nameFile" path="reportAttachmentEntity.attachmentPath" htmlEscape="false" <form:hidden id="nameFile" path="reportAttachmentList" htmlEscape="false"
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="false" maxWidth="100" maxHeight="100"/> selectMultiple="false" maxWidth="100" maxHeight="100"/>
......
...@@ -131,7 +131,7 @@ ...@@ -131,7 +131,7 @@
<c:if test="${report.dealResult eq '3'}">举报属实</c:if> <c:if test="${report.dealResult eq '3'}">举报属实</c:if>
</td> </td>
<td><c:if test="${report.dealResult eq null}">--</c:if> <td><c:if test="${report.dealResult eq null}">--</c:if>
<c:if test="${report.dealResult eq null}">${report.dealPersonName}</c:if> <c:if test="${report.dealResult ne null}">${report.dealPersonName}</c:if>
</td> </td>
<td> <td>
<a href="${ctx}/report/view?id=${report.id}">查看</a> <a href="${ctx}/report/view?id=${report.id}">查看</a>
......
...@@ -47,6 +47,7 @@ ...@@ -47,6 +47,7 @@
</ul> </ul>
<br/> <br/>
<form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addTrack" method="post" class="form-horizontal"> <form:form id="inputForm" modelAttribute="report" action="${ctx}/report/addTrack" method="post" class="form-horizontal">
<form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<span class="title">举报信息补充</span> <span class="title">举报信息补充</span>
<div class="control-group"> <div class="control-group">
...@@ -106,7 +107,7 @@ ...@@ -106,7 +107,7 @@
<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:textarea id="reportContent" htmlEscape="true" path="reportContent" rows="4" maxlength="500" class="input-xxlarge"/> <form:textarea id="supplementContent" htmlEscape="true" path="supplementContent" rows="4" maxlength="500" class="input-xxlarge"/>
<span class="help-inline"><font color="red">*</font> </span> <span class="help-inline"><font color="red">*</font> </span>
</div> </div>
</div> </div>
...@@ -114,7 +115,7 @@ ...@@ -114,7 +115,7 @@
<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:hidden id="nameFile" path="reportAttachmentEntity.attachmentPath" htmlEscape="false" <form:hidden id="nameFile" path="supplementAttachmentList" htmlEscape="false"
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="false" maxWidth="100" maxHeight="100"/> selectMultiple="false" maxWidth="100" maxHeight="100"/>
...@@ -132,7 +133,7 @@ ...@@ -132,7 +133,7 @@
<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:hidden id="nameFile" path="reportAttachmentEntity.attachmentPath" htmlEscape="false" <form:hidden id="nameFile" path="dealAttachmentList" htmlEscape="false"
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="false" maxWidth="100" maxHeight="100"/> selectMultiple="false" maxWidth="100" maxHeight="100"/>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment