mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-23 23:59:19 +08:00
fix(ecom-dmb): ShopComparisonTable的shopComparisons类型ShopComparison[]→ShopOverview匹配实际数据结构
This commit is contained in:
+2
-2
@@ -6,7 +6,7 @@ import { computed } from 'vue';
|
||||
defineOptions({ name: 'ShopComparisonTable' });
|
||||
|
||||
interface Props {
|
||||
shopComparisons?: CompanyOverviewVO.ShopComparison[];
|
||||
shopComparisons?: CompanyOverviewVO.ShopOverview;
|
||||
taxRate: number;
|
||||
shopExportMode: boolean;
|
||||
selectedExportShopIds: number[];
|
||||
@@ -23,7 +23,7 @@ const props = defineProps<Props>();
|
||||
const emit = defineEmits<Emits>();
|
||||
|
||||
const allShopsSelected = computed(() => {
|
||||
const total = props.shopComparisons?.length || 0;
|
||||
const total = props.shopComparisons?.shops?.length || 0;
|
||||
return total > 0 && props.selectedExportShopIds.length === total;
|
||||
});
|
||||
const someShopsSelected = computed(() => {
|
||||
|
||||
Reference in New Issue
Block a user