fix: 基站状态条件查询时只显示当前状态数量
This commit is contained in:
@@ -313,6 +313,7 @@ let modalState: ModalStateType = reactive({
|
|||||||
address: '',
|
address: '',
|
||||||
name: '',
|
name: '',
|
||||||
position: '',
|
position: '',
|
||||||
|
state: undefined,
|
||||||
},
|
},
|
||||||
confirmLoading: false,
|
confirmLoading: false,
|
||||||
});
|
});
|
||||||
@@ -481,6 +482,7 @@ onMounted(() => {
|
|||||||
v-model:value="queryParams.state"
|
v-model:value="queryParams.state"
|
||||||
:options="nbState"
|
:options="nbState"
|
||||||
:placeholder="t('common.selectPlease')"
|
:placeholder="t('common.selectPlease')"
|
||||||
|
@change="fnGetList"
|
||||||
/>
|
/>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
</a-col>
|
</a-col>
|
||||||
@@ -538,12 +540,25 @@ onMounted(() => {
|
|||||||
<template #extra>
|
<template #extra>
|
||||||
<a-space :size="8" align="center">
|
<a-space :size="8" align="center">
|
||||||
<div>
|
<div>
|
||||||
|
<template
|
||||||
|
v-if="
|
||||||
|
queryParams.state === undefined || queryParams.state === 'ON'
|
||||||
|
"
|
||||||
|
>
|
||||||
{{ t('views.neData.baseStation.online') }}:
|
{{ t('views.neData.baseStation.online') }}:
|
||||||
<strong style="color: green">{{ stateNum[0] }} </strong>
|
<strong style="color: green">{{ stateNum[0] }} </strong>
|
||||||
|
</template>
|
||||||
|
<template
|
||||||
|
v-if="
|
||||||
|
queryParams.state === undefined || queryParams.state === 'OFF'
|
||||||
|
"
|
||||||
|
>
|
||||||
|
|
||||||
{{ t('views.neData.baseStation.offline') }}:
|
{{ t('views.neData.baseStation.offline') }}:
|
||||||
<strong style="color: red">
|
<strong style="color: red">
|
||||||
{{ stateNum[1] }}
|
{{ stateNum[1] }}
|
||||||
</strong>
|
</strong>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<a-tooltip>
|
<a-tooltip>
|
||||||
<template #title>{{ t('common.reloadText') }}</template>
|
<template #title>{{ t('common.reloadText') }}</template>
|
||||||
@@ -627,6 +642,7 @@ onMounted(() => {
|
|||||||
</a-input>
|
</a-input>
|
||||||
</a-form-item>
|
</a-form-item>
|
||||||
<a-form-item
|
<a-form-item
|
||||||
|
v-if="!modalState.from.state"
|
||||||
:label="t('views.neData.baseStation.address')"
|
:label="t('views.neData.baseStation.address')"
|
||||||
name="address"
|
name="address"
|
||||||
v-bind="modalStateFrom.validateInfos.address"
|
v-bind="modalStateFrom.validateInfos.address"
|
||||||
|
|||||||
Reference in New Issue
Block a user