| 
					
				 | 
			
			
				@@ -4,6 +4,7 @@ import { Row, Col, Popconfirm, Tag } from "antd" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import { DeleteOutlined, EditOutlined } from "@ant-design/icons" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import WidthEllipsis from "@/components/widthEllipsis" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 import React from "react" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+import { conditionEnum } from "./strategyModal" 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
		
			
				 | 
				 | 
			
			
				 function columnsPos(editPack: (data: any) => void, del: (id: number) => void) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				  
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -30,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>}[a] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return { 1: <Tag color="#f50">追踪玩家</Tag>, 2: <Tag color="#2db7f5">玩家流失</Tag>, 3: <Tag color="#87d068">新用户追踪</Tag> }[a] 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -38,9 +39,9 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dataIndex: 'amount', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             key: 'amount', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             align: 'center', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            width: 80, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            width: 100, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             render: (a: any, b: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return (a && a !== 0) ? a : '--' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return ((a && a !== 0) && b?.amountCondition) ? conditionEnum[b?.amountCondition] + " " + a : '--' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -50,22 +51,62 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             align: 'center', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             width: 80, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             render: (a: any, b: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-                return (a && a !== 0) ? a : '--' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                return (b?.timeCondition && (a && a !== 0)) ? conditionEnum[b?.timeCondition] + " " + a : '--' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            title: '策略说明', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            title: '策略备注', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dataIndex: 'configExplain', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             key: 'configExplain', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             width: 150, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             render: (a: string, b: any) => (<WidthEllipsis value={a} />) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            title: '策略说明', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            dataIndex: 'configExplain', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            key: 'configExplain', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            width: 350, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            render: (a: string, b: any) => { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                const { type, time, amount, timeCondition, amountCondition } = b 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                if (type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    let timeTips: string = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    let amountTips: string = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    switch (type) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 1: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // 单笔充值金额大于等于XX,并且注册时间在XX小时内的玩家 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            timeTips = time ? `注册时间${conditionEnum[timeCondition]}${time}小时的玩家` : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            amountTips = amount ? `单笔充值金额${conditionEnum[amountCondition]}${amount}元` : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 2: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // 累计充值金额大于等于XX,并且最近游戏距今时间超过XX小时的玩家 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            amountTips = amount ? `累计充值金额${conditionEnum[amountCondition]}${amount}元` : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            timeTips = time ? `最近游戏距今时间${conditionEnum[timeCondition]}${time}小时的玩家` : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        case 3: 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            // '新用户注册创角首日充值大于等于XX的用户' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            amountTips = amount ? `新用户注册创角首日充值${conditionEnum[amountCondition]}${amount}元的用户` : '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                            break 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    let helpTips = '' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    if (timeTips && amountTips) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        helpTips = amountTips + ',并且' + timeTips + ',发送钉钉消息' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } else if (timeTips) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        helpTips = timeTips + ',发送钉钉消息' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } else if (amountTips) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                        helpTips = amountTips + ',发送钉钉消息' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return <WidthEllipsis value={helpTips} /> 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } else { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                    return '--' 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+                } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            } 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+        }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             title: '创建人', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dataIndex: 'createName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             key: 'createName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             align: 'center', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            width: 100, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            width: 80, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             render: (a: string, b: any) => (<WidthEllipsis value={a} />) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 | 
		
	
	
		
			
				| 
					
				 | 
			
			
				@@ -81,7 +122,7 @@ function columnsPos(editPack: (data: any) => void, del: (id: number) => void) { 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             dataIndex: 'updateName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             key: 'updateName', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             align: 'center', 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				-            width: 100, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				+            width: 80, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				             render: (a: string, b: any) => (<WidthEllipsis value={a} />) 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         }, 
			 | 
		
	
		
			
				 | 
				 | 
			
			
				         { 
			 |