|
@@ -6,16 +6,17 @@ import React, { useEffect, useState } from 'react';
|
|
|
interface Props {
|
|
|
country: string
|
|
|
serverId: string
|
|
|
+ countryLevel: number
|
|
|
}
|
|
|
/**
|
|
|
* 帮派成员
|
|
|
* @returns
|
|
|
*/
|
|
|
-const CountryList: React.FC<Props> = ({ country, serverId }) => {
|
|
|
+const CountryList: React.FC<Props> = ({ country, serverId, countryLevel }) => {
|
|
|
|
|
|
/*********************************/
|
|
|
const [visible, setVisible] = useState<boolean>(false)
|
|
|
- const [queryForm, setQueryForm] = useState<getGameCountryRoleListProps>({ country, serverId, pageNum: 1, pageSize: 20 })
|
|
|
+ const [queryForm, setQueryForm] = useState<getGameCountryRoleListProps>({ country, serverId, countryLevel, pageNum: 1, pageSize: 20 })
|
|
|
|
|
|
const getGameCountryRoleList = useAjax((params) => getGameCountryRoleListApi(params))
|
|
|
/*********************************/
|
|
@@ -42,6 +43,11 @@ const CountryList: React.FC<Props> = ({ country, serverId }) => {
|
|
|
loading={getGameCountryRoleList.loading}
|
|
|
rowKey={'roleId'}
|
|
|
scroll={{ x: 500 }}
|
|
|
+ pagination={{
|
|
|
+ total: getGameCountryRoleList?.data?.total,
|
|
|
+ pageSize: getGameCountryRoleList?.data?.size,
|
|
|
+ current: getGameCountryRoleList?.data?.current
|
|
|
+ }}
|
|
|
columns={[
|
|
|
{
|
|
|
title: '角色名称',
|