wjx 6 ay önce
ebeveyn
işleme
84776c9f23

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

@@ -245,6 +245,8 @@ interface Props {
     isAddCorpWechat?: boolean
     /** 是否开启 是否唤醒 搜索 */
     isWakeUp?: boolean
+    /** 是否开启 是否绑定手机号 搜索 */
+    isUserPhoneStatus?: boolean
     /** 是否开启 回传状态 搜索 */
     isBackStatus?: boolean
     /** 是否开启 选择游戏维度 搜索 */
@@ -275,7 +277,7 @@ const QueryForm: React.FC<Props> = (props) => {
         isSysUserName, isRechargeDate, LastRechargeDay, 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, isRoleLevel, isCreateRoleDay, isLastActiveTime, isIsChange, isIsSendMail, isWeChatCompany, isWeChat,
         isCustomerServerId, isOperatorId, isGsId, isServerIds, isRankingNum, isIsMergeServer, isIsParticipateMerge, isSuperParentGameId, isGameServerName, isIp, isDeviceType, isLoginType, isServerIdUn, isSourceServerName, isProjectId1, isRemoveGame, isRemoveGameForSystem, isOrderLy, isAddCorpWechat,
-        isWakeUp, isBackStatus, isGameDimension, isUserLastRegTime, isUserLastRegAgentId, isUserLastPitcherId, isRechargeAmountWithin24h, isRechargeTotalAmountWithin24h, isRegisterType
+        isWakeUp, isUserPhoneStatus, isBackStatus, isGameDimension, isUserLastRegTime, isUserLastRegAgentId, isUserLastPitcherId, isRechargeAmountWithin24h, isRechargeTotalAmountWithin24h, isRegisterType
     } = props
     const [form] = Form.useForm()
     const parentId = Form.useWatch('parentId', form)
@@ -1511,6 +1513,22 @@ const QueryForm: React.FC<Props> = (props) => {
                 </Select>
             </Form.Item></Col>}
 
+            {/* 是否绑定手机号 */}
+            {isUserPhoneStatus && <Col><Form.Item name='userPhoneStatus'>
+                <Select
+                    showSearch
+                    allowClear
+                    style={{ width: 170 }}
+                    placeholder={'客户是否绑定手机号'}
+                    filterOption={(input, option) =>
+                        (option?.children as any)?.toLowerCase().indexOf(input.toLowerCase()) >= 0
+                    }
+                >
+                    <Select.Option value={1}>绑定</Select.Option>
+                    <Select.Option value={0}>未绑定</Select.Option>
+                </Select>
+            </Form.Item></Col>}
+
             {/* vip等级 */}
             {isVipLevel && <Col><Form.Item name='vipLevel'>
                 <Select

+ 1 - 0
src/pages/gameDataStatistics/roleOperate/roleRechargeRanking/index.tsx

@@ -170,6 +170,7 @@ const RoleRechargeRanking: React.FC = () => {
                 isPayIntervalTime={{ tips: '角色累计充值金额区间(单位:元)' }}
                 isAddCorpWechat
                 isWakeUp
+                isUserPhoneStatus
                 isOs
                 isRechargeAmountWithin24h
                 isRechargeTotalAmountWithin24h

+ 3 - 3
src/pages/gameDataStatistics/roleOperate/roleRechargeRanking/tableConfig.tsx

@@ -44,7 +44,7 @@ function columns12(
                 { title: '玩家注册渠道ID', dataIndex: 'agent_id', label: '玩家信息', align: 'center', width: 80 },
                 { title: '玩家注册时间', dataIndex: 'user_create_time', label: '玩家信息', align: 'center', width: 140, default: 6, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
                 { title: '玩家注册游戏', dataIndex: 'user_reg_game_name', label: '玩家信息', align: 'center', width: 70, default: 7, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
-                { title: '玩家操作系统', dataIndex: 'os', label: '玩家信息', align: 'center', width: 70, default: 8 },
+                { title: '玩家操作系统', dataIndex: 'os', label: '玩家信息', align: 'center', width: 70, default: 8, render: (a: string) => (<WidthEllipsis value={a} />) },
                 // { title: '玩家等级标签', dataIndex: '13', label: '玩家信息', align: 'center', width: 70, default: 14 },
                 { title: '玩家最近充值游戏', dataIndex: 'user_last_recharge_game_name', label: '玩家信息', align: 'center', width: 70, default: 15, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
                 { title: '玩家最近充值时间', dataIndex: 'user_pay_time', label: '玩家信息', align: 'center', width: 140, default: 16, render: (a: string, b: any) => (<WidthEllipsis value={a} />) },
@@ -654,7 +654,7 @@ export const columnsMsgTask = (sendLog: (data: any) => void, reloadSend: (id: an
             width: 90,
             align: 'center',
             render: (a: any) => {
-                return { SUCCESS_SEND: <Badge status="success" text="已发送" />, WAIT_SEND: <Badge status="default" text="待发送" /> }[a]
+                return ({ SUCCESS_SEND: <Badge status="success" text="已发送" />, WAIT_SEND: <Badge status="default" text="待发送" /> } as any)[a]
             }
         },
         {
@@ -743,7 +743,7 @@ export const columnsMsgTaskLog = (reloadSend: (id: any) => void, loading: boolea
             width: 90,
             align: 'center',
             render: (a: any) => {
-                return { CP_SEND_ROLE_RESULT_SUCCESS: <Badge status="success" text="发送成功" />, CP_SEND_ROLE_RESULT_FAIL: <Badge status="error" text="发送失败" /> }[a]
+                return ({ CP_SEND_ROLE_RESULT_SUCCESS: <Badge status="success" text="发送成功" />, CP_SEND_ROLE_RESULT_FAIL: <Badge status="error" text="发送失败" /> } as any)[a]
             }
         },
         {