|
@@ -510,13 +510,13 @@ function empty() { //显示空状态
|
|
}
|
|
}
|
|
}, 500);
|
|
}, 500);
|
|
}
|
|
}
|
|
-function renderDiagList(list, showNum) {
|
|
|
|
|
|
+function renderDiagList(list) {
|
|
if (list.length === 0) {
|
|
if (list.length === 0) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
$('.moduleItem.maydiagnose .moduleItemTitBox').append(titleStr("maydiagnosePush"))
|
|
$('.moduleItem.maydiagnose .moduleItemTitBox').append(titleStr("maydiagnosePush"))
|
|
let str = ``
|
|
let str = ``
|
|
- let { shortStr, longStr } = renderItemWrapper(list, 10, '', 1)
|
|
|
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 99, '', 1)
|
|
let boxStr = `<div class="moduleBox">
|
|
let boxStr = `<div class="moduleBox">
|
|
${str}
|
|
${str}
|
|
${shortStr}
|
|
${shortStr}
|
|
@@ -537,7 +537,6 @@ function renderDiagList(list, showNum) {
|
|
}
|
|
}
|
|
const index = $(this).parent().parent().next().attr('data-i')
|
|
const index = $(this).parent().parent().next().attr('data-i')
|
|
const showList = $(".maydiagnose .item").css("display")
|
|
const showList = $(".maydiagnose .item").css("display")
|
|
- console.log(showList);
|
|
|
|
if (showList == "none" || index != i) {
|
|
if (showList == "none" || index != i) {
|
|
$(".loading").show();
|
|
$(".loading").show();
|
|
$(".maydiagnose .item").html('')
|
|
$(".maydiagnose .item").html('')
|
|
@@ -550,13 +549,13 @@ function renderDiagList(list, showNum) {
|
|
}
|
|
}
|
|
});
|
|
});
|
|
}
|
|
}
|
|
-function renderAffListList(list, showNum) {
|
|
|
|
|
|
+function renderAffListList(list) {
|
|
if (list.length === 0) {
|
|
if (list.length === 0) {
|
|
return
|
|
return
|
|
}
|
|
}
|
|
$('.moduleItem.hasdiagnose .moduleItemTitBox').append(titleStr("hasdiagnosePush"))
|
|
$('.moduleItem.hasdiagnose .moduleItemTitBox').append(titleStr("hasdiagnosePush"))
|
|
let str = ``
|
|
let str = ``
|
|
- let { shortStr, longStr } = renderItemWrapper(list, 10, '', 1)
|
|
|
|
|
|
+ let { shortStr, longStr } = renderItemWrapper(list, 99, '', 1)
|
|
let boxStr = `<div class="moduleBox">
|
|
let boxStr = `<div class="moduleBox">
|
|
${str}
|
|
${str}
|
|
${shortStr}
|
|
${shortStr}
|
|
@@ -840,10 +839,10 @@ function renderMayPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem maynurse" data-index="3"></div>` : ''}
|
|
</div>`
|
|
</div>`
|
|
$(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
$(".maydiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
- renderMayTreatPush(treatPush, inx)
|
|
|
|
- renderMayMedicinesPush(medicinesPush, inx)
|
|
|
|
- renderMayOperationsPush(operationsPush, inx)
|
|
|
|
- renderMayNursePush(nursePush, inx)
|
|
|
|
|
|
+ renderMayTreatPush(treatPush)
|
|
|
|
+ renderMayMedicinesPush(medicinesPush)
|
|
|
|
+ renderMayOperationsPush(operationsPush)
|
|
|
|
+ renderMayNursePush(nursePush)
|
|
$(".maydiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
$(".maydiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
var i = $(this).index();
|
|
var i = $(this).index();
|
|
if ($(this).hasClass('actives')) {
|
|
if ($(this).hasClass('actives')) {
|
|
@@ -890,10 +889,10 @@ function renderHasPush(treatPush, medicinesPush, operationsPush, nursePush, inx)
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
${nursePush.length > 0 && nursestate != 0 ? `<div class="checkBox nurseItem hasnurse" data-index="3"></div>` : ''}
|
|
</div>`
|
|
</div>`
|
|
$(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
$(".hasdiagnose .item[data-index=" + inx + "] .centerBox").append(str)
|
|
- renderHasTreatPush(treatPush, inx)
|
|
|
|
- renderHasMedicinesPush(medicinesPush, inx)
|
|
|
|
- renderHasOperationsPush(operationsPush, inx)
|
|
|
|
- renderHasNursePush(nursePush, inx)
|
|
|
|
|
|
+ renderHasTreatPush(treatPush)
|
|
|
|
+ renderHasMedicinesPush(medicinesPush)
|
|
|
|
+ renderHasOperationsPush(operationsPush)
|
|
|
|
+ renderHasNursePush(nursePush)
|
|
$(".hasdiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
$(".hasdiagnose .item[data-index=" + inx + "] .centerBox ul li").click(function () {
|
|
var i = $(this).attr('data-index');
|
|
var i = $(this).attr('data-index');
|
|
if ($(this).hasClass('actives')) {
|
|
if ($(this).hasClass('actives')) {
|
|
@@ -942,16 +941,16 @@ function renderHasTreatPush(list, inx) {
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasgeneral").append(str)
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasgeneral").append(str)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-function renderMayMedicinesPush(list, inx) {
|
|
|
|
|
|
+function renderMayMedicinesPush(list) {
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
- console.log($(".moduleItem .item[data-index=" + inx + "] .maymedicine"));
|
|
|
|
|
|
+ console.log($(".moduleItem .item[data-index=" + inx + "] .maymedicine"),112);
|
|
$(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(shortStr)
|
|
$(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(shortStr)
|
|
$(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
$(".moduleItem .item[data-index=" + inx + "] .maymedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-function renderHasMedicinesPush(list, inx) {
|
|
|
|
|
|
+function renderHasMedicinesPush(list) {
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
@@ -959,7 +958,7 @@ function renderHasMedicinesPush(list, inx) {
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasmedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
$(".moduleItem .item[data-index=" + inx + "] .hasmedicine").append(renderLongStr(titleConfigH["drugPush"].name, longStr, titleConfigH["drugPush"].location))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-function renderMayOperationsPush(list, inx) {
|
|
|
|
|
|
+function renderMayOperationsPush(list) {
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
@@ -967,7 +966,7 @@ function renderMayOperationsPush(list, inx) {
|
|
$(".moduleItem .item[data-index=" + inx + "] .mayoperation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
|
|
$(".moduleItem .item[data-index=" + inx + "] .mayoperation").append(renderLongStr(titleConfigH["operationPush"].name, longStr, titleConfigH["operationPush"].location))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-function renderHasOperationsPush(list, inx) {
|
|
|
|
|
|
+function renderHasOperationsPush(list) {
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
@@ -976,7 +975,7 @@ function renderHasOperationsPush(list, inx) {
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
|
|
-function renderMayNursePush(list, inx) {
|
|
|
|
|
|
+function renderMayNursePush(list) {
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
@@ -984,7 +983,7 @@ function renderMayNursePush(list, inx) {
|
|
$(".moduleItem .item[data-index=" + inx + "] .maynurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
$(".moduleItem .item[data-index=" + inx + "] .maynurse").append(renderLongStr(titleConfigH["nursePush"].name, longStr, titleConfigH["nursePush"].location))
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-function renderHasNursePush(list, inx) {
|
|
|
|
|
|
+function renderHasNursePush(list) {
|
|
if (list.length > 0) {
|
|
if (list.length > 0) {
|
|
moduleNum++
|
|
moduleNum++
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|
|
let { shortStr, longStr } = renderItemWrapper(list, 10)
|