电压暂升的时候显示/

This commit is contained in:
stt
2025-11-28 14:34:16 +08:00
parent 58bc269940
commit 031fab286b
3 changed files with 12 additions and 4 deletions

View File

@@ -68,7 +68,6 @@ const getSimpleLineList = async () => {
options.value = res.data
}
const tableStore: any = new TableStore({
url: '/cs-harmonic-boot/event/pageEvent',
method: 'POST',
@@ -109,7 +108,7 @@ const tableStore: any = new TableStore({
width: '100',
formatter: (row: any) => {
// 当暂态类型不是电压暂升时,计算暂降深度 = 100 - 特征幅值
if (row.tag !== '电压暂升') {
if (row.row.tag !== '电压暂升') {
const amplitude = parseFloat(row.row.amplitude)
if (!isNaN(amplitude)) {
return 100 - amplitude
@@ -192,7 +191,7 @@ const tableStore: any = new TableStore({
icon: 'el-icon-DataLine',
render: 'basicButton',
disabled: row => {
return !(!row.wavePath && row.evtParamTm < 20)
return !!row.wavePath
}
}
]

View File

@@ -109,7 +109,7 @@ const tableStore: any = new TableStore({
width: '100',
formatter: (row: any) => {
// 当暂态类型不是电压暂升时,计算暂降深度 = 100 - 特征幅值
if (row.tag !== '电压暂升') {
if (row.row.tag !== '电压暂升') {
const amplitude = parseFloat(row.row.amplitude)
if (!isNaN(amplitude)) {
return 100 - amplitude