mirror of
https://gitee.com/qqtt-ah/ecom-dmb.git
synced 2026-11-25 07:09:20 +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' });
|
defineOptions({ name: 'ShopComparisonTable' });
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
shopComparisons?: CompanyOverviewVO.ShopComparison[];
|
shopComparisons?: CompanyOverviewVO.ShopOverview;
|
||||||
taxRate: number;
|
taxRate: number;
|
||||||
shopExportMode: boolean;
|
shopExportMode: boolean;
|
||||||
selectedExportShopIds: number[];
|
selectedExportShopIds: number[];
|
||||||
@@ -23,7 +23,7 @@ const props = defineProps<Props>();
|
|||||||
const emit = defineEmits<Emits>();
|
const emit = defineEmits<Emits>();
|
||||||
|
|
||||||
const allShopsSelected = computed(() => {
|
const allShopsSelected = computed(() => {
|
||||||
const total = props.shopComparisons?.length || 0;
|
const total = props.shopComparisons?.shops?.length || 0;
|
||||||
return total > 0 && props.selectedExportShopIds.length === total;
|
return total > 0 && props.selectedExportShopIds.length === total;
|
||||||
});
|
});
|
||||||
const someShopsSelected = computed(() => {
|
const someShopsSelected = computed(() => {
|
||||||
|
|||||||
Reference in New Issue
Block a user