|
@@ -125,7 +125,6 @@
|
|
|
scrollBoardKey:Date.now(),
|
|
|
scrollBoardConfig:scrollBoardSchema,
|
|
|
page1numerical:[
|
|
|
- {name:'储蓄量',number:'2309',unit:'立方米'},
|
|
|
{name:'储蓄量',number:'2309',unit:'立方米'},
|
|
|
{name:'占地面积',number:'55.4',unit:'万亩'}
|
|
|
],
|
|
@@ -150,17 +149,10 @@
|
|
|
};
|
|
|
},
|
|
|
created(){
|
|
|
- //第一屏统计
|
|
|
- page1numerical().then(res=>{
|
|
|
- // console.log('res',res);
|
|
|
- this.page1numerical = res.data;
|
|
|
- }).catch(err=>{
|
|
|
- console.log('echarts01 err',err);
|
|
|
- })
|
|
|
- this.getPage1echarts01();
|
|
|
- this.getPage1echarts02();
|
|
|
+
|
|
|
+ this.getPageData();
|
|
|
+
|
|
|
this.getRightScrollData();
|
|
|
- this.getAlarmData();
|
|
|
|
|
|
// this.getPage2echarts01();
|
|
|
// this.getPage2echarts02();
|
|
@@ -177,20 +169,20 @@
|
|
|
}
|
|
|
},
|
|
|
'$store.state.addr.selectCity'(val) {
|
|
|
- console.log('this.$store.state.addr',this.$store.state.addr);
|
|
|
- console.log('vuexSelectCity',val);
|
|
|
+ // console.log('this.$store.state.addr',this.$store.state.addr);
|
|
|
+ // console.log('vuexSelectCity',val);
|
|
|
this.getPageData();
|
|
|
|
|
|
},
|
|
|
'$store.state.addr.selectDistrict'(val) {
|
|
|
- console.log('this.$store.state.addr',this.$store.state.addr);
|
|
|
- console.log('vuexSelectDistrict',val);
|
|
|
+ // console.log('this.$store.state.addr',this.$store.state.addr);
|
|
|
+ // console.log('vuexSelectDistrict',val);
|
|
|
this.getPageData();
|
|
|
|
|
|
},
|
|
|
'$store.state.addr.selectStreet'(val) {
|
|
|
- console.log('this.$store.state.addr',this.$store.state.addr);
|
|
|
- console.log('vuexSelectStreet',val);
|
|
|
+ // console.log('this.$store.state.addr',this.$store.state.addr);
|
|
|
+ // console.log('vuexSelectStreet',val);
|
|
|
this.getPageData();
|
|
|
|
|
|
},
|
|
@@ -217,6 +209,7 @@
|
|
|
},
|
|
|
getPageData(){
|
|
|
if(this.page==1){
|
|
|
+ this.getPage1numerical();
|
|
|
this.getPage1echarts01();
|
|
|
this.getPage1echarts02();
|
|
|
}else if(this.page==2){
|
|
@@ -234,13 +227,21 @@
|
|
|
this.getAlarmData();
|
|
|
}
|
|
|
},
|
|
|
+ getPage1numerical(){
|
|
|
+ page1numerical().then(res=>{
|
|
|
+ // console.log('res',res);
|
|
|
+ this.page1numerical = res.data;
|
|
|
+ }).catch(err=>{
|
|
|
+ console.log('echarts01 err',err);
|
|
|
+ })
|
|
|
+ },
|
|
|
getPage1echarts01(){
|
|
|
let param = {
|
|
|
cityId:this.$store.state.addr.selectCity.areaId,
|
|
|
countyId:this.$store.state.addr.selectDistrict.areaId,
|
|
|
townId:this.$store.state.addr.vuexSelectStreet.areaId,
|
|
|
}
|
|
|
- console.log('cityId',param.cityId);
|
|
|
+ // console.log('cityId',param.cityId);
|
|
|
page1echarts01(param).then(res=>{
|
|
|
this.page1Char1.xAxis.data = res.data.map(item => {
|
|
|
return item.name
|
|
@@ -260,7 +261,7 @@
|
|
|
countyId:this.$store.state.addr.selectDistrict.areaId,
|
|
|
townId:this.$store.state.addr.selectStreet.areaId,
|
|
|
}
|
|
|
- console.log('cityId',param.cityId);
|
|
|
+ // console.log('cityId',param.cityId);
|
|
|
page1echarts02(param).then(res=>{
|
|
|
this.page1Char2.xAxis.data = res.data.map(item => {
|
|
|
return item.name
|