123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793 |
- var symptomName = last_month_day();
- $(function(){
- init();
- init2();
- $("#el-dialog").addClass("hide");
- $(".close").click(function(event) {
- $("#el-dialog").addClass("hide");
- });
- var date = new Date();
- var numble = date.getDate();
- var today = getFormatMonth(new Date());
- $("#date1").html(today);
- $("#date2").html(today);
- $("#date3").html(today);
- $("#date4").html(today);
- lay('.demo-input').each(function(){
- laydate.render({
- type: 'month',
- elem: this,
- trigger: 'click',
- theme: '#95d7fb',
- calendar: true,
- showBottom: true,
- done: function () {
- console.log( $("#startDate").val())
- }
- })
- });
- })
- function init(){
-
- var mapChart = echarts.init(document.getElementById('mapChart'));
- mapChart.setOption({
- bmap: {
- center: [118.096435,24.485408],
- zoom: 12,
- roam: true,
- },
- tooltip : {
- trigger: 'item',
- formatter:function(params, ticket, callback){
- return params.value[2]
- }
- },
- series: [{
- type: 'scatter',
- coordinateSystem: 'bmap',
- data: [
- [118.096435, 24.485408, '厦门市'] ,
- [118.094564, 24.457358, '厦门第一医院'] ,
- [118.104103, 24.477761, '厦门中山医院'],
- [118.14748, 24.506295, '厦门中医院'],
- [118.254841, 24.665349, '厦门第五医院'],
- ]
- }]
- });
- mapChart.on('click', function (params) {
- $("#el-dialog").removeClass('hide');
- $("#reportTitle").html(params.value[2]);
- });
- var bmap = mapChart.getModel().getComponent('bmap').getBMap()
- bmap.addControl(new BMap.MapTypeControl({mapTypes: [BMAP_NORMAL_MAP,BMAP_SATELLITE_MAP ]}));
- bmap.setMapStyle({style:'midnight'})
- var pieChart1 = echarts.init(document.getElementById('pieChart1'));
- pieChart1.setOption({
- color:["#87cefa","#ff7f50","#32cd32","#da70d6",],
- legend: {
- y : '260',
- x : 'center',
- textStyle : {
- color : '#ffffff',
- },
- data : ['厦门第一医院','厦门中山医院','厦门中医院','厦门第五医院',],
- },
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}G ({d}%)"
- },
- calculable : false,
- series : [
- {
- name:'采集数据量',
- type:'pie',
- radius : ['40%', '70%'],
- center : ['50%', '45%'],
- itemStyle : {
- normal : {
- label : {
- show : false
- },
- labelLine : {
- show : false
- }
- },
- emphasis : {
- label : {
- show : true,
- position : 'center',
- textStyle : {
- fontSize : '20',
- fontWeight : 'bold'
- }
- }
- }
- },
- data:[
- {value:335, name:'厦门第一医院'},
- {value:310, name:'厦门中山医院'},
- {value:234, name:'厦门中医院'},
- {value:135, name:'厦门第五医院'}
- ]
- }
- ]
- });
- var lineChart = echarts.init(document.getElementById('lineChart'));
- lineChart.setOption({
- color:["#87cefa","#ff7f50","#32cd32","#da70d6",],
- legend: {
- y : '260',
- x : 'center',
- textStyle : {
- color : '#ffffff',
- },
- data : ['厦门第一医院','厦门中山医院','厦门中医院','厦门第五医院',],
- },
- calculable : false,
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}条"
- },
- yAxis: [
- {
- type: 'value',
- axisLine : {onZero: false},
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + "k条"
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- }
- }
- ],
- xAxis: [
- {
- type: 'category',
- data : ['8:00','10:00','12:00','14:00','16:00','18:00','20:00','22:00'],
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- splitLine: {
- "show": false
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + ""
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- },
- }
- ],
- grid:{
- left: '5%',
- right: '5%',
- bottom: '20%',
- containLabel: true
- },
- series : [
- {
- name:'厦门第一医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[15, 0, 20, 45, 22.1, 25, 70, 55, 76]
- },
- {
- name:'厦门中山医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[25, 10, 30, 55, 32.1, 35, 80, 65, 76]
- },
- {
- name:'厦门中医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[35, 20, 40, 65, 42.1, 45, 90, 75, 96]
- },
- {
- name:'厦门第五医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[45, 30, 50, 75, 52.1, 55, 100, 85, 106]
- }
- ]
- });
- var histogramChart = echarts.init(document.getElementById('histogramChart'));
- histogramChart.setOption({
- color:["#87cefa","#ff7f50","#32cd32","#da70d6",],
- legend: {
- y : '250',
- x : 'center',
- data:['厦门第一医院', '厦门中山医院','厦门中医院','厦门第五医院'],
- textStyle : {
- color : '#ffffff',
- }
- },
- calculable :false,
- grid:{
- left: '5%',
- right: '5%',
- bottom: '20%',
- containLabel: true
- },
- tooltip : {
- trigger: 'axis',
- axisPointer : {
- type : 'shadow'
- }
- },
- xAxis : [
- {
- type : 'value',
- axisLabel: {
- show: true,
- textStyle: {
- color: '#fff'
- }
- },
- splitLine:{
- lineStyle:{
- color:['#f2f2f2'],
- width:0,
- type:'solid'
- }
- }
- }
- ],
- yAxis : [
- {
- type : 'category',
- data:['门诊人数(人)', '住院人次(人)','人均费用(元)'],
- axisLabel: {
- show: true,
- textStyle: {
- color: '#fff'
- }
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- }
- }
- ],
- series : [
- {
- name:'厦门第一医院',
- type:'bar',
- stack: '总量',
- itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
- data:[320, 302, 301]
- },
- {
- name:'厦门中山医院',
- type:'bar',
- stack: '总量',
- itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
- data:[120, 132, 101]
- },
- {
- name:'厦门中医院',
- type:'bar',
- stack: '总量',
- itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
- data:[220, 182, 191]
- },
- {
- name:'厦门第五医院',
- type:'bar',
- stack: '总量',
- itemStyle : { normal: {label : {show: true, position: 'insideRight'}}},
- data:[150, 212, 201]
- }
- ]
- });
- var lineChart2 = echarts.init(document.getElementById('lineChart2'));
- lineChart2.setOption({
- color:["#87cefa","#ff7f50","#32cd32","#da70d6",],
- legend: {
- y : '260',
- x : 'center',
- textStyle : {
- color : '#ffffff',
- },
- data : ['厦门第一医院','厦门中山医院','厦门中医院','厦门第五医院',],
- },
- calculable : false,
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}条"
- },
- yAxis: [
- {
- type: 'value',
- axisLine : {onZero: false},
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + "k条"
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- }
- }
- ],
- xAxis: [
- {
- type: 'category',
- data : ['8:00','10:00','12:00','14:00','16:00','18:00'],
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- splitLine: {
- "show": false
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + ""
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- },
- }
- ],
- grid:{
- left: '5%',
- right: '5%',
- bottom: '20%',
- containLabel: true
- },
- series : [
- {
- name:'厦门第一医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[15, 0, 20, 45, 22.1, 25,].reverse()
- },
- {
- name:'厦门中山医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[25, 10, 30, 55, 32.1, 35, ].reverse()
- },
- {
- name:'厦门中医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[35, 20, 40, 65, 42.1, 45, ].reverse()
- },
- {
- name:'厦门第五医院',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[45, 30, 50, 75, 52.1, 55, 6].reverse()
- }
- ]
- });
- }
- function init2(){
- var lineChart3 = echarts.init(document.getElementById('lineChart3'));
- lineChart3.setOption({
- color:["#87cefa","#ff7f50",],
- legend: {
- y : 'top',
- x : 'center',
- textStyle : {
- color : '#ffffff',
- },
- data : ['门诊人次','住院人次'],
- },
- calculable : false,
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}人"
- },
- dataZoom: {
- show: true,
- realtime : true,
- start: 0,
- end: 18,
- height: 20,
- backgroundColor: '#f8f8f8',
- dataBackgroundColor: '#e4e4e4',
- fillerColor: '#87cefa',
- handleColor: '#87cefa',
- },
- yAxis: [
- {
- type: 'value',
- axisLine : {onZero: false},
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + "人"
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- }
- }
- ],
- xAxis: [
- {
- type: 'category',
- data : symptomName,
- boundaryGap : false,
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- splitLine: {
- "show": false
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + ""
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- },
- }
- ],
- grid:{
- left: '5%',
- right: '5%',
- bottom: '20%',
- containLabel: true
- },
- series : [
- {
- name:'门诊费用',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[1150, 180, 2100, 2415, 1212.1, 3125,1510, 810, 2100, 2415, 1122.1, 3215,1510, 801, 2001, 2245, 1232.1, 3245,1520, 830, 2200, 2145, 1223.1, 3225,150, 80, 200, 245, 122.1, 325]
- },
- {
- name:'住院费用',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[2500, 1000, 3000, 5005, 3200.1, 3005, 2500, 1000, 3000, 5005, 3200.1, 3005,2500, 1000, 3000, 5005, 3200.1, 3005,2500, 1000, 3000, 5005, 3200.1, 3005, 2500, 1000, 3000, 5005, 3200.1, 3005,2500, 1000, 3000, 5005, 3200.1, 3005,]
- },
- ]
- });
- var lineChart4 = echarts.init(document.getElementById('lineChart4'));
- lineChart4.setOption({
- color:["#87cefa","#ff7f50",],
- calculable : false,
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}元"
- },
- dataZoom: {
- show: true,
- realtime : true,
- start: 0,
- end: 18,
- height: 20,
- backgroundColor: '#f8f8f8',
- dataBackgroundColor: '#e4e4e4',
- fillerColor: '#87cefa',
- handleColor: '#87cefa',
- },
- yAxis: [
- {
- type: 'value',
- axisLine : {onZero: false},
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + "元"
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- }
- }
- ],
- xAxis: [
- {
- type: 'category',
- data : symptomName,
- boundaryGap : false,
- axisLine:{
- lineStyle:{
- color: '#034c6a'
- },
- },
- splitLine: {
- "show": false
- },
- axisLabel: {
- textStyle: {
- color: '#fff'
- },
- formatter: function (value) {
- return value + ""
- },
- },
- splitLine:{
- lineStyle:{
- width:0,
- type:'solid'
- }
- },
- }
- ],
- grid:{
- left: '5%',
- right: '5%',
- bottom: '20%',
- containLabel: true
- },
- series : [
- {
- name:'医疗费用',
- type:'line',
- smooth:true,
- itemStyle: {
- normal: {
- lineStyle: {
- shadowColor : 'rgba(0,0,0,0.4)'
- }
- }
- },
- data:[1500, 800, 1200, 2450, 1122.1, 1325,1150, 180, 1200, 1245, 1122.1, 1325,150, 180, 1200, 2145, 1212.1, 3215,1510, 180, 2100, 2415, 122.1, 325,150, 80, 200, 245, 122.1, 325].reverse()
- },
- ]
- });
-
- var pieChart2 = echarts.init(document.getElementById('pieChart2'));
- pieChart2.setOption({
- color:["#32cd32","#ff7f50","#87cefa","#FD6C88","#4b5cc4","#faff72"],
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}人"
- },
- calculable : true,
- series : [
- {
- name:'发病人数',
- type:'pie',
- radius : [30, 110],
- center : ['50%', '50%'],
- roseType : 'area',
- x: '50%',
- sort : 'ascending',
- data:[
- {value:10, name:'婴儿(1-3岁)'},
- {value:5, name:'少儿(4-10岁)'},
- {value:15, name:'少年(10-18岁)'},
- {value:25, name:'青年(18-45岁)'},
- {value:125, name:'中年(45-60岁)'},
- {value:175, name:'老年(60岁以上)'},
- ]
- }
- ]
- })
-
- var pieChart3 = echarts.init(document.getElementById('pieChart3'));
- pieChart3.setOption({
- color:["#32cd32","#ff7f50","#87cefa","#FD6C88","#4b5cc4","#faff72"],
- tooltip : {
- trigger: 'item',
- formatter: "{a}<br/>{b}<br/>{c}元"
- },
- calculable : true,
- series : [
- {
- name:'发病人数',
- type:'pie',
- radius : [30, 110],
- center : ['50%', '50%'],
- roseType : 'area',
- x: '50%',
- sort : 'ascending',
- data:[
- {value:10, name:'诊察费用'},
- {value:500, name:'检查费用'},
- {value:150, name:'检验费用'},
- {value:250, name:'西药费用'},
- {value:125, name:'中药费用'},
- {value:1750, name:'手术费用'},
- ]
- }
- ]
- })
- }
|