This commit is contained in:
@@ -33,7 +33,9 @@
|
||||
|
||||
<!-- 操作按钮组 -->
|
||||
<div v-if="hasCardInfo" class="operation-button-group">
|
||||
<ElButton @click="handleRefresh" type="primary" :icon="Refresh" :disabled="refreshDisabled"> 刷新 </ElButton>
|
||||
<ElButton @click="handleRefresh" type="primary" :icon="Refresh" :disabled="refreshDisabled">
|
||||
刷新
|
||||
</ElButton>
|
||||
</div>
|
||||
</div>
|
||||
</ElCard>
|
||||
|
||||
@@ -166,7 +166,10 @@
|
||||
<div class="flow-progress-bar" style="margin-top: 16px">
|
||||
<ElProgress
|
||||
:percentage="
|
||||
getUsageProgress(getDisplayedUsedMb(currentPackage), getDisplayedTotalMb(currentPackage))
|
||||
getUsageProgress(
|
||||
getDisplayedUsedMb(currentPackage),
|
||||
getDisplayedTotalMb(currentPackage)
|
||||
)
|
||||
"
|
||||
:color="
|
||||
getProgressColorByPercentage(
|
||||
|
||||
@@ -145,23 +145,13 @@
|
||||
<template v-else>
|
||||
<div class="progress-text">
|
||||
<span class="used"
|
||||
>已使用:
|
||||
{{
|
||||
formatDataSize(
|
||||
getDisplayedUsedMb(scope.row)
|
||||
)
|
||||
}}</span
|
||||
>已使用: {{ formatDataSize(getDisplayedUsedMb(scope.row)) }}</span
|
||||
>
|
||||
<span class="total"
|
||||
>总量: {{ formatDataSize(scope.row.real_total_mb || 0) }}</span
|
||||
>
|
||||
<span class="remaining"
|
||||
>剩余:
|
||||
{{
|
||||
formatDataSize(
|
||||
getDisplayedRemainingMb(scope.row)
|
||||
)
|
||||
}}</span
|
||||
>剩余: {{ formatDataSize(getDisplayedRemainingMb(scope.row)) }}</span
|
||||
>
|
||||
</div>
|
||||
<ElProgress
|
||||
|
||||
@@ -390,7 +390,6 @@
|
||||
color: var(--el-text-color-primary, #374151);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
.pagination-wrapper {
|
||||
|
||||
@@ -146,9 +146,7 @@
|
||||
set: (value) => emit('update:modelValue', value)
|
||||
})
|
||||
|
||||
const currentModeValue = computed<0 | 1>(() =>
|
||||
Number(props.currentMode) === 1 ? 1 : 0
|
||||
)
|
||||
const currentModeValue = computed<0 | 1>(() => (Number(props.currentMode) === 1 ? 1 : 0))
|
||||
|
||||
const availableCards = computed(() => props.cards || [])
|
||||
|
||||
@@ -157,7 +155,9 @@
|
||||
const syncFormState = () => {
|
||||
form.switch_mode = currentModeValue.value
|
||||
|
||||
const selectedStillExists = availableCards.value.some((card) => card.iot_card_id === form.iot_card_id)
|
||||
const selectedStillExists = availableCards.value.some(
|
||||
(card) => card.iot_card_id === form.iot_card_id
|
||||
)
|
||||
if (!selectedStillExists) {
|
||||
form.iot_card_id = availableCards.value[0]?.iot_card_id
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user