Auto Commit

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