|
@@ -11,7 +11,7 @@
|
|
|
<script>
|
|
<script>
|
|
|
import { getDeviceAlarms } from '@/api/device'
|
|
import { getDeviceAlarms } from '@/api/device'
|
|
|
import { createListOptions } from '@/utils'
|
|
import { createListOptions } from '@/utils'
|
|
|
-import { AlarmStrategies } from '@/constant'
|
|
|
|
|
|
|
+import { SupportedAlarmStrategies } from '@/constant'
|
|
|
|
|
|
|
|
export default {
|
|
export default {
|
|
|
name: 'DeviceAlarm',
|
|
name: 'DeviceAlarm',
|
|
@@ -33,7 +33,7 @@ export default {
|
|
|
{ prop: 'type', label: '类型', 'min-width': 120 },
|
|
{ prop: 'type', label: '类型', 'min-width': 120 },
|
|
|
{ prop: 'handle', label: '处理方式' },
|
|
{ prop: 'handle', label: '处理方式' },
|
|
|
{ prop: 'status', label: '处理结果', type: 'tag' },
|
|
{ prop: 'status', label: '处理结果', type: 'tag' },
|
|
|
- ...AlarmStrategies.map(({ key, label }) => {
|
|
|
|
|
|
|
+ ...SupportedAlarmStrategies.map(({ key, label }) => {
|
|
|
return {
|
|
return {
|
|
|
prop: key,
|
|
prop: key,
|
|
|
label: `${label}通知`,
|
|
label: `${label}通知`,
|