var html="";
html+="<tr>";
html+="<td>"+data.callBackPlanName+"</td><td class='"+(data.status==0?'noBegin':data.status==1?'finish':data.status==2?'ing':'')+"'>"+planStatus[data.status]+"</td><td><div class='noBeginBg'>"+data.progress+"<span class='"+(data.status==0?'':data.status==1?'progress finishBg':data.status==2?'progress ingBg ':'')+"'></span></div></td>";
html+="<td class='tdend showDetail'>";
html+="<span class='tdSpan' callBackPlanName='"+data.callBackPlanName+"' status='"+planStatus[data.status]+"' callBackEvent='"+callBackEvent+"' callBackType='"+callBackType+"' alreadyCallBackCount='"+data.alreadyCallBackCount+"' targetCount='"+data.targetCount+"' callBackEndDate='"+data.callBackEndDate+"' callBackStartDate='"+data.callBackStartDate+"' templateName='"+data.templateName+"'>查看详情</span>";
if(zhixingUser){
html+="<a class='bgQiehuan executeSuery' href='getSueryPatientList_reVisitRecordAction.action?callBackPlan_ID="+data.callBackPlan_ID+"'>电话调查</a>";
html+="<a class='bgQiehuan executeSuery' href='showProByTemp_ReVisitTempAction.action?surveyTemplate_ID="+data.surveyTemplate_ID+"&callBackPlan_ID="+data.callBackPlan_ID+"'>问卷调查</a>";
/*if(callBackType.indexOf("电话")){
html+="<a class='bgQiehuan executeSuery' href='getSueryPatientList_reVisitRecordAction.action?callBackPlan_ID="+data.callBackPlan_ID+"'>电话调查</a>";
}else{
html+="<span></span>";
}
if(callBackType.indexOf("问卷")){
html+="<a class='bgQiehuan executeSuery' href='showProByTemp_ReVisitTempAction.action?surveyTemplate_ID="+data.surveyTemplate_ID+"&callBackPlan_ID="+data.callBackPlan_ID+"'>问卷调查</a>";
}else{
html+="<span></span>";
}*/
}
html+"</td>";
html+="</tr>";
html=$(html); //相当于重新构建一个对象,所以如果不赋值,无法修改属性的宽度
$("#planList table tbody").append(html);
if(html.find(".progress")[0]){
html.find(".progress").width(parseFloat((parseFloat(data.progress)*parseFloat(2.01)).toFixed(4)<1?1:(parseFloat(data.progress)*parseFloat(2.01)).toFixed(4)));
}
html+="<tr>";
html+="<td>"+data.callBackPlanName+"</td><td class='"+(data.status==0?'noBegin':data.status==1?'finish':data.status==2?'ing':'')+"'>"+planStatus[data.status]+"</td><td><div class='noBeginBg'>"+data.progress+"<span class='"+(data.status==0?'':data.status==1?'progress finishBg':data.status==2?'progress ingBg ':'')+"'></span></div></td>";
html+="<td class='tdend showDetail'>";
html+="<span class='tdSpan' callBackPlanName='"+data.callBackPlanName+"' status='"+planStatus[data.status]+"' callBackEvent='"+callBackEvent+"' callBackType='"+callBackType+"' alreadyCallBackCount='"+data.alreadyCallBackCount+"' targetCount='"+data.targetCount+"' callBackEndDate='"+data.callBackEndDate+"' callBackStartDate='"+data.callBackStartDate+"' templateName='"+data.templateName+"'>查看详情</span>";
if(zhixingUser){
html+="<a class='bgQiehuan executeSuery' href='getSueryPatientList_reVisitRecordAction.action?callBackPlan_ID="+data.callBackPlan_ID+"'>电话调查</a>";
html+="<a class='bgQiehuan executeSuery' href='showProByTemp_ReVisitTempAction.action?surveyTemplate_ID="+data.surveyTemplate_ID+"&callBackPlan_ID="+data.callBackPlan_ID+"'>问卷调查</a>";
/*if(callBackType.indexOf("电话")){
html+="<a class='bgQiehuan executeSuery' href='getSueryPatientList_reVisitRecordAction.action?callBackPlan_ID="+data.callBackPlan_ID+"'>电话调查</a>";
}else{
html+="<span></span>";
}
if(callBackType.indexOf("问卷")){
html+="<a class='bgQiehuan executeSuery' href='showProByTemp_ReVisitTempAction.action?surveyTemplate_ID="+data.surveyTemplate_ID+"&callBackPlan_ID="+data.callBackPlan_ID+"'>问卷调查</a>";
}else{
html+="<span></span>";
}*/
}
html+"</td>";
html+="</tr>";
html=$(html); //相当于重新构建一个对象,所以如果不赋值,无法修改属性的宽度
$("#planList table tbody").append(html);
if(html.find(".progress")[0]){
html.find(".progress").width(parseFloat((parseFloat(data.progress)*parseFloat(2.01)).toFixed(4)<1?1:(parseFloat(data.progress)*parseFloat(2.01)).toFixed(4)));
}