c0328fa23e
修复:按商户ID查询订单、商品、分类等
69 lines
1.9 KiB
Vue
69 lines
1.9 KiB
Vue
<!-- 搜索表单 -->
|
|
<template>
|
|
<a-space :size="10" style="flex-wrap: wrap" v-if="!merchantId">
|
|
<a-button type="primary" class="ele-btn-icon" @click="add">
|
|
<template #icon>
|
|
<PlusOutlined />
|
|
</template>
|
|
<span>添加</span>
|
|
</a-button>
|
|
<a-button class="ele-btn-icon" @click="openUrl(`/shop/index`)">
|
|
<span>店铺管理</span>
|
|
</a-button>
|
|
<a-button class="ele-btn-icon" @click="openUrl(`/shop/index`)">
|
|
<span>门店职员</span>
|
|
</a-button>
|
|
<a-button class="ele-btn-icon" @click="openUrl(`/goods/category/:id`)">
|
|
<span>商品分类</span>
|
|
</a-button>
|
|
<a-button class="ele-btn-icon" @click="openUrl(`/shop/apply`)">
|
|
<span>入驻申请</span>
|
|
</a-button>
|
|
<a-button class="ele-btn-icon" @click="openUrl(`/shop/desk`)">
|
|
<span>桌号管理</span>
|
|
</a-button>
|
|
<a-button class="ele-btn-icon" @click="openUrl(`/shop/type`)">
|
|
<span>店铺类型</span>
|
|
</a-button>
|
|
</a-space>
|
|
</template>
|
|
|
|
<script lang="ts" setup>
|
|
import { PlusOutlined } from '@ant-design/icons-vue';
|
|
import type { GradeParam } from '@/api/user/grade/model';
|
|
import { watch } from 'vue';
|
|
import { openUrl } from '@/utils/common';
|
|
import router from '@/router';
|
|
import { getMerchant } from '@/api/shop/merchant';
|
|
import merchant from "@/views/shop/merchant/index.vue";
|
|
import { getMerchantId } from "@/utils/merchant";
|
|
|
|
const props = withDefaults(
|
|
defineProps<{
|
|
// 选中的角色
|
|
selection?: [];
|
|
}>(),
|
|
{}
|
|
);
|
|
|
|
const emit = defineEmits<{
|
|
(e: 'search', where?: GradeParam): void;
|
|
(e: 'add'): void;
|
|
(e: 'remove'): void;
|
|
(e: 'batchMove'): void;
|
|
}>();
|
|
const merchantId = getMerchantId();
|
|
|
|
// 新增
|
|
const add = () => {
|
|
emit('add');
|
|
};
|
|
|
|
watch(
|
|
() => router.currentRoute,
|
|
(route) => {
|
|
console.log(route, 'route');
|
|
}
|
|
);
|
|
</script>
|