This commit is contained in:
weiwei committed 2025-04-24 18:28:06 +08:00
commit 6d97336525
5 files changed
+314 -3

No files matched your search

+22 -3
View File
@@ -1,8 +1,22 @@
<template>
<div class="layout-padding" v-loading="loading">
<el-form-item label="商户" prop="merchantId" class="w-60 ml-10 my-6">
<select-mch v-model="merchantId" :apiParams="{ types: '1' }" />
</el-form-item>
<el-row class="flex items-center">
<el-form-item label="商户" prop="merchantId" class="w-60 my-6">
<select-mch v-model="merchantId" :apiParams="{ types: '1' }" />
</el-form-item>
<div class="ml-4">
<el-button
icon="folder-add"
type="primary"
@click="copyDialogRef.openDialog()"
v-auth="'canteen_canteenOnlineCategory_add'"
>
一键复制
</el-button>
</div>
</el-row>
<h1 class="mx-auto text-5xl mt-[-40px]">今日菜谱</h1>
<table v-if="weekData.data.length > 0" class="w-11/12 border-collapse cursor-pointer mx-auto">
@@ -70,6 +84,7 @@
<!-- 编辑、新增 -->
<form-dialog ref="formDialogRef" @refresh="selectTimeFood" />
<copy-dialog ref="copyDialogRef" @success="fetchData" />
</div>
</template>
@@ -214,6 +229,10 @@ const merchantInit = async () => {
// 菜品分类
const canteenCategoryOption = ref<any>([])
// 添加复制弹窗组件的引用
const CopyDialog = defineAsyncComponent(() => import('./copyDialog.vue'))
const copyDialogRef = ref()
onMounted(async () => {
try {
// 获取菜品分类