|
@@ -2,7 +2,7 @@ import { Button, Col, DatePicker, Form, Input, Radio, Row, Select, Space } from
|
|
|
import React, { useEffect, useState } from "react"
|
|
|
import moment from "moment"
|
|
|
import { useAjax } from "@/Hook/useAjax"
|
|
|
-import { getAllOfOwnerUserApi, getChannelChoiceListApi, getGameChoiceListApi, getCpChoiceListApi, getGameChoiceParentListType1Api, getPayListApi, getSubUserWithSelfListApi, getTtAllUserListApi, getUserSystemTypeChoiceListApi, getUserVipLevelChoiceListApi, getRoleUserListApi } from "@/services/gameData"
|
|
|
+import { getAllOfOwnerUserApi, getChannelChoiceListApi, getGameChoiceListApi, getCpChoiceListApi, getGameChoiceParentListType1Api, getPayListApi, getSubUserWithSelfListApi, getTtAllUserListApi, getUserSystemTypeChoiceListApi, getUserVipLevelChoiceListApi, getRoleUserListApi, getGameServerListApi } from "@/services/gameData"
|
|
|
import { ActiveEnum, PayStatus, TYPE, gameClassifyEnum } from "./const"
|
|
|
import { ADSTATUSEnum as ADSTTTATUSEnum } from "@/pages/gameDataStatistics/adlist/monitor/const"
|
|
|
import { ADSTATUSEnum } from "@/pages/gameDataStatistics/adlist/tencentMonitor/const"
|
|
@@ -182,9 +182,14 @@ interface Props {
|
|
|
isWeChatCompany?: boolean
|
|
|
/** 是否开启 企业微信号 搜索 */
|
|
|
isWeChat?: boolean
|
|
|
+ /** 是否开启 客服 搜索*/
|
|
|
isCustomerServerId?: boolean
|
|
|
+ /** 是否开启 运营 搜索 */
|
|
|
isOperatorId?: boolean
|
|
|
+ /** 是否开启GS 搜索 */
|
|
|
isGsId?: boolean
|
|
|
+ /** 是否开启多个区服id搜索 */
|
|
|
+ isServerIds?: boolean
|
|
|
}
|
|
|
/**
|
|
|
* 游戏数据系统 请求参数
|
|
@@ -198,9 +203,10 @@ 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,
|
|
|
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,
|
|
|
- isCustomerServerId, isOperatorId, isGsId
|
|
|
+ isCustomerServerId, isOperatorId, isGsId, isServerIds
|
|
|
} = props
|
|
|
const [form] = Form.useForm()
|
|
|
+ const parentId = Form.useWatch('parentId', form)
|
|
|
const [accountList, setAccountList] = useState<any[]>([])
|
|
|
const [userIdList, setUserIdList] = useState<any[]>([])
|
|
|
const [gsList, setGsList] = useState<any[]>([])
|
|
@@ -218,6 +224,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
const getPayList = useAjax(() => getPayListApi())
|
|
|
const getUserVipLevelChoiceList = useAjax(() => getUserVipLevelChoiceListApi())
|
|
|
const getRoleUserList = useAjax((params) => getRoleUserListApi(params))
|
|
|
+ const getGameServerList = useAjax((params) => getGameServerListApi(params))
|
|
|
/**************************/
|
|
|
|
|
|
useEffect(() => {
|
|
@@ -237,6 +244,12 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
}
|
|
|
}, [isCustomerServerId, isOperatorId, isGsId])
|
|
|
|
|
|
+ useEffect(() => {
|
|
|
+ if (isServerIds && parentId) {
|
|
|
+ getGameServerList.run({ gameId: parentId })
|
|
|
+ }
|
|
|
+ }, [isServerIds, parentId])
|
|
|
+
|
|
|
useEffect(() => {
|
|
|
if (isAccountId) {
|
|
|
// 请求广告账号列表
|
|
@@ -651,6 +664,22 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
{getGameChoiceList?.data?.map((item: any) => <Select.Option value={item.id} key={item.id}>{item.name}</Select.Option>)}
|
|
|
</Select>
|
|
|
</Form.Item></Col>}
|
|
|
+ {/* 区服id */}
|
|
|
+ {isServerIds && parentId && <Col><Form.Item name='serverIds'>
|
|
|
+ <Select
|
|
|
+ maxTagCount={1}
|
|
|
+ mode="multiple"
|
|
|
+ showSearch
|
|
|
+ style={{ minWidth: 140 }}
|
|
|
+ allowClear
|
|
|
+ placeholder={'请选择区服'}
|
|
|
+ filterOption={(input, option) =>
|
|
|
+ (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
+ }
|
|
|
+ >
|
|
|
+ {getGameServerList?.data?.map((item: any) => <Select.Option value={item.serverId} key={item.serverId}>{item.serverName}</Select.Option>)}
|
|
|
+ </Select>
|
|
|
+ </Form.Item></Col>}
|
|
|
{/* 游戏应用类型搜索 */}
|
|
|
{isGameType && <Col><Form.Item name='gameType'>
|
|
|
<Select
|
|
@@ -990,7 +1019,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<Select
|
|
|
showSearch
|
|
|
allowClear
|
|
|
- style={{ width: 98 }}
|
|
|
+ style={{ width: 110 }}
|
|
|
placeholder={'玩家状态'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -1007,7 +1036,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<Select
|
|
|
showSearch
|
|
|
allowClear
|
|
|
- style={{ width: 98 }}
|
|
|
+ style={{ width: 110 }}
|
|
|
placeholder={'是否创角'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -1023,7 +1052,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<Select
|
|
|
showSearch
|
|
|
allowClear
|
|
|
- style={{ width: 98 }}
|
|
|
+ style={{ width: 110 }}
|
|
|
placeholder={'是否转端'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -1039,7 +1068,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<Select
|
|
|
showSearch
|
|
|
allowClear
|
|
|
- style={{ width: 98 }}
|
|
|
+ style={{ width: 140 }}
|
|
|
placeholder={'邮件是否发送'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -1051,7 +1080,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* vip等级 */}
|
|
|
- {isCreateRole && <Col><Form.Item name='vipLevel'>
|
|
|
+ {isVipLevel && <Col><Form.Item name='vipLevel'>
|
|
|
<Select
|
|
|
showSearch
|
|
|
allowClear
|