修改测试问题

This commit is contained in:
guanj
2026-06-11 20:27:37 +08:00
parent bda7373133
commit 1a09c31669
61 changed files with 3393 additions and 2406 deletions

View File

@@ -106,9 +106,9 @@ const tableStore: any = new TableStore({
text: `F47曲线`
},
legend: {
data: ['可容忍事件', '不可容忍事件'],
itemWidth: 10,
itemHeight: 10,
data: ['分割线', '可容忍事件', '不可容忍事件'],
// itemWidth: 10,
// itemHeight: 10,
itemGap: 15
},
tooltip: {
@@ -132,9 +132,14 @@ const tableStore: any = new TableStore({
formatter: function (a: any) {
var relVal = `<strong>${a.seriesName}</strong><br/>`
relVal += "<font style='color:" + "'>发生时间:" + a.value[2] + '</font><br/>'
relVal += "<font style='color:" + "'>持续时间:" + a.value[0] + 's</font><br/>'
relVal += "<font style='color:" + "'>特征幅值:" + Math.floor(a.value[1] * 100) / 100 + '%</font>'
relVal += "<font style='color:" + "'>发生时间" + a.value[2] + '</font><br/>'
relVal += "<font style='color:" + "'>特征幅值:" + Math.floor(a.value[1] * 100) / 100 + '%</font><br/>'
relVal += "<font style='color:" + "'>持续时间:" + a.value[0] + 's</font><br/>'
relVal += "<font style='color:" + "'>监测点名称:" + (a.value[4] || '/') + '</font><br/>'
relVal += "<font style='color:" + "'>设备名称:" + (a.value[5] || '/') + '</font><br/>'
relVal += "<font style='color:" + "'>项目名称:" + (a.value[6] || '/') + '</font><br/>'
relVal += "<font style='color:" + "'>工程名称:" + (a.value[7] || '/') + '</font>'
return relVal
}
},
@@ -171,7 +176,7 @@ const tableStore: any = new TableStore({
dataZoom: null,
series: [
{
name: '边界线',
name: '分割线',
type: 'line',
data: [
[0.05, 0],
@@ -184,6 +189,7 @@ const tableStore: any = new TableStore({
[1000, 80]
],
showSymbol: false,
tooltips: {
show: false
}
@@ -268,8 +274,11 @@ function gongfunction(arr: any) {
let time = arr[i].time
let eventId = arr[i].eventId
let lineName = arr[i].lineName
let equipmentName = arr[i].equipmentName
let projectName = arr[i].projectName
let engineeringName = arr[i].engineeringName
// let index =arr[i].eventDetailIndex;
point = [xx, yy, time, eventId, lineName]
point = [xx, yy, time, eventId, lineName, equipmentName, projectName, engineeringName]
if (xx <= 0.003) {
let line = 0