大屏bug

This commit is contained in:
yanran200730
2023-04-27 09:18:37 +08:00
parent b1f62f868b
commit de42648740
2 changed files with 54 additions and 37 deletions

View File

@@ -259,16 +259,16 @@
<h2>各单位群主及群分布</h2> <h2>各单位群主及群分布</h2>
</div> </div>
<ai-echart-v2 <ai-echart-v2
style="height: 210px; width: 100%;" style="height: 230px; width: 100%; margin-top: 10px;"
:ref="'chart5'" :ref="'chart5'"
:data="wxGroupOverview['各单位群主及群分布'] ? wxGroupOverview['各单位群主及群分布'] : []" :data="barChartData"
:ops="barChart"> :ops="barChart">
</ai-echart-v2> </ai-echart-v2>
</div> </div>
</AiDvPanel> </AiDvPanel>
<AiDvPanel class="bottom" style="" border="border6" title="群动态多维度排行"> <AiDvPanel class="bottom" style="" border="border6" title="群动态多维度排行">
<ai-table <ai-table
height="340px" height="310px"
:tableData="tableList" :tableData="tableList"
:col-configs="colConfigs" :col-configs="colConfigs"
:isShowPagination="false" :isShowPagination="false"
@@ -430,11 +430,30 @@
} }
}, },
barChart: { barChart: {
legend: {
textStyle: {
color: "#fff"
}
},
grid: {
left: '0%',
right: '0%',
bottom: '0%',
top: '35px',
containLabel: true
},
xAxis: { xAxis: {
type: "category", type: "category",
axisTick: {show: false}, axisTick: {show: false},
axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } }, axisLine: { lineStyle: { color: 'rgba(179, 223, 255, 0.4)' } },
axisLabel: {color: '#8FABBF', fontSize: 12}, axisLabel: {color: '#8FABBF', fontSize: 10, rotate: 30},
},
tooltip: {
trigger: 'axis',
backgroundColor: 'rgba(0, 102, 154, 0.65)',
borderColor: 'rgba(0, 102, 154, 0.65)',
textStyle: { color: '#fff' },
axisPointer: { type: 'cross' }
}, },
yAxis: { yAxis: {
nameGap: 23, nameGap: 23,
@@ -456,8 +475,8 @@
y: 0, y: 0,
y2: 1, y2: 1,
colorStops: [ colorStops: [
{ offset: 0, color: 'rgba(51, 204, 204, 1)' }, { offset: 1, color: 'rgba(51, 204, 204, 1)' },
{ offset: 1, color: 'rgba(31, 89, 89, 0.25)' } { offset: 0, color: 'rgba(31, 89, 89, 0.25)' }
] ]
}, },
{ {
@@ -467,40 +486,24 @@
y: 0, y: 0,
y2: 1, y2: 1,
colorStops: [ colorStops: [
{ offset: 0, color: 'rgba(219, 179, 110, 0.1)' }, { offset: 1, color: 'rgba(219, 179, 110, 0.1)' },
{ offset: 1, color: 'rgba(219, 179, 110, 1)' } { offset: 0, color: 'rgba(219, 179, 110, 1)' }
] ]
} }
], ],
daemon: { series: [
type: 'bar', {
barWidth: 14, name: '居民人数',
barCategoryGap: 40, type: 'bar',
itemStyle: {} barWidth: '15'
} },
{
name: '新增居民',
barWidth: '15',
type: 'bar'
}
]
}, },
barData: [
{
"name": "兴仁公安局",
"v1": 223,
"v11": 23
},
{
"name": "兴仁公安局1",
"v1": 22,
"v11": 29
},
{
"name": "兴仁公安局2",
"v1": 67,
"v11": 23
},
{
"name": "兴仁公安局3",
"v1": 98,
"v11": 23
}
],
pieData: [ pieData: [
{ value: 1048, name: 'Search Engine' }, { value: 1048, name: 'Search Engine' },
{ value: 735, name: 'Direct' }, { value: 735, name: 'Direct' },
@@ -609,6 +612,20 @@
return Number(((this.wxGroupOverview['活跃群成员数量(7天)'] / (this.wxGroupOverview['群成员数量'] * 7)) * 100).toFixed(2)) return Number(((this.wxGroupOverview['活跃群成员数量(7天)'] / (this.wxGroupOverview['群成员数量'] * 7)) * 100).toFixed(2))
}, },
barChartData () {
if (!this.wxGroupOverview['各单位群主及群分布']) {
return []
}
return this.wxGroupOverview['各单位群主及群分布'].map(v => {
return {
name: v['网格名称'],
'群主数量': v['群主数量'],
'群数量': v['群数量']
}
})
},
tableList () { tableList () {
const list = this.wxGroupOverview['群动态多维度排行'] const list = this.wxGroupOverview['群动态多维度排行']
if (!list) { if (!list) {

View File

@@ -142,7 +142,7 @@
} }
span { span {
margin-right: 24px; width: 86px;
font-weight: 400; font-weight: 400;
font-size: 14px; font-size: 14px;
color: #9BB7D4; color: #9BB7D4;