|
@@ -6,6 +6,7 @@ import { getAllOfOwnerUserApi, getChannelChoiceListApi, getGameChoiceListApi, ge
|
|
|
import { PayStatus, TYPE, gameClassifyEnum } from "./const"
|
|
|
import { ADSTATUSEnum as ADSTTTATUSEnum } from "@/pages/gameDataStatistics/adlist/monitor/const"
|
|
|
import { ADSTATUSEnum } from "@/pages/gameDataStatistics/adlist/tencentMonitor/const"
|
|
|
+import IntervalTime from "./intervalTime"
|
|
|
|
|
|
|
|
|
interface Props {
|
|
@@ -98,6 +99,14 @@ interface Props {
|
|
|
rechargeDay?: {
|
|
|
ranges?: any
|
|
|
}
|
|
|
+ /** 是否开启 支付时间 搜索 */
|
|
|
+ payTimeDay?: {
|
|
|
+ ranges?: any
|
|
|
+ }
|
|
|
+ /** 是否开启 下单时间 搜索 */
|
|
|
+ placeAnOrderDay?: {
|
|
|
+ ranges?: any
|
|
|
+ }
|
|
|
/** 是否开启布谷 游戏类型 筛选 */
|
|
|
isBGGameClassify?: boolean,
|
|
|
/** 是否开启 单个充值日期 选择 */
|
|
@@ -132,6 +141,8 @@ interface Props {
|
|
|
isServerDay?: {
|
|
|
ranges?: any
|
|
|
}
|
|
|
+ /** 是否开启 充值到支付的间隔时间 搜索 */
|
|
|
+ isPayIntervalTime?: boolean
|
|
|
}
|
|
|
/**
|
|
|
* 游戏数据系统 请求参数
|
|
@@ -143,7 +154,8 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
const {
|
|
|
onChange, initialValues, isSource, isAccount, isAccountId, isCompanyId, isAgentKey, isAgentName, isCpId, isCpName, isCpOrderId, isCpStatus, isCreateDay, isDevice, isGameName, isRechargeGameName, isGameId, isOrderGameId, isGameRoleId,
|
|
|
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
|
|
|
} = props
|
|
|
const [form] = Form.useForm()
|
|
|
const [accountList, setAccountList] = useState<any[]>([])
|
|
@@ -362,7 +374,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
showSearch
|
|
|
style={{ width: 140 }}
|
|
|
allowClear
|
|
|
- placeholder={'请选择广告账号'}
|
|
|
+ placeholder={'广告账号'}
|
|
|
dropdownMatchSelectWidth={false}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
@@ -389,7 +401,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
</Form.Item></Col>}
|
|
|
{/* cp名 */}
|
|
|
{isCpName && <Col><Form.Item name='cpName'>
|
|
|
- <Input placeholder="请输入CP名称" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="CP名称" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* CPID */}
|
|
|
{isCpId && <Col><Form.Item name='cpId'>
|
|
@@ -409,7 +421,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
</Form.Item></Col>}
|
|
|
{/* CP方订单ID */}
|
|
|
{isCpOrderId && <Col><Form.Item name='cpOrderId'>
|
|
|
- <Input placeholder="输入CP订单号" style={{ width: 140 }} />
|
|
|
+ <Input placeholder="CP订单号" style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* CP通知状态 */}
|
|
|
{isCpStatus && <Col><Form.Item name='cpStatus'>
|
|
@@ -418,32 +430,32 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
showSearch
|
|
|
style={{ minWidth: 140 }}
|
|
|
allowClear
|
|
|
- placeholder={'请选择CP通知状态'}
|
|
|
+ placeholder={'CP通知状态'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
}
|
|
|
>
|
|
|
<Select.Option value={'1'}>待处理</Select.Option>
|
|
|
<Select.Option value={'2'}>成功</Select.Option>
|
|
|
- <Select.Option value={'3'}>失败</Select.Option>
|
|
|
+ <Select.Option value={'-1'}>失败</Select.Option>
|
|
|
</Select>
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 计划名称 */}
|
|
|
{isProjectName && <Col><Form.Item name='projectName'>
|
|
|
- <Input placeholder="请输入项目名称" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="项目名称" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 计划ID */}
|
|
|
{isProjectId && <Col><Form.Item name='projectId'>
|
|
|
- <Input placeholder="请输入项目ID" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="项目ID" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 广告名称 */}
|
|
|
{isPromotionName && <Col><Form.Item name='promotionName'>
|
|
|
- <Input placeholder="请输入广告名称" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="广告名称" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 广告ID */}
|
|
|
{isPromotionId && <Col><Form.Item name='promotionId'>
|
|
|
- <Input placeholder="请输入广告ID" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="广告ID" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 广告状态 */}
|
|
|
{isAdTTStatus && <Col><Form.Item name='status'>
|
|
@@ -478,19 +490,19 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
</Form.Item></Col>}
|
|
|
{/* 操作设备 */}
|
|
|
{isDevice && <Col><Form.Item name='device'>
|
|
|
- <Input placeholder="请输入操作设备" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="操作设备" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 游戏名 */}
|
|
|
{isRechargeGameName && <Col><Form.Item name='rechargeGameName'>
|
|
|
- <Input placeholder="请输入游戏名" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="游戏名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 玩家ID */}
|
|
|
{isGameUserId && <Col><Form.Item name='gameUserId'>
|
|
|
- <Input placeholder="请输入玩家ID" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="玩家ID" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 游戏名 */}
|
|
|
{isGameName && <Col><Form.Item name='gameName'>
|
|
|
- <Input placeholder="请输入游戏名" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="游戏名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 游戏ID搜索 */}
|
|
|
{isGameId && <Col><Form.Item name='gameId'>
|
|
@@ -569,20 +581,20 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
</Form.Item></Col>}
|
|
|
{/* 游戏角色名 */}
|
|
|
{isGameRoleName && <Col><Form.Item name='roleName'>
|
|
|
- <Input placeholder="请输入游戏角色名" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="游戏角色名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 游戏角色名id搜索 */}
|
|
|
{isGameRoleId && <Col><Form.Item name='roleId'>
|
|
|
- <Input placeholder="请输入角色ID" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="角色ID" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 是否首充 */}
|
|
|
{isFirstRecharge && <Col><Form.Item name='isFirstRecharge'>
|
|
|
<Select
|
|
|
maxTagCount={1}
|
|
|
showSearch
|
|
|
- style={{ minWidth: 140 }}
|
|
|
+ style={{ width: 100 }}
|
|
|
allowClear
|
|
|
- placeholder={'请选择是否首充'}
|
|
|
+ placeholder={'是否首充'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
}
|
|
@@ -609,7 +621,7 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
</Form.Item></Col>}
|
|
|
{/* 收款商户号 */}
|
|
|
{isMerchantNo && <Col><Form.Item name='merchantNo'>
|
|
|
- <Input placeholder="请输入收款商户号" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="收款商户号" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
{/* 收款商户号 */}
|
|
|
{isMerchantOrderNo && <Col><Form.Item name='merchantOrderNo'>
|
|
@@ -666,22 +678,22 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
{/* 产品名称 */}
|
|
|
{isProductName && <Col><Form.Item name='productName'>
|
|
|
- <Input placeholder="请输入产品名称" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="产品名称" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 注册渠道名 */}
|
|
|
{isRegAgent && <Col><Form.Item name='regAgent'>
|
|
|
- <Input placeholder="请输入注册渠道名" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="注册渠道名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 渠道标识 */}
|
|
|
{isAgentKey && <Col><Form.Item name='agentKey'>
|
|
|
- <Input placeholder="请输入渠道标识" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="渠道标识" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 渠道名称 */}
|
|
|
{isAgentName && <Col><Form.Item name='agentName'>
|
|
|
- <Input placeholder="请输入渠道名称" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="渠道名称" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 推广渠道id */}
|
|
@@ -704,13 +716,14 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
{/* 投放渠道名 */}
|
|
|
{isPutAgent && <Col><Form.Item name='putAgent'>
|
|
|
- <Input placeholder="请输入投放渠道名" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="投放渠道名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
{/* 投手名 */}
|
|
|
{isSysUserName && <Col><Form.Item name='sysUserName'>
|
|
|
- <Input placeholder="请输入投手名" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="投手名" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
+
|
|
|
{/* 投手ID */}
|
|
|
{isSysUserId && <Col><Form.Item name='pitcherId'>
|
|
|
<Select
|
|
@@ -729,8 +742,9 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
|
|
|
{/* 玩家账号 */}
|
|
|
{isUserName && <Col><Form.Item name='username'>
|
|
|
- <Input placeholder="请输入玩家账号" allowClear style={{ width: 140 }} />
|
|
|
+ <Input placeholder="玩家账号" allowClear style={{ width: 140 }} />
|
|
|
</Form.Item></Col>}
|
|
|
+
|
|
|
{/* 用户id */}
|
|
|
{isUserId && <Col><Form.Item name='userId'>
|
|
|
<Select
|
|
@@ -754,9 +768,9 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<Select
|
|
|
maxTagCount={1}
|
|
|
showSearch
|
|
|
- style={{ minWidth: 140 }}
|
|
|
+ style={{ width: 110 }}
|
|
|
allowClear
|
|
|
- placeholder={'请选择操作系统'}
|
|
|
+ placeholder={'操作系统'}
|
|
|
filterOption={(input, option) =>
|
|
|
(option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
|
|
|
}
|
|
@@ -789,6 +803,15 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<DatePicker.RangePicker placeholder={['充值开始日期', '充值结束日期']} {...rechargeDay} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
+ {/* 单个充值日期搜索 */}
|
|
|
+ {payTimeDay && <Col><Form.Item name='payTime'>
|
|
|
+ <DatePicker.RangePicker placeholder={['支付开始日期', '支付结束日期']} {...payTimeDay} />
|
|
|
+ </Form.Item></Col>}
|
|
|
+ {/* 单个充值日期搜索 */}
|
|
|
+ {placeAnOrderDay && <Col><Form.Item name='placeAnOrderTime'>
|
|
|
+ <DatePicker.RangePicker placeholder={['下单开始日期', '下单结束日期']} {...placeAnOrderDay} />
|
|
|
+ </Form.Item></Col>}
|
|
|
+
|
|
|
{/* 开服日期搜索 */}
|
|
|
{isServerDay && <Col><Form.Item name='serverDay'>
|
|
|
<DatePicker.RangePicker placeholder={['开服开始日期', '开服结束日期']} {...isServerDay} />
|
|
@@ -799,6 +822,11 @@ const QueryForm: React.FC<Props> = (props) => {
|
|
|
<DatePicker placeholder={'充值日期'} />
|
|
|
</Form.Item></Col>}
|
|
|
|
|
|
+ {/* 单个充值日期搜索 */}
|
|
|
+ {isPayIntervalTime && <Col><Form.Item name='regPayIntervalTime'>
|
|
|
+ <IntervalTime />
|
|
|
+ </Form.Item></Col>}
|
|
|
+
|
|
|
<Col>
|
|
|
<Space>
|
|
|
<Button type="primary" htmlType="submit">搜索</Button>
|