fix: UDM用户数据表格调整

This commit is contained in:
TsMask
2023-11-25 19:03:51 +08:00
parent 8370598e17
commit af53fe1d89
2 changed files with 25 additions and 19 deletions

View File

@@ -87,21 +87,20 @@ let tableColumns: ColumnsType = [
title: 'IMSI', title: 'IMSI',
dataIndex: 'imsi', dataIndex: 'imsi',
align: 'left', align: 'left',
fixed: 'left',
width: 5,
sorter: true, sorter: true,
width: 200,
}, },
{ {
title: 'AMF', title: 'AMF',
dataIndex: 'amf', dataIndex: 'amf',
align: 'center', align: 'center',
width: 3, minWidth: 100,
}, },
{ {
title: 'Status', title: 'Status',
dataIndex: 'status', dataIndex: 'status',
align: 'center', align: 'center',
width: 2, minWidth: 100,
}, },
// { // {
// title: 'KI', // title: 'KI',
@@ -119,14 +118,13 @@ let tableColumns: ColumnsType = [
title: 'Algo Index', title: 'Algo Index',
dataIndex: 'algoIndex', dataIndex: 'algoIndex',
align: 'center', align: 'center',
width: 4, minWidth: 100,
}, },
{ {
title: t('common.operate'), title: t('common.operate'),
key: 'imsi', key: 'imsi',
align: 'center', align: 'center',
fixed: 'right', width: 100,
width: 2,
}, },
]; ];
@@ -860,8 +858,9 @@ onMounted(() => {
:size="tableState.size" :size="tableState.size"
:row-class-name="fnTableStriped" :row-class-name="fnTableStriped"
:pagination="tablePagination" :pagination="tablePagination"
:scroll="{ x: tableColumnsDnd.length * 100, y: 450 }" :scroll="{ y: 450 }"
@change="fnTableChange" @change="fnTableChange"
@resizeColumn="(w:number, col:any) => (col.width = w)"
> >
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'imsi'"> <template v-if="column.key === 'imsi'">

View File

@@ -91,71 +91,77 @@ let tableColumns: ColumnsType = [
dataIndex: 'imsi', dataIndex: 'imsi',
align: 'left', align: 'left',
fixed: 'left', fixed: 'left',
width: 3,
sorter: true, sorter: true,
resizable: true,
width: 150,
minWidth: 150,
maxWidth: 300,
}, },
{ {
title: 'MSISDN', title: 'MSISDN',
dataIndex: 'msisdn', dataIndex: 'msisdn',
align: 'left', align: 'left',
fixed: 'left', fixed: 'left',
width: 3,
sorter: true, sorter: true,
resizable: true,
width: 150,
minWidth: 150,
maxWidth: 300,
}, },
{ {
title: 'Subscribed AMBR Temp', title: 'Subscribed AMBR Temp',
dataIndex: 'ambr', dataIndex: 'ambr',
align: 'center', align: 'center',
width: 5, minWidth: 100,
}, },
{ {
title: 'Subscribed SNSSAIs Temp', title: 'Subscribed SNSSAIs Temp',
dataIndex: 'sar', dataIndex: 'sar',
align: 'center', align: 'center',
width: 5, minWidth: 100,
}, },
{ {
title: 'RAT Restriction', title: 'RAT Restriction',
dataIndex: 'rat', dataIndex: 'rat',
align: 'center', align: 'center',
width: 5, minWidth: 100,
}, },
{ {
title: 'Forbidden Areas Temp', title: 'Forbidden Areas Temp',
dataIndex: 'arfb', dataIndex: 'arfb',
align: 'center', align: 'center',
width: 5, minWidth: 100,
}, },
{ {
title: 'Service Area Restrict Temp', title: 'Service Area Restrict Temp',
dataIndex: 'nssai', dataIndex: 'nssai',
align: 'center', align: 'center',
width: 5, minWidth: 100,
}, },
{ {
title: 'CN Type Restriction', title: 'CN Type Restriction',
dataIndex: 'cn', dataIndex: 'cn',
align: 'center', align: 'center',
width: 3, minWidth: 100,
}, },
{ {
title: 'Subscribed Data', title: 'Subscribed Data',
dataIndex: 'smData', dataIndex: 'smData',
align: 'center', align: 'center',
width: 5, minWidth: 100,
}, },
{ {
title: 'EPS Flag', title: 'EPS Flag',
dataIndex: 'epsFlag', dataIndex: 'epsFlag',
align: 'center', align: 'center',
width: 2, minWidth: 100,
}, },
{ {
title: t('common.operate'), title: t('common.operate'),
key: 'imsi', key: 'imsi',
align: 'center', align: 'center',
fixed: 'right', fixed: 'right',
width: 2, width: 100,
}, },
]; ];
@@ -1093,6 +1099,7 @@ onMounted(() => {
:pagination="tablePagination" :pagination="tablePagination"
:scroll="{ x: tableColumnsDnd.length * 200, y: 450 }" :scroll="{ x: tableColumnsDnd.length * 200, y: 450 }"
@change="fnTableChange" @change="fnTableChange"
@resizeColumn="(w:number, col:any) => (col.width = w)"
> >
<template #bodyCell="{ column, record }"> <template #bodyCell="{ column, record }">
<template v-if="column.key === 'imsi'"> <template v-if="column.key === 'imsi'">