|
@@ -70,12 +70,18 @@ const header = props => {
|
70
|
70
|
dataIndex: 'title',
|
71
|
71
|
key: 'title',
|
72
|
72
|
align: 'center',
|
|
73
|
+ // width: '15%',
|
|
74
|
+ render: (x, row) => <><div style={{wordWrap: 'break-word', width: '201px'}}>{row.title}</div></>,
|
|
75
|
+ // width: '300px',
|
|
76
|
+ // ellipsis:'true'
|
73
|
77
|
},
|
74
|
78
|
{
|
75
|
79
|
title: '活动时间',
|
76
|
80
|
dataIndex: 'startDate',
|
77
|
81
|
key: 'startDate',
|
78
|
82
|
align: 'center',
|
|
83
|
+ // width: '15%',
|
|
84
|
+ // width: '20%',
|
79
|
85
|
render: (x, row) => <><span>{`${moment(row.startDate).format('YYYY-MM-DD')} —— ${moment(row.endDate).format('YYYY-MM-DD')}`}</span></>,
|
80
|
86
|
},
|
81
|
87
|
{
|
|
@@ -83,30 +89,36 @@ const header = props => {
|
83
|
89
|
dataIndex: 'count',
|
84
|
90
|
key: 'count',
|
85
|
91
|
align: 'center',
|
|
92
|
+ // width: '10%',
|
|
93
|
+ // width: '6%',
|
86
|
94
|
},
|
87
|
95
|
{
|
88
|
96
|
title: '阅读量',
|
89
|
97
|
dataIndex: 'pvNum',
|
90
|
98
|
key: 'pvNum',
|
91
|
99
|
align: 'center',
|
|
100
|
+ // width: '10%',
|
92
|
101
|
},
|
93
|
102
|
{
|
94
|
103
|
title: '转发量',
|
95
|
104
|
dataIndex: 'shareNum',
|
96
|
105
|
key: 'shareNum',
|
97
|
106
|
align: 'center',
|
|
107
|
+ // width: '10%',
|
98
|
108
|
},
|
99
|
109
|
{
|
100
|
110
|
title: '收藏数',
|
101
|
111
|
dataIndex: 'saveNum',
|
102
|
112
|
key: 'saveNum',
|
103
|
113
|
align: 'center',
|
|
114
|
+ // width: '10%',
|
104
|
115
|
},
|
105
|
116
|
{
|
106
|
117
|
title: '状态',
|
107
|
118
|
dataIndex: 'activityStatus',
|
108
|
119
|
key: 'activityStatus',
|
109
|
120
|
align: 'center',
|
|
121
|
+ // width: '10%',
|
110
|
122
|
render: activityStatus => <><span>{activityStatus == 0 ? '进行中' : activityStatus == 1 ? '未开始' : '已结束'}</span></>,
|
111
|
123
|
},
|
112
|
124
|
{
|