|
@@ -16,7 +16,7 @@ $(function(){
|
|
|
$(".partWrap").css({
|
|
|
height:$(window).height()-38+'px'
|
|
|
})
|
|
|
- $(".partTitle p").html(getCookie("hospital"))
|
|
|
+ $(".partTitle p span").html(getCookie("hospital"))
|
|
|
initConsole()//质控列表
|
|
|
getBarData()//图标数据获取
|
|
|
dateChange()
|
|
@@ -130,9 +130,95 @@ function getBarData(type){
|
|
|
queList(result1)
|
|
|
emptyCircle(result2)
|
|
|
panDetail(result2)
|
|
|
+ lineChart()
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
+//折现图
|
|
|
+function lineChart(dataX,dataY){
|
|
|
+ var myCharts = echarts.init(document.getElementById('lineChart'));
|
|
|
+ option = {
|
|
|
+ color:"#5A8EEE",
|
|
|
+ tooltip: {
|
|
|
+ trigger: 'axis'
|
|
|
+ },
|
|
|
+ toolbox: {
|
|
|
+ show: false,
|
|
|
+ feature: {
|
|
|
+ dataZoom: {
|
|
|
+ yAxisIndex: 'none'
|
|
|
+ },
|
|
|
+ dataView: {readOnly: false},
|
|
|
+ magicType: {type: ['line', 'bar']},
|
|
|
+ restore: {
|
|
|
+
|
|
|
+ },
|
|
|
+ saveAsImage: {}
|
|
|
+ },
|
|
|
+ emphasis:{
|
|
|
+ iconStyle:{
|
|
|
+ color:'red'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ },
|
|
|
+ xAxis: {
|
|
|
+ type: 'category',
|
|
|
+ boundaryGap: false,
|
|
|
+ data: ['周一', '周二', '周三', '周四', '周五', '周六', '周日'],
|
|
|
+ axisLabel: {//x轴刻度
|
|
|
+ textStyle: {
|
|
|
+ color: '#333'
|
|
|
+ },
|
|
|
+ rotate:'45'
|
|
|
+ },
|
|
|
+ axisLine: {//x轴
|
|
|
+ lineStyle:{
|
|
|
+ color:'#AAAAAA'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ yAxis: {
|
|
|
+ type: 'value',
|
|
|
+ axisLabel: {
|
|
|
+ formatter: '{value} °C',
|
|
|
+ textStyle: {
|
|
|
+ color: '#333333'
|
|
|
+ }
|
|
|
+ },
|
|
|
+
|
|
|
+ axisLine: {//y轴
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ axisTick: {
|
|
|
+ show: false
|
|
|
+ },
|
|
|
+ splitLine:{//分割线
|
|
|
+ lineStyle:{
|
|
|
+ color:'#EFF3FC'
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
+ series: [
|
|
|
+ {
|
|
|
+ name: '最高气温',
|
|
|
+ type: 'line',
|
|
|
+ data: [11, 11, 15, 13, 12, 13, 10],
|
|
|
+ // markPoint: {
|
|
|
+ // data: [
|
|
|
+ // {type: 'max', name: '最大值'},
|
|
|
+ // {type: 'min', name: '最小值'}
|
|
|
+ // ]
|
|
|
+ // },
|
|
|
+ // markLine: {
|
|
|
+ // data: [
|
|
|
+ // {type: 'average', name: '平均值'}
|
|
|
+ // ]
|
|
|
+ // }
|
|
|
+ }
|
|
|
+ ]
|
|
|
+ };
|
|
|
+ myCharts.setOption(option);
|
|
|
+}
|
|
|
//柱状图住院费用
|
|
|
function barChartPay(dataX,dataY){
|
|
|
var myCharts = echarts.init(document.getElementById('barChartPay'));
|