|
@@ -117,13 +117,19 @@ const header = props => {
|
117
|
117
|
// width: '10%',
|
118
|
118
|
},
|
119
|
119
|
{
|
120
|
|
- title: '状态',
|
|
120
|
+ title: '报名状态',
|
121
|
121
|
dataIndex: 'activityStatus',
|
122
|
122
|
key: 'activityStatus',
|
123
|
123
|
align: 'center',
|
124
|
124
|
// width: '10%',
|
125
|
125
|
render: activityStatus => <><span>{activityStatus == 0 ? '进行中' : activityStatus == 1 ? '未开始' : '已结束'}</span></>,
|
126
|
126
|
},
|
|
127
|
+ {
|
|
128
|
+ title: '权重',
|
|
129
|
+ dataIndex: 'heavy',
|
|
130
|
+ key: 'heavy',
|
|
131
|
+ align: 'center',
|
|
132
|
+ },
|
127
|
133
|
{
|
128
|
134
|
title: '操作',
|
129
|
135
|
dataIndex: 'handle',
|
|
@@ -132,19 +138,19 @@ const header = props => {
|
132
|
138
|
render: (x, row) => (
|
133
|
139
|
<>
|
134
|
140
|
<AuthButton name="admin.SignList.get" noRight={null}>
|
135
|
|
- <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={getSignList.bind(this, row.dynamicId)}>{row.isEnlist == '1' ? '报名记录' : ''}{ (row.isEnlist==1) && <Icon type="snippets" className={styles.shoppingCart} />}</span>
|
|
141
|
+ {(row.activityStatus === 0 || row.activityStatus === 2) && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={getSignList.bind(this, row.dynamicId)}>{row.isEnlist == '1' ? '报名记录' : ''}{ (row.isEnlist==1) && <Icon type="snippets" className={styles.shoppingCart} />}</span>}
|
136
|
142
|
</AuthButton>
|
137
|
143
|
<AuthButton name="admin.buildingDynamic.send.dynamicId.put" noRight={null}>
|
138
|
|
- {row.activityStatus != 0 && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this, row)}>{row.status === 1 ? '取消发布' : '发布'}<Icon type="close-circle" className={styles.edit} /></span>}
|
|
144
|
+ <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={sendOrPublicDynamic.bind(this, row)}>{row.status === 1 ? '取消发布' : '发布'}<Icon type="close-circle" className={styles.edit} /></span>
|
139
|
145
|
</AuthButton>
|
140
|
146
|
<AuthButton name="admin.buildingDynamic.finish.put" noRight={null}>
|
141
|
|
- {row.activityStatus != 2 && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={finishDynamic.bind(this, row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>}
|
|
147
|
+ {row.activityStatus === 0 && <span style={{ color: '#1990FF',marginRight: '20px', cursor: 'pointer' }} onClick={finishDynamic.bind(this, row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>}
|
142
|
148
|
</AuthButton>
|
143
|
149
|
<AuthButton name="admin.buildingDynamic.update.put" noRight={null}>
|
144
|
|
- <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topDynamic(row)}>{row.weight === 1 ? '取消置顶' : '置顶'}<Icon type="vertical-align-top" className={styles.edit} /></span>
|
145
|
|
- {row.activityStatus != 2 && <span style={{ color: '#FF925C',marginRight: '20px', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>}
|
|
150
|
+ <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topDynamic(row)}>{row.weight === 1 ? '取消添加标签' : '添加标签'}<Icon type="vertical-align-top" className={styles.edit} /></span>
|
|
151
|
+ {(row.activityStatus === 0 || row.activityStatus === 1) && <span style={{ color: '#FF925C',marginRight: '20px', cursor: 'pointer' }} onClick={toEditGoods(row.dynamicId)}>编辑<Icon type="form" className={styles.edit} /></span>}
|
146
|
152
|
</AuthButton>
|
147
|
|
- {row.status === 1 &&<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={newQrcode.bind(this, row)}>{row.isEnlist === 1 && '下载二维码'} {row.isEnlist === 1 && <Icon type="qrcode" className={styles.shoppingCart} />}</span>}
|
|
153
|
+ {(row.activityStatus === 0 || row.activityStatus === 2) &&<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={newQrcode.bind(this, row)}>{row.isEnlist === 1 && '下载二维码'} {row.isEnlist === 1 && <Icon type="qrcode" className={styles.shoppingCart} />}</span>}
|
148
|
154
|
</>
|
149
|
155
|
),
|
150
|
156
|
},
|