@@ -273,11 +273,11 @@ async function toSort(): Promise {
await router.push("/management/points/rules/sort");
}
-async function toEdit(rule: PointRule): Promise {
- if (!canUpdate.value || !rule.id) {
+async function toDetail(rule: PointRule): Promise {
+ if (!rule.id) {
return;
}
- await router.push(`/management/points/rules/${rule.id}/edit`);
+ await router.push(`/management/points/rules/${rule.id}`);
}
async function preparePage(): Promise {
diff --git a/src/router/routes/pointRoutes.ts b/src/router/routes/pointRoutes.ts
index 967c703..1ae1a8f 100644
--- a/src/router/routes/pointRoutes.ts
+++ b/src/router/routes/pointRoutes.ts
@@ -4,6 +4,7 @@ import PointAccountList from "@/pages/point/PointAccountList.vue";
import PointAdjust from "@/pages/point/PointAdjust.vue";
import PointLedgerDetail from "@/pages/point/PointLedgerDetail.vue";
import PointLedgerList from "@/pages/point/PointLedgerList.vue";
+import PointRuleDetail from "@/pages/point/PointRuleDetail.vue";
import PointRuleEdit from "@/pages/point/PointRuleEdit.vue";
import PointRuleList from "@/pages/point/PointRuleList.vue";
import PointRuleSort from "@/pages/point/PointRuleSort.vue";
@@ -121,12 +122,26 @@ const pointRoutes: RouteRecordRaw[] = [
darkBodyBackground: "#10161f"
}
},
+ {
+ path: "/management/points/rules/:id",
+ name: "PointRuleDetail",
+ component: PointRuleDetail,
+ meta: {
+ depth: 4,
+ navBarVisible: true,
+ navBarCanBack: true,
+ navBarTitle: "积分规则详情",
+ tabBarVisible: false,
+ bodyBackground: "#F5F5F8",
+ darkBodyBackground: "#10161f"
+ }
+ },
{
path: "/management/points/rules/:id/edit",
name: "PointRuleEdit",
component: PointRuleEdit,
meta: {
- depth: 4,
+ depth: 5,
navBarVisible: true,
navBarCanBack: true,
navBarTitle: "编辑积分规则",
diff --git a/src/router/routes/registrationRoutes.ts b/src/router/routes/registrationRoutes.ts
index 763daae..70ce96f 100644
--- a/src/router/routes/registrationRoutes.ts
+++ b/src/router/routes/registrationRoutes.ts
@@ -1,4 +1,5 @@
import type { RouteRecordRaw } from "vue-router";
+import EventDetail from "@/pages/event/EventDetail.vue";
import EventEdit from "@/pages/event/EventEdit.vue";
import eventList from "@/pages/event/EventList.vue";
import EventSort from "@/pages/event/EventSort.vue";
@@ -50,12 +51,26 @@ const registrationRoutes: RouteRecordRaw[] = [
darkBodyBackground: "#10161f"
}
},
+ {
+ path: "/management/registration-events/:id",
+ name: "EventDetail",
+ component: EventDetail,
+ meta: {
+ depth: 4,
+ navBarVisible: true,
+ navBarCanBack: true,
+ navBarTitle: "登记事件详情",
+ tabBarVisible: false,
+ bodyBackground: "#F5F5F8",
+ darkBodyBackground: "#10161f"
+ }
+ },
{
path: "/management/registration-events/:id/edit",
name: "EventEdit",
component: EventEdit,
meta: {
- depth: 4,
+ depth: 5,
navBarVisible: true,
navBarCanBack: true,
navBarTitle: "编辑登记事件",