This commit is contained in:
yanran200730
2023-05-09 15:23:33 +08:00
parent e238a9e052
commit c3ad840e0c

View File

@@ -100,8 +100,8 @@
<ai-echart-v2 <ai-echart-v2
style="height: 220px; width: 100%; margin-top: 10px;" style="height: 220px; width: 100%; margin-top: 10px;"
:ref="'chart2'" :ref="'chart2'"
:data="lineData1" :data="lineData9"
:ops="barChart8"> :ops="barChart9">
</ai-echart-v2> </ai-echart-v2>
</div> </div>
</div> </div>
@@ -330,46 +330,6 @@
data () { data () {
return { return {
isShowInfo: false, isShowInfo: false,
lineData: [
{
"name": "阿斯达",
"v1": 23,
"v2": 33
},
{
"name": "水电费",
"v1": 12,
"v2": 34
},
{
"name": "凡哥",
"v1": 67,
"v2": 25
},
{
"name": "党费",
"v1": 98,
"v2": 85
}
],
lineData1: [
{
"name": "1月",
"v1": 23
},
{
"name": "2月",
"v1": 12
},
{
"name": "3月",
"v1": 67
},
{
"name": "4月",
"v1": 98
}
],
lineChart1: { lineChart1: {
legend: { legend: {
icon: 'roundRect', icon: 'roundRect',
@@ -483,6 +443,75 @@
} }
}) })
}, },
lineData9: [
{
"name": "宣传群",
"标签数": 198
},
{
"name": "学校",
"标签数": 66
},
{
"name": "临街商行",
"标签数": 118
},
{
"name": "建筑工程",
"标签数": 6
},
{
"name": "建筑工程",
"标签数": 6
},
{
"name": "物流快递",
"标签数": 14
},
{
"name": "餐饮美食",
"标签数": 116
}],
barChart9: {
legend: {
show: false,
textStyle: {
color: "#fff"
}
},
grid: {
left: '0%',
right: '0%',
bottom: '0%',
top: '10px',
containLabel: true
},
tooltip: {
trigger: 'axis',
backgroundColor: 'rgba(0, 102, 154, 0.65)',
borderColor: 'rgba(0, 102, 154, 0.65)',
textStyle: { color: '#fff' },
axisPointer: { type: 'cross' }
},
yAxis: {
type: 'category',
axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } },
axisLabel: {color: '#8FABBF', fontSize: 12},
axisTick: {show: false},
},
xAxis: {
nameGap: 23, minInterval: 1,
splitLine: {lineStyle: {color: 'rgba(108, 128, 151, 0.3)', type: 'dashed'}},
axisLabel: {color: '#8FABBF', fontSize: 12}
},
color: ['#65E0DE', '#E7C074', '#7AA3CC'],
series: [
{
type: 'bar',
barWidth: '15'
}
]
},
barChart8: { barChart8: {
legend: { legend: {
textStyle: { textStyle: {
@@ -734,7 +763,10 @@
}, },
qhyData () { qhyData () {
return [{key: '活跃居民群', value: this.wxGroupOverview['活跃居民群数量(7天)']}, {key: '全部居民群', value: this.wxGroupOverview['群数量']}] if (!this.wxGroupOverview['活跃居民群数量(7天)']) {
return {}
}
return [{key: '活跃居民群', value: (this.wxGroupOverview['活跃居民群数量(7天)'] / 7).toFixed(0)}, {key: '全部居民群', value: this.wxGroupOverview['群数量']}]
}, },
qhyRate () { qhyRate () {