Merge pull request '1' (#99) from pc-master into portal

Reviewed-on: #99
portal
xiaomeng 2024-01-23 04:48:17 +00:00
commit 77019c4a5e
1 changed files with 3 additions and 0 deletions

View File

@ -172,6 +172,7 @@ export function realTimeLine(id, data) {
] ]
var list = [] var list = []
var selList={}
var dataList = [] var dataList = []
data.forEach((el, index) => { data.forEach((el, index) => {
Xdata.push(el.time) Xdata.push(el.time)
@ -216,6 +217,7 @@ export function realTimeLine(id, data) {
}, },
}, },
}) })
selList[el.name]=(index==0?true:false)
}) })
var option = { var option = {
tooltip: { tooltip: {
@ -233,6 +235,7 @@ export function realTimeLine(id, data) {
itemHeight: 10, itemHeight: 10,
type: 'scroll', // 启用翻页 type: 'scroll', // 启用翻页
data: list, data: list,
selected: selList,
right: "center", right: "center",
top:10, top:10,
itemGap: 10, itemGap: 10,