|
@@ -45,7 +45,8 @@ const GameServer: React.FC = () => {
|
|
|
game_supper_list_api.run()
|
|
|
getGameChoiceList.run()
|
|
|
}, [])
|
|
|
-
|
|
|
+ console.log(game_supper_list_api)
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
getGameServerList.run(queryFrom)
|
|
|
}, [queryFrom])
|
|
@@ -167,7 +168,7 @@ const GameServer: React.FC = () => {
|
|
|
<Space wrap>
|
|
|
<Button icon={<PlusOutlined />} type="primary" onClick={() => { setVisible(true); setInitialValues({ startTime: moment().add(90, 'd') }) }}>新增游戏区服</Button>
|
|
|
<Button icon={<PlusOutlined />} type="primary" onClick={() => { set_show(true) }}>新增合服</Button>
|
|
|
- <UploadExcel gameList={game_supper_list_api?.data?.data} onChange={() => getGameServerList.refresh()}/>
|
|
|
+ <UploadExcel gameList={game_supper_list_api?.data} onChange={() => getGameServerList.refresh()}/>
|
|
|
</Space>
|
|
|
|
|
|
<div className={`${style['small']}`}>
|
|
@@ -205,7 +206,7 @@ const GameServer: React.FC = () => {
|
|
|
{visible && <EditModal
|
|
|
visible={visible}
|
|
|
initialValues={initialValues}
|
|
|
- gameList={game_supper_list_api?.data?.data}
|
|
|
+ gameList={game_supper_list_api?.data}
|
|
|
onClose={() => { setVisible(false); setInitialValues({}) }}
|
|
|
onChange={() => {
|
|
|
setVisible(false);
|
|
@@ -240,7 +241,7 @@ const GameServer: React.FC = () => {
|
|
|
set_hfParams({ ...hfParmas, gameId: value })
|
|
|
}}
|
|
|
>
|
|
|
- {game_supper_list_api?.data?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
|
+ {game_supper_list_api?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
|
</Select>
|
|
|
</Space>
|
|
|
</Col>
|
|
@@ -270,7 +271,7 @@ const GameServer: React.FC = () => {
|
|
|
set_hfParams({ ...hfParmas, serverIdList: option })
|
|
|
}}
|
|
|
>
|
|
|
- {un_merge_server_list_api?.data?.data?.map((item: any) => <Select.Option value={item.serverId} key={item.serverId}>{item.serverName}</Select.Option>)}
|
|
|
+ {un_merge_server_list_api?.data?.map((item: any) => <Select.Option value={item.serverId} key={item.serverId}>{item.serverName}</Select.Option>)}
|
|
|
</Select>
|
|
|
</Space>
|
|
|
</Col>
|