add EventDetail and PointRuleDetail
This commit is contained in:
@@ -14,8 +14,8 @@
|
||||
class="item"
|
||||
v-for="item in visibleEventList"
|
||||
:key="item.id"
|
||||
:arrow="canUpdateEventItem"
|
||||
:hover="canUpdateEventItem"
|
||||
:arrow="!!item.id"
|
||||
:hover="!!item.id"
|
||||
@click="toEventItem(item)"
|
||||
>
|
||||
<template #title>
|
||||
@@ -147,14 +147,11 @@ const activeStatusTag: StatusTag = { text: "可登记", theme: "primary" };
|
||||
const notEffectiveStatusTag: StatusTag = { text: "未生效", theme: "default" };
|
||||
const expiredStatusTag: StatusTag = { text: "已过期", theme: "danger" };
|
||||
|
||||
function toEventItem(item: EventItem): void {
|
||||
if (!canUpdateEventItem.value) {
|
||||
return;
|
||||
}
|
||||
async function toEventItem(item: EventItem): Promise<void> {
|
||||
if (!item.id) {
|
||||
return;
|
||||
}
|
||||
router.push(`/management/registration-events/${item.id}/edit`);
|
||||
await router.push(`/management/registration-events/${item.id}`);
|
||||
}
|
||||
|
||||
// ---------- 展示文案 ----------
|
||||
|
||||
Reference in New Issue
Block a user