|
|
@ -11,6 +11,9 @@ |
|
|
|
}" |
|
|
|
@click="clickSwitch({ enableRules: record.enableRules, record: record })" /> |
|
|
|
</template> |
|
|
|
<template v-if="column.dataIndex === 'conditionalJudgment'"> |
|
|
|
{{ getConditionalJudgment(record) }} |
|
|
|
</template> |
|
|
|
<template v-if="column.dataIndex === 'comparisonType'"> |
|
|
|
{{ getcomparisonType(record) }} |
|
|
|
</template> |
|
|
@ -69,6 +72,12 @@ |
|
|
|
} |
|
|
|
} |
|
|
|
}; |
|
|
|
const getConditionalJudgment = (data: any) => { |
|
|
|
const formattedValue = data.conditionalJudgment.replace(/(\d+)\.00/g, '$1'); |
|
|
|
// 返回处理后的值 |
|
|
|
console.log(formattedValue, 'value'); |
|
|
|
return formattedValue; |
|
|
|
}; |
|
|
|
const clickSwitch = (data: any) => { |
|
|
|
NsModal.confirm({ |
|
|
|
title: '启用状态', |
|
|
@ -315,6 +324,7 @@ |
|
|
|
getcomparisonType, |
|
|
|
orgId, |
|
|
|
tableConfig, |
|
|
|
getConditionalJudgment, |
|
|
|
editConfigureEnergyAlarms, |
|
|
|
setconfigureDeviceAlarmsData, |
|
|
|
}; |
|
|
|