diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts
index 46089d3..a728131 100644
--- a/src/locales/langs/en-us.ts
+++ b/src/locales/langs/en-us.ts
@@ -711,6 +711,7 @@ const local: any = {
aptitle:'AP Device Management',
online:'Online',
outline:'Offline',
+ pending:'Pending',
apname:'Device Name',
ip:'IP',
mac:'MAC',
@@ -765,10 +766,13 @@ const local: any = {
name:'SSID Name',
security:'Security',
none:'None',
- wpaEnterprise:'WPA-Enterprise',
- wpaPersonal:'WPA-Personal',
- ppskWithoutRadius:'PPSK without RADIUS',
- ppskWithRadius:'PPSK with RADIUS',
+ security: {
+ security:'Security',
+ wpaEnterprise: 'WPA-Enterprise',
+ wpaPersonal: 'WPA-Personal',
+ ppskWithoutRadius: 'PPSK without RADIUS',
+ ppskWithRadius: 'PPSK with RADIUS',
+ },
band:'Band',
guestNetwork:'Guest Network',
enable:'Enable',
diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts
index 6bfd1f5..bae15cb 100644
--- a/src/locales/langs/zh-cn.ts
+++ b/src/locales/langs/zh-cn.ts
@@ -711,6 +711,7 @@ const local:any = {
aptitle:'AP设备管理',
online:'在线',
outline:'离线',
+ pending:'待定',
apname:'设备名称',
ip:'IP地址',
mac:'MAC地址',
diff --git a/src/views/device/apdevice/index.vue b/src/views/device/apdevice/index.vue
index a7b09ba..b3c86be 100644
--- a/src/views/device/apdevice/index.vue
+++ b/src/views/device/apdevice/index.vue
@@ -66,8 +66,8 @@
>
-
- {{ record.status === 1 ? t('page.apdevice.online') : t('page.apdevice.outline') }}
+
+ {{ getStatusText(record.status) }}
@@ -99,7 +99,7 @@
-
+
@@ -709,6 +709,29 @@ const configFormRef = ref();
onMounted(() => {
getSiteList();
});
+// 获取状态对应的颜色
+const getStatusColor = (status: number) => {
+ switch (status) {
+ case 1:
+ return 'success';
+ case 2:
+ return 'warning';
+ default:
+ return 'error';
+ }
+};
+
+// 获取状态对应的文本
+const getStatusText = (status: number) => {
+ switch (status) {
+ case 1:
+ return t('page.apdevice.online');
+ case 2:
+ return t('page.apdevice.pending');
+ default:
+ return t('page.apdevice.outline');
+ }
+};