Commit da910d2f by yjh

覆盖版本重提交

parent b447f266
...@@ -55,6 +55,12 @@ ...@@ -55,6 +55,12 @@
$("#chooseDiv").hide(); $("#chooseDiv").hide();
$("#fade").hide(); $("#fade").hide();
}); });
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;
}
//发邮件 //发邮件
$("#btnMail").click(function () { $("#btnMail").click(function () {
var supplementType = $("#supplementType").find("option:selected").text(); var supplementType = $("#supplementType").find("option:selected").text();
...@@ -108,23 +114,24 @@ ...@@ -108,23 +114,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 = "华北区域公司";
...@@ -158,6 +165,8 @@ ...@@ -158,6 +165,8 @@
window.location.href = path; window.location.href = path;
}); });
}); });
// 处理结果的隐藏和显示 // 处理结果的隐藏和显示
// function doSome() { // function doSome() {
// var dealResult = $("#dealResult option:selected").text(); // var dealResult = $("#dealResult option:selected").text();
...@@ -249,11 +258,14 @@ ...@@ -249,11 +258,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">
......
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