wjx před 1 rokem
rodič
revize
5dbdf0879c

+ 34 - 1
src/components/QueryForm/index.tsx

@@ -227,6 +227,12 @@ interface Props {
     isBackStatus?: boolean
     /** 是否开启 选择游戏维度 搜索 */
     isGameDimension?: boolean
+    /** 是否开启 玩家最新染色时间 搜索 */
+    isUserLastRegTime?: boolean
+    /** 是否开启 玩家最新染色渠道ID 搜索 */
+    isUserLastRegAgentId?: boolean
+    /** 是否开启 玩家最新染色归因投手 搜索 */
+    isUserLastPitcherId?: boolean
 }
 /**
  * 游戏数据系统 请求参数
@@ -241,7 +247,7 @@ const QueryForm: React.FC<Props> = (props) => {
         isSysUserName, isRechargeDate, isBGGameClassify, isGameUserId, isSysUserId, isSysUserIds, 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, isServerIds, isRankingNum, isIsMergeServer, isSuperParentGameId, isGameServerName, isIp, isDeviceType, isLoginType, isServerIdUn, isSourceServerName, isProjectId1, isRemoveGame, isRemoveGameForSystem, isOrderLy, isAddCorpWechat,
-        isWakeUp, isBackStatus, isGameDimension
+        isWakeUp, isBackStatus, isGameDimension, isUserLastRegTime, isUserLastRegAgentId, isUserLastPitcherId
     } = props
     const [form] = Form.useForm()
     const parentId = Form.useWatch('parentId', form)
@@ -1481,6 +1487,33 @@ const QueryForm: React.FC<Props> = (props) => {
                 </Select>
             </Form.Item></Col>}
 
+            {/* 玩家最新染色归因投手 */}
+            {isUserLastPitcherId && <Col><Form.Item name='userLastPitcherId'>
+                <Select
+                    maxTagCount={1}
+                    showSearch
+                    style={{ width: 160 }}
+                    allowClear
+                    loading={getSubUserWithSelfList.loading || getPitcherListNew.loading}
+                    placeholder={'最新染色归因投手'}
+                    filterOption={(input, option) =>
+                        (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
+                    }
+                >
+                    {userIdList.map((item: any) => <Select.Option value={item.userId} key={item.userId}>{item.nickname}</Select.Option>)}
+                </Select>
+            </Form.Item></Col>}
+
+            {/* 玩家最新染色渠道ID */}
+            {isUserLastRegAgentId && <Col><Form.Item name='userLastRegAgentId'>
+                <Input placeholder="最新染色渠道ID" allowClear style={{ width: 140 }} />
+            </Form.Item></Col>}
+
+            {/* 玩家最新染色时间 */}
+            {isUserLastRegTime && <Col><Form.Item name='userLastRegTime'>
+                <DatePicker placeholder={'最新染色时间'} />
+            </Form.Item></Col>}
+
             {/* 用户注册日期搜索 */}
             {isRegDay && <Col><Form.Item name='regDay'>
                 <DatePicker.RangePicker style={{ width: 230 }} placeholder={['注册开始日期', '注册结束日期']} {...isRegDay} />

+ 10 - 1
src/pages/gameDataStatistics/player/list/index.tsx

@@ -82,7 +82,7 @@ const List: React.FC = () => {
             leftChild={<QueryForm
                 initialValues={{ sourceSystem: 'ZX_ONE' }}
                 onChange={(data: any) => {
-                    const { gameUserId, username, gameClassify, regStartDay, regEndDay, rechargeDay, regPayIntervalTime, userStatus, agentId, roleCount, ...par } = data
+                    const { gameUserId, username, gameClassify, regStartDay, regEndDay, userLastRegTime, rechargeDay, regPayIntervalTime, userStatus, agentId, roleCount, ...par } = data
                     let newQueryForm = JSON.parse(JSON.stringify(queryForm))
                     newQueryForm.pageNum = 1
                     newQueryForm.userId = gameUserId
@@ -99,6 +99,12 @@ const List: React.FC = () => {
                         delete newQueryForm.endDate
                     }
 
+                    if (userLastRegTime) {
+                        newQueryForm['userLastRegTime'] = moment(userLastRegTime).format('YYYY-MM-DD')
+                    } else {
+                        delete newQueryForm['userLastRegTime']
+                    }
+
                     if (rechargeDay && rechargeDay?.length === 2) {
                         newQueryForm['rechargeBeginDate'] = moment(rechargeDay[0]).format('YYYY-MM-DD')
                         newQueryForm['rechargeEndDate'] = moment(rechargeDay[1]).format('YYYY-MM-DD')
@@ -146,6 +152,9 @@ const List: React.FC = () => {
                 isGameRoleName
                 isPayIntervalTime={{ tips: '充值距注册时间区间(分钟)' }}
                 isRoleCount={{ tips: '每个账号角色数量区间' }}
+                isUserLastPitcherId
+                isUserLastRegAgentId
+                isUserLastRegTime
             />}
             scroll={{ x: 1000, y: 600 }}
             ajax={getPlayerList}