From 02e5b80a9f9b35e09539db301c2a31a64b315e1e Mon Sep 17 00:00:00 2001
From: xiaosi <2652281683@qq.com>
Date: Mon, 31 Aug 2026 10:14:10 +0800
Subject: [PATCH] =?UTF-8?q?feat:=20=E8=B4=A6=E6=88=B7=E4=B8=AD=E5=BF=83?=
=?UTF-8?q?=E9=A1=B5=E7=AD=BE=E4=B8=8E=E5=88=97=E8=A1=A8=E5=88=87=E6=8D=A2?=
=?UTF-8?q?=E5=88=B0=20TDesign?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/views/AccountView/AccountView.vue | 193 +++++++++++++++++++++++---
1 file changed, 176 insertions(+), 17 deletions(-)
diff --git a/src/views/AccountView/AccountView.vue b/src/views/AccountView/AccountView.vue
index c692671..696d840 100644
--- a/src/views/AccountView/AccountView.vue
+++ b/src/views/AccountView/AccountView.vue
@@ -10,13 +10,13 @@
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -55,29 +55,102 @@
订单概要云媒体流量订单订单创建后由管理员人工确认,金额以服务端订单为准。创建订单
订单记录
共 {{ orderTotal }} 条
-
订单号内容单价金额状态时间
{{ o.id }}{{ o.amountGb }} GB 流量{{ money(o.unitPrice) }}{{ money(o.totalPrice) }}{{ payStatusName(o.payStatus) }}{{ fmtTime(o.createdAt) }}
-
暂无流量订单
+
+ {{ row.amountGb }} GB 流量
+ {{ money(row.unitPrice) }}
+ {{ money(row.totalPrice) }}
+ {{ payStatusName(row.payStatus) }}
+ {{ fmtTime(row.createdAt) }}
+
消费明细
共 {{ usageTotal }} 条
-
来源对象 ID用量扣减前扣减后时间
{{ sourceName(u.sourceType) }}{{ u.sourceId || '--' }}{{ fmtGb(u.bytesUsed) }}{{ fmtGb(u.balanceBefore) }}{{ fmtGb(u.balanceAfter) }}{{ fmtTime(u.createdAt) }}
-
暂无流量消费记录
+
+ {{ sourceName(row.sourceType) }}
+ {{ row.sourceId || '--' }}
+ {{ fmtGb(row.bytesUsed) }}
+ {{ fmtGb(row.balanceBefore) }}
+ {{ fmtGb(row.balanceAfter) }}
+ {{ fmtTime(row.createdAt) }}
+
下载记录
共 {{ downloadTotal }} 条
-
文件无人机执行记录下载用量时间
{{ item.fileName || '--' }}{{ item.droneSn || '--' }}{{ item.executionId || '--' }}{{ fmtGb(item.bytes) }}{{ fmtTime(item.createdAt) }}
暂无下载记录
+
+ {{ row.fileName || '--' }}
+ {{ row.droneSn || '--' }}
+ {{ row.executionId || '--' }}
+ {{ fmtGb(row.bytes) }}
+ {{ fmtTime(row.createdAt) }}
+
{{ simTotal }}通信卡总数
{{ activeSimCount }}正常
{{ warnSimCount }}异常或未同步
-
| 运营商 | ICCID / 号码 | 绑定机巢 | 套餐用量 | 状态 | 最后同步 | 操作 |
|---|
| {{ c.carrier || '--' }} | {{ c.iccid || '--' }}{{ c.phone || '--' }} | {{ c.dockId || '--' }} | {{ c.lastSyncAt ? `${Number(c.usedGb || 0).toFixed(1)} / ${c.planGb || 0} GB` : '暂无运营商同步数据' }} | {{ simStatus(c).name }} | {{ fmtTime(c.lastSyncAt) }} | 运营商通道未接入 |
暂无通信卡
+
+ {{ row.carrier || '--' }}
+ {{ row.iccid || '--' }}{{ row.phone || '--' }}
+ {{ row.dockId || '--' }}
+ {{ row.lastSyncAt ? `${Number(row.usedGb || 0).toFixed(1)} / ${row.planGb || 0} GB` : '暂无运营商同步数据' }}
+ {{ simStatus(row).name }}
+ {{ fmtTime(row.lastSyncAt) }}
+ 运营商通道未接入
+
通信卡充值记录
共 {{ simRechargeTotal }} 条
-
通信卡充值流量金额支付状态充值状态时间
{{ cardLabel(r.simCardId) }}{{ r.amountGb }} GB{{ money(r.totalPrice) }}{{ payStatusName(r.payStatus) }}{{ rechargeStatusName(r.rechargeStatus) }}{{ fmtTime(r.createdAt) }}
暂无通信卡充值记录
+
+ {{ cardLabel(row.simCardId) }}
+ {{ row.amountGb }} GB
+ {{ money(row.totalPrice) }}
+ {{ payStatusName(row.payStatus) }}
+ {{ rechargeStatusName(row.rechargeStatus) }}
+ {{ fmtTime(row.createdAt) }}
+
-
账号安全
修改密码后将退出所有设备登录手机号{{ maskPhone(profilePhone) }}
绑定邮箱{{ profileEmail }}
登录会话共 {{ sessions.length }} 个有效会话退出其他设备
设备IP最近活跃过期时间操作
{{ session.userAgent || '未知设备' }}{{ session.current ? '(当前)' : '' }}{{ session.ip || '--' }}{{ fmtTime(session.lastActiveAt) }}{{ fmtTime(session.expiresAt) }}退出当前会话
暂无有效会话
修改密码
+
+
账号安全
修改密码后将退出所有设备
+
+
登录手机号{{ maskPhone(profilePhone) }}
+
绑定邮箱{{ profileEmail }}
+
登录会话共 {{ sessions.length }} 个有效会话退出其他设备
+
+
+ {{ row.userAgent || '未知设备' }}{{ row.current ? '(当前)' : '' }}
+ {{ row.ip || '--' }}
+ {{ fmtTime(row.lastActiveAt) }}
+ {{ fmtTime(row.expiresAt) }}
+
+ 退出
+ 当前会话
+
+
+
修改密码
+
-
发票资料与申请
仅对已人工确认的流量订单开放申请保存默认发票资料
可申请订单提交开具发票
发票记录
仅展示已提交的开具申请订单号金额抬头状态申请时间
{{ request.orderId }}{{ money(request.amount) }}{{ request.title }}{{ invoiceStatusName(request.status) }}{{ fmtTime(request.requestedAt) }}
暂无发票申请
+
+
发票资料与申请
仅对已人工确认的流量订单开放申请
+
+
+
+
+
+ 保存默认发票资料
+
+
+ 可申请订单
+
+ 提交开具发票
+
+
+
发票记录
仅展示已提交的开具申请
+
+ {{ row.orderId }}
+ {{ money(row.amount) }}
+ {{ row.title }}
+ {{ invoiceStatusName(row.status) }}
+ {{ fmtTime(row.requestedAt) }}
+
+
profile.value?.name || '--')
const profilePhone = computed(() => profile.value?.phone || '--')
const profileEmail = computed(() => profile.value?.email || '--')
@@ -153,6 +281,11 @@ const invoiceOrderOptions = computed(() => [{ label: '请选择已支付订单',
const activeSimCount = computed(() => simCards.value.filter((card) => simStatus(card).cls === 'normal').length)
const warnSimCount = computed(() => simTotal.value - activeSimCount.value)
+function applyPage(targetRef, page) {
+ const records = page?.records || []
+ targetRef.value = records
+ return { total: page?.total || 0, pages: page?.pages || 1 }
+}
function fmtTime(value) { const date = new Date(value); return value && !Number.isNaN(date.getTime()) ? date.toLocaleString('zh-CN', { hour12: false }) : '--' }
function fmtGb(bytes) { return bytes == null ? '--' : `${(Number(bytes) / 1024 / 1024 / 1024).toFixed(2)} GB` }
function money(value) { return value == null ? '--' : `¥${Number(value).toFixed(2)}` }
@@ -194,6 +327,32 @@ onMounted(load)
+
\ No newline at end of file