feat: 优化工作台静态页面设计

This commit is contained in:
小蟑螂
2026-05-12 23:22:14 +08:00
parent f5d7fbe2b0
commit 3d87b7f706
7 changed files with 670 additions and 329 deletions
@@ -19,6 +19,10 @@ interface Props {
taxRate: number;
categoryExportMode?: boolean;
selectedExportCategoryIds?: number[];
headingTitle?: string;
headingSubtitle?: string;
/** 首列维度名称,如「品类」「商品」 */
firstColumnLabel?: string;
}
interface Emits {
@@ -30,6 +34,9 @@ interface Emits {
const props = withDefaults(defineProps<Props>(), {
categoryExportMode: false,
selectedExportCategoryIds: () => [],
headingTitle: '各品类多维度经营明细汇总',
headingSubtitle: '包含:规模、成本及最终损益所有维度',
firstColumnLabel: '品类',
});
const emit = defineEmits<Emits>();
@@ -62,10 +69,10 @@ const cellRoi = (v: number | null | undefined) =>
>
<div>
<h3 class="text-xl font-black text-slate-800 dark:text-[hsl(0deg_0%_95%)]">
各品类多维度经营明细汇总
{{ props.headingTitle }}
</h3>
<p class="mt-1 text-xs font-bold text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
包含:规模、成本及最终损益所有维度
{{ props.headingSubtitle }}
</p>
</div>
<div class="flex items-center gap-3">
@@ -131,7 +138,7 @@ const cellRoi = (v: number | null | undefined) =>
rowspan="2"
class="sticky-col border-b p-6 text-base font-black text-slate-900 dark:text-[hsl(0deg_0%_95%)] border-r-2 border-slate-100 dark:border-[hsl(240deg_3.7%_22%)] bg-white dark:bg-[hsl(222.34deg_10.43%_12.27%)] shadow-sm dark:shadow-none"
>
品类
{{ props.firstColumnLabel }}
</th>
<th
colspan="3"
@@ -18,6 +18,8 @@ interface Props {
platformSummary?: CompanyOverviewVO.PlatformOverview;
platformExportMode?: boolean;
selectedExportPlatformIds?: number[];
headingTitle?: string;
headingSubtitle?: string;
}
interface Emits {
@@ -29,6 +31,8 @@ interface Emits {
const props = withDefaults(defineProps<Props>(), {
platformExportMode: false,
selectedExportPlatformIds: () => [],
headingTitle: '各平台多维度经营明细汇总',
headingSubtitle: '目标达成 · 规模 · 成本费用 · 盈利分析,四大维度完整汇总',
});
const emit = defineEmits<Emits>();
@@ -112,10 +116,10 @@ const sortedData = computed(() => {
>
<div>
<h3 class="text-xl font-black text-slate-800 dark:text-[hsl(0deg_0%_95%)]">
各平台多维度经营明细汇总
{{ props.headingTitle }}
</h3>
<p class="mt-1 text-xs font-bold text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
目标达成 · 规模 · 成本费用 · 盈利分析,四大维度完整汇总
{{ props.headingSubtitle }}
</p>
</div>
<div class="flex items-center gap-3">
@@ -22,6 +22,10 @@ interface Props {
taxRate: number;
shopExportMode: boolean;
selectedExportShopIds: number[];
/** 覆盖默认表头主标题(如工作台演示) */
headingTitle?: string;
/** 覆盖默认表头副标题 */
headingSubtitle?: string;
}
interface Emits {
@@ -31,7 +35,10 @@ interface Emits {
(e: 'navigate', shopId: number): void;
}
const props = defineProps<Props>();
const props = withDefaults(defineProps<Props>(), {
headingTitle: '各店铺多维度经营明细汇总',
headingSubtitle: '包含:目标达成、规模、成本及最终损益所有维度',
});
const emit = defineEmits<Emits>();
const allShopsSelected = computed(() => {
@@ -65,10 +72,10 @@ const cellRoi = (v: number | null | undefined) =>
>
<div>
<h3 class="text-xl font-black text-slate-800 dark:text-[hsl(0deg_0%_95%)]">
各店铺多维度经营明细汇总
{{ props.headingTitle }}
</h3>
<p class="mt-1 text-xs font-bold text-slate-400 dark:text-[hsl(240deg_5%_64.9%)]">
包含:目标达成、规模、成本及最终损益所有维度
{{ props.headingSubtitle }}
</p>
</div>
<div class="flex items-center gap-3">