|
|
|
@ -49,6 +49,11 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
|
const access: any = useAccess();
|
|
|
|
|
|
|
|
|
|
const columns: ProColumns<API.PbcUsers>[] = [
|
|
|
|
|
{
|
|
|
|
|
title: '会员类型',
|
|
|
|
|
dataIndex: 'pbcUserType',
|
|
|
|
|
valueEnum: Constants.pbcUserType
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '会员昵称',
|
|
|
|
|
dataIndex: 'pbcUserNickName',
|
|
|
|
@ -61,6 +66,7 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
|
title: '入口',
|
|
|
|
|
dataIndex: 'pbcUserSourceType',
|
|
|
|
|
search: false,
|
|
|
|
|
valueEnum: Constants.pbcUserSourceType
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: '会员等级',
|
|
|
|
@ -121,12 +127,18 @@ const TableList: React.FC<{}> = () => {
|
|
|
|
|
columns={columns}
|
|
|
|
|
actionRef={actionRef}
|
|
|
|
|
request={(param: any) => {
|
|
|
|
|
console.log(param)
|
|
|
|
|
let hasUserType = false
|
|
|
|
|
if (param.pbcUserType) {
|
|
|
|
|
param.pbcUserType = parseInt(param.pbcUserType)
|
|
|
|
|
hasUserType = true
|
|
|
|
|
}
|
|
|
|
|
const queryParam = handlePageQuery(param);
|
|
|
|
|
if (queryParam.filters) {
|
|
|
|
|
if (!hasUserType && queryParam.filters) {
|
|
|
|
|
queryParam.filters.push({
|
|
|
|
|
key: 'pbcUserType'.replace(/([A-Z])/g, '_$1').toLowerCase(),
|
|
|
|
|
value: 0,
|
|
|
|
|
action: '=',
|
|
|
|
|
value: 1,
|
|
|
|
|
action: '<=',
|
|
|
|
|
});
|
|
|
|
|
}
|
|
|
|
|
return fetchData(queryParam);
|
|
|
|
|