feat(web): add Ant workspace tabs and harden page chrome

Persist workspace tabs in the app shell with Ant Design styling aligned to the desktop top bar, and fix tab bar layout flicker on select. Add shared PageHeader components, query helpers, and missing header state across CRM views; improve mobile shell layout and Vite HMR stability on Windows.

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-11-25 16:53:04 +03:30
co-authored by Cursor
parent 1992474273
commit cc68b2d9f3
86 changed files with 5446 additions and 3885 deletions
+11 -8
View File
@@ -30,13 +30,13 @@ import {
Row as ARow,
Select as ASelect,
Space as ASpace,
Tabs as ATabs,
TabPane as ATabPane,
Typography,
} from 'ant-design-vue';
import { CrmSkeleton, CrmSkeletonTable } from '@/components/skeleton';
import { PageHeader } from '@/components/page';
import { HistoryOutlined } from '@/icons/ant-bridge';
const { Title: ATypographyTitle, Text: ATypographyText } = Typography;
const { Text: ATypographyText } = Typography;
type HistoryTab = 'creates' | 'edits' | 'deletes';
@@ -517,11 +517,14 @@ void loadActors();
<template>
<a-flex vertical :gap="16">
<a-typography-title :level="3" :style="{ margin: 0 }">تاریخچه کارها</a-typography-title>
<a-tabs :active-key="tab" @change="selectTab">
<a-tab-pane v-for="item in TABS" :key="item.key" :tab="item.label" />
</a-tabs>
<PageHeader
title="تاریخچه کارها"
subtitle="موارد حذف‌شده و بایگانی‌شده و امکان بازگردانی"
:icon="HistoryOutlined"
:tabs="TABS.map((item) => ({ key: item.key, label: item.label }))"
:active-tab="tab"
@update:active-tab="(k) => selectTab(k ?? TABS[0]!.key)"
/>
<a-alert v-if="okMsg" type="success" show-icon :message="okMsg" closable @close="okMsg = ''" />
<a-alert v-if="error" type="error" show-icon :message="error" closable @close="error = ''" />