shenwu hai 2 días
pai
achega
0de11694b6

+ 2 - 2
src/pages/iaaData/novel/tencent/appAdRevenue/tableConfig.tsx

@@ -81,12 +81,12 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                 },
                 {
                     title: '广告变现roi', dataIndex: 'appAdPayingRoi', label: '基本信息', align: 'center', width: 105, default: 12, sorter: true,
-                    render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
+                    render: (a: number) => <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
 
                 {
                     title: '注册人数', dataIndex: 'regDedupPv', label: '基本信息', align: 'center', width: 80, default: 13, sorter: true,
-                    render: (a: number, b: any) => <Statistic value={a || 0} precision={2} />
+                    render: (a: number, b: any) => <Statistic value={a || 0}  />
                 },
                 {
                     title: 'D1', dataIndex: 'd1Add', label: '基本信息', align: 'center', width: 80, default: 14, sorter: true,

+ 4 - 4
src/pages/iaaData/novel/tencent/appPayTrend/tableConfig.tsx

@@ -19,8 +19,8 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     const data = b?.[dataIndex]?.split('/')
                     console.log(data)
                     return <div className={style.dbox} style={{ height: 170}}>
-                            <span style={{ color: '#F44336', fontWeight: 600, display: 'flex', alignItems: 'center' }}>变现人数:<span><Statistic value={data?.[0] || 0} precision={2} /></span></span>
-                            <span style={{ color: '#FF9800', fontWeight: 600, display: 'flex', alignItems: 'center' }}>变现次数:<span><Statistic value={data?.[1] || 0} precision={2} /></span></span>
+                            <span style={{ color: '#F44336', fontWeight: 600, display: 'flex', alignItems: 'center' }}>变现人数:<span><Statistic value={data?.[0] || 0} /></span></span>
+                            <span style={{ color: '#FF9800', fontWeight: 600, display: 'flex', alignItems: 'center' }}>变现次数:<span><Statistic value={data?.[1] || 0}  /></span></span>
                             <span style={{ color: '#d81b60', fontWeight: 600, display: 'flex', alignItems: 'center' }}>新增收入:<span><Statistic value={data?.[2] || 0} precision={2} /></span></span>
                             <span style={{ color: '#0f538a', fontWeight: 600, display: 'flex', alignItems: 'center' }}>累计收入:<span><Statistic value={data?.[3] || 0} precision={2} /></span></span>
                             <span style={{ color: '#9C27B0', fontWeight: 600, display: 'flex', alignItems: 'center' }}>arpu:<span><Statistic value={data?.[7] || 0} precision={2} /></span></span>
@@ -109,12 +109,12 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                 },
                 {
                     title: '广告变现roi', dataIndex: 'appAdPayingRoi', label: '基本信息', align: 'center', width: 105, default: 12, sorter: true,
-                    render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
+                    render: (a: number) => <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
 
                 {
                     title: '注册人数', dataIndex: 'regDedupPv', label: '基本信息', align: 'center', width: 80, default: 13, sorter: true,
-                    render: (a: number, b: any) => <Statistic value={a || 0} precision={2} />
+                    render: (a: number, b: any) => <Statistic value={a || 0}  />
                 },
                 ...trend
             ]

+ 2 - 2
src/pages/iaaData/novel/tencent/pitcherAdRevenue/tableConfig.tsx

@@ -85,12 +85,12 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                 },
                 {
                     title: '广告变现roi', dataIndex: 'appAdPayingRoi', label: '基本信息', align: 'center', width: 105, default: 13, sorter: true,
-                    render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
+                    render: (a: number) => <Statistic value={a ? (a * 100).toFixed(2): 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
 
                 {
                     title: '注册人数', dataIndex: 'regDedupPv', label: '基本信息', align: 'center', width: 80, default: 14, sorter: true,
-                    render: (a: number, b: any) => <Statistic value={a || 0} precision={2} />
+                    render: (a: number, b: any) => <Statistic value={a || 0}  />
                 },
                 {
                     title: 'D1', dataIndex: 'd1Add', label: '基本信息', align: 'center', width: 80, default: 14, sorter: true,

+ 4 - 4
src/pages/iaaData/novel/tencent/pitcherPayTrend/tableConfig.tsx

@@ -19,8 +19,8 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                     const data = b?.[dataIndex]?.split('/')
                     console.log(data)
                     return <div className={style.dbox} style={{ height: 170 }}>
-                        <span style={{ color: '#F44336', fontWeight: 600, display: 'flex' ,alignItems:'center' }}>变现人数:<span><Statistic value={data?.[0] || 0} precision={2} /></span></span>
-                        <span style={{ color: '#FF9800', fontWeight: 600, display: 'flex' ,alignItems:'center' }}>变现次数:<span><Statistic value={data?.[1] || 0} precision={2} /></span></span>
+                        <span style={{ color: '#F44336', fontWeight: 600, display: 'flex' ,alignItems:'center' }}>变现人数:<span><Statistic value={data?.[0] || 0}/></span></span>
+                        <span style={{ color: '#FF9800', fontWeight: 600, display: 'flex' ,alignItems:'center' }}>变现次数:<span><Statistic value={data?.[1] || 0}/></span></span>
                         <span style={{ color: '#d81b60', fontWeight: 600, display: 'flex' ,alignItems:'center' }}>新增收入:<span><Statistic value={data?.[2] || 0} precision={2} /></span></span>
                         <span style={{ color: '#0f538a', fontWeight: 600, display: 'flex',alignItems:'center'  }}>累计收入:<span><Statistic value={data?.[3] || 0} precision={2} /></span></span>
                         <span style={{ color: '#9C27B0', fontWeight: 600, display: 'flex',alignItems:'center'  }}>arpu:<span><Statistic value={data?.[7] || 0} precision={2} /></span></span>
@@ -114,12 +114,12 @@ function columns12(): { label: string, fieldSHow?: { label: string, saveField: s
                 },
                 {
                     title: '广告变现roi', dataIndex: 'appAdPayingRoi', label: '基本信息', align: 'center', width: 105, default: 13, sorter: true,
-                    render: (a: number) => <Statistic value={a ? a * 100 : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
+                    render: (a: number) => <Statistic value={a ? (a * 100).toFixed(2) : 0} precision={2} valueStyle={!a ? {} : a >= 0.5 ? { color: 'red' } : { color: '#0f990f' }} suffix="%" />
                 },
 
                 {
                     title: '注册人数', dataIndex: 'regDedupPv', label: '基本信息', align: 'center', width: 80, default: 14, sorter: true,
-                    render: (a: number, b: any) => <Statistic value={a || 0} precision={2} />
+                    render: (a: number, b: any) => <Statistic value={a || 0} />
                 },
                 ...trend
             ]