|
@@ -26,7 +26,7 @@ $(function(){
|
|
|
$(".circleBSingle").css("display","none")
|
|
|
$(".circleBLis").css("display","block")
|
|
|
}
|
|
|
- $(".partTitle p span.hospi").html(hospital)
|
|
|
+ // $(".partTitle p span.hosdept").html(hospital)
|
|
|
// setInterval(() => {
|
|
|
// getTimeDetail()
|
|
|
// }, 1000);
|
|
@@ -79,8 +79,11 @@ function tiaomu(dateType){
|
|
|
$(parent.document).find("#contentIframe").attr("src","deptScoreDetailControlDept.html?from=2&deptName="+curDept+"&dateType="+dateType+"&curDeptId="+curDeptId+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
|
});
|
|
|
$(".part01 .partTitlePub").click(function(){
|
|
|
- focusMenuItem("YH-KSZR-CYRSTJ_XQ");
|
|
|
- $(parent.document).find("#contentIframe").attr("src","qcListOutHospitalDept.html?from=2&deptName="+curDept+"&dateType="+dateType+"&curDeptId="+curDeptId+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
|
+ const txt = $(this).find(".name").text()
|
|
|
+ if(txt == "入院人数统计"){
|
|
|
+ focusMenuItem("YH-KSZR-RYRSTJ_XQ");
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","qcListOutHospitalDept.html?from=2&deptName="+curDept+"&dateType="+dateType+"&curDeptId="+curDeptId+"&startDateParam="+behosDateStart+"&endDateParam="+behosDateEnd)
|
|
|
+ }
|
|
|
});
|
|
|
$(".part02").on("click",".bingli li.sec",function(){
|
|
|
focusMenuItem("YH-BLZK-ZKPFKS");
|
|
@@ -188,6 +191,7 @@ function getOwnDept(){
|
|
|
curDept = result[0].deptName
|
|
|
curDeptId = result[0].deptId
|
|
|
$(".partTitle p i,.toggleSlide p span").html(curDept).attr({"title":curDept,'data-dept':curDept,'dept-id':curDeptId})
|
|
|
+ $(".partTitle .hosdept").html(hospital+curDept)
|
|
|
getBarData(2)//图标数据获取
|
|
|
}else {
|
|
|
$(".partTitle p i,.toggleSlide p span").html('--')
|
|
@@ -211,7 +215,8 @@ function renderDeptLis(data){
|
|
|
curDept = name
|
|
|
curDeptId = did
|
|
|
$(this).parent().slideToggle().prev().find("span").html(name).attr({"title":name,'data-dept':curDept,'dept-id':curDeptId})
|
|
|
- $(".partTitle p i").html(name).attr({"title":name,'data-dept':curDept,'dept-id':curDeptId})
|
|
|
+ $(".partTitle p i").html(hospital+name).attr({"title":name,'data-dept':curDept,'dept-id':curDeptId})
|
|
|
+ $(".partTitle .hosdept").html(hospital+name)
|
|
|
if(isPlacefile == 0){
|
|
|
enterHospital(dataFif[name]||[])
|
|
|
}else{
|
|
@@ -237,6 +242,7 @@ function renderDeptLis(data){
|
|
|
//获取图表数据
|
|
|
function getBarData(type){
|
|
|
if(hasData('FUNC000054')&&isPlacefile == 1){
|
|
|
+ $(".part01 .name").html('出院人数统计')
|
|
|
post(api.leaveHosCountByDept,{//出院人数统计
|
|
|
"type": type||1,//1月2年
|
|
|
"startDate":behosDateStart,
|
|
@@ -251,6 +257,7 @@ function getBarData(type){
|
|
|
})
|
|
|
}
|
|
|
if(isPlacefile == 0) {//运行入院人数
|
|
|
+ $(".part01 .name").html('入院人数统计').append(`<img class="detailGo" src="${require("../images/details.png")}" alt="">`)
|
|
|
post(api.beHosCountByDept,{
|
|
|
"type": type||1,//1月2年
|
|
|
"startDate":behosDateStart,
|
|
@@ -465,7 +472,6 @@ function enterHospital(result){
|
|
|
dataX.push(result[i].doctorName)
|
|
|
dataY.push(result[i].num)
|
|
|
}
|
|
|
- $(".part01 .name").html('入院人数统计').append(`<img class="detailGo" src="${require("../images/details.png")}" alt="">`)
|
|
|
if(dataX.length==0){
|
|
|
$(".chuyuan,.personNum").css("display","none")
|
|
|
picEmptyData(".chuyuanEmpty")
|
|
@@ -575,6 +581,7 @@ function enterHospital(result){
|
|
|
}
|
|
|
//part01
|
|
|
function personNum(data){
|
|
|
+ let flg = JSON.stringify(data)!=='[]'
|
|
|
if(data['总人数']==0){
|
|
|
$(".chuyuan,.personNum").css("display","none")
|
|
|
picEmptyData(".chuyuanEmpty")
|
|
@@ -587,20 +594,20 @@ function personNum(data){
|
|
|
<ul class="clearfix" style="cursor: default;">
|
|
|
<li>
|
|
|
<div class="lis">
|
|
|
- <p class="numShow died">${data['死亡人数']||'--'}</p>
|
|
|
+ <p class="numShow died">${flg?data['死亡人数']+''||'--':'--'}</p>
|
|
|
<p class="explainNum">死亡人数</p>
|
|
|
</div>
|
|
|
</li>
|
|
|
<li class="li03">
|
|
|
<div class="lis li02">
|
|
|
- <p class="numShow patientNum">${data['手术病人数']||'--'}</p>
|
|
|
+ <p class="numShow patientNum">${flg?data['手术病人数']+''||'--':'--'}</p>
|
|
|
<p class="explainNum">手术病人数</p>
|
|
|
</div>
|
|
|
</li>
|
|
|
</ul>
|
|
|
`
|
|
|
$(".personNum").html("总人数:"+(data['总人数']||'--'))
|
|
|
- $(".part01 .name").html('出院人数统计').append(`<img class="detailGo" src="${require('@images/details.png')}" alt="">`)
|
|
|
+ $(".part01 .numCheck").css({"cursor":"default"})
|
|
|
$(".chuyuan").html(str)
|
|
|
}
|
|
|
//part02
|