完成地接社团列表排序的小记

feature/2.0-sales-trade
LiaoYijun 3 years ago
parent ff5bd311a5
commit d74f2b047b

@ -128,6 +128,79 @@ class CustomerServices {
if (json.errcode === 0) {
runInAction(() => {
this.groupList = json.result1;
const total1 = json.total1;
this.groupListColumns = [
{
title: '团名',
dataIndex: 'GRI_Name'
},
{
title: '人数',
dataIndex: 'COLI_PersonNum',
sorter: (a, b) => a.COLI_PersonNum - b.COLI_PersonNum,
children: [{
title: total1.COLI_PersonNum,
dataIndex: 'COLI_PersonNum'
}
]
},
{
title: '天数',
dataIndex: 'COLI_Days',
sorter: (a, b) => a.COLI_Days - b.COLI_Days,
children: [{
title: total1.COLI_Days,
dataIndex: 'COLI_Days'
}
]
},
{
title: '经过城市',
dataIndex: 'PassCity'
},
{
title: '地接社名称',
dataIndex: 'VendorName'
},
{
title: '导游',
dataIndex: 'GuideName'
},
{
title: '好评',
dataIndex: 'Good',
sorter: (a, b) => a.Good - b.Good,
children: [{
title: total1.Good,
dataIndex: 'Good'
}
]
},
{
title: '差评',
dataIndex: 'Bad',
sorter: (a, b) => a.Bad - b.Bad,
children: [{
title: total1.Bad,
dataIndex: 'Bad'
}
]
},
{
title: '评论内容',
dataIndex: 'ECI_Content'
},
{
title: '交易额',
dataIndex: 'totalcost',
sorter: (a, b) => a.totalcost - b.totalcost,
children: [{
title: total1.totalcost,
dataIndex: 'totalcost'
}
]
}
];
});
}
});
@ -179,11 +252,13 @@ class CustomerServices {
},
{
title: '人数',
dataIndex: 'COLI_PersonNum'
dataIndex: 'COLI_PersonNum',
sorter: (a, b) => a.COLI_PersonNum - b.COLI_PersonNum
},
{
title: '天数',
dataIndex: 'COLI_Days'
dataIndex: 'COLI_Days',
sorter: (a, b) => a.COLI_Days - b.COLI_Days
},
{
title: '经过城市',
@ -199,11 +274,13 @@ class CustomerServices {
},
{
title: '好评',
dataIndex: 'Good'
dataIndex: 'Good',
sorter: (a, b) => a.Good - b.Good
},
{
title: '差评',
dataIndex: 'Bad'
dataIndex: 'Bad',
sorter: (a, b) => a.Bad - b.Bad
},
{
title: '评论内容',
@ -211,7 +288,8 @@ class CustomerServices {
},
{
title: '交易额',
dataIndex: 'totalcost'
dataIndex: 'totalcost',
sorter: (a, b) => a.totalcost - b.totalcost
}
];

Loading…
Cancel
Save