|
|
@ -21,7 +21,7 @@ const { createMessage } = useMessage() |
|
|
const { t } = useI18n() |
|
|
const { t } = useI18n() |
|
|
const [registerUpdateModal, { openModal: openUpdateModal }] = useModal() |
|
|
const [registerUpdateModal, { openModal: openUpdateModal }] = useModal() |
|
|
const [registerTable, { getForm, reload, getDataSource, updateTableDataRecord }] = useTable({ |
|
|
const [registerTable, { getForm, reload, getDataSource, updateTableDataRecord }] = useTable({ |
|
|
title: '预警测点列表', |
|
|
title: '集中告警列表', |
|
|
api: getWarnPageReal, |
|
|
api: getWarnPageReal, |
|
|
rowKey: 'warnId', |
|
|
rowKey: 'warnId', |
|
|
immediate: true, |
|
|
immediate: true, |
|
|
@ -42,7 +42,7 @@ const [registerTable, { getForm, reload, getDataSource, updateTableDataRecord }] |
|
|
showTableSetting: true, |
|
|
showTableSetting: true, |
|
|
showIndexColumn: false, |
|
|
showIndexColumn: false, |
|
|
actionColumn: { |
|
|
actionColumn: { |
|
|
width: 120, |
|
|
width: 200, |
|
|
title: t('common.action'), |
|
|
title: t('common.action'), |
|
|
dataIndex: 'action', |
|
|
dataIndex: 'action', |
|
|
fixed: 'right', |
|
|
fixed: 'right', |
|
|
@ -73,40 +73,14 @@ onMounted(async () => { |
|
|
<TableAction |
|
|
<TableAction |
|
|
:actions="[ |
|
|
:actions="[ |
|
|
|
|
|
|
|
|
{ icon: IconEnum.WARN, label: t('action.warnConfig'), auth: 'run:instant:warnConfig', onClick: handleWarnConfig.bind(null, record) }, |
|
|
{ icon: IconEnum.EDIT, label: t('action.edit'), auth: 'run:instant:warnConfig', onClick: handleWarnConfig.bind(null, record) }, |
|
|
|
|
|
{ icon: IconEnum.TREND, label: t('action.trend'), auth: 'run:instant:warnConfig', onClick: handleWarnConfig.bind(null, record) }, |
|
|
|
|
|
{ icon: IconEnum.DETAIL, label: t('action.detail'), auth: 'run:instant:warnConfig', onClick: handleWarnConfig.bind(null, record) }, |
|
|
|
|
|
|
|
|
]" |
|
|
]" |
|
|
/> |
|
|
/> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
</template> |
|
|
<template #warnStatus="{ record }"> |
|
|
|
|
|
<Switch |
|
|
|
|
|
v-model:checked="record.warnStatus" :checked-value="1" :un-checked-value="0" checked-children="是" |
|
|
|
|
|
un-checked-children="否" @change="updateStatus(record)" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template #shortMessageOnOff="{ record }"> |
|
|
|
|
|
<Switch |
|
|
|
|
|
v-model:checked="record.shortMessageOnOff" :checked-value="1" :un-checked-value="0" checked-children="是" |
|
|
|
|
|
un-checked-children="否" @change="updateStatus(record)" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template #gzpOnOff="{ record }"> |
|
|
|
|
|
<Switch |
|
|
|
|
|
v-model:checked="record.gzpOnOff" :checked-value="1" :un-checked-value="0" checked-children="是" |
|
|
|
|
|
un-checked-children="否" @change="updateStatus(record)" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
<template #copyToDiagOnOff="{ record }"> |
|
|
|
|
|
<Switch |
|
|
|
|
|
v-model:checked="record.copyToDiagOnOff" :checked-value="1" :un-checked-value="0" checked-children="是" |
|
|
|
|
|
un-checked-children="否" @change="updateStatus(record)" |
|
|
|
|
|
/> |
|
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
|
|
<template #timeDurationThreshold="{ record }"> |
|
|
|
|
|
{{ `${record.timeDurationThreshold}秒` }} |
|
|
|
|
|
</template> |
|
|
|
|
|
</BasicTable> |
|
|
</BasicTable> |
|
|
<!-- <UpdateModal @register="registerUpdateModal" @success="reload" />--> |
|
|
<!-- <UpdateModal @register="registerUpdateModal" @success="reload" />--> |
|
|
</div> |
|
|
</div> |
|
|
|