fix: 基站状态条件查询时只显示当前状态数量

This commit is contained in:
TsMask
2025-01-17 15:29:44 +08:00
parent 2164ffc9b2
commit 8adf2a3dd0

View File

@@ -313,6 +313,7 @@ let modalState: ModalStateType = reactive({
address: '',
name: '',
position: '',
state: undefined,
},
confirmLoading: false,
});
@@ -481,6 +482,7 @@ onMounted(() => {
v-model:value="queryParams.state"
:options="nbState"
:placeholder="t('common.selectPlease')"
@change="fnGetList"
/>
</a-form-item>
</a-col>
@@ -538,12 +540,25 @@ onMounted(() => {
<template #extra>
<a-space :size="8" align="center">
<div>
{{ t('views.neData.baseStation.online') }}:
<strong style="color: green">{{ stateNum[0] }} </strong>
{{ t('views.neData.baseStation.offline') }}:
<strong style="color: red">
{{ stateNum[1] }}
</strong>
<template
v-if="
queryParams.state === undefined || queryParams.state === 'ON'
"
>
{{ t('views.neData.baseStation.online') }}:
<strong style="color: green">{{ stateNum[0] }} </strong>
</template>
<template
v-if="
queryParams.state === undefined || queryParams.state === 'OFF'
"
>
&nbsp;
{{ t('views.neData.baseStation.offline') }}:
<strong style="color: red">
{{ stateNum[1] }}
</strong>
</template>
</div>
<a-tooltip>
<template #title>{{ t('common.reloadText') }}</template>
@@ -627,6 +642,7 @@ onMounted(() => {
</a-input>
</a-form-item>
<a-form-item
v-if="!modalState.from.state"
:label="t('views.neData.baseStation.address')"
name="address"
v-bind="modalStateFrom.validateInfos.address"