2
0

fix:AP设备界面中英适配

This commit is contained in:
zhongzm
2025-02-07 18:30:15 +08:00
parent a974a042b0
commit 5b4f4b4ae1
4 changed files with 53 additions and 17 deletions

View File

@@ -1,19 +1,19 @@
<template>
<ACard :bordered="false" class="search-card">
<AForm layout="inline">
<AFormItem label="设备名称">
<AFormItem :label="t('page.apdevice.apname')">
<AInput
v-model:value="model.name"
placeholder="请输入设备名称"
:placeholder="t('page.apdevice.pledevice')"
allow-clear
class="w-200px"
@pressEnter="search"
/>
</AFormItem>
<AFormItem label="MAC地址">
<AFormItem :label="t('page.apdevice.mac')">
<AInput
v-model:value="model.mac"
placeholder="请输入MAC地址"
:placeholder="t('page.apdevice.plemac')"
allow-clear
class="w-200px"
@pressEnter="search"
@@ -25,13 +25,13 @@
<template #icon>
<icon-mdi-search />
</template>
搜索
{{ t('page.apdevice.search') }}
</AButton>
<AButton @click="reset">
<template #icon>
<icon-mdi-refresh />
</template>
重置
{{ t('page.apdevice.reset') }}
</AButton>
</ASpace>
</AFormItem>
@@ -41,7 +41,8 @@
<script setup lang="ts">
import { Form as AForm, FormItem as AFormItem, Input as AInput, Button as AButton, Space as ASpace, Card as ACard } from 'ant-design-vue';
import { useI18n } from 'vue-i18n';
const { t } = useI18n();
interface Props {
model: {
name?: string;