bug
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 7m10s

This commit is contained in:
sexygoat
2026-04-11 12:19:35 +08:00
parent 90ae585651
commit 33e15314ac
30 changed files with 1077 additions and 532 deletions

View File

@@ -216,6 +216,12 @@
// fetchAssetDetail 内部已经会并行加载所有相关数据,不需要重复调用
await fetchAssetDetail(identifier)
// 如果是设备类型,需要再次调用搜索接口获取完整数据
if (cardInfo.value?.asset_type === 'device') {
const deviceIdentifier = cardInfo.value.virtual_no || cardInfo.value.iccid || identifier
await fetchAssetDetail(deviceIdentifier)
}
// 从接口数据初始化轮询开关,不触发更新接口
pollingInitializing = true
pollingEnabled.value = cardInfo.value?.enable_polling ?? false
@@ -224,7 +230,7 @@
// 重置分页并加载套餐列表
packagePagination.value.page = 1
const result = await loadPackageList(identifier, 1, packagePagination.value.pageSize)
const result = await loadPackageList(identifier, 1, packagePagination.pageSize)
packagePagination.value.total = result.total
}

View File

@@ -671,6 +671,7 @@
virtual_no: string
device_virtual_no: string
is_distributed: undefined | number
is_standalone: undefined | boolean
[key: string]: any
} = {
status: undefined,
@@ -679,7 +680,8 @@
msisdn: '',
virtual_no: '',
device_virtual_no: '',
is_distributed: undefined
is_distributed: undefined,
is_standalone: undefined
}
// 搜索表单
@@ -858,6 +860,19 @@
{ label: '是', value: true },
{ label: '否', value: false }
]
},
{
label: '独立卡',
prop: 'is_standalone',
type: 'select',
config: {
clearable: true,
placeholder: '全部'
},
options: () => [
{ label: '是(未绑定设备)', value: true },
{ label: '否(已绑定设备)', value: false }
]
}
]