fix: 操作
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 5m10s

This commit is contained in:
sexygoat
2026-04-27 18:34:02 +08:00
parent 030195d609
commit af3f38aba0
6 changed files with 75 additions and 115 deletions

View File

@@ -61,16 +61,16 @@
<template v-if="isAdminOrPlatform">
<div class="progress-text">
<span class="used"
>已使用真流量: {{ formatDataSize(scope.row.data_usage_mb || 0) }}</span
>已使用真流量: {{ formatDataSize(scope.row.real_used_mb || 0) }}</span
>
<span class="total"
>真流量总量: {{ formatDataSize(scope.row.data_limit_mb || 0) }}</span
>真流量总量: {{ formatDataSize(scope.row.real_total_mb || 0) }}</span
>
<span class="remaining"
>真流量剩余:
{{
formatDataSize(
(scope.row.data_limit_mb || 0) - (scope.row.data_usage_mb || 0)
(scope.row.real_total_mb || 0) - (scope.row.real_used_mb || 0)
)
}}</span
>
@@ -78,11 +78,11 @@
<ElProgress
style="margin-top: 4px"
:percentage="
getUsageProgress(scope.row.data_usage_mb || 0, scope.row.data_limit_mb || 0)
getUsageProgress(scope.row.real_used_mb || 0, scope.row.real_total_mb || 0)
"
:color="
getProgressColorByPercentage(
getUsageProgress(scope.row.data_usage_mb || 0, scope.row.data_limit_mb || 0)
getUsageProgress(scope.row.real_used_mb || 0, scope.row.real_total_mb || 0)
)
"
/>
@@ -91,15 +91,7 @@
>已使用虚流量: {{ formatDataSize(scope.row.virtual_used_mb || 0) }}</span
>
<span class="total"
>虚流量总量: {{ formatDataSize(scope.row.virtual_limit_mb || 0) }}</span
>
<span class="remaining"
>虚流量剩余:
{{
formatDataSize(
(scope.row.virtual_limit_mb || 0) - (scope.row.virtual_used_mb || 0)
)
}}</span
>停机阈值: {{ formatDataSize(scope.row.virtual_total_mb || 0) }}</span
>
</div>
<ElProgress
@@ -107,14 +99,14 @@
:percentage="
getUsageProgress(
scope.row.virtual_used_mb || 0,
scope.row.virtual_limit_mb || 0
scope.row.virtual_total_mb || 0
)
"
:color="
getProgressColorByPercentage(
getUsageProgress(
scope.row.virtual_used_mb || 0,
scope.row.virtual_limit_mb || 0
scope.row.virtual_total_mb || 0
)
)
"
@@ -128,18 +120,18 @@
formatDataSize(
scope.row.enable_virtual_data
? scope.row.virtual_used_mb || 0
: scope.row.data_usage_mb || 0
: scope.row.real_used_mb || 0
)
}}</span
>
<span class="total"
>总量: {{ formatDataSize(scope.row.data_limit_mb || 0) }}</span
>总量: {{ formatDataSize(scope.row.real_total_mb || 0) }}</span
>
<span class="remaining"
>剩余:
{{
formatDataSize(
(scope.row.data_limit_mb || 0) - (scope.row.data_usage_mb || 0)
(scope.row.real_total_mb || 0) - (scope.row.real_used_mb || 0)
)
}}</span
>
@@ -150,8 +142,8 @@
getUsageProgress(
scope.row.enable_virtual_data
? scope.row.virtual_used_mb || 0
: scope.row.data_usage_mb || 0,
scope.row.data_limit_mb || 0
: scope.row.real_used_mb || 0,
scope.row.real_total_mb || 0
)
"
:color="
@@ -159,8 +151,8 @@
getUsageProgress(
scope.row.enable_virtual_data
? scope.row.virtual_used_mb || 0
: scope.row.data_usage_mb || 0,
scope.row.data_limit_mb || 0
: scope.row.real_used_mb || 0,
scope.row.real_total_mb || 0
)
)
"