fix(shop-overview): 表头固定+深色模式边框+空状态colspan修复

- 表头tbody拆分为两个独立table,thead固定不滚动,tbody独立滚动
- 表头所有border-slate-200替换为dark:深色边框色
- 商品详情单元格加明确深色背景
- 空状态colspan从13改为15
This commit is contained in:
小蟑螂
2026-04-21 17:24:10 +08:00
parent 8753e0ea84
commit 046fe1ea3f
2 changed files with 67 additions and 80 deletions
@@ -1,5 +1,4 @@
<script lang="ts" setup>
import type { EchartsUIType } from '@vben/plugins/echarts';
import type {
CompanyOverviewDTO,
@@ -7,7 +6,6 @@ import type {
} from '#/api/ecommerce/company-overview';
import {
computed,
onActivated,
onMounted,
onUnmounted,
@@ -18,7 +16,7 @@ import { useRoute, useRouter } from 'vue-router';
import { Page } from '@vben/common-ui';
import { Button, DatePicker, InputNumber, message, Spin } from 'ant-design-vue';
import { Button, DatePicker, InputNumber, Spin } from 'ant-design-vue';
import dayjs from 'dayjs';
import { getCompanyOverviewApi } from '#/api/ecommerce/company-overview';
@@ -46,15 +44,6 @@ const shopCount = ref(0);
const shopExportMode = ref(false);
const selectedExportShopIds = ref<number[]>([]);
// 全选状态计算
const allShopsSelected = computed(() => {
const total = overviewData.value?.shopComparisons?.length || 0;
return total > 0 && selectedExportShopIds.value.length === total;
});
const someShopsSelected = computed(() => {
return selectedExportShopIds.value.length > 0;
});
// 日期范围
const dateRange = ref<[dayjs.Dayjs, dayjs.Dayjs]>([
dayjs().subtract(30, 'day'),
@@ -397,15 +386,6 @@ const toggleShopExportMode = (enabled: boolean) => {
}
};
// 导出当前选中店铺(不关闭模式)
const handleExportSelectedShops = async () => {
if (selectedExportShopIds.value.length === 0) {
message.warning('请先选择要导出的店铺');
return;
}
await handleExportCompanyOverview();
};
// 跳转到店铺详情页
const navigateToShopOverview = (shopId: number) => {
router.push({