2
0

fix:wlan界面增加字段

This commit is contained in:
zhongzm
2025-03-13 17:55:57 +08:00
parent 21969b9a33
commit 2508613b35
4 changed files with 23 additions and 2 deletions

View File

@@ -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',

View File

@@ -784,6 +784,8 @@ const local:any = {
ppskWithoutRadius: 'PPSK without RADIUS',
ppskWithRadius: 'PPSK with RADIUS',
},
portalEnable:'门户',
portalName:'门户名称',
band:'频段',
guestNetwork:'访客网络',
enable:'开启',

View File

@@ -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;

View File

@@ -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;