“7b9c6d55ec2b6ba0d4580847ca43becd52177a87”上不存在“...classes/git@gitcode.net:openanolis/dragonwell8_jdk.git”

Auto Commit

上级 a2465636
...@@ -123,7 +123,6 @@ function filterDatasource(name){ ...@@ -123,7 +123,6 @@ function filterDatasource(name){
} }
function filterName(name) { function filterName(name) {
console.log('state.totalDataSource',state.totalDataSource)
state.clickCity = name state.clickCity = name
state.dataSource = filterDatasource(name) state.dataSource = filterDatasource(name)
state.total=state.dataSource.length state.total=state.dataSource.length
...@@ -218,7 +217,7 @@ function renderEchartBar() { ...@@ -218,7 +217,7 @@ function renderEchartBar() {
backgroundColor: 'rgba(0,0,0,0)',//背景色 backgroundColor: 'rgba(0,0,0,0)',//背景色
title: { title: {
text: '中国地图', text: '中国地图',
subtext: 'chinaJson', subtext: 'china',
color: '#fff' color: '#fff'
}, },
visualMap: { // 设置视觉映射 visualMap: { // 设置视觉映射
...@@ -270,12 +269,18 @@ function renderEchartBar() { ...@@ -270,12 +269,18 @@ function renderEchartBar() {
formatter: (params) => { formatter: (params) => {
const { name } = params.data const { name } = params.data
const filterData = filterMapName(name) const filterData = filterMapName(name)
let isTruthCount=0
const strInfo = filterData.map(item => { const strInfo = filterData.map(item => {
if(item.status==='有效'){
isTruthCount++
}
return `<img src=${item.imgSrc} width='20' height='20'/>&nbsp; ${item.name}&nbsp;(${item.status})` return `<img src=${item.imgSrc} width='20' height='20'/>&nbsp; ${item.name}&nbsp;(${item.status})`
}).join('<br>') }).join('<br>')
state.provinceIsTruthCount=isTruthCount
const value = filterData.length const value = filterData.length
return `地区:${name}<br> return `地区:${name}<br>
总人数:${value} <br> 报名总人数:${value} <br>
有效报名人数:${isTruthCount}<br>
人员信息:<br>${strInfo}` 人员信息:<br>${strInfo}`
} }
}, },
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册