feat: 新增设备激活时间
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m7s

This commit is contained in:
sexygoat
2026-05-12 14:54:47 +08:00
parent 471d1196b3
commit 1690252740
11 changed files with 229 additions and 10 deletions

View File

@@ -904,6 +904,7 @@
virtual_no: '',
device_name: '',
status: undefined as DeviceStatus | undefined,
activation_status: undefined as number | undefined,
batch_no: '',
device_type: '',
manufacturer: '',
@@ -980,6 +981,19 @@
{ label: '已停用', value: 4 }
]
},
{
label: '激活状态',
prop: 'activation_status',
type: 'select',
config: {
clearable: true,
placeholder: '请选择激活状态'
},
options: () => [
{ label: '未激活', value: 0 },
{ label: '已激活', value: 1 }
]
},
{
label: '批次号',
prop: 'batch_no',
@@ -1084,6 +1098,7 @@
{ label: '设备类型', prop: 'device_type' },
{ label: '状态', prop: 'status' },
{ label: '状态名称', prop: 'status_name' },
{ label: '激活状态', prop: 'activation_status_name' },
{ label: '在线状态', prop: 'online_status' },
{ label: '实名策略', prop: 'realname_policy' },
{ label: '切卡模式', prop: 'switch_mode' },
@@ -1391,6 +1406,12 @@
width: 100,
formatter: (row: Device) => row.status_name || '-'
},
{
prop: 'activation_status_name',
label: '激活状态',
width: 120,
formatter: (row: Device) => row.activation_status_name || '-'
},
{
prop: 'online_status',
label: '在线状态',
@@ -1561,6 +1582,7 @@
virtual_no: searchForm.virtual_no || undefined,
device_name: searchForm.device_name || undefined,
status: searchForm.status,
activation_status: searchForm.activation_status ?? undefined,
batch_no: searchForm.batch_no || undefined,
device_type: searchForm.device_type || undefined,
manufacturer: searchForm.manufacturer || undefined,