lulihong 6 роки тому
батько
коміт
20aa39fa51

+ 13 - 1
page/bigData/component/death-cause.js

@ -1,8 +1,8 @@
(function() {
//<img src="../images/icon.png" class="icon-img">
	Vue.component('death-cause', {
		template: '<div style="height: 100%;">\
						<h4 class="c-b5e1fc c-f16 c-t-center div-common-title">死亡原因</h4>\
						<img src="../images/icon.png" class="icon-img" @click="detailClick">\
						<div v-show="!hasData" class="no-result-panel">\
                            <div class="no-result-img">\
                                <img src="../images/noData.png">\
@ -53,6 +53,18 @@
			}
		},
		methods: {
			detailClick:function(){
				top.layer.open({
					id: 'LAY_layuipro', //设定一个id,防止重复弹出
				    type: 2,
				    title: false,
				    closeBtn: 0,
				    shade: 0.5,
				    shadeClose: true,
				    area:  ['7.604rem', '4.1875rem'],
				    content: '../../../page/bigData/html/alert5.html'
				});
			},
			initData:function(){//死亡原因
				this.causeData = this.newData.series[0].data;
				var myChart = echarts.init(document.getElementById('div-shiwang-echart'));

+ 14 - 14
page/bigData/component/disease-crowd.js

@ -178,25 +178,25 @@
			},
			tnbformatData:function(data){//糖尿病数据
				var vm = this,idx;
				_.map(data[0].VIEW_13_0026,function(item,index){
				_.map(data[0].VIEW_13_0026 || [],function(item,index){
					if(vm.town=="上饶市" && item.firstColumn=="合计"){//上饶市
						idx = index;
					}else if(item.firstColumn==vm.town){
						idx = index;
					}
				})
				vm.data2 = {totalNumber:data[0].VIEW_13_0026[idx].HC_13_0017,addNumber:data[1].VIEW_13_0034[idx].HC_13_0017,ringRatio:(data[2].VIEW_13_0027[idx]&&data[2].VIEW_13_0027[idx].HC_13_0017 || "0")};
				vm.data2 = {totalNumber:data[0].VIEW_13_0026[idx].HC_15_1006,addNumber:data[1].VIEW_13_0034[idx].HC_15_1006,ringRatio:(data[2].VIEW_13_0027[idx]&&data[2].VIEW_13_0027[idx].HC_15_1007 || "0")};
			},
			ycfformatData:function(data){//孕产妇数据
				var vm = this,idx;
//				_.map(data[0].VIEW_16_0001,function(item,index){
//					if(vm.town=="上饶市" && item.firstColumn=="合计"){//上饶市
//						idx = index;
//					}else if(item.firstColumn==vm.town){
//						idx = index;
//					}
//				})
//				vm.data3 = {totalNumber:data[0].VIEW_16_0001[idx].HC_15_1006,addNumber:data[1].VIEW_16_0002[idx].HC_15_1006,ringRatio:data[2].VIEW_16_0003[idx].HC_15_1009};
				_.map(data[0].VIEW_16_0009,function(item,index){
					if(vm.town=="上饶市" && item.firstColumn=="合计"){//上饶市
						idx = index;
					}else if(item.firstColumn==vm.town){
						idx = index;
					}
				})
				vm.data3 = {totalNumber:data[0].VIEW_16_0009[idx].HC_15_1006,addNumber:data[1].VIEW_16_0010[idx].HC_15_1006,ringRatio:data[2].VIEW_16_0011[idx].HC_15_1007};
			},
			lnrformatData:function(data){//老年人数据
				var vm = this,idx;
@ -226,13 +226,13 @@
			detailClick:function(type){//type:0高血压 1糖尿病,2孕产妇3老年人
				var height = (0.42 * window.screen.width) + 'px',url="";
				if(type==0){
					url = '../../../page/bigData/html/alert1.html?type='+type;
					url = '../../../page/bigData/html/alert1.html';
				}else if(type==1){
					url = '../../../page/bigData/html/alert2.html?type='+type;
					url = '../../../page/bigData/html/alert2.html';
				}else if(type==2){
					url = '../../../page/bigData/html/alert3.html?type='+type;
					url = '../../../page/bigData/html/alert3.html';
				}else if(type==3){
					url = '../../../page/bigData/html/alert4.html?type='+type;
					url = '../../../page/bigData/html/alert4.html';
				}
				top.layer.open({
					id: 'LAY_layuipro', //设定一个id,防止重复弹出

+ 32 - 19
page/bigData/component/high-incidence-disease.js

@ -6,6 +6,7 @@
	Vue.component('high-incidence-disease', {
		template: '<div style="height: 100%;">\
						<h4 class="c-b5e1fc c-f16 c-t-center div-common-title">本月高发疾病排行</h4>\
						<img src="../images/icon.png" class="icon-img" @click="detailClick">\
						<div v-show="!hasData" class="no-result-panel">\
                            <div class="no-result-img" style="padding-top:1.09375rem;">\
                                <img src="../images/noData.png">\
@ -60,6 +61,18 @@
			}
		},
		methods: {
			detailClick:function(){
				top.layer.open({
					id: 'LAY_layuipro', //设定一个id,防止重复弹出
				    type: 2,
				    title: false,
				    closeBtn: 0,
				    shade: 0.5,
				    shadeClose: true,
				    area:  ['7.604rem', '4.1875rem'],
				    content: '../../../page/bigData/html/alert6.html'
				});
			},
			btnClick1:function(idx){
				this.index1 = idx;
				this.initData();
@ -80,18 +93,18 @@
					this.hasData = false;
					return false;
				}
				var zhuYuanData = [],zhuYuanTitle = "";
				var menZhenData = [],menZhenTitle = "";
				var xAxisData = (this.gaoBingFaData.xAxis[0].data).reverse()||[];
				var menZhenData = (this.gaoBingFaData.series[0].data).reverse()||[];
				var menZhenTitle = this.gaoBingFaData.series[0].name||"";
				var zhuYuanData = (this.gaoBingFaData.series[1].data).reverse()||[];
				var zhuYuanTitle = this.gaoBingFaData.series[1].name||"";
				if(this.index1==0){//全部(显示门诊/住院数据叠加)
					 zhuYuanData = (this.gaoBingFaData.series[1].data).reverse();
					 zhuYuanTitle = this.gaoBingFaData.series[1].name;
				}else if(this.index1==1){//住院(显示单个柱状图)
					 menZhenData = (this.gaoBingFaData.series[1].data).reverse();
					 menZhenTitle = this.gaoBingFaData.series[1].name;
					 zhuYuanData = [];
					 zhuYuanTitle = "";
					 menZhenData = (this.gaoBingFaData.series[0].data).reverse();
					 menZhenTitle = this.gaoBingFaData.series[0].name;
				}else if(this.index1==2){//门诊(显示单个柱状图)
					 zhuYuanData = (this.gaoBingFaData.series[0].data).reverse();
					 zhuYuanTitle = this.gaoBingFaData.series[0].name;
					 menZhenData = [];
					 menZhenTitle = "";
				}
				this.geoFaMainFun(xAxisData,menZhenData,zhuYuanData,menZhenTitle,zhuYuanTitle)
			},
@ -156,7 +169,7 @@
					}],
					"series": [{
							"smooth": true,
							"name": menZhenTitle,
							"name": zhuYuanTitle,
							"type": "bar",
							stack: '高发疾病',
							barWidth: 20,
@ -174,17 +187,17 @@
									barBorderRadius: [0, 8, 8, 0],
								}
							},
							"data": menZhenData
							"data": zhuYuanData
						},
					]
				}
				if(zhuYuanData.length>0){
				if(menZhenData.length>0){
					gaofaOption.series[0].label.show = false;
					gaofaOption.series[0].itemStyle.normal.color = "#6576e0";
					delete gaofaOption.series[0].itemStyle.normal.barBorderRadius;
					gaofaOption.series[1] = {
							"smooth": true,
							"name": zhuYuanTitle,
							"name": menZhenTitle,
							"type": "bar",
							stack: '高发疾病',
							"label": {
@ -192,13 +205,13 @@
								position: "right",
								color: '#b5e1fc',
								formatter:function(param){
									var dataIndex = param.dataIndex,menZhenVal;
									 _.map(menZhenData,function(item,idx){
									var dataIndex = param.dataIndex,zhuYuanVal;
									 _.map(zhuYuanData,function(item,idx){
									 	if(idx==dataIndex){
									 		menZhenVal = item
									 		zhuYuanVal = item
									 	}
									})
	                                return menZhenVal+"+"+param.value;
	                                return zhuYuanVal+"+"+param.value;
	                           },
							},
							"itemStyle": {
@ -210,7 +223,7 @@
									color: '#00e6f3'
								},
							},
							"data": zhuYuanData
							"data": menZhenData
						}
				}else{
					gaofaOption.series = gaofaOption.series[0];

+ 1 - 1
page/bigData/js/home.js

@ -40,7 +40,7 @@ new Vue({
			var gaoFaLinkageFilterYear = "quotaDate >= '2017-01-01' and quotaDate <= '2017-12-31';";//高发疾病参数(本年数据)
    		viewMapJsonGXY = {VIEW_13_0013:townStr,VIEW_13_0036:townStr+diseaseLinkAgeFliter,VIEW_13_0037:townStr+diseaseLinkAgeFliter};//高血压
    		viewMapJsonTNB = {VIEW_13_0026:townStr,VIEW_13_0034:townStr+diseaseLinkAgeFliter,VIEW_13_0027:townStr+diseaseLinkAgeFliter};//糖尿病
    		viewMapJsonYCF = {VIEW_16_0001:townStr,VIEW_16_0002:townStr+diseaseLinkAgeFliter,VIEW_16_0003:townStr+diseaseLinkAgeFliter};//孕产妇
    		viewMapJsonYCF = {VIEW_16_0009:townStr,VIEW_16_0010:townStr+diseaseLinkAgeFliter,VIEW_16_0011:townStr+diseaseLinkAgeFliter};//孕产妇
    		viewMapJsonGL = {VIEW_15_0001:townStr,VIEW_15_0011:townStr+diseaseLinkAgeFliter,VIEW_15_0008:townStr+diseaseLinkAgeFliter};//65岁以上
    		if(vm.type==0){//高血压
    			zhongDianViewCodeMonth = "VIEW_13_0017";//重点人群+按月