fix: 终端管理当前列imsi排序

This commit is contained in:
TsMask
2023-12-06 17:30:13 +08:00
parent dd8dc63eab
commit f9016492be
4 changed files with 7 additions and 0 deletions

View File

@@ -72,12 +72,14 @@ let tableColumns: ColumnsType = [
{
title: 'IMSI',
dataIndex: 'imsi',
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
align: 'center',
width: 150,
},
{
title: 'MSISDN',
dataIndex: 'msisdn',
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
align: 'center',
width: 150,
},

View File

@@ -61,6 +61,7 @@ let tableColumns: ColumnsType = [
{
title: 'IMSI',
dataIndex: 'imsi',
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
align: 'center',
width: 150,
},

View File

@@ -82,6 +82,7 @@ let tableColumns: ColumnsType = [
{
title: 'MSISDN',
dataIndex: 'msisdn',
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
align: 'center',
width: 150,
},

View File

@@ -73,6 +73,7 @@ let tableColumns: ColumnsType = [
title: 'IMSI',
dataIndex: 'imsi',
align: 'center',
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
customRender(opt) {
const idx = opt.value.lastIndexOf('-');
if (idx != -1) {
@@ -81,11 +82,13 @@ let tableColumns: ColumnsType = [
return opt.value;
},
width: 150,
},
{
title: 'MSISDN',
dataIndex: 'msisdn',
align: 'center',
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
customRender(opt) {
const idx = opt.value.lastIndexOf('-');
if (idx != -1) {