|
@@ -13,6 +13,7 @@ require('./../css/followUpV.less');
|
|
|
require('../css/staticSearch.less')
|
|
|
require('./../js/staticSearch.js');//静态知识搜索
|
|
|
require('./../images/empty.png').replace(/^undefined/g, '')
|
|
|
+require('./../images/icon_admin.png').replace(/^undefined/g, '')
|
|
|
require('./../images/empty2.png').replace(/^undefined/g, '')
|
|
|
require('./../images/empty3.png').replace(/^undefined/g, '')
|
|
|
require('./../images/icon_no.png').replace(/^undefined/g, '')
|
|
@@ -227,7 +228,6 @@ function renderPage(pageSet){
|
|
|
getTcmMr(mrId, hasTcm);
|
|
|
}
|
|
|
if(!mrId){
|
|
|
- empty()
|
|
|
return
|
|
|
}
|
|
|
const planDetail = hasAuxiliary.planDetails;
|
|
@@ -296,9 +296,9 @@ function renderPushData(){
|
|
|
renderNurse(nursePush, nurseNum)
|
|
|
if(hasCompleteTnterface === allInterface){
|
|
|
$('.loading').css("display","none")
|
|
|
- if(moduleNum === 0){
|
|
|
+ //if(moduleNum === 0){
|
|
|
empty()
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
bindOpenInfo()
|
|
|
moreInfo()
|
|
@@ -375,9 +375,9 @@ function renderPushWarning(){
|
|
|
}
|
|
|
if(hasCompleteTnterface === allInterface){
|
|
|
$('.loading').css("display","none")
|
|
|
- if(moduleNum === 0){
|
|
|
+ //if(moduleNum === 0){
|
|
|
empty()
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
|
|
|
})
|
|
@@ -392,9 +392,9 @@ function renderWriteStandard(){
|
|
|
}
|
|
|
if(hasCompleteTnterface === allInterface){
|
|
|
$('.loading').css("display","none")
|
|
|
- if(moduleNum === 0){
|
|
|
+ //if(moduleNum === 0){
|
|
|
empty()
|
|
|
- }
|
|
|
+ //}
|
|
|
}
|
|
|
})
|
|
|
}
|
|
@@ -675,6 +675,7 @@ function renderModuleWrapper(moduleList){
|
|
|
// console.log(moduleList,moduleStr)
|
|
|
|
|
|
$(".recommendWrap").append(moduleStr)
|
|
|
+ empty(); //如没有配置数据,显示无配置
|
|
|
}
|
|
|
|
|
|
function hasTab(tabName,tabList){
|
|
@@ -764,18 +765,24 @@ function bindGeneralSlide(){
|
|
|
|
|
|
}
|
|
|
|
|
|
+//显示空状态
|
|
|
function empty(){
|
|
|
- // $(".responsibility").css("display","none")
|
|
|
- $('.recommendWrap .empty').css("display","block")
|
|
|
+ const emptyShownBox = $('.recommendWrap .empty-box:visible').length;
|
|
|
+ const configShownBox = $('.recommendWrap .moduleItem:visible').length;
|
|
|
+ const configBox = $('.recommendWrap .moduleItem').length;
|
|
|
+ if(configBox===0){
|
|
|
+ $('.empty-box').hide();
|
|
|
+ $('.recommendBox .empty-right').show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ if(configBox>0&&configShownBox===0&&emptyShownBox===0){
|
|
|
+ $('.empty-box').hide();
|
|
|
+ $('.recommendBox .empty-null').show();
|
|
|
+ return;
|
|
|
+ }
|
|
|
+ $(".empty-box").hide();
|
|
|
}
|
|
|
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
-
|
|
|
$(function(){
|
|
|
//隐藏logo
|
|
|
if(getUrlArgObject("hideLg")){
|