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

This commit is contained in:
sexygoat
2026-05-11 15:51:50 +08:00
parent 766497dc31
commit 1990a3ccba
40 changed files with 832 additions and 127 deletions

View File

@@ -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>

View File

@@ -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(

View File

@@ -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

View File

@@ -390,7 +390,6 @@
color: var(--el-text-color-primary, #374151);
}
}
}
.pagination-wrapper {

View File

@@ -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
}