适配多商户
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
Reference in New Issue
Block a user