|
@@ -201,9 +201,10 @@ function renderModuleWrapper(moduleList) {
|
|
|
}
|
|
|
$(".recommendWrap .leftBox").append(moduleStr)
|
|
|
$(".recommendWrap .rightBox").append(treatStr)
|
|
|
- if($(".leftBox .moduleItem:visible,.rightBox .moduleItem:visible").length===0){
|
|
|
+ /*if($(".moduleItem:visible").length===0){
|
|
|
$(".empty-null").show();
|
|
|
- }
|
|
|
+ }*/
|
|
|
+
|
|
|
}
|
|
|
function isNeedPush(list) {
|
|
|
let pushCode = ['critical',"diag", "lis", "pacs", "symptom", "vital","treat","medicines",'evaluation','general','medicine','operation','nurse']
|
|
@@ -219,7 +220,7 @@ function isNeedPush(list) {
|
|
|
function isNeedPushWarning(list) {
|
|
|
let pushCode = ["crivalue", "rationali", "highrisk", "otherremind"]
|
|
|
for (let i = 0; i < list.length; i++) {
|
|
|
- if (pushCode.indexOf(list[i].code) > -1) {
|
|
|
+ if (pushCode.indexOf(list[i].code.trim()) > -1) {
|
|
|
if (list[i].status == "1") {
|
|
|
return true
|
|
|
}
|
|
@@ -252,7 +253,7 @@ function getModuleShow(moduleClassName) {
|
|
|
if ($(`.${moduleClassName}`).css("display") == "none") {
|
|
|
$(".moduleWrapper").css("display", "none")
|
|
|
$(`.${moduleClassName}`).css("display", "block")
|
|
|
- empty();
|
|
|
+ //empty();
|
|
|
}
|
|
|
}
|
|
|
function setTabNameTop() {
|
|
@@ -279,10 +280,12 @@ function renderCaseWrite() {
|
|
|
}
|
|
|
}
|
|
|
}
|
|
|
+ }).catch(()=>{
|
|
|
+ $(".loading").hide()
|
|
|
})
|
|
|
- empty()
|
|
|
}
|
|
|
function renderPushData() {
|
|
|
+ $(".loading").show()
|
|
|
return getPushInfo().then(res => {
|
|
|
hasCompleteTnterface++
|
|
|
if (res.data.code == "0") {
|
|
@@ -354,15 +357,17 @@ function renderPushData() {
|
|
|
moreInfo()
|
|
|
empty()
|
|
|
}
|
|
|
+ }).catch(()=>{
|
|
|
+ $(".loading").hide()
|
|
|
})
|
|
|
}
|
|
|
function empty(){ //显示空状态
|
|
|
setTimeout(function(){
|
|
|
- if($(".empty-right:visible").length===0&&$(".moduleItem:visible").length===0){
|
|
|
+ if($(".tabList .tab:first-child").is(".activeTab")&&$(".empty-right:visible").length===0&&$(".moduleItem:visible").length===0){
|
|
|
$(".empty-box").hide();
|
|
|
$(".empty-null").show();
|
|
|
}
|
|
|
- },200);
|
|
|
+ },300);
|
|
|
}
|
|
|
function renderLis(list, showNum) {
|
|
|
if (list.length > 0 && $(".moduleItem.lis").length > 0) {
|
|
@@ -524,6 +529,7 @@ function renderwriteStandardPage(list) {
|
|
|
$(".moduleItem.casewriting").append(str)
|
|
|
$('.moduleItem.casewriting').css("display", "block")
|
|
|
}
|
|
|
+ empty()
|
|
|
}
|
|
|
function renderPushWarning() {
|
|
|
return getPusgWarning().then(res => {
|
|
@@ -560,13 +566,15 @@ function renderPushWarning() {
|
|
|
}
|
|
|
if (hasCompleteTnterface === allInterface) {
|
|
|
$('.loading').css("display", "none")
|
|
|
- if (moduleNum === 0) {//console.log(999)
|
|
|
- // empty()
|
|
|
- }
|
|
|
+ /*if (moduleNum === 0) {//console.log(999)
|
|
|
+ empty()
|
|
|
+ }*/
|
|
|
}
|
|
|
+ empty()
|
|
|
|
|
|
+ }).catch(()=>{
|
|
|
+ $(".loading").hide()
|
|
|
})
|
|
|
- empty()
|
|
|
}
|
|
|
function renderBillingPush(list, name, code) {
|
|
|
if (list.length === 0) {
|