feat: 完成前端业务闭环与后端联调
This commit is contained in:
@@ -160,6 +160,30 @@
|
||||
mode="aspectFit"
|
||||
/>
|
||||
</view>
|
||||
<view class="overview-action" @click="toPersonDocuments">
|
||||
<image
|
||||
class="overview-action__icon"
|
||||
src="/static/assets/modules/genealogy/transparent/shortcut-members.png"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
<view class="overview-action__copy">
|
||||
<text class="overview-action__title">重要证件</text>
|
||||
<text>集中查看家谱证件档案</text>
|
||||
</view>
|
||||
<image
|
||||
class="overview-action__chevron"
|
||||
src="/static/assets/foundation/transparent/chevron-right.png"
|
||||
mode="aspectFit"
|
||||
/>
|
||||
</view>
|
||||
<view v-if="canManageGenealogy" class="overview-action" @click="toCapabilityCenter">
|
||||
<image class="overview-action__icon" src="/static/assets/modules/genealogy/transparent/settings-gear.png" mode="aspectFit" />
|
||||
<view class="overview-action__copy">
|
||||
<text class="overview-action__title">资料与回收站</text>
|
||||
<text>查看资料完整度,恢复误删的家谱内容</text>
|
||||
</view>
|
||||
<image class="overview-action__chevron" src="/static/assets/foundation/transparent/chevron-right.png" mode="aspectFit" />
|
||||
</view>
|
||||
<template v-else>
|
||||
<view class="overview-summary">
|
||||
<text class="overview-action__title">成员身份</text>
|
||||
@@ -308,7 +332,7 @@ const loadGenealogy = async (query = {}) => {
|
||||
genealogyId.value = String(query.genealogyId || genealogyId.value || "");
|
||||
canManageGenealogy.value = false;
|
||||
|
||||
if (!genealogyId.value) {
|
||||
if (!/^[1-9]\d*$/.test(genealogyId.value)) {
|
||||
overviewState.value = "empty";
|
||||
return;
|
||||
}
|
||||
@@ -363,10 +387,13 @@ const toGenerationPoems = () =>
|
||||
openPage("G12", { genealogyId: genealogyId.value }, "G05");
|
||||
const toMembers = () =>
|
||||
openPage("G13", { genealogyId: genealogyId.value }, "G05");
|
||||
const toPersonDocuments = () =>
|
||||
openPage("R12", { genealogyId: genealogyId.value }, "G05");
|
||||
const openInvitationManager = () => {
|
||||
if (overviewState.value !== "ready" || !genealogyId.value) return;
|
||||
invitationManager.value?.open();
|
||||
};
|
||||
const toCapabilityCenter = () => openPage("G14", { genealogyId: genealogyId.value }, "G05");
|
||||
const requestBack = () => {
|
||||
if (invitationBusy.value || invitationTransientOpen.value) {
|
||||
invitationManager.value?.closeTransient();
|
||||
|
||||
Reference in New Issue
Block a user