|
@@ -213,6 +213,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
} = props
|
|
} = props
|
|
const [form] = Form.useForm()
|
|
const [form] = Form.useForm()
|
|
const parentId = Form.useWatch('parentId', form)
|
|
const parentId = Form.useWatch('parentId', form)
|
|
|
|
+ const superParentGameId = Form.useWatch('superParentGameId', form)
|
|
const isMergeServer = Form.useWatch('isMergeServer', form)
|
|
const isMergeServer = Form.useWatch('isMergeServer', form)
|
|
const [accountList, setAccountList] = useState<any[]>([])
|
|
const [accountList, setAccountList] = useState<any[]>([])
|
|
const [userIdList, setUserIdList] = useState<any[]>([])
|
|
const [userIdList, setUserIdList] = useState<any[]>([])
|
|
@@ -663,10 +664,19 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
showSearch
|
|
showSearch
|
|
style={{ minWidth: 140 }}
|
|
style={{ minWidth: 140 }}
|
|
allowClear
|
|
allowClear
|
|
|
|
+ disabled={parentId}
|
|
placeholder={'请选择超父游戏'}
|
|
placeholder={'请选择超父游戏'}
|
|
filterOption={(input, option) =>
|
|
filterOption={(input, option) =>
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
}
|
|
}
|
|
|
|
+ onChange={(e) => {
|
|
|
|
+ if (isServerIds && e) {
|
|
|
|
+ form.setFieldsValue({ serverIds: undefined })
|
|
|
|
+ getGameServerList.run({ gameId: e })
|
|
|
|
+ } else {
|
|
|
|
+ getGameServerList?.data && getGameServerList.mutate([])
|
|
|
|
+ }
|
|
|
|
+ }}
|
|
>
|
|
>
|
|
{superGameList?.map((item: any) => <Select.Option value={item.super_game_id} key={item.super_game_id}>{item.super_game_name}</Select.Option>)}
|
|
{superGameList?.map((item: any) => <Select.Option value={item.super_game_id} key={item.super_game_id}>{item.super_game_name}</Select.Option>)}
|
|
</Select>
|
|
</Select>
|
|
@@ -679,6 +689,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
showSearch
|
|
showSearch
|
|
style={{ minWidth: 140 }}
|
|
style={{ minWidth: 140 }}
|
|
allowClear
|
|
allowClear
|
|
|
|
+ disabled={superParentGameId}
|
|
placeholder={'请选择父游戏'}
|
|
placeholder={'请选择父游戏'}
|
|
filterOption={(input, option) =>
|
|
filterOption={(input, option) =>
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -698,7 +709,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
</Select>
|
|
</Select>
|
|
</Form.Item></Col>}
|
|
</Form.Item></Col>}
|
|
|
|
|
|
- {parentId && <>
|
|
|
|
|
|
+ {(parentId || superParentGameId) && <>
|
|
{/* 区服id */}
|
|
{/* 区服id */}
|
|
{isServerIds && <Col><Form.Item name='serverIds'>
|
|
{isServerIds && <Col><Form.Item name='serverIds'>
|
|
<Select
|
|
<Select
|