Commit 3ef4762a3885e06d42f1fea4e06f1ed243a2ae42
1 parent
a8b26f45
debug
Showing
2 changed files
with
3 additions
and
1 deletions
docs/develop/discuss.md
src/views/event/handwork/index.vue
| ... | ... | @@ -326,10 +326,11 @@ onMounted(() => { |
| 326 | 326 | >删除</el-button |
| 327 | 327 | > |
| 328 | 328 | <!-- 已发布的活动才能取消发布,取消了以后不能再重新发布 --> |
| 329 | + <!-- 已结束的活动,不能取消发布。 --> | |
| 329 | 330 | <el-button |
| 330 | 331 | type="text" |
| 331 | 332 | @click="handleCancel(scope.row.id)" |
| 332 | - v-show="~~scope.row.status === 1" | |
| 333 | + v-show="~~scope.row.status === 1 && new Date(scope.row.endTime) > new Date()" | |
| 333 | 334 | >取消发布</el-button |
| 334 | 335 | > |
| 335 | 336 | </template> | ... | ... |