pull/99/head
孙萌 2024-01-23 11:55:56 +08:00
parent 3c76aa6db3
commit cbd53e4cea
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,