|
@@ -9,6 +9,9 @@ const echarts = require('echarts');
|
|
|
const {post,setCookie,delCookie,getCookie} = require('../js/utils.js');
|
|
|
let payMoney = [],dayLis = [],dataType = 1;
|
|
|
$(function(){
|
|
|
+ if(!hasData('YH-KZT')){
|
|
|
+ $("body").html('')
|
|
|
+ }
|
|
|
$(".partTitle p span").html(getCookie("hospital"))
|
|
|
setInterval(() => {
|
|
|
getTimeDetail()
|
|
@@ -21,15 +24,29 @@ $(function(){
|
|
|
window.parent.userActionHide()
|
|
|
$(".toggleSlide ul").css("display","none")
|
|
|
})
|
|
|
+ let sildeIS = true
|
|
|
+ if(!hasData('FUNC000045')&&!hasData('FUNC000046')){
|
|
|
+ $(".toggleSlide").css("opacity","0.5")
|
|
|
+ sildeIS = false
|
|
|
+ }
|
|
|
$(".toggleSlide p").click(function(e){
|
|
|
+ if(!sildeIS)return
|
|
|
e.stopPropagation()
|
|
|
$(this).next().slideToggle()
|
|
|
})
|
|
|
$(".toggleSlide li").click(function(){
|
|
|
let str = $(this).attr("data-str"),type = $(this).attr("data-type")
|
|
|
if(type == 1){
|
|
|
+ if(!hasData('FUNC000045')){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ $(".pubEchart .title").html("科室平均住院天数柱状图")
|
|
|
barChart(dayLis,dataType)
|
|
|
}else{
|
|
|
+ if(!hasData('FUNC000046')){
|
|
|
+ return
|
|
|
+ }
|
|
|
+ $(".pubEchart .title").html("科室平均住院花费柱状图")
|
|
|
barChart(payMoney,dataType)
|
|
|
}
|
|
|
$(this).parent().slideToggle().prev().find("span").html(str)
|
|
@@ -126,6 +143,8 @@ function getBarData(type){
|
|
|
barChart(result2,type||1)
|
|
|
}
|
|
|
})
|
|
|
+ }else{
|
|
|
+ $(".toggleSlide1").css("opacity",0.5)
|
|
|
}
|
|
|
if(hasData('FUNC000046')){
|
|
|
post('/console/getAverageFee',{//平均住院费用
|
|
@@ -138,6 +157,8 @@ function getBarData(type){
|
|
|
barChart(result2,type||1)
|
|
|
}
|
|
|
})
|
|
|
+ }else{
|
|
|
+ $(".toggleSlide2").css("opacity",0.5)
|
|
|
}
|
|
|
if(hasData('FUNC000047')){
|
|
|
post('/console/getAverageScore',{//各科室质控平均分
|