|
@@ -108,10 +108,14 @@ function getDetails(){
|
|
|
focusMenuItem("YH-ZKK-GKSQXZB_XQ");
|
|
|
$(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType+"&deptType="+deptType)
|
|
|
})
|
|
|
- $(".part02 .bingliLis,.part03 .circle .title").click(function(){
|
|
|
+ $(".part02 .bingliLis").click(function(){
|
|
|
focusMenuItem("YH-ZKK-GKSQXZB_XQ");
|
|
|
$(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType)
|
|
|
})
|
|
|
+ $(".part03 .circle .title").click(function(){
|
|
|
+ focusMenuItem("YH-ZKK-DXFZZB_XQ");
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","./singleVeto.html?shijian"+dateType+"&qxName="+deptName)
|
|
|
+ })
|
|
|
$(".part02").on("click",".bingli li.sec",function(){
|
|
|
focusMenuItem("YH-BLZK-ZKPF");
|
|
|
let dataC = $(this).attr("data-c")
|
|
@@ -128,13 +132,15 @@ function getDetails(){
|
|
|
}
|
|
|
})
|
|
|
$(".paymoney.pubEchart .title").click(function(){
|
|
|
- if($(this).text().indexOf("花费")!==-1){
|
|
|
- focusMenuItem("YH-ZKK-KSPJZYHF_XQ");
|
|
|
- $(parent.document).find("#contentIframe").attr("src","./payDetail.html?from=1&dateType="+dateType)
|
|
|
- }else{
|
|
|
- focusMenuItem("YH-ZKK-KSPJZYTS_XQ");
|
|
|
- $(parent.document).find("#contentIframe").attr("src","./dayDetail.html?from=1&dateType="+dateType)
|
|
|
- }
|
|
|
+ // if($(this).text().indexOf("花费")!==-1){
|
|
|
+ // focusMenuItem("YH-ZKK-KSPJZYHF_XQ");
|
|
|
+ // $(parent.document).find("#contentIframe").attr("src","./payDetail.html?from=1&dateType="+dateType)
|
|
|
+ // }else{
|
|
|
+ // focusMenuItem("YH-ZKK-KSPJZYTS_XQ");
|
|
|
+ // $(parent.document).find("#contentIframe").attr("src","./dayDetail.html?from=1&dateType="+dateType)
|
|
|
+ // }
|
|
|
+ focusMenuItem("YH-ZKK-GKSQXZB_XQ");
|
|
|
+ $(parent.document).find("#contentIframe").attr("src","./deptScoreDetailControl.html?from=1&dateType="+dateType)
|
|
|
})
|
|
|
$(".defect .partTitlePub").click(function(){ //from 1 console / 2 deptConsole
|
|
|
focusMenuItem("YH-ZKK-GMKQXZB_XQ");
|
|
@@ -265,11 +271,13 @@ function getEveryDeptLevel(){
|
|
|
}).then((res)=>{
|
|
|
let data = res.data;
|
|
|
if(data.code == 0){
|
|
|
- let result2 = data.data||[]
|
|
|
- dayLis = result2
|
|
|
- if(slideType == 1){
|
|
|
- barChart(result2,type||1)
|
|
|
+ let result1 = data.data||[]
|
|
|
+ let dataX1=[],dataY1=[]
|
|
|
+ for(let i = 0;i < result1.length;i++){
|
|
|
+ dataX1.push(result1[i].deptName)
|
|
|
+ dataY1.push(result1[i].percentStr.replace('%',''))
|
|
|
}
|
|
|
+ barChartLevel(dataX1,dataY1)
|
|
|
}
|
|
|
})
|
|
|
}else{
|
|
@@ -294,22 +302,22 @@ function getBarData(type){
|
|
|
// }else{
|
|
|
// $(".toggleSlide1").css("opacity",0.5)
|
|
|
// }
|
|
|
- if(hasData('FUNC000046')){
|
|
|
- post(api.getAverageFee,{//平均住院费用
|
|
|
- "type": type||1//1月2年
|
|
|
- }).then((res)=>{
|
|
|
- let data = res.data;
|
|
|
- if(data.code == 0){
|
|
|
- let result3 = data.data['平均住院费用']||[]
|
|
|
- payMoney = result3;
|
|
|
- if(slideType == 2){
|
|
|
- barChart(result3,type||1)
|
|
|
- }
|
|
|
- }
|
|
|
- })
|
|
|
- }else{
|
|
|
- $(".toggleSlide2").css("opacity",0.5)
|
|
|
- }
|
|
|
+ // if(hasData('FUNC000046')){
|
|
|
+ // post(api.getAverageFee,{//平均住院费用
|
|
|
+ // "type": type||1//1月2年
|
|
|
+ // }).then((res)=>{
|
|
|
+ // let data = res.data;
|
|
|
+ // if(data.code == 0){
|
|
|
+ // let result3 = data.data['平均住院费用']||[]
|
|
|
+ // payMoney = result3;
|
|
|
+ // if(slideType == 2){
|
|
|
+ // barChart(result3,type||1)
|
|
|
+ // }
|
|
|
+ // }
|
|
|
+ // })
|
|
|
+ // }else{
|
|
|
+ // $(".toggleSlide2").css("opacity",0.5)
|
|
|
+ // }
|
|
|
if(hasData('FUNC000048')&&hospital=="台州市立"){
|
|
|
post(api.getLevelResultDept,{//各科室甲级占比
|
|
|
"type": type||1//1月2年
|
|
@@ -1021,6 +1029,110 @@ function barChartPay(dataX,dataY){
|
|
|
myCharts.setOption(option);
|
|
|
}
|
|
|
//柱状图住院日期
|
|
|
+function barChartLevel(dataX,dataY){
|
|
|
+ console.log(dataX,dataY,7887878787)
|
|
|
+ // if(dataX.length==0&&dataY.length==0){
|
|
|
+ // $("#barChartPay,.innerOuter").css("display","none")
|
|
|
+ // picEmptyData('.barChartPayEmptys')
|
|
|
+ // return
|
|
|
+ // }else{
|
|
|
+ // if(hospital == "台州市立"){
|
|
|
+ // $(".innerOuter").css("display","block")
|
|
|
+ // }else{
|
|
|
+ // $(".innerOuter").css("display","none")
|
|
|
+ // }
|
|
|
+ // $("#barChartPay").css("display","block")
|
|
|
+ // $(".barChartPayEmptys").css("display","none")
|
|
|
+ // }
|
|
|
+ var myCharts = echarts.init(document.getElementById('barChart'));
|
|
|
+ $(window).resize(function(){
|
|
|
+ myCharts.resize()
|
|
|
+ });
|
|
|
+ option = {
|
|
|
+ color: ['#37C4FC'],
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis',
|
|
|
+ position: 'right',
|
|
|
+ axisPointer: { // 坐标轴指示器,坐标轴触发有效
|
|
|
+ type: 'line' // 默认为直线,可选为:'line' | 'shadow'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ grid: {
|
|
|
+ left: '3%',
|
|
|
+ right: '4%',
|
|
|
+ bottom: '3%',
|
|
|
+ containLabel: true
|
|
|
+ },
|
|
|
+ xAxis: [
|
|
|
+ {
|
|
|
+ type: 'category',
|
|
|
+ data: dataX,
|
|
|
+ axisTick: {
|
|
|
+ alignWithLabel: true
|
|
|
+ },
|
|
|
+ axisLabel: {//x轴刻度
|
|
|
+ textStyle: {
|
|
|
+ color: '#E9EBEF'
|
|
|
+ },
|
|
|
+ rotate:45,
|
|
|
+ formatter: function (value) {
|
|
|
+ //x轴的文字改为竖版显示
|
|
|
+ if(value.length>7){
|
|
|
+ return value.slice(0,7)+'...'
|
|
|
+ }
|
|
|
+ return value;
|
|
|
+ }
|
|
|
+ },
|
|
|
+ axisLine: {//x轴
|
|
|
+ lineStyle:{
|
|
|
+ color:'#4A5D8E'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+ ],
|
|
|
+ yAxis: [
|
|
|
+ {
|
|
|
+ type: 'value',
|
|
|
+ axisLine: {//y轴
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ axisLabel: {//y轴刻度
|
|
|
+ textStyle: {
|
|
|
+ color: '#E9EBEF'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ splitLine:{//分割线
|
|
|
+ lineStyle:{
|
|
|
+ color:'#344876'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ }
|
|
|
+
|
|
|
+ ],
|
|
|
+ title:[{
|
|
|
+ text: dataX.length>0?'分数':'',
|
|
|
+ top: 15,
|
|
|
+ left: 10,
|
|
|
+ textStyle: {
|
|
|
+ fontSize: 14,
|
|
|
+ color:'#E9EBEF',
|
|
|
+ fontWeight: 400
|
|
|
+ }
|
|
|
+ }],
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '质控平均分',
|
|
|
+ type: 'bar',
|
|
|
+ barWidth: '23%',
|
|
|
+ data: dataY
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ myCharts.setOption(option);
|
|
|
+}
|
|
|
function barChart(data,type){
|
|
|
// console.log(data,type,78787888787787)
|
|
|
if(data.length==0){
|
|
@@ -1497,7 +1609,7 @@ function panDetail(data){
|
|
|
$(".explainPanT .explainLi").click(function(){
|
|
|
let deptName = $(this).attr("data-dept")
|
|
|
let deptId = $(this).attr("dept-id")
|
|
|
- focusMenuItem("YH-ZKK-GKSQXZB_XQ");
|
|
|
+ focusMenuItem("YH-ZKK-DXFZZB_XQ");
|
|
|
$(parent.document).find("#contentIframe").attr("src","singleVeto.html?shijian"+dateType+"&qxName="+deptName)
|
|
|
})
|
|
|
}
|