|
@@ -28,7 +28,7 @@ function tableConfig(
|
|
dataIndex: 'configuredStatus',
|
|
dataIndex: 'configuredStatus',
|
|
key: 'configuredStatus',
|
|
key: 'configuredStatus',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 55,
|
|
|
|
|
|
+ width: 40,
|
|
fixed: 'left',
|
|
fixed: 'left',
|
|
render: (a: string, b: any) => {
|
|
render: (a: string, b: any) => {
|
|
return <SwitchStatus configuredStatus={a} isDeleted={b?.isDeleted} adgroupId={b?.adgroupId} onChange={onChange} />
|
|
return <SwitchStatus configuredStatus={a} isDeleted={b?.isDeleted} adgroupId={b?.adgroupId} onChange={onChange} />
|
|
@@ -40,7 +40,6 @@ function tableConfig(
|
|
key: 'accountId',
|
|
key: 'accountId',
|
|
align: 'center',
|
|
align: 'center',
|
|
width: 100,
|
|
width: 100,
|
|
- fixed: 'left',
|
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
render: (a: string) => {
|
|
render: (a: string) => {
|
|
return <Space>
|
|
return <Space>
|
|
@@ -55,8 +54,7 @@ function tableConfig(
|
|
dataIndex: 'memo',
|
|
dataIndex: 'memo',
|
|
key: 'memo',
|
|
key: 'memo',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 90,
|
|
|
|
- fixed: 'left',
|
|
|
|
|
|
+ width: 80,
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -64,8 +62,7 @@ function tableConfig(
|
|
dataIndex: 'remark',
|
|
dataIndex: 'remark',
|
|
key: 'remark',
|
|
key: 'remark',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 90,
|
|
|
|
- fixed: 'left',
|
|
|
|
|
|
+ width: 80,
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
@@ -74,7 +71,6 @@ function tableConfig(
|
|
key: 'adgroupId',
|
|
key: 'adgroupId',
|
|
align: 'center',
|
|
align: 'center',
|
|
width: 120,
|
|
width: 120,
|
|
- fixed: 'left',
|
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
render: (a: string, b: any) => {
|
|
render: (a: string, b: any) => {
|
|
return <Space>
|
|
return <Space>
|
|
@@ -91,7 +87,6 @@ function tableConfig(
|
|
key: 'campaignId',
|
|
key: 'campaignId',
|
|
align: 'center',
|
|
align: 'center',
|
|
width: 120,
|
|
width: 120,
|
|
- fixed: 'left',
|
|
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
render: (a: string, b: any) => {
|
|
render: (a: string, b: any) => {
|
|
return <Space >
|
|
return <Space >
|
|
@@ -115,7 +110,8 @@ function tableConfig(
|
|
dataIndex: 'promotedObjectType',
|
|
dataIndex: 'promotedObjectType',
|
|
key: 'promotedObjectType',
|
|
key: 'promotedObjectType',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 85,
|
|
|
|
|
|
+ width: 75,
|
|
|
|
+ ellipsis: true,
|
|
render: (a: string | number) => {
|
|
render: (a: string | number) => {
|
|
return PromotedObjectType[a]
|
|
return PromotedObjectType[a]
|
|
}
|
|
}
|
|
@@ -135,7 +131,8 @@ function tableConfig(
|
|
dataIndex: 'beginDate',
|
|
dataIndex: 'beginDate',
|
|
key: 'beginDate',
|
|
key: 'beginDate',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 160,
|
|
|
|
|
|
+ width: 150,
|
|
|
|
+ ellipsis: true,
|
|
render: (a: string, b: { endDate: string }) => {
|
|
render: (a: string, b: { endDate: string }) => {
|
|
return b?.endDate ? a + '~' + b.endDate : a + '~' + '长期投放'
|
|
return b?.endDate ? a + '~' + b.endDate : a + '~' + '长期投放'
|
|
}
|
|
}
|
|
@@ -155,13 +152,13 @@ function tableConfig(
|
|
dataIndex: 'firstDayBeginTime',
|
|
dataIndex: 'firstDayBeginTime',
|
|
key: 'firstDayBeginTime',
|
|
key: 'firstDayBeginTime',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 75,
|
|
|
|
|
|
+ width: 70,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '出价',
|
|
title: '出价',
|
|
dataIndex: 'bidAmount',
|
|
dataIndex: 'bidAmount',
|
|
key: 'bidAmount',
|
|
key: 'bidAmount',
|
|
- width: 150,
|
|
|
|
|
|
+ width: 140,
|
|
ellipsis: true,
|
|
ellipsis: true,
|
|
render: (a: string, b: { bidMode: string, optimizationGoal: string }) => {
|
|
render: (a: string, b: { bidMode: string, optimizationGoal: string }) => {
|
|
return `${BidModeEnum[b?.bidMode]} ${a}元/${b?.bidMode === 'BID_MODE_CPM' ? '千次曝光' : b?.bidMode === 'BID_MODE_CPC' ? '点击' : OptimizationGoalEnum[b?.optimizationGoal]}`
|
|
return `${BidModeEnum[b?.bidMode]} ${a}元/${b?.bidMode === 'BID_MODE_CPM' ? '千次曝光' : b?.bidMode === 'BID_MODE_CPC' ? '点击' : OptimizationGoalEnum[b?.optimizationGoal]}`
|
|
@@ -173,6 +170,7 @@ function tableConfig(
|
|
key: 'smartBidType',
|
|
key: 'smartBidType',
|
|
align: 'center',
|
|
align: 'center',
|
|
width: 80,
|
|
width: 80,
|
|
|
|
+ ellipsis: true,
|
|
render: (a: string, b: { endDate: string }) => {
|
|
render: (a: string, b: { endDate: string }) => {
|
|
return a === 'SMART_BID_TYPE_CUSTOM' ? '手动出价' : '自动出价'
|
|
return a === 'SMART_BID_TYPE_CUSTOM' ? '手动出价' : '自动出价'
|
|
}
|
|
}
|
|
@@ -182,7 +180,8 @@ function tableConfig(
|
|
dataIndex: 'bidStrategy',
|
|
dataIndex: 'bidStrategy',
|
|
key: 'bidStrategy',
|
|
key: 'bidStrategy',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 80,
|
|
|
|
|
|
+ width: 70,
|
|
|
|
+ ellipsis: true,
|
|
render: (a: string, b: { endDate: string }) => {
|
|
render: (a: string, b: { endDate: string }) => {
|
|
return BidStrategyEnum[a]
|
|
return BidStrategyEnum[a]
|
|
}
|
|
}
|
|
@@ -192,7 +191,7 @@ function tableConfig(
|
|
dataIndex: 'dailyBudget',
|
|
dataIndex: 'dailyBudget',
|
|
key: 'dailyBudget',
|
|
key: 'dailyBudget',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 80,
|
|
|
|
|
|
+ width: 70,
|
|
},
|
|
},
|
|
{
|
|
{
|
|
title: '是否开启自动版位功能',
|
|
title: '是否开启自动版位功能',
|
|
@@ -210,6 +209,7 @@ function tableConfig(
|
|
key: 'createdTime',
|
|
key: 'createdTime',
|
|
align: 'center',
|
|
align: 'center',
|
|
width: 140,
|
|
width: 140,
|
|
|
|
+ ellipsis: true,
|
|
},
|
|
},
|
|
// {
|
|
// {
|
|
// title: '客户设置的状态',
|
|
// title: '客户设置的状态',
|
|
@@ -227,7 +227,6 @@ function tableConfig(
|
|
key: 'isDeleted',
|
|
key: 'isDeleted',
|
|
align: 'center',
|
|
align: 'center',
|
|
width: 60,
|
|
width: 60,
|
|
- fixed: 'right',
|
|
|
|
render: (a: any, b: any) => {
|
|
render: (a: any, b: any) => {
|
|
return <Badge status={!a ? "processing" : "error"} text={a ? '是' : '否'} />
|
|
return <Badge status={!a ? "processing" : "error"} text={a ? '是' : '否'} />
|
|
}
|
|
}
|
|
@@ -237,8 +236,9 @@ function tableConfig(
|
|
dataIndex: 'status',
|
|
dataIndex: 'status',
|
|
key: 'status',
|
|
key: 'status',
|
|
align: 'center',
|
|
align: 'center',
|
|
- width: 80,
|
|
|
|
|
|
+ width: 70,
|
|
fixed: 'right',
|
|
fixed: 'right',
|
|
|
|
+ ellipsis: true,
|
|
render: (a: string) => {
|
|
render: (a: string) => {
|
|
return AdStatusEnum[a]
|
|
return AdStatusEnum[a]
|
|
}
|
|
}
|