| | |
| | | |
| | | const myLandColors = ['#4150d8', '#28bf7e', '#ed7c2f', '#f2a93b', '#f9cf36', '#4a5bdc', '#4cd698', '#f4914e', '#fcb75b', '#ffe180', '#b6c2ff', '#96edc1'] |
| | | |
| | | const peopleColor1 = '#53eefe' |
| | | const peopleColor2 = '#8b25c1' |
| | | |
| | | export default { |
| | | inject: ['userInfo'], |
| | | |
| | |
| | | |
| | | |
| | | this.villagePersonStatisticInfoList = res.data.data |
| | | var xDate = [], yDate1 = [], yDate2 = [], colors1 = ['#f1ce0d', '#eea827', '#e87a4a'], colors2 = ['#8ce070', '#4fd690', '#1bcdaf'] |
| | | var xDate = [], yDate1 = [], yDate2 = [] |
| | | |
| | | if (this.villagePersonStatisticInfoList.data.length > 0) { |
| | | this.villagePersonStatisticInfoList.data.forEach(e => { |
| | |
| | | }) |
| | | } |
| | | |
| | | homePersonmyChart.setOption(this.initPersonOptions(xDate, yDate1, yDate2, colors1, colors2), true) |
| | | homePersonmyChart.setOption(this.initPersonOptions(xDate, yDate1, yDate2, peopleColor1, peopleColor2), true) |
| | | this.clickPeopleChart() |
| | | |
| | | setTimeout(() => { |
| | |
| | | }) |
| | | } |
| | | |
| | | homePersonmyChart.setOption(this.initPersonOptions(xDate, yDate1, yDate2, ['#53eefe'], ['#8b25c1', '#b81fee', '#421784'])) |
| | | homePersonmyChart.setOption(this.initPersonOptions(xDate, yDate1, yDate2, peopleColor1, peopleColor2)) |
| | | }, |
| | | |
| | | /** |
| | |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: colors1[0] |
| | | color: colors1 |
| | | // color: function (params) { |
| | | // return new global.echarts.graphic.LinearGradient( |
| | | // 0, 0, 0, 1, |
| | |
| | | // } |
| | | }, |
| | | emphasis: { |
| | | color: colors1[0] |
| | | color: colors1 |
| | | // color: function (params) { |
| | | // return new global.echarts.graphic.LinearGradient( |
| | | // 0, 0, 0, 1, |
| | |
| | | }, |
| | | itemStyle: { |
| | | normal: { |
| | | color: colors2[0] |
| | | color: colors2 |
| | | // color: function (params) { |
| | | // return new global.echarts.graphic.LinearGradient( |
| | | // 0, 0, 0, 1, |
| | |
| | | // } |
| | | }, |
| | | emphasis: { |
| | | color: colors2[0] |
| | | color: colors2 |
| | | // color: function (params) { |
| | | // return new global.echarts.graphic.LinearGradient( |
| | | // 0, 0, 0, 1, |
| | |
| | | siteJd: Number(homeCenter[0]) + 0.00006, |
| | | siteWd: Number(homeCenter[1]) - 0.00030, |
| | | siteGd: item.properties.szhfr + 240, |
| | | sitePitch: -50, |
| | | sitePitch: -80, |
| | | }) |
| | | this.$EventBus.$emit("clearHouse3D") |
| | | this.$EventBus.$emit("showThreeDimensions", { |