|
@@ -428,11 +428,12 @@ function renderpushByMayDisease(name, i, inx) {
|
|
isShow = true
|
|
isShow = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
+ console.log($(".maydiagnose .item div").length);
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0 && !isShow) {
|
|
$.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
$.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
$(".maydiagnose .item").css("display", "none")
|
|
$(".maydiagnose .item").css("display", "none")
|
|
} else if (maydiagnoseType) {
|
|
} else if (maydiagnoseType) {
|
|
- $.toast('toast4', '', 3000, '.maydiagnose', i);
|
|
|
|
|
|
+ $.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
$(".maydiagnose .item").css("display", "none")
|
|
$(".maydiagnose .item").css("display", "none")
|
|
} else {
|
|
} else {
|
|
renderMaySymptomPush(symptomPush, inx)
|
|
renderMaySymptomPush(symptomPush, inx)
|
|
@@ -445,6 +446,11 @@ function renderpushByMayDisease(name, i, inx) {
|
|
bindOpenInfo()
|
|
bindOpenInfo()
|
|
moreInfo()
|
|
moreInfo()
|
|
bindSlide();
|
|
bindSlide();
|
|
|
|
+ if ($(".maydiagnose .item").children('div').length == 0) {
|
|
|
|
+ $.toast('toast3', '', 3000, '.maydiagnose', i);
|
|
|
|
+ $(".maydiagnose .item").css("display", "none")
|
|
|
|
+ $(".maydiagnose .item").css("display", "none")
|
|
|
|
+ }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
empty(); //判断是否显示空状态
|
|
empty(); //判断是否显示空状态
|
|
@@ -490,6 +496,11 @@ function renderpushByHasDisease(name, i, inx) {
|
|
bindOpenInfo()
|
|
bindOpenInfo()
|
|
moreInfo()
|
|
moreInfo()
|
|
bindSlide();
|
|
bindSlide();
|
|
|
|
+ if ($(".hasdiagnose .item").children('div').length == 0) {
|
|
|
|
+ $.toast('toast3', '', 3000, '.hasdiagnose', i);
|
|
|
|
+ $(".hasdiagnose .item").css("display", "none")
|
|
|
|
+ $(".hasdiagnose .item").css("display", "none")
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
}
|
|
}
|
|
@@ -825,20 +836,23 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
isShow = true
|
|
isShow = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- $(".maydiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
|
|
- let str = `<ul>
|
|
|
|
- ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
|
|
- ${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
|
|
- ${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
|
|
- ${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
|
|
- </ul>
|
|
|
|
- <div class="centerBoxItem">
|
|
|
|
- ${treatPush.length > 0 && isShow && generalstate != 0 ? `<div class="checkBox generalItem maygeneral" data-index="0"></div>` : ''}
|
|
|
|
- ${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem maymedicine" data-index="1"></div>` : ''}
|
|
|
|
- ${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem mayoperation" data-index="2"></div>` : ''}
|
|
|
|
- ${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
|
|
- </div>`
|
|
|
|
- $(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
|
|
|
+ if ((treatPush.length > 0 && isShow && generalstate != 0) || (medicinesPush.length > 0 && medicinestate != 0) || (operationsPush.length > 0 && operationstate != 0) || (nursePush.length > 0 && nursestate != 0)) {
|
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
|
|
+ let str = `<ul>
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
|
|
+ ${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
|
|
+ ${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
|
|
+ ${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
|
|
+ </ul>
|
|
|
|
+ <div class="centerBoxItem">
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<div class="checkBox generalItem maygeneral" data-index="0"></div>` : ''}
|
|
|
|
+ ${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem maymedicine" data-index="1"></div>` : ''}
|
|
|
|
+ ${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem mayoperation" data-index="2"></div>` : ''}
|
|
|
|
+ ${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
|
|
+ </div>`
|
|
|
|
+ $(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
|
+ }
|
|
|
|
+
|
|
if ($(".maydiagnose .centerBox ul li").length == 0) {
|
|
if ($(".maydiagnose .centerBox ul li").length == 0) {
|
|
$(".maydiagnose .centerBox").hide()
|
|
$(".maydiagnose .centerBox").hide()
|
|
} else {
|
|
} else {
|
|
@@ -880,20 +894,23 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
isShow = true
|
|
isShow = true
|
|
}
|
|
}
|
|
}
|
|
}
|
|
- $(".hasdiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
|
|
- let str = `<ul>
|
|
|
|
- ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
|
|
- ${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
|
|
- ${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
|
|
- ${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
|
|
- </ul>
|
|
|
|
- <div class="centerBoxItem">
|
|
|
|
- ${treatPush.length > 0 && isShow && generalstate != 0 ? `<div class="checkBox generalItem hasgeneral" data-index="0"></div>` : ''}
|
|
|
|
- ${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem hasmedicine" data-index="1"></div>` : ''}
|
|
|
|
- ${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem hasoperation" data-index="2"></div>` : ''}
|
|
|
|
- ${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
|
|
- </div>`
|
|
|
|
- $(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
|
|
|
+ if ((treatPush.length > 0 && isShow && generalstate != 0) || (medicinesPush.length > 0 && medicinestate != 0) || (operationsPush.length > 0 && operationstate != 0) || (nursePush.length > 0 && nursestate != 0)) {
|
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
|
|
+ let str = `<ul>
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
|
|
+ ${medicinesPush.length > 0 && medicinestate != 0 ? `<li class="medicine" data-index="1">推荐用药</li>` : ''}
|
|
|
|
+ ${operationsPush.length > 0 && operationstate != 0 ? `<li class="operation" data-index="2">推荐手术/操作</li>` : ''}
|
|
|
|
+ ${nursePush.length > 0 && nursestate != 0 ? `<li class="nurse" data-index="3">推荐护理</li>` : ''}
|
|
|
|
+ </ul>
|
|
|
|
+ <div class="centerBoxItem">
|
|
|
|
+ ${treatPush.length > 0 && isShow && generalstate != 0 ? `<div class="checkBox generalItem hasgeneral" data-index="0"></div>` : ''}
|
|
|
|
+ ${medicinesPush.length > 0 && medicinestate != 0 ? `<div class="checkBox medicineItem hasmedicine" data-index="1"></div>` : ''}
|
|
|
|
+ ${operationsPush.length > 0 && operationstate != 0 ? `<div class="checkBox operationItem hasoperation" data-index="2"></div>` : ''}
|
|
|
|
+ ${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
|
|
+ </div>`
|
|
|
|
+ $(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
|
+ }
|
|
|
|
+
|
|
if ($(".hasdiagnose .centerBox ul li").length == 0) {
|
|
if ($(".hasdiagnose .centerBox ul li").length == 0) {
|
|
$(".hasdiagnose .centerBox").hide()
|
|
$(".hasdiagnose .centerBox").hide()
|
|
} else {
|
|
} else {
|
|
@@ -968,7 +985,7 @@ function renderHasMedicinesPush(list, inx) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
function renderMayOperationsPush(list, inx) {
|
|
function renderMayOperationsPush(list, inx) {
|
|
- console.log(list,112);
|
|
|
|
|
|
+ console.log(list, 112);
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|