This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
|
||||
@@ -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 }
|
||||
]
|
||||
}
|
||||
]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user