适配多商户

This commit is contained in:
gxwebsoft
2024-05-24 14:53:29 +08:00
parent 757822f3ba
commit dea6ae1c23
23 changed files with 1167 additions and 315 deletions
+9 -5
View File
@@ -2,12 +2,12 @@
<div class="ele-body">
<a-card :bordered="false" :body-style="{ padding: '16px' }">
<ele-split-layout
width="266px"
allow-collapse
:width="!getMerchantName() ? '266px' : ''"
:allow-collapse="!getMerchantName()"
:right-style="{ overflow: 'hidden' }"
:style="{ minHeight: 'calc(100vh - 152px)' }"
:style="{ minHeight: 'calc(100vh - 252px)' }"
>
<div>
<div v-if="!getMerchantName()">
<ele-toolbar theme="default">
<span class="ele-text-heading">场馆列表</span>
</ele-toolbar>
@@ -70,6 +70,8 @@
import { removeMerchant } from '@/api/shop/merchant';
import { Merchant } from '@/api/shop/merchant/model';
import { listMerchant } from '@/api/shop/merchant';
import { getMerchantId } from '@/utils/common';
import { getMerchantName } from "@/utils/merchant";
// 加载状态
const loading = ref(true);
@@ -95,7 +97,9 @@
/* 查询 */
const query = () => {
loading.value = true;
listMerchant()
listMerchant({
merchantId: getMerchantId()
})
.then((list) => {
loading.value = false;
const eks: number[] = [];