feat:voip界面显示修复以及用户名限制数字输入
This commit is contained in:
@@ -764,7 +764,7 @@ export default {
|
||||
delSure:'确认删除IMSI编号为: {imsi} 的用户吗?',
|
||||
imsiConfirm:'IMSI的长度必须为15',
|
||||
passwordTip:'密码长度为5~32位',
|
||||
usernameTip:'用户名长度为1~32位',
|
||||
usernameTip:'用户名长度为1~32位数字',
|
||||
startUserName:'起始用户名',
|
||||
},
|
||||
sub: {
|
||||
|
||||
@@ -96,18 +96,9 @@ let tableColumns = ref<ColumnsType>([
|
||||
dataIndex: 'password',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
customRender(opt) {
|
||||
return opt.value ? '*'.repeat(opt.value.length) : '';
|
||||
},
|
||||
{
|
||||
title: 'Tenant ID',
|
||||
dataIndex: 'tenantID',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
},
|
||||
{
|
||||
title: 'Tenant Name',
|
||||
dataIndex: 'tenantName',
|
||||
align: 'center',
|
||||
width: 120,
|
||||
},
|
||||
// {
|
||||
// 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(() => {
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<TableColumnsDnd
|
||||
cache-id="udmAuthData"
|
||||
cache-id="voipData"
|
||||
:columns="tableColumns"
|
||||
v-model:columns-dnd="tableColumnsDnd"
|
||||
></TableColumnsDnd>
|
||||
|
||||
Reference in New Issue
Block a user