|
@@ -521,6 +521,7 @@ function renderDiagList(list, showNum) {
|
|
|
}
|
|
|
const index = $(this).parent().parent().next().attr('data-i')
|
|
|
const showList = $(".maydiagnose .item").css("display")
|
|
|
+ console.log(showList);
|
|
|
if (showList == "none" || index != i) {
|
|
|
$(".loading").show();
|
|
|
$(".maydiagnose .item").html('')
|
|
@@ -529,7 +530,7 @@ function renderDiagList(list, showNum) {
|
|
|
$(this).parent().parent().next().attr('data-i', i)
|
|
|
renderpushByMayDisease(name, i, 1)
|
|
|
} else {
|
|
|
- $(this).find(".item").css("display", "block")
|
|
|
+ $(".maydiagnose .item").css("display", "none")
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -568,7 +569,7 @@ function renderAffListList(list, showNum) {
|
|
|
$(this).parent().parent().next().attr('data-i', i)
|
|
|
renderpushByHasDisease(name, i, 2)
|
|
|
} else {
|
|
|
- $(this).find(".item").css("display", "block")
|
|
|
+ $(this).find(".item").css("display", "none")
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -791,20 +792,17 @@ function renderHasDisPush(list, inx) {
|
|
|
}
|
|
|
}
|
|
|
function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
|
- let generalstate, medicinestate, operationstate, nursestate, medicinenum, operationnum, nursenum
|
|
|
+ let generalstate, medicinestate, operationstate, nursestate
|
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
const item = maydiagnoseList[i];
|
|
|
if (item.code == 'maygeneral') {
|
|
|
generalstate = item.status
|
|
|
} else if (item.code == 'maymedicine') {
|
|
|
medicinestate = item.status
|
|
|
- medicinenum = item.number
|
|
|
} else if (item.code == 'mayoperation') {
|
|
|
operationstate = item.status
|
|
|
- operationnum = item.number
|
|
|
} else if (item.code == 'maynurse') {
|
|
|
nursestate = item.status
|
|
|
- nursenum = item.number
|
|
|
}
|
|
|
}
|
|
|
$(".maydiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
@@ -822,9 +820,9 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
|
</div>`
|
|
|
$(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
renderMayTreatPush(treatPush, inx)
|
|
|
- renderMayMedicinesPush(medicinesPush, inx, medicinenum)
|
|
|
- renderMayOperationsPush(operationsPush, inx, operationnum)
|
|
|
- renderMayNursePush(nursePush, inx, nursenum)
|
|
|
+ renderMayMedicinesPush(medicinesPush, inx)
|
|
|
+ renderMayOperationsPush(operationsPush, inx)
|
|
|
+ renderMayNursePush(nursePush, inx)
|
|
|
$(".maydiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
|
var i = $(this).index();
|
|
|
if ($(this).hasClass('actives')) {
|
|
@@ -838,20 +836,17 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
|
});
|
|
|
}
|
|
|
function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx) {
|
|
|
- let generalstate, medicinestate, operationstate, nursestate, medicinenum, operationnum, nursenum
|
|
|
+ let generalstate, medicinestate, operationstate, nursestate
|
|
|
for (let i = 0; i < maydiagnoseList.length; i++) {
|
|
|
const item = maydiagnoseList[i];
|
|
|
if (item.code == 'maygeneral') {
|
|
|
generalstate = item.status
|
|
|
} else if (item.code == 'maymedicine') {
|
|
|
medicinestate = item.status
|
|
|
- medicinenum = item.number
|
|
|
} else if (item.code == 'mayoperation') {
|
|
|
operationstate = item.status
|
|
|
- operationnum = item.number
|
|
|
} else if (item.code == 'maynurse') {
|
|
|
nursestate = item.status
|
|
|
- nursenum = item.number
|
|
|
}
|
|
|
}
|
|
|
$(".hasdiagnose .item[data-index=" + inx + "]").append("<div class='centerBox'></div>")
|
|
@@ -869,9 +864,9 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
|
</div>`
|
|
|
$(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
|
renderHasTreatPush(treatPush, inx)
|
|
|
- renderHasMedicinesPush(medicinesPush, inx, medicinenum)
|
|
|
- renderHasOperationsPush(operationsPush, inx, operationnum)
|
|
|
- renderHasNursePush(nursePush, inx, nursenum)
|
|
|
+ renderHasMedicinesPush(medicinesPush, inx)
|
|
|
+ renderHasOperationsPush(operationsPush, inx)
|
|
|
+ renderHasNursePush(nursePush, inx)
|
|
|
$(".hasdiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
|
var i = $(this).attr('data-index');
|
|
|
if ($(this).hasClass('actives')) {
|
|
@@ -921,52 +916,52 @@ function renderHasTreatPush(list, inx) {
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasgeneral").append(str)
|
|
|
}
|
|
|
}
|
|
|
-function renderMayMedicinesPush(list, inx, num) {
|
|
|
+function renderMayMedicinesPush(list, inx) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
console.log($(".moduleItem .item[data-index=" + inx + "] .maymedicine"));
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(shortStr)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
|
}
|
|
|
}
|
|
|
-function renderHasMedicinesPush(list, inx, num) {
|
|
|
+function renderHasMedicinesPush(list, inx) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasmedicine").append(shortStr)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasmedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
|
}
|
|
|
}
|
|
|
-function renderMayOperationsPush(list, inx, num) {
|
|
|
+function renderMayOperationsPush(list, inx) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .mayoperation").append(shortStr)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .mayoperation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
|
|
|
}
|
|
|
}
|
|
|
-function renderHasOperationsPush(list, inx, num) {
|
|
|
+function renderHasOperationsPush(list, inx) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasoperation").append(shortStr)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasoperation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-function renderMayNursePush(list, inx, num) {
|
|
|
+function renderMayNursePush(list, inx) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .maynurse").append(shortStr)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .maynurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
|
}
|
|
|
}
|
|
|
-function renderHasNursePush(list, inx, num) {
|
|
|
+function renderHasNursePush(list, inx) {
|
|
|
if (list.length > 0) {
|
|
|
moduleNum++
|
|
|
- let { shortStr, longStr } = renderItemWrapper(list, num)
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasnurse").append(shortStr)
|
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasnurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
|
}
|