wjx 1 ano atrás
pai
commit
cec2edde62

+ 15 - 15
src/pages/gameDataStatistics/gameData/ltv/tableConfig.tsx

@@ -5,7 +5,7 @@ import WidthEllipsis from "@/components/widthEllipsis"
 
 function columnsUser12(): { label: string, fieldSHow?: { label: string, saveField: string, defaultValue: any[], data: any[] }, data: any[] }[] {
 
-    let defaultStart = 12
+    let defaultStart = 13
     // 用户LTV
     const userLtvDay = Array(90).fill('').map((_item: string, index: number) => {
         let field = `userLtv${index + 1}`
@@ -22,7 +22,7 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
     })
 
     // 用户LTV月
-    let defaultStartM = 102
+    let defaultStartM = 103
     let userLtvMonth = [4, 5, 6, 7, 8, 9, 10, 11].map((item, index) => {
         let field = `userLtvM${item}`
         let data = {
@@ -42,7 +42,7 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
         label: "用户LTV",
         align: "center",
         width: 70,
-        default: 110,
+        default: 111,
         render: (a: string) => <Statistic value={a || 0} />
     } as any)
     userLtvMonth.push({
@@ -51,7 +51,7 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
         label: "用户LTV",
         align: "center",
         width: 70,
-        default: 111,
+        default: 112,
         render: (a: string) => <Statistic value={a || 0} />
     } as any)
 
@@ -104,7 +104,7 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
             label: '游戏信息',
             data: [
                 {
-                    title: '推广游戏名称', dataIndex: 'gameName', label: '游戏信息', align: 'center', width: 70,
+                    title: '推广游戏名称', dataIndex: 'gameName', label: '游戏信息', align: 'center', width: 70, default: 2,
                     render: (a: string, b: any) => (<WidthEllipsis isCopy={b?.costDate !== '总计'} value={a} />)
                 },
                 {
@@ -126,7 +126,7 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
             label: '消耗',
             data: [
                 {
-                    title: '消耗', dataIndex: 'cost', label: '消耗', align: 'center', width: 90, sorter: true, default: 2,
+                    title: '消耗', dataIndex: 'cost', label: '消耗', align: 'center', width: 90, sorter: true, default: 3,
                     render: (a: string) => <Statistic value={a || 0} />
                 }
             ]
@@ -135,7 +135,7 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
             label: '用户数据',
             data: [
                 {
-                    title: '注册人数', dataIndex: 'regNum', label: '用户数据', align: 'center', width: 70, sorter: true, default: 3,
+                    title: '注册人数', dataIndex: 'regNum', label: '用户数据', align: 'center', width: 70, sorter: true, default: 4,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -152,11 +152,11 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日新用户充值人数', dataIndex: 'firstNewUserAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 4,
+                    title: '首日新用户充值人数', dataIndex: 'firstNewUserAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 5,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日新用户充值金额', dataIndex: 'firstNewUserAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 5,
+                    title: '首日新用户充值金额', dataIndex: 'firstNewUserAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 6,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -188,19 +188,19 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '新用户累计充值人数', dataIndex: 'newUserTotalAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 6,
+                    title: '新用户累计充值人数', dataIndex: 'newUserTotalAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 7,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '新用户累计充值金额', dataIndex: 'newUserTotalAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 7,
+                    title: '新用户累计充值金额', dataIndex: 'newUserTotalAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 8,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日ROI', dataIndex: 'firstRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 8,
+                    title: '首日ROI', dataIndex: 'firstRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 9,
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
-                    title: '总ROI', dataIndex: 'totalRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 11,
+                    title: '总ROI', dataIndex: 'totalRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 12,
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
@@ -220,11 +220,11 @@ function columnsUser12(): { label: string, fieldSHow?: { label: string, saveFiel
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日充值成本', dataIndex: 'firstNewUserRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 9,
+                    title: '首日充值成本', dataIndex: 'firstNewUserRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 10,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '总充值成本', dataIndex: 'totalRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 10,
+                    title: '总充值成本', dataIndex: 'totalRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 11,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {

+ 15 - 15
src/pages/gameDataStatistics/gameData/ltv/tableConfigRole.tsx

@@ -49,7 +49,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
         render: (a: string) => <Statistic value={a || 0} />
     } as any)
 
-    let defaultStart = 12
+    let defaultStart = 13
     // 创角LTV
     const roleLtvDay = Array(90).fill('').map((_item: string, index: number) => {
         let field = `roleLtv${index + 1}`
@@ -64,7 +64,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
         data['default'] = defaultStart + index
         return data
     })
-    let defaultStartM = 102
+    let defaultStartM = 103
     let roleLtvMonth = [4, 5, 6, 7, 8, 9, 10, 11].map((item, index) => {
         let field = `roleLtvM${item}`
         let data = {
@@ -84,7 +84,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
         label: "创角LTV",
         align: "center",
         width: 70,
-        default: 110,
+        default: 111,
         render: (a: string) => <Statistic value={a || 0} />
     } as any)
     roleLtvMonth.push({
@@ -93,7 +93,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
         label: "创角LTV",
         align: "center",
         width: 70,
-        default: 111,
+        default: 112,
         render: (a: string) => <Statistic value={a || 0} />
     } as any)
 
@@ -103,7 +103,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
             label: '游戏信息',
             data: [
                 {
-                    title: '推广游戏名称', dataIndex: 'gameName', label: '游戏信息', align: 'center', width: 70,
+                    title: '推广游戏名称', dataIndex: 'gameName', label: '游戏信息', align: 'center', width: 70, default: 2,
                     render: (a: string, b: any) => (<WidthEllipsis isCopy={b?.costDate !== '总计'} value={a} />)
                 },
                 {
@@ -125,7 +125,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
             label: '消耗',
             data: [
                 {
-                    title: '消耗', dataIndex: 'cost', label: '消耗', align: 'center', width: 90, sorter: true, default: 2,
+                    title: '消耗', dataIndex: 'cost', label: '消耗', align: 'center', width: 90, sorter: true, default: 3,
                     render: (a: string) => <Statistic value={a || 0} />
                 }
             ]
@@ -134,7 +134,7 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
             label: '用户数据',
             data: [
                 {
-                    title: '注册人数', dataIndex: 'regNum', label: '用户数据', align: 'center', width: 70, sorter: true, default: 3,
+                    title: '注册人数', dataIndex: 'regNum', label: '用户数据', align: 'center', width: 70, sorter: true, default: 4,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -151,11 +151,11 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日新用户充值人数', dataIndex: 'firstNewUserAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 4,
+                    title: '首日新用户充值人数', dataIndex: 'firstNewUserAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 5,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日新用户充值金额', dataIndex: 'firstNewUserAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 5,
+                    title: '首日新用户充值金额', dataIndex: 'firstNewUserAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 6,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
@@ -187,19 +187,19 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '新用户累计充值人数', dataIndex: 'newUserTotalAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 6,
+                    title: '新用户累计充值人数', dataIndex: 'newUserTotalAmountNum', label: '付费数据', align: 'center', width: 70, sorter: true, default: 7,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '新用户累计充值金额', dataIndex: 'newUserTotalAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 7,
+                    title: '新用户累计充值金额', dataIndex: 'newUserTotalAmount', label: '付费数据', align: 'center', width: 70, sorter: true, default: 8,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日ROI', dataIndex: 'firstRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 8,
+                    title: '首日ROI', dataIndex: 'firstRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 9,
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
-                    title: '总ROI', dataIndex: 'totalRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 11,
+                    title: '总ROI', dataIndex: 'totalRoi', label: '付费数据', align: 'center', width: 70, sorter: true, default: 12,
                     render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={a >= 1 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
                 {
@@ -219,11 +219,11 @@ function columnsRole12(): { label: string, fieldSHow?: { label: string, saveFiel
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '首日充值成本', dataIndex: 'firstNewUserRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 9,
+                    title: '首日充值成本', dataIndex: 'firstNewUserRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 10,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {
-                    title: '总充值成本', dataIndex: 'totalRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 10,
+                    title: '总充值成本', dataIndex: 'totalRechargeCost', label: '付费数据', align: 'center', width: 70, sorter: true, default: 11,
                     render: (a: string) => <Statistic value={a || 0} />
                 },
                 {