|
@@ -89,10 +89,12 @@
|
|
|
} from "../service/index";
|
|
|
|
|
|
import scrollBoardSchema from '../dataSchema/scrollBoardSchema';
|
|
|
+ import page1Char1Schema from '../dataSchema/page1Char1Schema';
|
|
|
import page1Char2Schema from '../dataSchema/page1Char2Schema';
|
|
|
import page2Char1Schema from '../dataSchema/page2Char1Schema';
|
|
|
import page2Char2Schema from '../dataSchema/page2Char2Schema';
|
|
|
import page6Char1Schema from '../dataSchema/page6Char1Schema';
|
|
|
+
|
|
|
|
|
|
// import { provinceAndCityData, regionData, provinceAndCityDataPlus, regionDataPlus, CodeToText, TextToCode } from 'element-china-area-data';
|
|
|
export default {
|
|
@@ -130,7 +132,7 @@
|
|
|
// {msg:'测试1!'},
|
|
|
// {msg:'测试22222222!'},
|
|
|
],
|
|
|
- page1Char1:{},
|
|
|
+ page1Char1:page1Char1Schema,
|
|
|
page1Char2:page1Char2Schema,
|
|
|
page2Char1:page2Char1Schema,
|
|
|
page2Char2:page2Char2Schema,
|
|
@@ -206,11 +208,20 @@
|
|
|
}
|
|
|
},
|
|
|
getPage1echarts01(){
|
|
|
- page1echarts01().then(res=>{
|
|
|
- // console.log('res',res);
|
|
|
+ let param = {
|
|
|
+ cityId:this.vuexSelectCity,
|
|
|
+ countyId:this.vuexSelectDistrict,
|
|
|
+ townId:this.vuexSelectStreet,
|
|
|
+ }
|
|
|
+ page1echarts01(param).then(res=>{
|
|
|
+ this.page1Char1.xAxis.data = res.data.map(item => {
|
|
|
+ return item.name
|
|
|
+ })
|
|
|
+ this.page1Char1.series[0].data = res.data.map(item => {
|
|
|
+ return item.number
|
|
|
+ })
|
|
|
let charUuid = this.$refs.page1Char1.mid;
|
|
|
this.$refs.page1Char1.intChar(charUuid)
|
|
|
- this.page1Char1 = res.data;
|
|
|
}).catch(err=>{
|
|
|
console.log('getPage1echarts01 err',err);
|
|
|
})
|