|
@@ -25,6 +25,8 @@ require('./../images/t2.png').replace(/^undefined/g, '')
|
|
|
require('./../images/t3.png').replace(/^undefined/g, '')
|
|
|
require('./../images/go.png').replace(/^undefined/g, '')
|
|
|
require('./../images/g1.png').replace(/^undefined/g, '')
|
|
|
+
|
|
|
+require('./../images/choice-n.png').replace(/^undefined/g, '')
|
|
|
require('./../images/toast-1.png').replace(/^undefined/g, '')
|
|
|
require('./../images/toast-2.png').replace(/^undefined/g, '')
|
|
|
require('./../images/toast-3.png').replace(/^undefined/g, '')
|
|
@@ -43,6 +45,7 @@ let ups = require('./../images/d2.png').replace(/^undefined/g, '')
|
|
|
let more = require('./../images/more.png').replace(/^undefined/g, '')
|
|
|
let up = require('./../images/icon-up.png').replace(/^undefined/g, '')
|
|
|
let go = require('./../images/g1.png').replace(/^undefined/g, '')
|
|
|
+let down2 = require('./../images/d3.png').replace(/^undefined/g, '')
|
|
|
let maydiagnoseList = [], hasdiagnoseList = [];
|
|
|
let maydiagnoseType = false, hasdiagnoseType = false;
|
|
|
|
|
@@ -358,7 +361,7 @@ function renderPushData() {
|
|
|
empty(); //判断是否显示空状态
|
|
|
})
|
|
|
}
|
|
|
-function renderpushByMayDisease(name, i) {
|
|
|
+function renderpushByMayDisease(name, i,e) {
|
|
|
return pushByDisease(name, i).then(res => {
|
|
|
$(".loading").hide();
|
|
|
hasCompleteTnterface++
|
|
@@ -383,6 +386,8 @@ function renderpushByMayDisease(name, i) {
|
|
|
}
|
|
|
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);
|
|
|
+ $(e.target).parents('.box').find(".box-img").attr('src', down2)
|
|
|
+ $(e.target).parents('.box').find(".box-img").addClass('noData')
|
|
|
} else if (maydiagnoseType) {
|
|
|
$.toast('toast2', '', 3000, '.maydiagnose', i);
|
|
|
} else {
|
|
@@ -410,7 +415,7 @@ function renderpushByMayDisease(name, i) {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-function renderpushByHasDisease(name, i) {
|
|
|
+function renderpushByHasDisease(name, i,e) {
|
|
|
return pushByDisease(name, i).then(res => {
|
|
|
$(".loading").hide();
|
|
|
hasCompleteTnterface++
|
|
@@ -435,6 +440,8 @@ function renderpushByHasDisease(name, i) {
|
|
|
}
|
|
|
if (symptomPush.length == 0 && vitalPush.length == 0 && lisPush.length == 0 && pacsPush.length == 0 && scalePush.length == 0 && disPush.length == 0 && treatPush.length == 0 && medicinesPush.length == 0 && operationsPush.length == 0 && nursePush.length == 0) {
|
|
|
$.toast('toast1', '', 3000, '.hasdiagnose', i);
|
|
|
+ $(e.target).parents('.box').find(".box-img").attr('src', down2)
|
|
|
+ $(e.target).parents('.box').find(".box-img").addClass('noData')
|
|
|
} else if (hasdiagnoseType) {
|
|
|
$.toast('toast2', '', 3000, '.hasdiagnose', i);
|
|
|
} else {
|
|
@@ -703,17 +710,28 @@ function renderDiagList(list, showNum) {
|
|
|
const i = $(this).attr('data-index');
|
|
|
indexNow = i
|
|
|
const showList = $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display")
|
|
|
+ if($(e.target).parents('.box').find(".box-img").hasClass('noData')){
|
|
|
+ $(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
+ $.toast('toast1', '', 3000, '.maydiagnose', i);
|
|
|
+ setTimeout(function () {
|
|
|
+ $(".maydiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
+ }, 200);
|
|
|
+
|
|
|
+ return
|
|
|
+ }
|
|
|
if (showList == "none" || !showList) {
|
|
|
$(".loading").show();
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
|
|
|
$(".maydiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
$(".maydiagnose .box").find(".box-img").attr('src', down)
|
|
|
+ $(".maydiagnose .box").find(".noData").attr('src', down2)
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', ups)
|
|
|
- renderpushByMayDisease(name, i)
|
|
|
+ renderpushByMayDisease(name, i,e)
|
|
|
} else {
|
|
|
$(".maydiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', down)
|
|
|
+ $(".maydiagnose .box").find(".noData").attr('src', down2)
|
|
|
}
|
|
|
});
|
|
|
}
|
|
@@ -741,17 +759,27 @@ function renderAffListList(list, showNum) {
|
|
|
const i = $(this).attr('data-index');
|
|
|
indexNow = i
|
|
|
const showList = $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display")
|
|
|
+ if($(e.target).parents('.box').find(".box-img").hasClass('noData')){
|
|
|
+ $(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
+ $.toast('toast1', '', 3000, '.hasdiagnose', i);
|
|
|
+ setTimeout(function () {
|
|
|
+ $(".hasdiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
+ }, 200);
|
|
|
+ return
|
|
|
+ }
|
|
|
if (showList == "none" || !showList) {
|
|
|
$(".loading").show();
|
|
|
$(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").html('')
|
|
|
$(".hasdiagnose .box").find(".moduleCenter").css("display", "none")
|
|
|
$(".hasdiagnose .box").find(".box-img").attr('src', down)
|
|
|
+ $(".hasdiagnose .box").find(".noData").attr('src', down2)
|
|
|
$(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "block")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', ups)
|
|
|
- renderpushByHasDisease(name, i)
|
|
|
+ renderpushByHasDisease(name, i,e)
|
|
|
} else {
|
|
|
$(".hasdiagnose .box[data-index=" + i + "]").find(".moduleCenter").css("display", "none")
|
|
|
$(e.target).parents('.box').find(".box-img").attr('src', down)
|
|
|
+ $(".hasdiagnose .box").find(".noData").attr('src', down2)
|
|
|
}
|
|
|
});
|
|
|
}
|