|
@@ -379,7 +379,6 @@ function renderpushByMayDisease(name, i, e) {
|
|
|
}
|
|
|
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('toast1', '', 3000, '.maydiagnose', i);
|
|
|
- $(".maydiagnose .box-title").addClass("ellipsis")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', down2)
|
|
|
$(e.target).parents('.box').find(".box-img").removeClass('box-img').addClass('noData')
|
|
|
} else if (maydiagnoseType) {
|
|
@@ -435,7 +434,6 @@ function renderpushByHasDisease(name, i, e) {
|
|
|
}
|
|
|
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('toast1', '', 3000, '.hasdiagnose', i);
|
|
|
- $(".hasdiagnose .box-title").addClass("ellipsis")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', down2)
|
|
|
$(e.target).parents('.box').find(".box-img").removeClass('box-img').addClass('noData')
|
|
|
} else if (hasdiagnoseType) {
|
|
@@ -694,7 +692,7 @@ function renderDiagList(list, showNum) {
|
|
|
const item = list[i];
|
|
|
str +=
|
|
|
`<div class='box ${i >= showNum ? `box-1` : ''}' data-index="${i}">
|
|
|
- <p class='box-p goDetail' data-name="${item.name}" data-index="${i}"><span class='box-title ellipsis'>${item.name}</span><img class="box-img" src=${down} /></p>
|
|
|
+ <p class='box-p goDetail' data-name="${item.name}" title="${item.name.length>=18?item.name:''}" data-index="${i}"><span class='box-title ellipsis'>${item.name}</span><img class="box-img" src=${down} /></p>
|
|
|
<div class="moduleCenter"></div>
|
|
|
</div>`
|
|
|
}
|
|
@@ -709,6 +707,7 @@ function renderDiagList(list, showNum) {
|
|
|
indexNow = i
|
|
|
const showList = $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display")
|
|
|
if ($(e.target).parents('.box').find(".noData").hasClass('noData')) {
|
|
|
+ $(".maydiagnose .box-title").addClass("ellipsis")
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
$.toast('toast1', '', 3000, '.maydiagnose', i);
|
|
|
$(".maydiagnose .box").find(".box-img").attr('src', down)
|
|
@@ -721,7 +720,7 @@ function renderDiagList(list, showNum) {
|
|
|
if (showList == "none" || !showList) {
|
|
|
$(".loading").show();
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
|
|
|
- $(".maydiagnose .box-title").removeClass("ellipsis")
|
|
|
+ $(".maydiagnose .box[data-index=" + i + "]").find(".box-title").removeClass("ellipsis")
|
|
|
$(".maydiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
$(".maydiagnose .box").find(".box-img").attr('src', down)
|
|
|
$(".maydiagnose .box").find(".noData").attr('src', down2)
|
|
@@ -730,7 +729,7 @@ function renderDiagList(list, showNum) {
|
|
|
renderpushByMayDisease(name, i, e)
|
|
|
} else {
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
|
|
|
- $(".maydiagnose .box-title").addClass("ellipsis")
|
|
|
+ $(".maydiagnose .box[data-index=" + i + "]").find(".box-title").addClass("ellipsis")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', down)
|
|
|
$(".maydiagnose .box").find(".noData").attr('src', down2)
|
|
|
}
|
|
@@ -746,7 +745,7 @@ function renderAffListList(list, showNum) {
|
|
|
const item = list[i];
|
|
|
str +=
|
|
|
`<div class='box ${i >= showNum ? `box-1` : ''}' data-index="${i}">
|
|
|
- <p class='box-p goDetail' data-name="${item.name}" data-index="${i}"><span class='box-title ellipsis'>${item.name}</span><img class="box-img" src=${down} /></p>
|
|
|
+ <p class='box-p goDetail' data-name="${item.name}" title="${item.name.length>=18?item.name:''}" data-index="${i}"><span class='box-title ellipsis'>${item.name}</span><img class="box-img" src=${down} /></p>
|
|
|
<div class="moduleCenter"></div>
|
|
|
</div>`
|
|
|
}
|
|
@@ -761,6 +760,7 @@ function renderAffListList(list, showNum) {
|
|
|
indexNow = i
|
|
|
const showList = $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display")
|
|
|
if ($(e.target).parents('.box').find(".noData").hasClass('noData')) {
|
|
|
+ $(".hasdiagnose .box-title").addClass("ellipsis")
|
|
|
$(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
$(".hasdiagnose .box").find(".box-img").attr('src', down)
|
|
|
$.toast('toast1', '', 3000, '.hasdiagnose', i);
|
|
@@ -770,11 +770,10 @@ function renderAffListList(list, showNum) {
|
|
|
}, 200);
|
|
|
return
|
|
|
}
|
|
|
- console.log(4);
|
|
|
if (showList == "none" || !showList) {
|
|
|
$(".loading").show();
|
|
|
$(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
|
|
|
- $(".hasdiagnose .box-title").removeClass("ellipsis")
|
|
|
+ $(".hasdiagnose .box[data-index=" + i + "]").find(".box-title").removeClass("ellipsis")
|
|
|
$(".hasdiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
$(".hasdiagnose .box").find(".box-img").attr('src', down)
|
|
|
$(".hasdiagnose .box").find(".noData").attr('src', down2)
|
|
@@ -783,7 +782,7 @@ function renderAffListList(list, showNum) {
|
|
|
renderpushByHasDisease(name, i, e)
|
|
|
} else {
|
|
|
$(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
|
|
|
- $(".hasdiagnose .box-title").addClass("ellipsis")
|
|
|
+ $(".hasdiagnose .box[data-index=" + i + "]").find(".box-title").addClass("ellipsis")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', down)
|
|
|
$(".hasdiagnose .box").find(".noData").attr('src', down2)
|
|
|
}
|
|
@@ -1082,10 +1081,10 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush) {
|
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
|
</div>`
|
|
|
$(".maydiagnose .box[data-index=" + indexNow + "]").find(".moduleCenter .centerBox").append(str)
|
|
|
- if ($(".maydiagnose .centerBox ul li").length == 0) {
|
|
|
- $(".maydiagnose .centerBox").hide()
|
|
|
+ if ($(".maydiagnose .box[data-index=" + indexNow + "] .centerBox ul li").length == 0) {
|
|
|
+ $(".maydiagnose .box[data-index=" + indexNow + "] .centerBox").hide()
|
|
|
} else {
|
|
|
- $(".maydiagnose .centerBox").show()
|
|
|
+ $(".maydiagnose .box[data-index=" + indexNow + "] .centerBox").show()
|
|
|
}
|
|
|
renderMayTreatPush(treatPush)
|
|
|
renderMayMedicPush(medicinesPush)
|
|
@@ -1106,13 +1105,13 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
|
|
|
let generalstate, medicinestate, operationstate, nursestate, isShow = false
|
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
const item = maydiagnoseList[i];
|
|
|
- if (item.code == 'maygeneral') {
|
|
|
+ if (item.code == 'hasgeneral') {
|
|
|
generalstate = item.status
|
|
|
- } else if (item.code == 'maymedicine') {
|
|
|
+ } else if (item.code == 'hasmedicine') {
|
|
|
medicinestate = item.status
|
|
|
- } else if (item.code == 'mayoperation') {
|
|
|
+ } else if (item.code == 'hasoperation') {
|
|
|
operationstate = item.status
|
|
|
- } else if (item.code == 'maynurse') {
|
|
|
+ } else if (item.code == 'hasnurse') {
|
|
|
}
|
|
|
}
|
|
|
for (let i = 0; i < treatPush.length; i++) {
|
|
@@ -1121,6 +1120,7 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
|
|
|
isShow = true
|
|
|
}
|
|
|
}
|
|
|
+ console.log(medicinestate,111);
|
|
|
$(".hasdiagnose .box[data-index=" + indexNow + "]").find(".moduleCenter").append("<div class='centerBox'></div>")
|
|
|
let str = `<ul>
|
|
|
${treatPush.length > 0 && isShow && generalstate != 0 ? `<li class="general" data-index="0">一般治疗</li>` : ''}
|
|
@@ -1135,11 +1135,10 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush) {
|
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
|
</div>`
|
|
|
$(".hasdiagnose .box[data-index=" + indexNow + "]").find(".moduleCenter .centerBox").append(str)
|
|
|
- console.log($(".hasdiagnose .centerBox ul li").length, 222);
|
|
|
- if ($(".hasdiagnose .centerBox ul li").length == 0) {
|
|
|
- $(".hasdiagnose .centerBox").hide()
|
|
|
+ if ($(".hasdiagnose .box[data-index=" + indexNow + "] .centerBox ul li").length == 0) {
|
|
|
+ $(".hasdiagnose .box[data-index=" + indexNow + "] .centerBox").hide()
|
|
|
} else {
|
|
|
- $(".hasdiagnose .centerBox").show()
|
|
|
+ $(".hasdiagnose .box[data-index=" + indexNow + "] .centerBox").show()
|
|
|
}
|
|
|
renderHasTreatPush(treatPush)
|
|
|
renderHasMedicPush(medicinesPush)
|