fix: 终端管理当前列imsi排序
This commit is contained in:
@@ -72,12 +72,14 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: 'IMSI',
|
title: 'IMSI',
|
||||||
dataIndex: 'imsi',
|
dataIndex: 'imsi',
|
||||||
|
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'MSISDN',
|
title: 'MSISDN',
|
||||||
dataIndex: 'msisdn',
|
dataIndex: 'msisdn',
|
||||||
|
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -61,6 +61,7 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: 'IMSI',
|
title: 'IMSI',
|
||||||
dataIndex: 'imsi',
|
dataIndex: 'imsi',
|
||||||
|
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -82,6 +82,7 @@ let tableColumns: ColumnsType = [
|
|||||||
{
|
{
|
||||||
title: 'MSISDN',
|
title: 'MSISDN',
|
||||||
dataIndex: 'msisdn',
|
dataIndex: 'msisdn',
|
||||||
|
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
|
||||||
align: 'center',
|
align: 'center',
|
||||||
width: 150,
|
width: 150,
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -73,6 +73,7 @@ let tableColumns: ColumnsType = [
|
|||||||
title: 'IMSI',
|
title: 'IMSI',
|
||||||
dataIndex: 'imsi',
|
dataIndex: 'imsi',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
sorter: (a: any, b: any) => Number(a.imsi) - Number(b.imsi),
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
const idx = opt.value.lastIndexOf('-');
|
const idx = opt.value.lastIndexOf('-');
|
||||||
if (idx != -1) {
|
if (idx != -1) {
|
||||||
@@ -81,11 +82,13 @@ let tableColumns: ColumnsType = [
|
|||||||
return opt.value;
|
return opt.value;
|
||||||
},
|
},
|
||||||
width: 150,
|
width: 150,
|
||||||
|
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: 'MSISDN',
|
title: 'MSISDN',
|
||||||
dataIndex: 'msisdn',
|
dataIndex: 'msisdn',
|
||||||
align: 'center',
|
align: 'center',
|
||||||
|
sorter: (a: any, b: any) => Number(a.msisdn) - Number(b.msisdn),
|
||||||
customRender(opt) {
|
customRender(opt) {
|
||||||
const idx = opt.value.lastIndexOf('-');
|
const idx = opt.value.lastIndexOf('-');
|
||||||
if (idx != -1) {
|
if (idx != -1) {
|
||||||
|
|||||||
Reference in New Issue
Block a user