|
@@ -98,28 +98,41 @@ const toEditActivity = (groupActivityId) => () => {
|
98
|
98
|
align: 'center',
|
99
|
99
|
render: (x, row) => (
|
100
|
100
|
<>
|
|
101
|
+ {row.activityStatus === 0 &&
|
|
102
|
+ <AuthButton name="admin.taShareActivity.finish.put" noRight={null}><span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span></AuthButton>
|
|
103
|
+ }
|
|
104
|
+ {row.activityStatus === 0 &&
|
|
105
|
+ <AuthButton name="admin.taShareSuccessRecord.get" noRight={null}> <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span></AuthButton>
|
|
106
|
+ }
|
101
|
107
|
{row.activityStatus === 0 &&
|
102
|
108
|
<AuthButton name="admin.taShareActivity.list.get" noRight={null}>
|
103
|
|
-
|
104
|
|
- <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
|
105
|
|
- <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
|
106
|
109
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
107
|
110
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
108
|
111
|
</AuthButton> }
|
109
|
112
|
|
110
|
113
|
{row.activityStatus === 1 &&
|
111
|
|
- <AuthButton name="admin.taShareActivity.list.get" noRight={null}>
|
112
|
|
- <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditActivity(row.groupActivityId)}>编辑<Icon type="form" className={styles.edit} /></span>
|
113
|
|
- <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
|
114
|
|
- <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
115
|
|
- <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
|
114
|
+ <AuthButton name="admin.taShareActivity.update.put" noRight={null}>
|
|
115
|
+ <span style={{ color: '#FF925C', cursor: 'pointer' }} onClick={toEditActivity(row.groupActivityId)}>编辑<Icon type="form" className={styles.edit} /></span>
|
|
116
|
+ </AuthButton>
|
|
117
|
+ }
|
|
118
|
+ {row.activityStatus === 1 &&
|
|
119
|
+ <AuthButton name="admin.taShareActivity.finish.put" noRight={null}>
|
|
120
|
+ <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={endGroupActivity(row)}>结束活动<Icon type="poweroff" className={styles.edit} /></span>
|
|
121
|
+ </AuthButton>
|
|
122
|
+ }
|
|
123
|
+ {row.activityStatus === 1 &&
|
|
124
|
+ <AuthButton name="admin.taShareActivity.weight.put" noRight={null}>
|
|
125
|
+ <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
|
126
|
+ <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
116
|
127
|
</AuthButton>
|
117
|
128
|
}
|
118
|
129
|
|
119
|
|
- {row.activityStatus === 2 &&
|
120
|
|
- <AuthButton name="admin.taShareActivity.list.get" noRight={null}>
|
121
|
|
- <span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span>
|
122
|
|
- <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
|
130
|
+ {row.activityStatus === 2 &&
|
|
131
|
+ <AuthButton><span style={{ color: '#1990FF', cursor: 'pointer' }} onClick={ getSignList.bind(this, row.groupActivityId)}>拼团记录<Icon type="snippets" className={styles.shoppingCart} /></span></AuthButton>
|
|
132
|
+ }
|
|
133
|
+ {row.activityStatus === 2 &&
|
|
134
|
+ <AuthButton name="admin.taShareActivity.weight.put" noRight={null}>
|
|
135
|
+ <span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={topGroupActivity(row, row.weight)}>{ row.weight === 1 ? '取消置顶' : '置顶' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
123
|
136
|
<span style={{ color: '#1990FF', marginRight: '20px', cursor: 'pointer' }} onClick={recommendGroupActivity(row)}>{ row.sort === true ? '取消推荐首页' : '推荐首页' }<Icon type="vertical-align-top" className={styles.edit} /></span>
|
124
|
137
|
</AuthButton>
|
125
|
138
|
}
|