From 2508613b35e16f89f348a5c559af76d4a6209d0f Mon Sep 17 00:00:00 2001 From: zhongzm Date: Thu, 13 Mar 2025 17:55:57 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9Awlan=E7=95=8C=E9=9D=A2=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E5=AD=97=E6=AE=B5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/locales/langs/en-us.ts | 2 ++ src/locales/langs/zh-cn.ts | 2 ++ src/views/device/wlan/index.vue | 20 ++++++++++++++++++- .../user-center/kyc/modules/kyc-search.vue | 1 - 4 files changed, 23 insertions(+), 2 deletions(-) diff --git a/src/locales/langs/en-us.ts b/src/locales/langs/en-us.ts index 3812858..9ad73ef 100644 --- a/src/locales/langs/en-us.ts +++ b/src/locales/langs/en-us.ts @@ -783,6 +783,8 @@ const local: any = { ppskWithoutRadius: 'PPSK without RADIUS', ppskWithRadius: 'PPSK with RADIUS', }, + portalEnable:'Portal', + portalName:'Portal Name', band:'Band', guestNetwork:'Guest Network', enable:'Enable', diff --git a/src/locales/langs/zh-cn.ts b/src/locales/langs/zh-cn.ts index ec63f6c..4f2b2ca 100644 --- a/src/locales/langs/zh-cn.ts +++ b/src/locales/langs/zh-cn.ts @@ -784,6 +784,8 @@ const local:any = { ppskWithoutRadius: 'PPSK without RADIUS', ppskWithRadius: 'PPSK with RADIUS', }, + portalEnable:'门户', + portalName:'门户名称', band:'频段', guestNetwork:'访客网络', enable:'开启', diff --git a/src/views/device/wlan/index.vue b/src/views/device/wlan/index.vue index 162d34c..3e244f0 100644 --- a/src/views/device/wlan/index.vue +++ b/src/views/device/wlan/index.vue @@ -334,6 +334,24 @@ const { return text ? t('page.wlan.enable') : t('page.wlan.disable'); } }, + { + title: t('page.wlan.portalEnable'), + dataIndex: 'portalEnable', + key: 'portalEnabel', + width: 120, + customRender: ({ text }: { text: boolean }) => { + return text ? '√' : '-'; + } + }, + { + title: t('page.wlan.portalName'), + dataIndex: 'portalName', + key: 'portalName', + width: 120, + customRender: ({ text, record }: { text: string | null, record: Api.Wlan.WlanSsid }) => { + return record.portalEnable ? (text || '-') : '-'; + } + }, { title: 'VLAN', dataIndex: 'vlanId', @@ -547,7 +565,7 @@ const handleEdit = async (record: Api.Wlan.WlanSsid) => { security: data.security, broadcast: data.broadcast, vlanEnable: data.vlanEnable, - vlanId: data.vlanId + vlanId: data.vlanId, }; editVisible.value = true; diff --git a/src/views/user-center/kyc/modules/kyc-search.vue b/src/views/user-center/kyc/modules/kyc-search.vue index 074dde4..e11055b 100644 --- a/src/views/user-center/kyc/modules/kyc-search.vue +++ b/src/views/user-center/kyc/modules/kyc-search.vue @@ -63,7 +63,6 @@ import type { FormInstance } from 'ant-design-vue'; import { useI18n } from 'vue-i18n'; const { t } = useI18n(); const ARangePicker = DatePicker.RangePicker; -import dayjs, { Dayjs } from 'dayjs'; interface SearchModel { pageNum: number;