|
@@ -7,7 +7,7 @@ require("../images/arrow_down.png")
|
|
|
// import 'zrender/lib/svg/svg';
|
|
|
const {api} = require('./api.js')
|
|
|
const echarts = require('echarts');
|
|
|
-const {post,setCookie,delCookie,getCookie} = require('../js/utils.js');
|
|
|
+const {post,setCookie,delCookie,getCookie,focusMenuItem} = require('../js/utils.js');
|
|
|
let payMoney = [],dayLis = [],dateType = 2,slideType = 1,hospital=getCookie("hospital");
|
|
|
$(function(){
|
|
|
if(!hasData('YH-KZT')){
|
|
@@ -63,26 +63,26 @@ $(function(){
|
|
|
})
|
|
|
function getDetails(){
|
|
|
$(".part02 .bingli,.part02 .bingliLis,.part03 .circle .title,.pubEchartB.paymoney .title").click(function(){
|
|
|
- $(parent.document).find("#contentIframe").attr("src","deptScoreDetailControl.html")
|
|
|
- $(".container",parent.document).removeClass("console-cont");
|
|
|
+ focusMenuItem("YH-ZKK-GKSQXZB_XQ");
|
|
|
})
|
|
|
$(".part03 .partTitlePub").click(function(){
|
|
|
- $(parent.document).find("#contentIframe").attr("src",hospital=="台州市立"?"jiaji.html":"partDetailControl.html")
|
|
|
- $(".container",parent.document).removeClass("console-cont");
|
|
|
+ hospital=="台州市立"?focusMenuItem("YH-ZKK-GKSJJBLZB_XQ"):focusMenuItem("YH-ZKK-BASYHGLZB_XQ");
|
|
|
})
|
|
|
$(".paymoney.pubEchart .title").click(function(){
|
|
|
- $(parent.document).find("#contentIframe").attr("src","dayDetail.html")
|
|
|
- $(".container",parent.document).removeClass("console-cont");
|
|
|
+ if($(this).text().indexOf("花费")!==-1){
|
|
|
+ focusMenuItem("YH-ZKK-KSPJZYHF_XQ");
|
|
|
+ }else{
|
|
|
+ focusMenuItem("YH-ZKK-KSPJZYTS_XQ");
|
|
|
+ }
|
|
|
})
|
|
|
$(".defect .partTitlePub").click(function(){//from 1 console / 2 deptConsole
|
|
|
- $(parent.document).find("#contentIframe").attr("src","mukuaiControl.html?from=1&dateType="+dateType)
|
|
|
- $(".container",parent.document).removeClass("console-cont");
|
|
|
+ focusMenuItem("YH-ZKK-GMKQXZB_XQ");
|
|
|
})
|
|
|
$(".circleB .title").click(function(){
|
|
|
- $(parent.document).find("#contentIframe").attr("src","tiaomuControl.html?from=1&dateType="+dateType)
|
|
|
- $(".container",parent.document).removeClass("console-cont");
|
|
|
+ focusMenuItem("YH-ZKK-TMQXZB_XQ");
|
|
|
})
|
|
|
}
|
|
|
+
|
|
|
//判断有无某一权限
|
|
|
function hasData(data){
|
|
|
let lis = JSON.parse(getCookie("codeLis"))
|
|
@@ -94,7 +94,7 @@ function hasData(data){
|
|
|
}
|
|
|
function resizeBox(){
|
|
|
$(".partWrap").css({
|
|
|
- height:$(window).height()-38+'px'
|
|
|
+ height:$(window).height()-44+'px'
|
|
|
})
|
|
|
}
|
|
|
//所有数据切换日期筛选
|
|
@@ -102,9 +102,11 @@ function dateChange(){
|
|
|
$(".monthYear .mon").click(function(){
|
|
|
$(this).css({
|
|
|
backgroundColor:'#00A1FF',
|
|
|
- color:'#fff'
|
|
|
+ color:'#fff',
|
|
|
+ opacity:'0.9',
|
|
|
}).siblings().css({
|
|
|
color:'#fff',
|
|
|
+ opacity:'0.6',
|
|
|
backgroundColor:'#203463'
|
|
|
})
|
|
|
dateType = 1
|
|
@@ -113,9 +115,11 @@ function dateChange(){
|
|
|
$(".monthYear .year").click(function(){
|
|
|
$(this).css({
|
|
|
backgroundColor:'#00A1FF',
|
|
|
- color:'#fff'
|
|
|
+ color:'#fff',
|
|
|
+ opacity:'0.9',
|
|
|
}).siblings().css({
|
|
|
color:'#fff',
|
|
|
+ opacity:'0.6',
|
|
|
backgroundColor:'#203463'
|
|
|
})
|
|
|
dateType = 2
|
|
@@ -310,7 +314,7 @@ function getBarData(type){
|
|
|
let data = res.data;
|
|
|
if(data.code == 0){
|
|
|
let result1 = data.data['各模块缺陷占比排行']||[];
|
|
|
- result1.length>8?result1.length=8:"";
|
|
|
+ // result1.length>8?result1.length=8:"";
|
|
|
queList(result1)
|
|
|
}
|
|
|
})
|
|
@@ -398,7 +402,7 @@ function part02pan(data,dom){
|
|
|
});
|
|
|
let bgColor = '#fff';
|
|
|
let title = '总量';
|
|
|
- let color = ['#37CBCB','#dedede'];
|
|
|
+ let color = ['#3fffd1','#4c5c82'];
|
|
|
let echartData = data;
|
|
|
option = {
|
|
|
//backgroundColor: bgColor,
|
|
@@ -410,9 +414,9 @@ function part02pan(data,dom){
|
|
|
textStyle: {
|
|
|
rich: {
|
|
|
val: {
|
|
|
- fontSize: 14,
|
|
|
+ fontSize: 12,
|
|
|
color: '#fff',
|
|
|
- fontWeight: 'bold',
|
|
|
+ /*fontWeight: 'bold',*/
|
|
|
padding: [10, 0]
|
|
|
},
|
|
|
name: {
|
|
@@ -426,9 +430,16 @@ function part02pan(data,dom){
|
|
|
series: [{
|
|
|
name: '',
|
|
|
type: 'pie',
|
|
|
- radius: ['70%', '90%'],
|
|
|
+ radius: ['65%', '95%'],
|
|
|
data: echartData,
|
|
|
- hoverAnimation:false,
|
|
|
+ hoverAnimation:true,
|
|
|
+ hoverOffset:3,
|
|
|
+ itemStyle: {
|
|
|
+ normal: {
|
|
|
+ borderColor: '#203463',
|
|
|
+ borderWidth: 3
|
|
|
+ }
|
|
|
+ },
|
|
|
label: {
|
|
|
normal: {
|
|
|
show:false,
|
|
@@ -551,7 +562,7 @@ function lineChartSpecial(dataX,dataY){
|
|
|
myCharts.resize()
|
|
|
});
|
|
|
option = {
|
|
|
- color: ['#3398DB'],
|
|
|
+ color: ['#37C4FC'],
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
position: 'right',
|
|
@@ -626,7 +637,7 @@ function lineChartSpecial(dataX,dataY){
|
|
|
}],
|
|
|
series: [
|
|
|
{
|
|
|
- name: '质控平均分',
|
|
|
+ name: '病案首页合格率',
|
|
|
type: 'bar',
|
|
|
barWidth: '23%',
|
|
|
data: dataY
|
|
@@ -643,7 +654,7 @@ function barChartPay(dataX,dataY){
|
|
|
myCharts.resize()
|
|
|
});
|
|
|
option = {
|
|
|
- color: ['#3398DB'],
|
|
|
+ color: ['#37C4FC'],
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
position: 'right',
|
|
@@ -826,7 +837,7 @@ function barChart(data,type){
|
|
|
data3.push(data[i].lastYearAverageValue)//去年本月
|
|
|
}
|
|
|
option = {
|
|
|
- color: ['#00A1FF', '#FAD336', '#37CBCB'],
|
|
|
+ color: ['#37CBCB','#5A8EEE', '#FAD336' ],
|
|
|
tooltip: {
|
|
|
trigger: 'axis',
|
|
|
axisPointer: {
|
|
@@ -1176,9 +1187,9 @@ function panDetail(data){
|
|
|
`
|
|
|
}
|
|
|
$(".explainPanT table").html(strAll);
|
|
|
- $(".explainPan").css({
|
|
|
- marginTop:-($(".explainPan").height()/2-20)+'px'
|
|
|
- })
|
|
|
+ // $(".explainPan").css({
|
|
|
+ // marginTop:-($(".explainPan").height()/2-20)+'px'
|
|
|
+ // })
|
|
|
}
|
|
|
function panDetailB(data){
|
|
|
let color = ['#F2637B','#975FE4', '#399FFF', '#37CBCB', '#4CCB73','#FAD336','#F2637B','#975FE4', '#399FFF', '#37CBCB', '#4CCB73','#FAD336'];
|