Commit fd891241 by Java-刘铮

ReportController:修改发送消息方法。

reportDetaol:添加dealResult=4为“举报属实”。
reportTrack:修改举报属性个状态可见“是否完成”。
parent acbb25ef
...@@ -9,12 +9,14 @@ ...@@ -9,12 +9,14 @@
<module name="ejweb-manage" /> <module name="ejweb-manage" />
<module name="it-faq-manage" /> <module name="it-faq-manage" />
<module name="report_sunac" /> <module name="report_sunac" />
<module name="report_sunac (1)" />
</profile> </profile>
</annotationProcessing> </annotationProcessing>
<bytecodeTargetLevel> <bytecodeTargetLevel>
<module name="ejweb-manage" target="1.8" /> <module name="ejweb-manage" target="1.8" />
<module name="it-faq-manage" target="1.8" /> <module name="it-faq-manage" target="1.8" />
<module name="report_sunac" target="1.8" /> <module name="report_sunac" target="1.8" />
<module name="report_sunac (1)" target="1.8" />
</bytecodeTargetLevel> </bytecodeTargetLevel>
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -2,5 +2,6 @@ ...@@ -2,5 +2,6 @@
<project version="4"> <project version="4">
<component name="Encoding"> <component name="Encoding">
<file url="file://$PROJECT_DIR$" charset="UTF-8" /> <file url="file://$PROJECT_DIR$" charset="UTF-8" />
<file url="file://E:/sunac_report" charset="UTF-8" />
</component> </component>
</project> </project>
\ No newline at end of file
...@@ -2,11 +2,14 @@ ...@@ -2,11 +2,14 @@
<project version="4"> <project version="4">
<component name="FrameworkDetectionExcludesConfiguration"> <component name="FrameworkDetectionExcludesConfiguration">
<file type="web" url="file://$PROJECT_DIR$" /> <file type="web" url="file://$PROJECT_DIR$" />
<file type="web" url="file://E:/sunac_report" />
</component> </component>
<component name="MavenProjectsManager"> <component name="MavenProjectsManager">
<option name="originalFiles"> <option name="originalFiles">
<list> <list>
<option value="$PROJECT_DIR$/pom.xml" /> <option value="$PROJECT_DIR$/pom.xml" />
<option value="E:/gzb_bbhz/pom.xml" />
<option value="E:/sunac_report/pom.xml" />
</list> </list>
</option> </option>
</component> </component>
......
...@@ -3,6 +3,7 @@ ...@@ -3,6 +3,7 @@
<component name="ProjectModuleManager"> <component name="ProjectModuleManager">
<modules> <modules>
<module fileurl="file://$PROJECT_DIR$/report_sunac.iml" filepath="$PROJECT_DIR$/report_sunac.iml" /> <module fileurl="file://$PROJECT_DIR$/report_sunac.iml" filepath="$PROJECT_DIR$/report_sunac.iml" />
<module fileurl="file://E:/sunac_report/report_sunac (1).iml" filepath="E:/sunac_report/report_sunac (1).iml" />
</modules> </modules>
</component> </component>
</project> </project>
\ No newline at end of file
This source diff could not be displayed because it is too large. You can view the blob instead.
...@@ -63,7 +63,7 @@ ...@@ -63,7 +63,7 @@
<orderEntry type="module-library"> <orderEntry type="module-library">
<library name="Maven: com.alibaba:jconsole:1.8.0"> <library name="Maven: com.alibaba:jconsole:1.8.0">
<CLASSES> <CLASSES>
<root url="jar://D:/Java/JDK/jdk1.8.0_131/lib/jconsole.jar!/" /> <root url="jar://D:/java/lib/jconsole.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
...@@ -72,7 +72,7 @@ ...@@ -72,7 +72,7 @@
<orderEntry type="module-library"> <orderEntry type="module-library">
<library name="Maven: com.alibaba:tools:1.8.0"> <library name="Maven: com.alibaba:tools:1.8.0">
<CLASSES> <CLASSES>
<root url="jar://D:/Java/JDK/jdk1.8.0_131/lib/tools.jar!/" /> <root url="jar://D:/java/lib/tools.jar!/" />
</CLASSES> </CLASSES>
<JAVADOC /> <JAVADOC />
<SOURCES /> <SOURCES />
......
...@@ -50,9 +50,9 @@ public class FrontReportController { ...@@ -50,9 +50,9 @@ public class FrontReportController {
ResponseBean responseBean = new ResponseBean(); ResponseBean responseBean = new ResponseBean();
if(bean!=null){ if(bean!=null){
if(!CaptchaUtil.validate(bean.getCaptcha(),bean.getCode())){ if(!CaptchaUtil.validate(bean.getCaptcha(),bean.getCode())){
responseBean.setStatus(ErrorCode.CAPTCHA_ERROR); responseBean.setStatus(ErrorCode.CAPTCHA_ERROR);
responseBean.setMessage("captcha is incorrect"); responseBean.setMessage("captcha is incorrect");
return responseBean; return responseBean;
} }
if (StringUtils.isBlank(bean.getReportSource())){ if (StringUtils.isBlank(bean.getReportSource())){
responseBean.setStatus(ErrorCode.STATUS_CODE_4002); responseBean.setStatus(ErrorCode.STATUS_CODE_4002);
......
...@@ -205,4 +205,11 @@ public interface ReportDao extends CrudDao<ReportEntity> { ...@@ -205,4 +205,11 @@ public interface ReportDao extends CrudDao<ReportEntity> {
* 总数 * 总数
*/ */
public int getTotalNum(WorkbenchBean bean); public int getTotalNum(WorkbenchBean bean);
/**
* 删除举报信息
* @param reportEntity
* @return
*/
public int deleteConclusion(ReportEntity reportEntity);
} }
...@@ -108,7 +108,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -108,7 +108,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public void setReportTime(String reportTime) { public void setReportTime(String reportTime) {
this.reportTime = reportTime; this.reportTime = reportTime;
} }
@ExcelField(title = "举报内容",align = 2,sort = 44)
public String getReportContent() { public String getReportContent() {
return reportContent; return reportContent;
} }
...@@ -219,7 +219,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -219,7 +219,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
public void setSupplementProject(String supplementProject) { public void setSupplementProject(String supplementProject) {
this.supplementProject = supplementProject; this.supplementProject = supplementProject;
} }
@ExcelField(title = "举报信息补充内容",align = 2,sort = 46)
public String getSupplementContent() { public String getSupplementContent() {
return supplementContent; return supplementContent;
} }
...@@ -335,7 +335,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -335,7 +335,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.transferName = transferName; this.transferName = transferName;
} }
@ExcelField(title="IP来源", align=2, sort=44) @ExcelField(title="IP来源", align=2, sort=48)
public String getReportIp() { public String getReportIp() {
return reportIp; return reportIp;
} }
...@@ -344,7 +344,7 @@ public class ReportEntity extends DataEntity<ReportEntity> { ...@@ -344,7 +344,7 @@ public class ReportEntity extends DataEntity<ReportEntity> {
this.reportIp = reportIp; this.reportIp = reportIp;
} }
@ExcelField(title="IP所属城市", align=2, sort=46) @ExcelField(title="IP所属城市", align=2, sort=50)
public String getIpCity() { public String getIpCity() {
return ipCity; return ipCity;
} }
......
...@@ -563,4 +563,14 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> { ...@@ -563,4 +563,14 @@ public class ReportService extends CrudService<ReportDao, ReportEntity> {
return reportDao.updateConclusion(reportEntity); return reportDao.updateConclusion(reportEntity);
} }
/**
* 删除举报信息
*
* @return
*/
@Transactional(readOnly = false)
public int deleteConclusion(ReportEntity reportEntity) {
return reportDao.deleteConclusion(reportEntity);
}
} }
...@@ -560,5 +560,18 @@ public class ReportController extends BaseController { ...@@ -560,5 +560,18 @@ public class ReportController extends BaseController {
return "redirect:" + adminPath + "/report/list/?repage&flag=0"; return "redirect:" + adminPath + "/report/list/?repage&flag=0";
} }
/**
* 删除举报记录
*
* @return
*/
@RequestMapping(value = "deleteconclusion")
public String deleteConclusion(String id) {
ReportEntity reportEntity = new ReportEntity();
reportEntity.setId(id);
reportService.deleteConclusion(reportEntity);
return "redirect:" + adminPath + "/report/list/?repage&flag=0";
}
} }
...@@ -27,6 +27,7 @@ import java.util.List; ...@@ -27,6 +27,7 @@ import java.util.List;
/** /**
* 举报转为Word文档Controller * 举报转为Word文档Controller
*
* @author lixy * @author lixy
* @version 2017-10-19 * @version 2017-10-19
*/ */
...@@ -48,16 +49,16 @@ public class ReportToWordController { ...@@ -48,16 +49,16 @@ public class ReportToWordController {
@RequestMapping(value = "toWord") @RequestMapping(value = "toWord")
public void toWord(ReportEntity reportEntity, String flag, HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) throws IOException, XmlException { public void toWord(ReportEntity reportEntity, String flag, HttpServletRequest request, HttpServletResponse response, RedirectAttributes redirectAttributes) throws IOException, XmlException {
//Blank Document //Blank Document
XWPFDocument document= new XWPFDocument(); XWPFDocument document = new XWPFDocument();
//Write the Document in file system //Write the Document in file system
String reportProjectTitle = reportEntity.getReportProject(); // String reportProjectTitle = reportEntity.getReportProject();
if (reportProjectTitle.contains("/")){ // if (reportProjectTitle.contains("/")){
reportProjectTitle = reportProjectTitle.replace("/","|"); // reportProjectTitle = reportProjectTitle.replace("/","|");
} // }
if (reportProjectTitle.contains("\\")){ // if (reportProjectTitle.contains("\\")){
reportProjectTitle = reportProjectTitle.replace("\\","|"); // reportProjectTitle = reportProjectTitle.replace("\\","|");
} // }
FileOutputStream out = new FileOutputStream(GConstants.FILE_UPLOAD_DIR+"pdf/"+reportProjectTitle+"_"+reportEntity.getId()+".docx"); FileOutputStream out = new FileOutputStream(GConstants.FILE_UPLOAD_DIR + "pdf/" + reportEntity.getId() + ".docx");
// FileOutputStream out = new FileOutputStream("D:/1.docx"); // FileOutputStream out = new FileOutputStream("D:/1.docx");
// FileOutputStream out = new FileOutputStream("C:/1.docx"); // FileOutputStream out = new FileOutputStream("C:/1.docx");
//添加标题 //添加标题
...@@ -94,7 +95,7 @@ public class ReportToWordController { ...@@ -94,7 +95,7 @@ public class ReportToWordController {
//表格第一行 //表格第一行
XWPFTableRow reportProject = basicInfoTable.getRow(0); XWPFTableRow reportProject = basicInfoTable.getRow(0);
reportProject.getCell(0).setText("被举报项目/部门:"); reportProject.getCell(0).setText("被举报项目/部门:");
reportProject.addNewTableCell().setText(reportEntity.getReportProject()==null?"":reportEntity.getReportProject()); reportProject.addNewTableCell().setText(reportEntity.getReportProject() == null ? "" : reportEntity.getReportProject());
XWPFTableRow supplementTitle = basicInfoTable.createRow(); XWPFTableRow supplementTitle = basicInfoTable.createRow();
supplementTitle.getCell(0).setText("标题:"); supplementTitle.getCell(0).setText("标题:");
...@@ -107,24 +108,24 @@ public class ReportToWordController { ...@@ -107,24 +108,24 @@ public class ReportToWordController {
//表格第三行 //表格第三行
XWPFTableRow reportCity = basicInfoTable.createRow(); XWPFTableRow reportCity = basicInfoTable.createRow();
reportCity.getCell(0).setText("所在城市:"); reportCity.getCell(0).setText("所在城市:");
reportCity.getCell(1).setText(reportEntity.getReportCity()==null?"":reportEntity.getReportCity()); reportCity.getCell(1).setText(reportEntity.getReportCity() == null ? "" : reportEntity.getReportCity());
//表格第四行 //表格第四行
XWPFTableRow reportTime = basicInfoTable.createRow(); XWPFTableRow reportTime = basicInfoTable.createRow();
reportTime.getCell(0).setText("举报时间:"); reportTime.getCell(0).setText("举报时间:");
reportTime.getCell(1).setText(reportEntity.getReportTime()==null?"":reportEntity.getReportTime()); reportTime.getCell(1).setText(reportEntity.getReportTime() == null ? "" : reportEntity.getReportTime());
XWPFTableRow reportIp = basicInfoTable.createRow(); XWPFTableRow reportIp = basicInfoTable.createRow();
reportIp.getCell(0).setText("IP来源:"); reportIp.getCell(0).setText("IP来源:");
reportIp.getCell(1).setText(reportEntity.getReportIp()==null?"":reportEntity.getReportIp()); reportIp.getCell(1).setText(reportEntity.getReportIp() == null ? "" : reportEntity.getReportIp());
XWPFTableRow ipCity = basicInfoTable.createRow(); XWPFTableRow ipCity = basicInfoTable.createRow();
ipCity.getCell(0).setText("IP所属城市:"); ipCity.getCell(0).setText("IP所属城市:");
ipCity.getCell(1).setText(reportEntity.getIpCity()==null?"":reportEntity.getIpCity()); ipCity.getCell(1).setText(reportEntity.getIpCity() == null ? "" : reportEntity.getIpCity());
String is_send_email = reportEntity.getIsSendEmail(); String is_send_email = reportEntity.getIsSendEmail();
if (StringUtils.isNotBlank(is_send_email)){ if (StringUtils.isNotBlank(is_send_email)) {
if (is_send_email.equals("1")){ if (is_send_email.equals("1")) {
is_send_email = "是"; is_send_email = "是";
} }
}else { } else {
is_send_email = "否"; is_send_email = "否";
} }
XWPFTableRow isSendEmail = basicInfoTable.createRow(); XWPFTableRow isSendEmail = basicInfoTable.createRow();
...@@ -134,7 +135,7 @@ public class ReportToWordController { ...@@ -134,7 +135,7 @@ public class ReportToWordController {
//表格第五行 //表格第五行
XWPFTableRow reportContent = basicInfoTable.createRow(); XWPFTableRow reportContent = basicInfoTable.createRow();
reportContent.getCell(0).setText("内容:"); reportContent.getCell(0).setText("内容:");
reportContent.getCell(1).setText(reportEntity.getReportContent()==null?"":reportEntity.getReportContent()); reportContent.getCell(1).setText(reportEntity.getReportContent() == null ? "" : reportEntity.getReportContent());
//表格 附件 //表格 附件
//获取附件列表 //获取附件列表
...@@ -144,7 +145,7 @@ public class ReportToWordController { ...@@ -144,7 +145,7 @@ public class ReportToWordController {
List<ReportAttachmentEntity> list = reportService.getAttachmentInfo(reportAttachmentBean); List<ReportAttachmentEntity> list = reportService.getAttachmentInfo(reportAttachmentBean);
if (list != null && list.size() != 0) { if (list != null && list.size() != 0) {
for (int i = 0;i < list.size();i++) { for (int i = 0; i < list.size(); i++) {
XWPFTableRow reportAttachment = basicInfoTable.createRow(); XWPFTableRow reportAttachment = basicInfoTable.createRow();
reportAttachment.getCell(0).setText("附件:"); reportAttachment.getCell(0).setText("附件:");
reportAttachment.getCell(1).setText(list.get(i).getAttachmentPath()); reportAttachment.getCell(1).setText(list.get(i).getAttachmentPath());
...@@ -185,7 +186,7 @@ public class ReportToWordController { ...@@ -185,7 +186,7 @@ public class ReportToWordController {
//表格第一行 //表格第一行
XWPFTableRow reportPersonName = peopleInfoTable.getRow(0); XWPFTableRow reportPersonName = peopleInfoTable.getRow(0);
reportPersonName.getCell(0).setText("姓名:"); reportPersonName.getCell(0).setText("姓名:");
reportPersonName.addNewTableCell().setText(reportEntity.getReportPersonName()==null?"":reportEntity.getReportPersonName()); reportPersonName.addNewTableCell().setText(reportEntity.getReportPersonName() == null ? "" : reportEntity.getReportPersonName());
//表格第二行 //表格第二行
XWPFTableRow reportPersonTel = peopleInfoTable.createRow(); XWPFTableRow reportPersonTel = peopleInfoTable.createRow();
reportPersonTel.getCell(0).setText("手机号:"); reportPersonTel.getCell(0).setText("手机号:");
...@@ -193,32 +194,32 @@ public class ReportToWordController { ...@@ -193,32 +194,32 @@ public class ReportToWordController {
//表格第三行 //表格第三行
XWPFTableRow reportPersonEmail = peopleInfoTable.createRow(); XWPFTableRow reportPersonEmail = peopleInfoTable.createRow();
reportPersonEmail.getCell(0).setText("Email:"); reportPersonEmail.getCell(0).setText("Email:");
reportPersonEmail.getCell(1).setText(reportEntity.getReportPersonEmail()==null?"":reportEntity.getReportPersonEmail()); reportPersonEmail.getCell(1).setText(reportEntity.getReportPersonEmail() == null ? "" : reportEntity.getReportPersonEmail());
//表格第四行 //表格第四行
XWPFTableRow reportSource = peopleInfoTable.createRow(); XWPFTableRow reportSource = peopleInfoTable.createRow();
reportSource.getCell(0).setText("举报途径:"); reportSource.getCell(0).setText("举报途径:");
String report_source = reportEntity.getReportSource(); String report_source = reportEntity.getReportSource();
if (StringUtils.isNotBlank(report_source)){ if (StringUtils.isNotBlank(report_source)) {
if (report_source.equals("web")){ if (report_source.equals("web")) {
report_source = "官网"; report_source = "官网";
}else if (report_source.equals("oa")){ } else if (report_source.equals("oa")) {
report_source = "融创OA系统"; report_source = "融创OA系统";
}else if (report_source.equals("supplier")){ } else if (report_source.equals("supplier")) {
report_source = "供应商系统"; report_source = "供应商系统";
}else if (report_source.equals("wechat")){ } else if (report_source.equals("wechat")) {
report_source = "微信公众号"; report_source = "微信公众号";
}else if (report_source.equals("sunacE")){ } else if (report_source.equals("sunacE")) {
report_source = "融E"; report_source = "融E";
}else if (report_source.equals("offline")){ } else if (report_source.equals("offline")) {
report_source = "线下扫码"; report_source = "线下扫码";
}else if (report_source.equals("tel")){ } else if (report_source.equals("tel")) {
report_source = "电话"; report_source = "电话";
}else if (report_source.equals("email")){ } else if (report_source.equals("email")) {
report_source = "邮件"; report_source = "邮件";
}else if (report_source.equals("visit")){ } else if (report_source.equals("visit")) {
report_source = "来访"; report_source = "来访";
} }
}else { } else {
report_source = ""; report_source = "";
} }
reportSource.getCell(1).setText(report_source); reportSource.getCell(1).setText(report_source);
...@@ -259,9 +260,8 @@ public class ReportToWordController { ...@@ -259,9 +260,8 @@ public class ReportToWordController {
String supplement_type = reportEntity.getSupplementType(); String supplement_type = reportEntity.getSupplementType();
String[] types = supplement_type.split(","); String[] types = supplement_type.split(",");
if (StringUtils.isNotBlank(supplement_type)) { if (StringUtils.isNotBlank(supplement_type)) {
String typeStr=""; String typeStr = "";
for(String value : types) for (String value : types) {
{
if (value.equals("1")) { if (value.equals("1")) {
value = "营销"; value = "营销";
} else if (value.equals("2")) { } else if (value.equals("2")) {
...@@ -284,13 +284,13 @@ public class ReportToWordController { ...@@ -284,13 +284,13 @@ public class ReportToWordController {
value = "商业管理"; value = "商业管理";
} else if (value.equals("11")) { } else if (value.equals("11")) {
value = "研发"; value = "研发";
} else if(value.equals("12")) { } else if (value.equals("12")) {
value ="投资开发"; value = "投资开发";
} }
typeStr =typeStr+value+","; typeStr = typeStr + value + ",";
supplement_type=typeStr.substring(0,typeStr.length()-1); supplement_type = typeStr.substring(0, typeStr.length() - 1);
} }
}else{ } else {
supplement_type = ""; supplement_type = "";
} }
supplementType.addNewTableCell().setText(supplement_type); supplementType.addNewTableCell().setText(supplement_type);
...@@ -427,17 +427,18 @@ public class ReportToWordController { ...@@ -427,17 +427,18 @@ public class ReportToWordController {
PrintWriter printWriter = response.getWriter(); PrintWriter printWriter = response.getWriter();
response.setContentType("application/json;charset=utf-8"); response.setContentType("application/json;charset=utf-8");
printWriter.write(GConstants.FILE_PREFIX_URL+"pdf/"+reportProjectTitle+"_"+reportEntity.getId()+".docx"); printWriter.write(GConstants.FILE_PREFIX_URL + "pdf/" + reportEntity.getId() + ".docx");
printWriter.close(); printWriter.close();
} }
/** /**
* @Description: 跨行合并 * @Description: 跨行合并
*/ */
public void mergeCellsVertically(XWPFTable table, int col, int fromRow, int toRow) { public void mergeCellsVertically(XWPFTable table, int col, int fromRow, int toRow) {
for (int rowIndex = fromRow; rowIndex <= toRow; rowIndex++) { for (int rowIndex = fromRow; rowIndex <= toRow; rowIndex++) {
XWPFTableCell cell = table.getRow(rowIndex).getCell(col); XWPFTableCell cell = table.getRow(rowIndex).getCell(col);
if ( rowIndex == fromRow ) { if (rowIndex == fromRow) {
// The first merged cell is set with RESTART merge value // The first merged cell is set with RESTART merge value
cell.getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.RESTART); cell.getCTTc().addNewTcPr().addNewVMerge().setVal(STMerge.RESTART);
} else { } else {
...@@ -450,16 +451,16 @@ public class ReportToWordController { ...@@ -450,16 +451,16 @@ public class ReportToWordController {
/** /**
* @Description: 设置单元格宽度 * @Description: 设置单元格宽度
*/ */
public void setCellWidth(XWPFTable table) { public void setCellWidth(XWPFTable table) {
List<XWPFTableRow> rowList = table.getRows(); List<XWPFTableRow> rowList = table.getRows();
for (XWPFTableRow row : rowList){ for (XWPFTableRow row : rowList) {
List<XWPFTableCell> cellList = row.getTableCells(); List<XWPFTableCell> cellList = row.getTableCells();
int i = 0; int i = 0;
for (XWPFTableCell cell : cellList){ for (XWPFTableCell cell : cellList) {
CTTcPr cellPr = cell.getCTTc().addNewTcPr(); CTTcPr cellPr = cell.getCTTc().addNewTcPr();
cellPr.addNewVAlign().setVal(STVerticalJc.CENTER); cellPr.addNewVAlign().setVal(STVerticalJc.CENTER);
int width = 2268; int width = 2268;
if (i == 1){ if (i == 1) {
width = 6804; width = 6804;
} }
//设置宽度 //设置宽度
......
...@@ -618,4 +618,9 @@ ...@@ -618,4 +618,9 @@
<if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if> <if test="dbName == 'mysql'"> AND DATE(create_date) &lt;= #{endDate}</if>
</if> </if>
</select> </select>
<delete id="deleteConclusion" >
delete from ct_bbtc_report
where id = #{id}
</delete>
</mapper> </mapper>
\ No newline at end of file
...@@ -5,6 +5,7 @@ ...@@ -5,6 +5,7 @@
<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; var requestFlag = true;
$(document).ready(function () { $(document).ready(function () {
$("#btnExport").click(function () { $("#btnExport").click(function () {
...@@ -74,7 +75,194 @@ ...@@ -74,7 +75,194 @@
top.$.jBox.tip('正在加载,请稍等', 'warning'); top.$.jBox.tip('正在加载,请稍等', 'warning');
} }
} }
window.onload = function () {
var tTD; //用来存储当前更改宽度的Table Cell,避免快速移动鼠标的问题
var table = document.getElementById("contentTable");
for (j = 0; j < table.rows[0].cells.length; j++) {
table.rows[0].cells[j].onmousedown = function () {
//记录单元格
tTD = this;
if (event.offsetX > tTD.offsetWidth - 10) {
tTD.mouseDown = true;
tTD.oldX = event.x;
tTD.oldWidth = tTD.offsetWidth;
}
//记录Table宽度
//table = tTD; while (table.tagName != ‘TABLE') table = table.parentElement;
//tTD.tableWidth = table.offsetWidth;
};
table.rows[0].cells[j].onmouseup = function () {
//结束宽度调整
if (tTD == undefined) tTD = this;
tTD.mouseDown = false;
tTD.style.cursor = 'default';
};
table.rows[0].cells[j].onmousemove = function () {
//更改鼠标样式
if (event.offsetX > this.offsetWidth - 10)
this.style.cursor = 'col-resize';
else
this.style.cursor = 'default';
//取出暂存的Table Cell
if (tTD == undefined) tTD = this;
//调整宽度
if (tTD.mouseDown != null && tTD.mouseDown == true) {
tTD.style.cursor = 'default';
if (tTD.oldWidth + (event.x - tTD.oldX) > 0)
tTD.width = tTD.oldWidth + (event.x - tTD.oldX);
//调整列宽
tTD.style.width = tTD.width;
tTD.style.cursor = 'col-resize';
//调整该列中的每个Cell
table = tTD;
while (table.tagName != 'TABLE') table = table.parentElement;
for (j = 0; j < table.rows.length; j++) {
table.rows[j].cells[tTD.cellIndex].width = tTD.width;
}
//调整整个表
//table.width = tTD.tableWidth + (tTD.offsetWidth – tTD.oldWidth);
//table.style.width = table.width;
}
};
}
}
function del(id) {
var msg = "您真的确定要删除吗?\n\n请确认!";
if (confirm(msg) == true) {
$.ajax({
type: "post",
url: "${ctx}/report/deleteconclusion",
data: {"id": id},
dataType: "json",
});
location.reload();
alert("删除成功")
} else {
return false;
}
}
function aa() {
var a = document.getElementById("t_r_content").scrollTop;
var b = document.getElementById("t_r_content").scrollLeft;
document.getElementById("cl_freeze").scrollTop = a;
document.getElementById("t_r_t").scrollLeft = b;
}
function overShow() {
var showDiv = document.getElementById('showDiv');
showDiv.style.left = event.clientX;
showDiv.style.top = event.clientY;
showDiv.style.display = 'block';
showDiv.innerHTML = '鼠标停留显示内容2';
}
function outHide() {
var showDiv = document.getElementById('showDiv');
showDiv.style.display = 'none';
showDiv.innerHTML = '';
}
</script> </script>
<style type="text/css">
table {
table-layout: fixed;
}
th {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
td {
white-space: nowrap;
overflow: hidden;
text-overflow: ellipsis;
}
table {
border-collapse: collapse;
border-spacing: 0px;
}
table td {
height: 25px;
text-align: center;
border-left: 0px;
}
table th {
white-space: nowrap;
height: 21px;
border-top: 0px;
border-left: 0px;
}
.t_left {
width: 30%;
float: left;
}
/*t_r_content和cl_freeze高度相差20px, 高度为外观显示高度,可根据情况调整*/
.t_r_content {
width: 100%;
height: 358px;
background: #fff;
overflow: auto;
}
.cl_freeze {
height: 341px;
overflow: hidden;
width: 101%;
}
/* width 调整左边标题列宽度(左侧外观显示宽度); 指定为width:auto 在Opera下显示有问题; height比 t_r_content 高度小20px*/
/* width 宽度为 右侧外观显示宽度 实际显示宽度大小为“t_r”宽度加上“cl_freeze”宽度 */
/* 如果显示不正常,调整 t_r的width 使其和t_left的width之和小于100%;等于100%时会有问题*/
.t_r {
width: 70%;
float: left;
}
.t_r table {
width: 1700px;
}
.t_r_title {
width: 1720px;
}
/*宽度比 t_r table 大20px (至少大20,小了滚动条滑到右侧显示有问题)*/
.t_r_t {
overflow: hidden;
}
.bordertop {
border-top: 0px;
}
#content {
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
width: 200px;
}
</style>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
...@@ -85,169 +273,209 @@ ...@@ -85,169 +273,209 @@
</ul> </ul>
<form:form id="searchForm" modelAttribute="report" action="${ctx}/report/list" method="post" <form:form id="searchForm" modelAttribute="report" action="${ctx}/report/list" method="post"
class="breadcrumb form-search"> class="breadcrumb form-search">
<input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/> <input id="pageNo" name="pageNo" type="hidden" value="${page.pageNo}"/>
<input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/> <input id="pageSize" name="pageSize" type="hidden" value="${page.pageSize}"/>
<input id="flag" name="flag" type="hidden" value="${flag}"/> <input id="flag" name="flag" type="hidden" value="${flag}"/>
<ul class="ul-form"> <ul class="ul-form">
<li><label>标题:</label><form:input onchange="resetPageNo();" path="supplementTitle" htmlEscape="false" <li><label>标题:</label><form:input onchange="resetPageNo();" path="supplementTitle" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>被举报项目/部门:</label><form:input onchange="resetPageNo();" path="reportProject" htmlEscape="false" <li><label>被举报项目/部门:</label><form:input onchange="resetPageNo();" path="reportProject" htmlEscape="false"
maxlength="50" class="input-small" maxlength="50" class="input-small"
style="position:relative;top:-12.5px"/></li> style="position:relative;top:-12.5px"/></li>
<li><label>举报时间:</label><input id="reportTimeFrom" name="reportTimeFrom" onchange="resetPageNo();" <li><label>举报时间:</label><input id="reportTimeFrom" name="reportTimeFrom" onchange="resetPageNo();"
readonly="readonly" type="text" readonly="readonly" type="text"
maxlength="200" class="input-mini Wdate required" maxlength="200" class="input-mini Wdate required"
value="${report.reportTimeFrom}" value="${report.reportTimeFrom}"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,maxDate:'#F{$dp.$D(\'reportTimeTo\')}'});"/> onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,maxDate:'#F{$dp.$D(\'reportTimeTo\')}'});"/>
</li> </li>
<li><label>至:</label><input id="reportTimeTo" name="reportTimeTo" onchange="resetPageNo();" readonly="readonly" <li><label>至:</label><input id="reportTimeTo" name="reportTimeTo" onchange="resetPageNo();" readonly="readonly"
type="text" type="text"
maxlength="200" class="input-mini Wdate required" value="${report.reportTimeTo}" maxlength="200" class="input-mini Wdate required" value="${report.reportTimeTo}"
onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,minDate:'#F{$dp.$D(\'reportTimeFrom\')}'});"/> onclick="WdatePicker({dateFmt:'yyyy-MM-dd',isShowClear:true,minDate:'#F{$dp.$D(\'reportTimeFrom\')}'});"/>
</li> </li>
<li><label>举报人:</label><form:input onchange="resetPageNo();" path="reportPersonName" htmlEscape="false" <li><label>举报人:</label><form:input onchange="resetPageNo();" path="reportPersonName" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false" <li><label>举报人电话:</label><form:input onchange="resetPageNo();" path="reportPersonTel" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small"> <li><label>业务类型:</label><form:select onchange="resetPageNo();" path="supplementType" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small"> <li><label>状态:</label><form:select onchange="resetPageNo();" path="reportStatus" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('report_status')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('report_status')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>被举报人:</label><form:input onchange="resetPageNo();" path="supplementInformant" htmlEscape="false" <li><label>被举报人:</label><form:input onchange="resetPageNo();" path="supplementInformant" htmlEscape="false"
maxlength="50" class="input-small"/></li> maxlength="50" class="input-small"/></li>
<li><label>处理结论:</label><form:select onchange="resetPageNo();" path="dealResult" class="input-small"> <li><label>处理结论:</label><form:select onchange="resetPageNo();" path="dealResult" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('deal_result')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li><label>区域:</label><form:select onchange="resetPageNo();" path="supplementArea" class="input-small"> <li><label>区域:</label><form:select onchange="resetPageNo();" path="supplementArea" class="input-small">
<form:option value=" ">请选择</form:option> <form:option value=" ">请选择</form:option>
<form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value" <form:options items="${fns:getDictList('supplement_area')}" itemLabel="label" itemValue="value"
htmlEscape="false"/></form:select></li> htmlEscape="false"/></form:select></li>
<li class="clearfix"></li> <li class="clearfix"></li>
<li class="btns"> <li class="btns">
<%--<label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary" <%--<label style="width:auto;">--%>&nbsp;&nbsp;&nbsp;<input id="btnSubmit" class="btn btn-primary"
type="submit" value="筛选"/>&nbsp;&nbsp; type="submit" value="筛选"/>&nbsp;&nbsp;
<input id="btnReset" class="btn btn-primary" type="button" value="重置"/>&nbsp;&nbsp; <input id="btnReset" class="btn btn-primary" type="button" value="重置"/>&nbsp;&nbsp;
<input id="btnExport" class="btn btn-primary" type="button" value="导出"/></label> <input id="btnExport" class="btn btn-primary" type="button" value="导出"/></label>
</li> </li>
<li class="clearfix"></li> <li class="clearfix"></li>
</ul> </ul>
</form:form> </form:form>
<sys:message content="${message}"/> <sys:message content="${message}"/>
<table id="contentTable" class="table table-striped table-bordered table-condensed"> <div style="width:100%">
<thead> <div class="t_left">
<tr> <div class="cl_freeze" id="cl_freeze">
<th>ID</th> <table class=" table-striped table-bordered table-condensed" cellspacing="0" cellpadding="2" border="2">
<th>标题</th> <thead>
<th>业务类型</th> <tr>
<th>被举报项目/部门</th> <th style="width:5%">ID</th>
<th>OA账号</th> <th style="width:15%">标题</th>
<th>举报人</th> </tr>
<th>举报人电话</th> </thead>
<th>举报途径</th> <tbody>
<th>区域</th> <c:if test="${page.list.size()>0}">
<th>被举报人</th> <c:forEach items="${page.list}" var="report" varStatus="vs">
<th>举报时间</th> <tr class="reportList">
<th>状态</th> <td style="width:5%"></td>
<th>处理结论</th> <td style="width:15%">${report.supplementTitle}</td>
<th>处理人</th> </c:forEach>
<c:if test="${isAdmin eq true}"> </c:if>
<th>移交给</th> </tr>
</c:if> </tbody>
<th>IP来源</th> </table>
<th>IP所属城市</th> </div>
<th>邮件发送</th> </div>
<th>操作</th> <div class="t_r">
</tr> <div class="t_r_t" id="t_r_t">
</thead> <div class="t_r_content" id="t_r_content" onscroll="aa()">
<tbody> <div class="t_r_title">
<c:if test="${page.list.size()>0}"> <table id="contentTable" class=" table-striped table-bordered table-condensed" cellspacing="0"
<c:forEach items="${page.list}" var="report" varStatus="vs"> cellpadding="2" border="2">
<tr class="reportList"> <thead>
<td></td> <tr>
<td>${report.supplementTitle}</td> <th style="width:7%">业务类型</th>
<td>${report.supplementType}</td> <th>被举报项目/部门</th>
<td>${report.reportProject}</td> <th>OA账号</th>
<td>${report.oaname}</td> <th>举报人</th>
<td>${report.reportPersonName}</td> <th>举报人电话</th>
<td>${report.reportPersonTel}</td> <th>举报途径</th>
<td><c:if test="${report.reportSource eq 'web'}">官网</c:if> <th>区域</th>
<c:if test="${report.reportSource eq 'oa'}">融创OA系统</c:if> <th>被举报人</th>
<c:if test="${report.reportSource eq 'supplier'}">供应商系统</c:if> <th>举报时间</th>
<c:if test="${report.reportSource eq 'wechat'}">微信公众号</c:if> <th>状态</th>
<c:if test="${report.reportSource eq 'sunacE'}">融E</c:if> <th>处理结论</th>
<c:if test="${report.reportSource eq 'offline'}">线下扫码</c:if> <th>处理人</th>
<c:if test="${report.reportSource eq 'tel'}">电话</c:if> <c:if test="${isAdmin eq true}">
<c:if test="${report.reportSource eq 'email'}">邮件</c:if> <th>移交给</th>
<c:if test="${report.reportSource eq 'visit'}">来访</c:if> </c:if>
<c:if test="${report.reportSource eq null}">--</c:if></td> <th>内容</th>
<td> <th>举报信息补充内容</th>
<c:if test="${report.supplementArea eq 'North China'}">华北区域公司</c:if> <th>IP来源</th>
<c:if test="${report.supplementArea eq 'BeiJing'}">北京区域公司</c:if> <th>IP所属城市</th>
<c:if test="${report.supplementArea eq 'ShangHai'}">上海区域公司</c:if> <th>邮件发送</th>
<c:if test="${report.supplementArea eq 'SouthWest'}">西南区域公司</c:if> <th style="width:10%">操作</th>
<c:if test="${report.supplementArea eq 'SouthEast'}">东南区域公司</c:if> </tr>
<c:if test="${report.supplementArea eq 'Central China'}">华中区域公司</c:if> </thead>
<c:if test="${report.supplementArea eq 'GuangShen'}">广深区域公司</c:if> <tbody>
<c:if test="${report.supplementArea eq 'Hainan'}">海南区域公司</c:if> <c:if test="${page.list.size()>0}">
<c:if test="${report.supplementArea eq 'Group'}">集团本部</c:if> <c:forEach items="${page.list}" var="report" varStatus="vs">
<c:if test="${report.supplementArea eq null}">--</c:if> <tr>
</td> <td>${report.supplementType}</td>
<td> <td>${report.reportProject}</td>
<c:if test="${report.supplementInformant eq null}">--</c:if> <td>${report.oaname}</td>
<c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if> <td>${report.reportPersonName}</td>
</td> <td>${report.reportPersonTel}</td>
<td>${report.reportTime}</td> <td><c:if test="${report.reportSource eq 'web'}">官网</c:if>
<td> <c:if test="${report.reportSource eq 'oa'}">融创OA系统</c:if>
<c:if test="${report.reportStatus eq '0'}">未处理</c:if> <c:if test="${report.reportSource eq 'supplier'}">供应商系统</c:if>
<c:if test="${report.reportStatus eq '1'}">跟踪中</c:if> <c:if test="${report.reportSource eq 'wechat'}">微信公众号</c:if>
<c:if test="${report.reportStatus eq '2'}">已处理</c:if> <c:if test="${report.reportSource eq 'sunacE'}">融E</c:if>
<c:if test="${report.reportStatus eq '3'}">已关闭</c:if> <c:if test="${report.reportSource eq 'offline'}">线下扫码</c:if>
<%--<c:if test="${report.reportStatus eq '3'}">受理中</c:if>--%> <c:if test="${report.reportSource eq 'tel'}">电话</c:if>
</td> <c:if test="${report.reportSource eq 'email'}">邮件</c:if>
<td> <c:if test="${report.reportSource eq 'visit'}">来访</c:if>
<c:if test="${report.dealResult eq null}">--</c:if> <c:if test="${report.reportSource eq null}">--</c:if></td>
<c:if test="${report.dealResult eq '1'}">移交客诉</c:if> <td>
<c:if test="${report.dealResult eq '2'}">举报无效</c:if> <c:if test="${report.supplementArea eq 'North China'}">华北区域公司</c:if>
<c:if test="${report.dealResult eq '3'}">举报受理</c:if> <c:if test="${report.supplementArea eq 'BeiJing'}">北京区域公司</c:if>
<c:if test="${report.dealResult eq '4'}">举报属实</c:if> <c:if test="${report.supplementArea eq 'ShangHai'}">上海区域公司</c:if>
</td> <c:if test="${report.supplementArea eq 'SouthWest'}">西南区域公司</c:if>
<td><c:if test="${report.dealPersonName eq null}">--</c:if> <c:if test="${report.supplementArea eq 'SouthEast'}">东南区域公司</c:if>
<c:if test="${report.dealPersonName ne null}">${report.dealPersonName}</c:if> <c:if test="${report.supplementArea eq 'Central China'}">华中区域公司</c:if>
</td> <c:if test="${report.supplementArea eq 'GuangShen'}">广深区域公司</c:if>
<c:if test="${isAdmin eq true}"> <c:if test="${report.supplementArea eq 'Hainan'}">海南区域公司</c:if>
<td> <c:if test="${report.supplementArea eq 'Group'}">集团本部</c:if>
<c:if test="${report.transferName eq null || report.exchangeType eq null}">--</c:if> <c:if test="${report.supplementArea eq null}">--</c:if>
<c:if test="${report.transferName ne null && report.exchangeType ne null}">${report.transferName}</c:if> </td>
</td> <td>
</c:if> <c:if test="${report.supplementInformant eq null}">--</c:if>
<td>${report.reportIp}</td> <c:if test="${report.supplementInformant ne null}">${report.supplementInformant}</c:if>
<td>${report.ipCity}</td> </td>
<td> <td>${report.reportTime}</td>
<c:if test="${report.isSendEmail eq '1'}"></c:if> <td>
<c:if test="${report.isSendEmail eq null}"></c:if> <c:if test="${report.reportStatus eq '0'}">未处理</c:if>
</td> <c:if test="${report.reportStatus eq '1'}">跟踪中</c:if>
<td> <c:if test="${report.reportStatus eq '2'}">已处理</c:if>
<a href="${ctx}/report/view?id=${report.id}">查看</a> <c:if test="${report.reportStatus eq '3'}">已关闭</c:if>
<c:if test="${report.reportStatus ne '2' && report.reportStatus ne '3'}"><a <%--<c:if test="${report.reportStatus eq '3'}">受理中</c:if>--%>
href="${ctx}/report/track?id=${report.id}">跟踪</a></c:if> </td>
<a href="#" onclick="openDownloadDialog('${report.id}')">转为文档</a> <td>
</td> <c:if test="${report.dealResult eq null}">--</c:if>
</tr> <c:if test="${report.dealResult eq '1'}">移交客诉</c:if>
</c:forEach> <c:if test="${report.dealResult eq '2'}">举报无效</c:if>
</c:if> <c:if test="${report.dealResult eq '3'}">举报受理</c:if>
</tbody> <c:if test="${report.dealResult eq '4'}">举报属实</c:if>
</table> </td>
<td><c:if test="${report.dealPersonName eq null}">--</c:if>
<c:if test="${report.dealPersonName ne null}">${report.dealPersonName}</c:if>
</td>
<c:if test="${isAdmin eq true}">
<td>
<c:if test="${report.transferName eq null || report.exchangeType eq null}">--</c:if>
<c:if test="${report.transferName ne null && report.exchangeType ne null}">${report.transferName}</c:if>
</td>
</c:if>
<td title= ${report.reportContent}>${report.reportContent}</td>
<td title= ${report.supplementContent}>${report.supplementContent}</td>
<td>${report.reportIp}</td>
<td>${report.ipCity}</td>
<td>
<c:if test="${report.isSendEmail eq '1'}"></c:if>
<c:if test="${report.isSendEmail eq null}"></c:if>
</td>
<td>
<a href="${ctx}/report/view?id=${report.id}">查看</a>
<c:if test="${report.reportStatus ne '2' && report.reportStatus ne '3'}"><a
href="${ctx}/report/track?id=${report.id}">跟踪</a></c:if>
<c:if test="${isAdmin eq true }">
<a href="#" onclick="del('${report.id}')">删除</a></c:if>
<a href="#" onclick="openDownloadDialog('${report.id}')">转为文档</a>
</td>
</tr>
</c:forEach>
</c:if>
</tbody>
</table>
<div id="showDiv"
style="position: absolute; background-color: white; border: 1px solid black;"></div>
</div>
</div>
</div>
</div>
</div>
<c:if test="${page.list.size()=='0'}"> <c:if test="${page.list.size()=='0'}">
<span style="color: #999999;margin: 20px 0 70px 20px;display: block;">未查询到相关内容</span> <span style="color: #999999;margin: 20px 0 70px 20px;display: block;">未查询到相关内容</span>
</c:if> </c:if>
<c:if test="${page.list.size()>0}"> <c:if test="${page.list.size()>0}">
<div class="pagination">${page}</div> <div class="pagination">${page}</div>
</c:if> </c:if>
</body>
</html> </html>
\ No newline at end of file
Manifest-Version: 1.0 Manifest-Version: 1.0
Built-By: Dell Built-By: dell1
Created-By: IntelliJ IDEA Created-By: IntelliJ IDEA
Build-Jdk: 1.8.0_131 Build-Jdk: 1.8.0_121
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