|
@@ -2,7 +2,7 @@ import { Button, Checkbox, Col, DatePicker, Form, Input, InputNumber, Radio, Row
|
|
import React, { useEffect, useState } from "react"
|
|
import React, { useEffect, useState } from "react"
|
|
import moment from "moment"
|
|
import moment from "moment"
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
-import { getAllOfOwnerUserApi, getChannelChoiceListApi, getGameChoiceListApi, getCpChoiceListApi, getGameChoiceParentListType1Api, getPayListApi, getSubUserWithSelfListApi, getTtAllUserListApi, getUserSystemTypeChoiceListApi, getUserVipLevelChoiceListApi, getRoleUserListApi, getGameServerListApi } from "@/services/gameData"
|
|
|
|
|
|
+import { getAllOfOwnerUserApi, getChannelChoiceListApi, getGameChoiceListApi, getCpChoiceListApi, getGameChoiceParentListType1Api, getPayListApi, getSubUserWithSelfListApi, getTtAllUserListApi, getUserSystemTypeChoiceListApi, getUserVipLevelChoiceListApi, getRoleUserListApi, getGameServerListApi, getGameListApi } from "@/services/gameData"
|
|
import { ActiveEnum, PayStatus, TYPE, gameClassifyEnum } from "./const"
|
|
import { ActiveEnum, PayStatus, TYPE, gameClassifyEnum } from "./const"
|
|
import { ADSTATUSEnum as ADSTTTATUSEnum } from "@/pages/gameDataStatistics/adlist/monitor/const"
|
|
import { ADSTATUSEnum as ADSTTTATUSEnum } from "@/pages/gameDataStatistics/adlist/monitor/const"
|
|
import { ADSTATUSEnum } from "@/pages/gameDataStatistics/adlist/tencentMonitor/const"
|
|
import { ADSTATUSEnum } from "@/pages/gameDataStatistics/adlist/tencentMonitor/const"
|
|
@@ -50,6 +50,8 @@ interface Props {
|
|
isOrderGameId?: boolean
|
|
isOrderGameId?: boolean
|
|
/** 是否开启 父游戏ID 搜索 */
|
|
/** 是否开启 父游戏ID 搜索 */
|
|
isParentId?: boolean
|
|
isParentId?: boolean
|
|
|
|
+ /** 是否开启 超父游戏ID 搜索 */
|
|
|
|
+ isSuperParentGameId?: boolean
|
|
/** 是否开启 是否合服 搜索 */
|
|
/** 是否开启 是否合服 搜索 */
|
|
isIsMergeServer?: boolean
|
|
isIsMergeServer?: boolean
|
|
/** 是否开启 游戏应用类型 搜索 */
|
|
/** 是否开启 游戏应用类型 搜索 */
|
|
@@ -207,7 +209,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
isGameRoleName, isFirstRecharge, isSwitch, isMerchantNo, isOrderId, isMerchantOrderNo, isPayStatus, isPayWay, isProductName, isRegAgent, isAgentId, isPutAgent, isRegDay, isOs, isParentId, isProjectId, isProjectName, isPromotionId, isPromotionName,
|
|
isGameRoleName, isFirstRecharge, isSwitch, isMerchantNo, isOrderId, isMerchantOrderNo, isPayStatus, isPayWay, isProductName, isRegAgent, isAgentId, isPutAgent, isRegDay, isOs, isParentId, isProjectId, isProjectName, isPromotionId, isPromotionName,
|
|
isSysUserName, isRechargeDate, isBGGameClassify, isGameUserId, isSysUserId, isUserName, isUserId, isSelectRanking, isGameType, isConsumeDay, rechargeDay, isBeginDay, isType, isAdTTStatus, isUserEnterType, isServerName, isServerId, isServerDay, isAdTXStatus,
|
|
isSysUserName, isRechargeDate, isBGGameClassify, isGameUserId, isSysUserId, isUserName, isUserId, isSelectRanking, isGameType, isConsumeDay, rechargeDay, isBeginDay, isType, isAdTTStatus, isUserEnterType, isServerName, isServerId, isServerDay, isAdTXStatus,
|
|
payTimeDay, placeAnOrderDay, isPayIntervalTime, isActiveTypes, isNickname, isMobile, isRegIp, isIsAuth, isIsBindMobile, isIsRecharge, isUserStatus, isCreateRole, isRoleCount, isVipLevel, isCreateRoleDay, isIsChange, isIsSendMail, isWeChatCompany, isWeChat,
|
|
payTimeDay, placeAnOrderDay, isPayIntervalTime, isActiveTypes, isNickname, isMobile, isRegIp, isIsAuth, isIsBindMobile, isIsRecharge, isUserStatus, isCreateRole, isRoleCount, isVipLevel, isCreateRoleDay, isIsChange, isIsSendMail, isWeChatCompany, isWeChat,
|
|
- isCustomerServerId, isOperatorId, isGsId, isServerIds, isRankingNum, isIsMergeServer
|
|
|
|
|
|
+ isCustomerServerId, isOperatorId, isGsId, isServerIds, isRankingNum, isIsMergeServer, isSuperParentGameId
|
|
} = props
|
|
} = props
|
|
const [form] = Form.useForm()
|
|
const [form] = Form.useForm()
|
|
const parentId = Form.useWatch('parentId', form)
|
|
const parentId = Form.useWatch('parentId', form)
|
|
@@ -217,6 +219,10 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
const [gsList, setGsList] = useState<any[]>([])
|
|
const [gsList, setGsList] = useState<any[]>([])
|
|
const [customerList, setCustomerList] = useState<any[]>([])
|
|
const [customerList, setCustomerList] = useState<any[]>([])
|
|
const [operateList, setOperateList] = useState<any[]>([])
|
|
const [operateList, setOperateList] = useState<any[]>([])
|
|
|
|
+ const [gameList, setGameList] = useState<any[]>([])
|
|
|
|
+ const [parentGameList, setParentGameList] = useState<any[]>([])
|
|
|
|
+ const [superGameList, setSuperGameList] = useState<any[]>([])
|
|
|
|
+
|
|
|
|
|
|
const getAllOfOwnerUser = useAjax(() => getAllOfOwnerUserApi())
|
|
const getAllOfOwnerUser = useAjax(() => getAllOfOwnerUserApi())
|
|
const getTtAllUserList = useAjax(() => getTtAllUserListApi())
|
|
const getTtAllUserList = useAjax(() => getTtAllUserListApi())
|
|
@@ -228,6 +234,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
const getCpChoiceList = useAjax(() => getCpChoiceListApi())
|
|
const getCpChoiceList = useAjax(() => getCpChoiceListApi())
|
|
const getPayList = useAjax(() => getPayListApi())
|
|
const getPayList = useAjax(() => getPayListApi())
|
|
const getUserVipLevelChoiceList = useAjax(() => getUserVipLevelChoiceListApi())
|
|
const getUserVipLevelChoiceList = useAjax(() => getUserVipLevelChoiceListApi())
|
|
|
|
+ const getGameList = useAjax(() => getGameListApi())
|
|
const getRoleUserList = useAjax((params) => getRoleUserListApi(params))
|
|
const getRoleUserList = useAjax((params) => getRoleUserListApi(params))
|
|
const getGameServerList = useAjax((params) => getGameServerListApi(params))
|
|
const getGameServerList = useAjax((params) => getGameServerListApi(params))
|
|
/**************************/
|
|
/**************************/
|
|
@@ -273,10 +280,17 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
/** 游戏列表 */
|
|
/** 游戏列表 */
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
- if (isGameId || isOrderGameId || isParentId || isGameIds) {
|
|
|
|
|
|
+ if (isGameId || isOrderGameId || isParentId || isGameIds || isSuperParentGameId) {
|
|
|
|
+ getGameList.run().then(res => {
|
|
|
|
+ console.log('res--->', res)
|
|
|
|
+ const { gameList, parentGameList, superGameList } = res
|
|
|
|
+ setGameList(gameList)
|
|
|
|
+ setParentGameList(parentGameList)
|
|
|
|
+ setSuperGameList(superGameList)
|
|
|
|
+ })
|
|
getGameChoiceList.run()
|
|
getGameChoiceList.run()
|
|
}
|
|
}
|
|
- }, [isGameId, isGameIds, isOrderGameId, isParentId])
|
|
|
|
|
|
+ }, [isGameId, isGameIds, isOrderGameId, isParentId, isSuperParentGameId])
|
|
|
|
|
|
useEffect(() => {
|
|
useEffect(() => {
|
|
if (isCpId) {
|
|
if (isCpId) {
|
|
@@ -641,6 +655,23 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
{getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
{getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
</Select>
|
|
</Select>
|
|
</Form.Item></Col>}
|
|
</Form.Item></Col>}
|
|
|
|
+
|
|
|
|
+ {/* 超父游戏ID */}
|
|
|
|
+ {isSuperParentGameId && <Col><Form.Item name='superParentGameId'>
|
|
|
|
+ <Select
|
|
|
|
+ maxTagCount={1}
|
|
|
|
+ showSearch
|
|
|
|
+ style={{ minWidth: 140 }}
|
|
|
|
+ allowClear
|
|
|
|
+ placeholder={'请选择超父游戏'}
|
|
|
|
+ filterOption={(input, option) =>
|
|
|
|
+ (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
|
+ }
|
|
|
|
+ >
|
|
|
|
+ {superGameList?.map((item: any) => <Select.Option value={item.super_game_id} key={item.super_game_id}>{item.super_game_name}</Select.Option>)}
|
|
|
|
+ </Select>
|
|
|
|
+ </Form.Item></Col>}
|
|
|
|
+
|
|
{/* 父游戏ID */}
|
|
{/* 父游戏ID */}
|
|
{isParentId && <Col><Form.Item name='parentId'>
|
|
{isParentId && <Col><Form.Item name='parentId'>
|
|
<Select
|
|
<Select
|
|
@@ -663,7 +694,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
}
|
|
}
|
|
}}
|
|
}}
|
|
>
|
|
>
|
|
- {getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id} data-super-id={item.superGameId}>{item.name}</Select.Option>)}
|
|
|
|
|
|
+ {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>)}
|
|
</Select>
|
|
</Select>
|
|
</Form.Item></Col>}
|
|
</Form.Item></Col>}
|
|
|
|
|
|
@@ -980,7 +1011,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
{/* 注册IP */}
|
|
{/* 注册IP */}
|
|
{isRankingNum && <Col><Form.Item name='rankingNum'>
|
|
{isRankingNum && <Col><Form.Item name='rankingNum'>
|
|
- <InputNumber placeholder="排名范围" />
|
|
|
|
|
|
+ <InputNumber placeholder="排名范围" min={1} />
|
|
</Form.Item></Col>}
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 是否充值 */}
|
|
{/* 是否充值 */}
|