Commit 3ef4762a3885e06d42f1fea4e06f1ed243a2ae42

Authored by 杨泽宇
1 parent a8b26f45

debug

docs/develop/discuss.md
... ... @@ -57,6 +57,7 @@
57 57 > * 新增活动的时候,只有保存操作,编辑活动的时候,可以保存、可以发布,提交接口用status区分,1为发布,需要二次确认,0为保存。
58 58 > * 已发布的活动才能取消发布,取消了以后不能再重新发布。
59 59 > * 已发布的活动不能编辑和删除。
  60 + > * 已结束的活动,不能取消发布。
60 61 > * 活动取消发布了以后,只能查看人员。
61 62 > * 活动状态值是当前时间和活动开始结束时间对比的结果
62 63 * 当前时间晚于活动结束时间,即活动已结束,
... ...
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>
... ...