|
@@ -745,8 +745,21 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<Input placeholder="游戏名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 是否 开启 添加父游戏维度筛选 */}
|
|
|
- {isGameDimension && <Col><Form.Item name='gameDimension' valuePropName="checked">
|
|
|
- <Checkbox onChange={() => form.setFieldsValue({ gameId: undefined })}>是否父游戏</Checkbox>
|
|
|
+ {isGameDimension && <Col><Form.Item name='gameDimension'>
|
|
|
+ <Select
|
|
|
+ maxTagCount={1}
|
|
|
+ showSearch
|
|
|
+ style={{ width: 110 }}
|
|
|
+ allowClear
|
|
|
+ placeholder={'游戏维度'}
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ }
|
|
|
+ onChange={() => form.setFieldsValue({ gameId: undefined })}
|
|
|
+ >
|
|
|
+ <Select.Option value={1}>子游戏维度</Select.Option>
|
|
|
+ <Select.Option value={2}>父游戏维度</Select.Option>
|
|
|
+ </Select>
|
|
|
</Form.Item></Col>}
|
|
|
{/* 游戏ID搜索 */}
|
|
|
{isGameId && <Col><Form.Item name='gameId'>
|
|
@@ -777,7 +790,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
}
|
|
|
>
|
|
|
- {gameDimension ? parentGameList?.map((item: any) => <Select.Option value={item.parent_game_id} key={item.parent_game_id} data-super-id={item.super_game_id}>{item.parent_game_name}</Select.Option>) : getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
|
+ {gameDimension === 2 ? parentGameList?.map((item: any) => <Select.Option value={item.parent_game_id} key={item.parent_game_id} data-super-id={item.super_game_id}>{item.parent_game_name}</Select.Option>) : getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
|
</Select>
|
|
|
</Form.Item></Col>}
|
|
|
{/* 充值游戏ID */}
|
|
@@ -1039,7 +1052,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
{Object.keys(PayStatus).map(key => <Select.Option value={key} key={key}>{PayStatus[key]}</Select.Option>)}
|
|
|
</Select>
|
|
|
</Form.Item></Col>}
|
|
|
-
|
|
|
+
|
|
|
{/* 支付方式 */}
|
|
|
{isPayWay && <Col><Form.Item name='payWay'>
|
|
|
<Select
|