|
@ -11,6 +11,9 @@ |
|
|
}" |
|
|
}" |
|
|
@click="clickSwitch({ enableRules: record.enableRules, record: record })" /> |
|
|
@click="clickSwitch({ enableRules: record.enableRules, record: record })" /> |
|
|
</template> |
|
|
</template> |
|
|
|
|
|
<template v-if="column.dataIndex === 'conditionalJudgment'"> |
|
|
|
|
|
{{ getConditionalJudgment(record) }} |
|
|
|
|
|
</template> |
|
|
<template v-if="column.dataIndex === 'comparisonType'"> |
|
|
<template v-if="column.dataIndex === 'comparisonType'"> |
|
|
{{ getcomparisonType(record) }} |
|
|
{{ getcomparisonType(record) }} |
|
|
</template> |
|
|
</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) => { |
|
|
const clickSwitch = (data: any) => { |
|
|
NsModal.confirm({ |
|
|
NsModal.confirm({ |
|
|
title: '启用状态', |
|
|
title: '启用状态', |
|
@ -315,6 +324,7 @@ |
|
|
getcomparisonType, |
|
|
getcomparisonType, |
|
|
orgId, |
|
|
orgId, |
|
|
tableConfig, |
|
|
tableConfig, |
|
|
|
|
|
getConditionalJudgment, |
|
|
editConfigureEnergyAlarms, |
|
|
editConfigureEnergyAlarms, |
|
|
setconfigureDeviceAlarmsData, |
|
|
setconfigureDeviceAlarmsData, |
|
|
}; |
|
|
}; |
|
|