调整页面echart

This commit is contained in:
GGJ
2025-05-06 16:38:10 +08:00
parent f8a26b3320
commit 60cdff21b6
9 changed files with 186 additions and 173 deletions

View File

@@ -111,24 +111,21 @@ const tableStore = new TableStore({
},
tooltip: {
backgroundColor: '#fff',
textStyle: {
color: '#000'
},
formatter: function (params: any) {
var tips = `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
<span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[0].name}</span></div>`
for (var i = 0; i < params.length; i++) {
// <p style="width:14px;height:8px;border-radius:2px;background:${
// legendColorList[i]
// }"></p>
tips += `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
<span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[i].seriesName
}</span> ${params[i].seriesName == '在线率' ? params[i].value?.toFixed(2) : params[i].value
} </div>`
}
return tips
}
// formatter: function (params: any) {
// var tips = `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
// <span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[0].name}</span></div>`
// for (var i = 0; i < params.length; i++) {
// // <p style="width:14px;height:8px;border-radius:2px;background:${
// // legendColorList[i]
// // }"></p>
// tips += `<div style="min-width:80px;display:flex;justify-content:space-between;align-items:center">
// <span style="margin-left:5px;dislpay:block;min-width:80px;color:#000">${params[i].seriesName
// }</span> ${params[i].seriesName == '在线率' ? params[i].value?.toFixed(2) : params[i].value
// } </div>`
// }
// return tips
// }
},
calculable: true,