|
@@ -339,7 +339,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
getGameListNew.run({ sourceSystem }).then(res => {
|
|
|
const { gameList, parentGameList, superGameList } = res
|
|
|
// if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
|
|
|
- setGameList(gameList?.map((item: { id: any; game_name: any }) => ({ id: item.id, name: item.game_name })) || [])
|
|
|
+ setGameList(gameList?.map((item: { id: any; game_name: any }) => ({ id: item.id, name: item.game_name })) || [])
|
|
|
// }
|
|
|
setParentGameList(parentGameList)
|
|
|
setSuperGameList(superGameList)
|
|
@@ -382,7 +382,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
/** 推广渠道 */
|
|
|
useEffect(() => {
|
|
|
- if (isAgentId) {
|
|
|
+ if (isAgentId || isUserLastRegAgentId) {
|
|
|
if (['BG_OLD', 'BG_NEW', 'ZX_SDK'].includes(sourceSystem)) {
|
|
|
getAgentListNew.run({ sourceSystem }).then(res => {
|
|
|
setAgentData(res?.map((item: { agentName: any; agentId: any }) => ({ label: item.agentName, value: item.agentId })))
|
|
@@ -394,7 +394,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
})
|
|
|
}
|
|
|
}
|
|
|
- }, [isAgentId, sourceSystem])
|
|
|
+ }, [isAgentId, sourceSystem, isUserLastRegAgentId])
|
|
|
|
|
|
/** 游戏应用类型 */
|
|
|
useEffect(() => {
|
|
@@ -1119,7 +1119,6 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
showSearch
|
|
|
style={{ minWidth: 140 }}
|
|
|
allowClear
|
|
|
- dropdownMatchSelectWidth={false}
|
|
|
placeholder={'请选择渠道'}
|
|
|
loading={getChannelChoiceList.loading || getAgentListNew.loading}
|
|
|
filterOption={(input, option) =>
|
|
@@ -1506,7 +1505,18 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
{/* 玩家最新染色渠道ID */}
|
|
|
{isUserLastRegAgentId && <Col><Form.Item name='userLastRegAgentId'>
|
|
|
- <Input placeholder="最新染色渠道ID" allowClear style={{ width: 140 }} />
|
|
|
+ <Select
|
|
|
+ showSearch
|
|
|
+ style={{ minWidth: 140 }}
|
|
|
+ allowClear
|
|
|
+ placeholder={'玩家最新染色渠道'}
|
|
|
+ loading={getChannelChoiceList.loading || getAgentListNew.loading}
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ }
|
|
|
+ >
|
|
|
+ {agentData?.map((item: any) => <Select.Option value={item.value} key={item.value}>{item.label}</Select.Option>)}
|
|
|
+ </Select>
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 玩家最新染色时间 */}
|