wjx il y a 2 mois
Parent
commit
177ae5ac92

+ 11 - 8
src/pages/gameDataStatistics/roleOperate/strategy/tableConfig.tsx

@@ -31,7 +31,7 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) {
             align: 'center',
             width: 100,
             render: (a: number, b: any) => {
-                return { 1: <Tag color="#f50">追踪玩家</Tag>, 2: <Tag color="#2db7f5">玩家流失</Tag>, 3: <Tag color="#87d068">新用户追踪</Tag>, 4: <Tag color="#108ee9">累充追踪</Tag> }[a]
+                return { 1: <Tag color="#f50">追踪玩家</Tag>, 2: <Tag color="#2db7f5">玩家流失</Tag>, 3: <Tag color="#87d068">新用户追踪</Tag>, 4: <Tag color="#108ee9">累充追踪</Tag>, 5: <Tag color="#2f8eef">新增角色追踪</Tag> }[a]
             }
         },
         {
@@ -41,7 +41,7 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) {
             align: 'center',
             width: 100,
             render: (a: any, b: any) => {
-                return ((a && a !== 0) && b?.amountCondition) ? conditionEnum[b?.amountCondition] + " " + a : '--'
+                return ((a && a !== 0) && b?.amountCondition) ? conditionEnum[b?.amountCondition as keyof typeof conditionEnum] + " " + a : '--'
             }
         },
         {
@@ -51,7 +51,7 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) {
             align: 'center',
             width: 100,
             render: (a: any, b: any) => {
-                return (b?.timeCondition && (a && a !== 0)) ? conditionEnum[b?.timeCondition] + " " + a : '--'
+                return (b?.timeCondition && (a && a !== 0)) ? conditionEnum[b?.timeCondition  as keyof typeof conditionEnum] + " " + a : '--'
             }
         },
         {
@@ -74,17 +74,20 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) {
                     switch (type) {
                         case 1:
                             // 单笔充值金额大于等于XX,并且注册时间在XX小时内的玩家
-                            timeTips = time ? `注册时间${conditionEnum[timeCondition]}${time}小时的玩家` : ''
-                            amountTips = amount ? `单笔充值金额${conditionEnum[amountCondition]}${amount}元` : ''
+                            timeTips = time ? `注册时间${conditionEnum[timeCondition  as keyof typeof conditionEnum]}${time}小时的玩家` : ''
+                            amountTips = amount ? `单笔充值金额${conditionEnum[amountCondition  as keyof typeof conditionEnum]}${amount}元` : ''
                             break
                         case 2:
                             // 累计充值金额大于等于XX,并且最近游戏距今时间超过XX小时的玩家
-                            amountTips = amount ? `累计充值金额${conditionEnum[amountCondition]}${amount}元` : ''
-                            timeTips = time ? `最近游戏距今时间${conditionEnum[timeCondition]}${time}小时的玩家` : ''
+                            amountTips = amount ? `累计充值金额${conditionEnum[amountCondition  as keyof typeof conditionEnum]}${amount}元` : ''
+                            timeTips = time ? `最近游戏距今时间${conditionEnum[timeCondition  as keyof typeof conditionEnum]}${time}小时的玩家` : ''
                             break
                         case 3:
                             // '新用户注册创角首日充值大于等于XX的用户'
-                            amountTips = amount ? `新用户注册创角首日充值${conditionEnum[amountCondition]}${amount}元的用户` : ''
+                            amountTips = amount ? `新用户注册创角首日充值${conditionEnum[amountCondition  as keyof typeof conditionEnum]}${amount}元的用户` : ''
+                            break
+                        case 5:
+                            amountTips = amount ? `新创建的角色在创角至今${conditionEnum[timeCondition as keyof typeof conditionEnum]}${time}小时内,首次充值(角色首充,单笔充值)${conditionEnum[amountCondition as keyof typeof conditionEnum]}${amount}金额,触发报警一次` : ''
                             break
                     }
                     let helpTips = ''