You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
38 lines
1.0 KiB
38 lines
1.0 KiB
<template>
|
|
<ns-view-list-table v-bind="config" ref="mainRef">
|
|
<template #bodyCell="{ record, column }">
|
|
<template v-if="column.dataIndex === 'priority'">
|
|
{{ record.priority ? record.priority.label : '' }}
|
|
</template>
|
|
<template v-if="column.dataIndex === 'alarmLogState'">
|
|
{{ record.alarmLogState ? record.alarmLogState.label : '' }}
|
|
</template>
|
|
</template>
|
|
</ns-view-list-table>
|
|
<!-- 详情页面 -->
|
|
<Look ref="look" />
|
|
<!-- 状态页面 -->
|
|
<Status ref="status" />
|
|
</template>
|
|
<script lang="ts">
|
|
import { notificationtableConfig } from './ts/config';
|
|
import Look from './look.vue';
|
|
import Status from './status.vue';
|
|
import { ref } from 'vue';
|
|
|
|
export default {
|
|
name: 'EquipmentAlarmIndex',
|
|
components: { Look, Status },
|
|
|
|
setup() {
|
|
const look = ref(null);
|
|
const status = ref(null);
|
|
const config = notificationtableConfig(look, status);
|
|
return {
|
|
config,
|
|
look,
|
|
status,
|
|
};
|
|
},
|
|
};
|
|
</script>
|
|
|