<!doctype html>
|
<html>
|
<head>
|
[#include "/business/wechat/include/title.html" /]
|
[#include "/business/wechat/include/wheader.html" /]
|
<script type="text/javascript" src="${common_static}/static/wechat/style/js/project.js"></script>
|
</head>
|
|
<body>
|
<header class="kltit"><div class="present"><a href="javascript:savecus();">确定</a></div><a [#if RequestParameters.fwt??&& RequestParameters.fwt== 1] href="${base}/ewyw/ewIncident/ewAddIncidentfwt.html" [#elseif RequestParameters.wt??&& RequestParameters.wt== 1] href="${base}/ewyw/ewQuestion/ewAddQuestion.html" [#elseif RequestParameters.rcxj??&& RequestParameters.rcxj== 1]href="${base}/ewyw/ewWorkplan/ewAddDailyCheck.html" [#else] href="${base}/ewyw/ewIncident/ewAddIncident.html" [/#if] ><span></span></a>选择${Constants.CUSTOMER_CONSTANTS}名称</header>
|
<div class="select-client"><span>当前选择:</span>
|
<em id="treeLabel">
|
[#if checkSl?? && checkSl?size>0]
|
[#list checkSl as sl]
|
<i sl="${sl.checkId}" class="selcus" >${sl.checkName}</i>
|
[/#list]
|
[/#if]
|
</em>
|
</div>
|
<div class="pt22">
|
[#if customers?? && customers?size > 0]
|
[#list customers as customer]
|
<section class="mb5"> <a href="javascript:selectcus('${customer.ID}','${customer.CUSTOMER_NAME}');">
|
<h2 class="nameone">${customer.CUSTOMER_NAME}</h2>
|
</a>
|
<div class="wrap-1" style="display:none;">
|
[#if customer.sublist??&&customer.sublist?size > 0]
|
[#list customer.sublist as ej]
|
<a href="javascript:selectcus('${customer.ID}--${ej.ID}','${customer.CUSTOMER_NAME}--${ej.CUSTOMER_NAME}');">
|
<h2 class="redtit nametwo"><em class="close"></em>${ej.CUSTOMER_NAME}</h2>
|
</a>
|
<section class="wlresponse cwrap namethree class" style="display:none;">
|
[#if ej.subs?? && ej.subs?size > 0]
|
[#list ej.subs as sj]
|
<a href="javascript:selectcus('${customer.ID}--${sj.ID}','${customer.CUSTOMER_NAME}--${sj.CUSTOMER_NAME}');"> <p> <span>${sj.CUSTOMER_NAME}</span></p></a>
|
[/#list]
|
[/#if]
|
</section>
|
[/#list]
|
[/#if]
|
</div>
|
</section>
|
[/#list]
|
[/#if]
|
</div>
|
|
<script type="text/javascript">
|
var fwt = '${RequestParameters.fwt}';
|
var wt = '${RequestParameters.wt}';
|
var rcxj = '${RequestParameters.rcxj}';
|
$(function(){
|
$("p").click(function(){
|
$("p").removeClass("foucs-2");
|
$("h2").removeClass("foucs-3");
|
$(this).addClass("foucs-2");
|
})
|
$("h2").click(function(){
|
$("p").removeClass("foucs-2");
|
$("h2").removeClass("foucs-3");
|
$(this).addClass("foucs-3");
|
})
|
|
});
|
function selectcus(id,name){
|
var alreadySelect = "";
|
alreadySelect += "<i class='selcus' sl='"+id+"'>"+name+"</i>";
|
$("#treeLabel").empty().append(alreadySelect);
|
|
}
|
|
function savecus(){
|
var cusid = $(".selcus").attr("sl");
|
var cusname = $(".selcus").text();
|
$.post("${base}/ewyw/ewIncident/savecus.html",{"customer_id":cusid,"customer_name":cusname,"wt":wt,"rcxj":rcxj},function(data,textStatus) {
|
if(fwt == 1){
|
window.location.href = "${base}/ewyw/ewIncident/ewAddIncidentfwt.html";
|
}else{
|
if(wt == 1){
|
window.location.href = "${base}/ewyw/ewQuestion/ewAddQuestion.html";
|
}else if(rcxj == 1){
|
window.location.href = "${base}/ewyw/ewWorkplan/ewAddDailyCheck.html";
|
}else{
|
window.location.href = "${base}/ewyw/ewIncident/ewAddIncident.html";
|
}
|
}
|
});
|
|
}
|
</script>
|
</body>
|
</html>
|