feat: 新增卡视角以及设备视角的实名同步时间,卡状态同步时间,流量同步时间
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m56s

This commit is contained in:
sexygoat
2026-05-18 12:23:35 +08:00
parent 877c741d72
commit 894aea0e74
18 changed files with 544 additions and 63 deletions

View File

@@ -137,6 +137,7 @@
<DailyRecordsDialog
v-model="dailyRecordsDialogVisible"
:package-usage-id="selectedPackageUsageId ?? undefined"
:package-row="selectedPackageRow ?? undefined"
/>
<OrderHistoryDialog
v-model="orderHistoryDialogVisible"
@@ -196,7 +197,7 @@
import { useAssetOperations } from './composables/useAssetOperations'
// 引入类型
import type { BindingCard, SwitchCardForm, WiFiForm } from './types'
import type { BindingCard, PackageInfo, SwitchCardForm, WiFiForm } from './types'
defineOptions({ name: 'SingleCard' })
@@ -264,6 +265,7 @@
const realnamePolicyDialogVisible = ref(false)
const updateRealnameStatusDialogVisible = ref(false)
const selectedPackageUsageId = ref<number | null>(null)
const selectedPackageRow = ref<PackageInfo | null>(null)
// 绑定卡实名状态更新
const bindingCardRealnameStatusDialogVisible = ref(false)
@@ -610,9 +612,10 @@
/**
* 显示流量详单
*/
const handleShowDailyRecords = (payload: { packageRow: any }) => {
const handleShowDailyRecords = (payload: { packageRow: PackageInfo }) => {
const { packageRow } = payload
selectedPackageUsageId.value = packageRow.package_usage_id
selectedPackageUsageId.value = packageRow.package_usage_id ?? packageRow.id
selectedPackageRow.value = packageRow
dailyRecordsDialogVisible.value = true
}