feat:UDMIMS界面显示修复
This commit is contained in:
@@ -113,26 +113,6 @@ let tableColumns = ref<ColumnsType>([
|
||||
sorter: true,
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'NEID',
|
||||
dataIndex: 'neId',
|
||||
align: 'center',
|
||||
sorter: true,
|
||||
width: 100,
|
||||
},
|
||||
{
|
||||
title: 'Tenant ID',
|
||||
dataIndex: 'tenantID',
|
||||
align: 'center',
|
||||
sorter: true,
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'Tenant Name',
|
||||
dataIndex: 'tenantName',
|
||||
align: 'center',
|
||||
width: 150,
|
||||
},
|
||||
{
|
||||
title: 'VNI',
|
||||
dataIndex: 'vni',
|
||||
@@ -330,27 +310,6 @@ const modalStateFrom = Form.useForm(
|
||||
})
|
||||
);
|
||||
|
||||
function fnTenantNameFocus() {
|
||||
Promise.allSettled([listTenant({ parentId: 0 })]).then(resArr => {
|
||||
if (resArr[0].status === 'fulfilled') {
|
||||
var tenantNameData = resArr[0].value;
|
||||
if (
|
||||
tenantNameData.code === RESULT_CODE_SUCCESS &&
|
||||
Array.isArray(tenantNameData.data)
|
||||
) {
|
||||
modalStateFromOption.tenantName = []; //上面置为空数组时会报错 故在此
|
||||
tenantNameData.data.forEach((item: any) => {
|
||||
if (item.parentId === '0') {
|
||||
modalStateFromOption.tenantName.push({
|
||||
value: item.tenantName,
|
||||
label: item.tenantName,
|
||||
});
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
});
|
||||
}
|
||||
/**对话框内批量删除表单属性和校验规则 */
|
||||
const modalStateBatchDelFrom = Form.useForm(
|
||||
modalState.BatchDelForm,
|
||||
@@ -594,7 +553,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, `UDMIMS_select_${Date.now()}.${type}`);
|
||||
} else {
|
||||
message.error(`${res.msg}`, 3);
|
||||
}
|
||||
@@ -613,7 +572,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, `UDMIMS_${Date.now()}.${type}`);
|
||||
} else {
|
||||
message.error(`${res.msg}`, 3);
|
||||
}
|
||||
@@ -675,7 +634,6 @@ function fnGetList(pageNum?: number) {
|
||||
const toBack: any = {
|
||||
imsi: imsiMatchRule[queryParams.imsiMatch] || '',
|
||||
msisdn: queryParams.msisdn,
|
||||
tenantName: queryParams.tenantName,
|
||||
sortField: queryParams.sortField,
|
||||
sortOrder: queryParams.sortOrder,
|
||||
pageNum: queryParams.pageNum,
|
||||
@@ -899,18 +857,6 @@ onMounted(() => {
|
||||
</a-select>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="12" :xs="24">
|
||||
<a-form-item
|
||||
:label="t('views.neUser.sub.tenantName')"
|
||||
name="tenantName"
|
||||
>
|
||||
<a-auto-complete
|
||||
v-model:value="queryParams.tenantName"
|
||||
:options="modalStateFromOption.tenantName"
|
||||
@focus="fnTenantNameFocus"
|
||||
></a-auto-complete>
|
||||
</a-form-item>
|
||||
</a-col>
|
||||
<a-col :lg="6" :md="12" :xs="24">
|
||||
<a-form-item>
|
||||
<a-space :size="8">
|
||||
@@ -1041,7 +987,7 @@ onMounted(() => {
|
||||
</a-button>
|
||||
</a-tooltip>
|
||||
<TableColumnsDnd
|
||||
cache-id="udmAuthData"
|
||||
cache-id="imsData"
|
||||
:columns="tableColumns"
|
||||
v-model:columns-dnd="tableColumnsDnd"
|
||||
></TableColumnsDnd>
|
||||
|
||||
Reference in New Issue
Block a user