|
@@ -13,12 +13,12 @@ function renderFollowUp(msg,type){
|
|
|
if(res.data.code === "0"){
|
|
|
const result = res.data.data&&res.data.data.pushPlans || []
|
|
|
if(result.length === 0||(result[0]&&result[0].item&&JSON.stringify(result[0].item)==="{}")){
|
|
|
- empty()
|
|
|
+ followEmpty()
|
|
|
return
|
|
|
}
|
|
|
renderPage(result,type)
|
|
|
}else{
|
|
|
- empty()
|
|
|
+ followEmpty()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -190,7 +190,7 @@ function bindToggleInfo(){
|
|
|
$(this).parents(".infoBox").find(".childrenBox").slideToggle()
|
|
|
})
|
|
|
}
|
|
|
-function empty(){
|
|
|
+function followEmpty(){
|
|
|
let str = `<div class="emptyBox">
|
|
|
<img class="emptyImg" src=${emptyImg}>
|
|
|
<p class="emptyTxt">暂无随访计划</p>
|
|
@@ -203,5 +203,6 @@ $(window).on('resize', function(){
|
|
|
})
|
|
|
|
|
|
module.exports ={
|
|
|
- renderFollowUp
|
|
|
+ renderFollowUp,
|
|
|
+ followEmpty
|
|
|
}
|