From cb7e3038fa6429e07b0f7f9b9706bdfd13b5175b Mon Sep 17 00:00:00 2001 From: zhongzm Date: Tue, 15 Apr 2025 20:54:59 +0800 Subject: [PATCH] =?UTF-8?q?feat:voip=E7=95=8C=E9=9D=A2=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BB=A5=E5=8F=8A=E7=94=A8=E6=88=B7=E5=90=8D?= =?UTF-8?q?=E9=99=90=E5=88=B6=E6=95=B0=E5=AD=97=E8=BE=93=E5=85=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/i18n/locales/zh-CN.ts | 2 +- src/views/neUser/voip/index.vue | 24 ++++++++---------------- 2 files changed, 9 insertions(+), 17 deletions(-) diff --git a/src/i18n/locales/zh-CN.ts b/src/i18n/locales/zh-CN.ts index bf1328be..64bc2d97 100644 --- a/src/i18n/locales/zh-CN.ts +++ b/src/i18n/locales/zh-CN.ts @@ -764,7 +764,7 @@ export default { delSure:'确认删除IMSI编号为: {imsi} 的用户吗?', imsiConfirm:'IMSI的长度必须为15', passwordTip:'密码长度为5~32位', - usernameTip:'用户名长度为1~32位', + usernameTip:'用户名长度为1~32位数字', startUserName:'起始用户名', }, sub: { diff --git a/src/views/neUser/voip/index.vue b/src/views/neUser/voip/index.vue index c6825462..39d154b0 100644 --- a/src/views/neUser/voip/index.vue +++ b/src/views/neUser/voip/index.vue @@ -96,18 +96,9 @@ let tableColumns = ref([ dataIndex: 'password', align: 'center', width: 120, - }, - { - title: 'Tenant ID', - dataIndex: 'tenantID', - align: 'center', - width: 120, - }, - { - title: 'Tenant Name', - dataIndex: 'tenantName', - align: 'center', - width: 120, + customRender(opt) { + return opt.value ? '*'.repeat(opt.value.length) : ''; + }, }, // { // title: 'NEID', @@ -204,7 +195,7 @@ let modalState: ModalStateType = reactive({ from: { num: 1, id: '', - userName: '', + userName: 1, password: '', }, BatchDelForm: { @@ -228,6 +219,7 @@ const modalStateFrom = Form.useForm( userName: [ { required: true, message: 'UserName' + t('common.unableNull') }, { min: 1, max: 32, message: t('views.neUser.auth.usernameTip') }, + { pattern: /^\d+$/, message: t('views.neUser.auth.usernameTip') } ], password: [ { required: true, message: 'Password' + t('common.unableNull') }, @@ -459,7 +451,7 @@ function fnRecordExport(type: string = 'txt') { .then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success(t('common.msgSuccess', { msg: t('common.export') }), 3); - saveAs(res.data, `UDMAuth_select_${Date.now()}.${type}`); + saveAs(res.data, `UDMVoip_select_${Date.now()}.${type}`); } else { message.error(`${res.msg}`, 3); } @@ -478,7 +470,7 @@ function fnExportList(type: string) { .then(res => { if (res.code === RESULT_CODE_SUCCESS) { message.success(t('common.msgSuccess', { msg: t('common.export') }), 3); - saveAs(res.data, `UDMAuth_${Date.now()}.${type}`); + saveAs(res.data, `UDMVoip_${Date.now()}.${type}`); } else { message.error(`${res.msg}`, 3); } @@ -877,7 +869,7 @@ onMounted(() => {