完善设备管理界面
This commit is contained in:
parent
13e9631f5b
commit
0fa52e9aff
@ -2859,6 +2859,12 @@ const toolbarActions = computed(() => [
|
||||
)
|
||||
" />
|
||||
</template>
|
||||
<template #deviceOnlineStatusName="{ row }">
|
||||
<component :is="h(Tag, { color: row.deviceOnlineStatus === 1 ? 'green' : row.deviceOnlineStatus === 2 ? 'red' : 'default' }, () =>
|
||||
row.deviceOnlineStatusName || '-',
|
||||
)
|
||||
" />
|
||||
</template>
|
||||
|
||||
<template #action="{ row }">
|
||||
<div style="display: flex; gap: 8px; align-items: center">
|
||||
|
||||
@ -155,6 +155,7 @@ export const tableSchema: any = computed((): VxeGridProps['columns'] => [
|
||||
field: 'deviceOnlineStatusName',
|
||||
title: $t('abp.deviceInfos.DeviceOnlineStatus'),
|
||||
minWidth: '150',
|
||||
slots: { default: 'deviceOnlineStatusName' },
|
||||
},
|
||||
{
|
||||
field: 'lastOnlineTime',
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user