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