add EventDetail and PointRuleDetail
This commit is contained in:
@@ -22,9 +22,9 @@
|
||||
v-for="item in pageResult.list"
|
||||
:key="item.id"
|
||||
class="item"
|
||||
:arrow="canUpdate"
|
||||
:hover="canUpdate"
|
||||
@click="toEdit(item)"
|
||||
:arrow="!!item.id"
|
||||
:hover="!!item.id"
|
||||
@click="toDetail(item)"
|
||||
>
|
||||
<template #left-icon>
|
||||
<div class="point" :class="{ 'consume': item.pointValue && item.pointValue < 0 }">
|
||||
@@ -273,11 +273,11 @@ async function toSort(): Promise<void> {
|
||||
await router.push("/management/points/rules/sort");
|
||||
}
|
||||
|
||||
async function toEdit(rule: PointRule): Promise<void> {
|
||||
if (!canUpdate.value || !rule.id) {
|
||||
async function toDetail(rule: PointRule): Promise<void> {
|
||||
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<void> {
|
||||
|
||||
Reference in New Issue
Block a user