add EventDetail and PointRuleDetail

This commit is contained in:
Timi
2026-08-23 12:26:44 +08:00
parent cfa6364d93
commit 38df3edc54
7 changed files with 702 additions and 25 deletions
+4 -7
View File
@@ -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}`);
}
// ---------- 展示文案 ----------