Commit d169b5dc by yjh

覆盖版本重提交

parent 2acf3db0
<%@ taglib prefix="from" uri="http://www.springframework.org/tags/form" %>
<%@ page contentType="text/html;charset=UTF-8" %> <%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp" %> <%@ include file="/WEB-INF/views/include/taglib.jsp" %>
<html> <html>
...@@ -9,9 +10,6 @@ ...@@ -9,9 +10,6 @@
$(document).ready(function () { $(document).ready(function () {
$("#inputForm").validate({ $("#inputForm").validate({
submitHandler: function (form) { submitHandler: function (form) {
messages: {
supplementContent: {maxlength: "最多输入{0}个字符"}
}
if ($("#supplementType").val() == " "){ if ($("#supplementType").val() == " "){
top.$.jBox.tip('请选择业务类型', 'warning'); top.$.jBox.tip('请选择业务类型', 'warning');
}else if ($("#supplementArea").val() == " "){ }else if ($("#supplementArea").val() == " "){
...@@ -108,23 +106,24 @@ ...@@ -108,23 +106,24 @@
path += "标题:${report.supplementTitle}</br>"; path += "标题:${report.supplementTitle}</br>";
path += "被举报公司:${report.supplementCompany}</br>"; path += "被举报公司:${report.supplementCompany}</br>";
path += "被举报部门:${report.supplementDepartment}</br>"; path += "被举报部门:${report.supplementDepartment}</br>";
var supplementType = "${report.supplementType}"; //12:01注
if (supplementType == "1"){ <%--var supplementType = "${report.supplementType}";--%>
supplementType = "营销"; <%--if (supplementType == "1"){--%>
}else if (supplementType == "2"){ <%--supplementType = "营销";--%>
supplementType = "工程"; <%--}else if (supplementType == "2"){--%>
}else if (supplementType == "3"){ <%--supplementType = "工程";--%>
supplementType = "成本"; <%--}else if (supplementType == "3"){--%>
}else if (supplementType == "4"){ <%--supplementType = "成本";--%>
supplementType = "招采"; <%--}else if (supplementType == "4"){--%>
}else if (supplementType == "5"){ <%--supplementType = "招采";--%>
supplementType = "人力"; <%--}else if (supplementType == "5"){--%>
}else if (supplementType == "6"){ <%--supplementType = "人力";--%>
supplementType = "物业"; <%--}else if (supplementType == "6"){--%>
}else if (supplementType == "7"){ <%--supplementType = "物业";--%>
supplementType = "投诉"; <%--}else if (supplementType == "7"){--%>
} <%--supplementType = "投诉";--%>
path += "业务类型:"+supplementType+"</br>"; <%--}--%>
// path += "业务类型:"+supplementType+"</br>";
var supplementArea = "${report.supplementArea}"; var supplementArea = "${report.supplementArea}";
if (supplementArea == "North China"){ if (supplementArea == "North China"){
supplementArea = "华北区域公司"; supplementArea = "华北区域公司";
...@@ -157,8 +156,16 @@ ...@@ -157,8 +156,16 @@
console.log(path); console.log(path);
window.location.href = path; window.location.href = path;
}); });
var checkedNumber = "${report.supplementType}";
var number=checkedNumber.split(",");
var ck=document.getElementsByName("supplementType");
for (var i = 0; i < number.length; i++) {
ck[number[i]-1].checked=true;
}
}); });
</script> </script>
<style type="text/css"> <style type="text/css">
.title{ .title{
...@@ -195,11 +202,11 @@ ...@@ -195,11 +202,11 @@
</style> </style>
</head> </head>
<body> <body>
<ul class="nav nav-tabs"> <ul class="nav nav-tabs">
<li class="active"><a href="${ctx}/report/track">跟踪举报信息</a></li> <li class="active"><a href="${ctx}/report/track">跟踪举报信息</a></li>
</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"/> <form:hidden path="id"/>
<sys:message content="${message}"/> <sys:message content="${message}"/>
...@@ -235,11 +242,14 @@ ...@@ -235,11 +242,14 @@
<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:select id="supplementType" path="supplementType" class="input-small required"> <span class="supplementType">
<form:option value=" ">请选择</form:option> <form:checkboxes path="supplementType" items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"/>
<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value" </span>
htmlEscape="false"/></form:select> <%--<form:select id="supplementType" path="supplementType" class="input-small required">--%>
<span class="help-inline"><font color="red">*</font> </span> <%--<form:option value=" ">请选择</form:option>--%>
<%--<form:options items="${fns:getDictList('supplement_type')}" itemLabel="label" itemValue="value"--%>
<%--htmlEscape="false"/></form:select>--%>
<%--<span class="help-inline"><font color="red">*</font> </span>--%>
</div> </div>
</div> </div>
<div class="control-group"> <div class="control-group">
...@@ -323,9 +333,9 @@ ...@@ -323,9 +333,9 @@
<input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp; <input id="btnSubmit" class="btn btn-primary" type="submit" value="提交"/>&nbsp;
<input id="btnMail" class="btn btn-primary" type="button" value="发邮件"/> <input id="btnMail" class="btn btn-primary" type="button" value="发邮件"/>
</div> </div>
</form:form> </form:form>
<div id="fade" class="black_overlay"></div> <div id="fade" class="black_overlay"></div>
<div id="chooseDiv" class="white_content"> <div id="chooseDiv" class="white_content">
<div id="chooseContent"> <div id="chooseContent">
<script type="text/javascript"> <script type="text/javascript">
$(document).ready(function() { $(document).ready(function() {
...@@ -462,6 +472,6 @@ ...@@ -462,6 +472,6 @@
<input id="btnClose" class="btn btn-primary" type="button" value="关闭"/></label> <input id="btnClose" class="btn btn-primary" type="button" value="关闭"/></label>
</li> </li>
</div> </div>
</div> </div>
</body> </body>
</html> </html>
\ No newline at end of file
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