diff --git a/src/components/DockEditModal.vue b/src/components/DockEditModal.vue
index b2347dc..e748916 100644
--- a/src/components/DockEditModal.vue
+++ b/src/components/DockEditModal.vue
@@ -23,8 +23,8 @@
- 账户名称
- {{ profileName }}
@@ -43,7 +43,7 @@
视频资产 {{ resourceSummary?.videoCount ?? '--' }} 个 / 本月下载 {{ resourceSummary?.monthDownloadCount ?? '--' }} 次
本月媒体流量 {{ resourceSummary ? `${Number(resourceSummary.monthUsageGb).toFixed(2)} GB` : '--' }}
-
+ 查看流量订单管理通信卡
@@ -52,16 +52,16 @@
当前云媒体流量余额{{ balance }} GB流量用于直播、回放与原始素材下载
-
订单概要云媒体流量订单订单创建后由管理员人工确认,金额以服务端订单为准。
+
订单概要云媒体流量订单订单创建后由管理员人工确认,金额以服务端订单为准。创建订单
订单记录
共 {{ orderTotal }} 条
订单号内容单价金额状态时间
{{ o.id }}{{ o.amountGb }} GB 流量{{ money(o.unitPrice) }}{{ money(o.totalPrice) }}{{ payStatusName(o.payStatus) }}{{ fmtTime(o.createdAt) }}
暂无流量订单
-
+
消费明细
共 {{ usageTotal }} 条
来源对象 ID用量扣减前扣减后时间
{{ sourceName(u.sourceType) }}{{ u.sourceId || '--' }}{{ fmtGb(u.bytesUsed) }}{{ fmtGb(u.balanceBefore) }}{{ fmtGb(u.balanceAfter) }}{{ fmtTime(u.createdAt) }}
暂无流量消费记录
-
+
下载记录
共 {{ downloadTotal }} 条
文件无人机执行记录下载用量时间
{{ item.fileName || '--' }}{{ item.droneSn || '--' }}{{ item.executionId || '--' }}{{ fmtGb(item.bytes) }}{{ fmtTime(item.createdAt) }}
暂无下载记录
@@ -69,15 +69,15 @@
{{ 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) }} | 运营商通道未接入 |
暂无通信卡
-
+
通信卡充值记录
共 {{ simRechargeTotal }} 条
通信卡充值流量金额支付状态充值状态时间
{{ cardLabel(r.simCardId) }}{{ r.amountGb }} GB{{ money(r.totalPrice) }}{{ payStatusName(r.payStatus) }}{{ rechargeStatusName(r.rechargeStatus) }}{{ fmtTime(r.createdAt) }}
暂无通信卡充值记录
-
+
- 账号安全
修改密码后将退出所有设备登录手机号{{ maskPhone(profilePhone) }}
绑定邮箱{{ profileEmail }}
登录会话共 {{ sessions.length }} 个有效会话
设备IP最近活跃过期时间操作
{{ session.userAgent || '未知设备' }}{{ session.current ? '(当前)' : '' }}{{ session.ip || '--' }}{{ fmtTime(session.lastActiveAt) }}{{ fmtTime(session.expiresAt) }}当前会话
暂无有效会话
+ 账号安全
修改密码后将退出所有设备登录手机号{{ maskPhone(profilePhone) }}
绑定邮箱{{ profileEmail }}
登录会话共 {{ sessions.length }} 个有效会话退出其他设备
设备IP最近活跃过期时间操作
{{ session.userAgent || '未知设备' }}{{ session.current ? '(当前)' : '' }}{{ session.ip || '--' }}{{ fmtTime(session.lastActiveAt) }}{{ fmtTime(session.expiresAt) }}退出当前会话
暂无有效会话
修改密码
- 发票资料与申请
仅对已人工确认的流量订单开放申请可申请订单
发票记录
仅展示已提交的开具申请订单号金额抬头状态申请时间
{{ request.orderId }}{{ money(request.amount) }}{{ request.title }}{{ invoiceStatusName(request.status) }}{{ fmtTime(request.requestedAt) }}
暂无发票申请
+ 发票资料与申请
仅对已人工确认的流量订单开放申请保存默认发票资料
可申请订单提交开具发票
发票记录
仅展示已提交的开具申请订单号金额抬头状态申请时间
{{ request.orderId }}{{ money(request.amount) }}{{ request.title }}{{ invoiceStatusName(request.status) }}{{ fmtTime(request.requestedAt) }}
暂无发票申请
账户名称
-
+ 取消
+ {{ saving ? '保存中…' : '保存' }}
当前密码
-
+ 取消
+ 确认修改
@@ -192,10 +188,6 @@ async function load() {
])
if (results.some((result) => result.status === 'rejected')) ui.toast('部分账户数据加载失败')
}
-function goOrderPage(page) { if (page < 1 || page > orderPages.value) return; orderPageNum.value = page; loadOrders() }
-function goUsagePage(page) { if (page < 1 || page > usagePages.value) return; usagePageNum.value = page; loadUsage() }
-function goSimPage(page) { if (page < 1 || page > simPages.value) return; simPageNum.value = page; loadSim() }
-function goSimRechargePage(page) { if (page < 1 || page > simRechargePages.value) return; simRechargePageNum.value = page; loadSim() }
async function createOrder() { try { const order = await request.post(urls.TRAFFIC_ORDERS, { amountGb: Number(trafficAmount.value) || 1 }); ui.toast(`订单已创建,金额 ${money(order.totalPrice)},请等待管理员确认`); orderPageNum.value = 1; await loadOrders() } catch (error) { ui.toast(error.message || '创建订单失败') } }
async function saveProfile() { saving.value = true; try { const updated = await request.put(urls.ACCOUNT_PROFILE, editForm.value); profile.value = updated; userStore.user = { ...(userStore.user || {}), ...updated }; localStorage.setItem('user', JSON.stringify(userStore.user)); editOpen.value = false; ui.toast('账户资料已保存') } catch (error) { ui.toast(error.message || '保存账户资料失败') } finally { saving.value = false } }
onMounted(load)
@@ -261,7 +253,9 @@ onMounted(load)
color: #4e5f6b;
font-size: 12px;
}
-.recharge-modal.t-dialog .recharge-modal-footer {
- margin-top: 0;
+.recharge-modal.t-dialog .t-dialog__footer {
+ display: flex;
+ justify-content: flex-end;
+ gap: 8px;
}
diff --git a/src/views/DevicesView/DevicesView.vue b/src/views/DevicesView/DevicesView.vue
index 1f5e938..e5d5755 100644
--- a/src/views/DevicesView/DevicesView.vue
+++ b/src/views/DevicesView/DevicesView.vue
@@ -6,8 +6,8 @@
{{ updatedLabel }}
-
-
+
+ 添加机巢
@@ -34,7 +34,7 @@
-
+ 重置
@@ -78,10 +78,10 @@
{{ d.updated }} |
-
-
-
-
+ 固件升级
+ 远程控制
+ 详情
+ 删除
|
@@ -103,9 +103,9 @@
{{ d.updated }} |
-
-
-
+ 航线上传
+ 远程控制
+ 详情
|
@@ -116,11 +116,6 @@
@@ -137,7 +132,7 @@
{{ drawerRecord.code }}
-
+
@@ -169,7 +164,7 @@
- 绑定关系
+ 绑定关系
管理绑定
@@ -204,8 +199,8 @@
{{ addDockError }}
-
-
+ 取消
+ 确认添加
@@ -245,8 +240,8 @@
{{ firmwareError }}
-
-
+ 取消
+ {{ upgrading ? '下发中…' : '开始升级' }}
@@ -552,6 +547,16 @@ async function doUpgrade() {
.toolbar-group :deep(.t-select) {
flex-shrink: 0;
}
+.page-actions :deep(.t-button svg) {
+ width: 14px;
+ height: 14px;
+}
+.row-actions :deep(.t-button) {
+ height: 28px;
+}
+.drawer-section-title :deep(.t-button) {
+ font-size: 11px;
+}