Browse Source

修改字体大小

lulihong 6 years ago
parent
commit
798cffa6fc

+ 4 - 2
page/bigData/component/high-incidence-disease.js

@ -41,7 +41,7 @@
				index2:0,
				index2:0,
				gaoBingFaData:null,
				gaoBingFaData:null,
				isInit:true,
				isInit:true,
				fontSize: 0.007 * window.screen.width,
				fontSize: 0,
				linkageFilter:"",
				linkageFilter:"",
				hasData:true,
				hasData:true,
				monthData:null,
				monthData:null,
@ -50,7 +50,8 @@
			}
			}
		},
		},
		mounted: function() {
		mounted: function() {
			
			var width = window.screen.width>=1920?window.screen.width:1920;
			this.fontSize = 0.007 * width;
		},
		},
		watch:{
		watch:{
			data:function(data){
			data:function(data){
@ -235,6 +236,7 @@
								show: true,
								show: true,
								position: "right",
								position: "right",
								color: '#b5e1fc',
								color: '#b5e1fc',
								fontSize:vm.fontSize,
								formatter:function(param){
								formatter:function(param){
									var dataIndex = param.dataIndex,zhuYuanVal;
									var dataIndex = param.dataIndex,zhuYuanVal;
									 _.map(zhuYuanData,function(item,idx){
									 _.map(zhuYuanData,function(item,idx){

+ 3 - 2
page/bigData/component/key-service-population.js

@ -27,7 +27,7 @@
			return {
			return {
				keyServiceData:null,
				keyServiceData:null,
				activeIndex:0,
				activeIndex:0,
				fontSize: 0.007 * window.screen.width,
				fontSize: 0,
				hasData:true,
				hasData:true,
				monthData:null,
				monthData:null,
				jiData:null,
				jiData:null,
@ -35,7 +35,8 @@
			}
			}
		},
		},
		mounted: function() {
		mounted: function() {
			
			var width = window.screen.width>=1920?window.screen.width:1920;
			this.fontSize = 0.007 * width;
		},
		},
		watch:{
		watch:{
			data:function(newData){
			data:function(newData){