From 88e8062a195b7436b5fd13e1e50f629d26c80255 Mon Sep 17 00:00:00 2001 From: ctw <> Date: Wed, 15 Jan 2025 18:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=AF=8F=E6=97=A5=E8=8F=9C?= =?UTF-8?q?=E8=B0=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .env.development | 23 ++ src/api/canteen/canteenDailyMenu.ts | 11 +- src/views/canteen/canteenDailyMenu/form.vue | 258 ++++++++++++-------- 3 files changed, 194 insertions(+), 98 deletions(-) create mode 100644 .env.development diff --git a/.env.development b/.env.development new file mode 100644 index 0000000..5e6835c --- /dev/null +++ b/.env.development @@ -0,0 +1,23 @@ +# port 端口号 +VITE_PORT = 8888 + +#浏览器自动打开 +VITE_OPEN = true + +# 本地环境 +ENV = 'development' + +# ADMIN 服务地址 +# VITE_ADMIN_PROXY_PATH = http://123.156.230.15:8089/api/ # 线上 +# VITE_ADMIN_PROXY_PATH = http://pjcloud.center.takin.cc/ +# VITE_ADMIN_PROXY_PATH = http://localhost:9999/ +VITE_ADMIN_PROXY_PATH = http://192.168.101.29:9999/ # 邓-本地 + +# 图片访问基础地址 +# VITE_IMAGE_BASE_PATH = http://123.156.230.15:8089/api # 线上 +# VITE_IMAGE_BASE_PATH = http://pjcloud.center.takin.cc +# VITE_IMAGE_BASE_PATH = http://localhost:9999 +VITE_IMAGE_BASE_PATH = http://192.168.101.29:9999 # 邓-本地 + +# 代码生成服务地址 +VITE_GEN_PROXY_PATH = http://192.168.110.156:5003 \ No newline at end of file diff --git a/src/api/canteen/canteenDailyMenu.ts b/src/api/canteen/canteenDailyMenu.ts index 061d885..ea54d3d 100644 --- a/src/api/canteen/canteenDailyMenu.ts +++ b/src/api/canteen/canteenDailyMenu.ts @@ -56,7 +56,7 @@ export function selectWeekInfo(query?: Object) { }) } -// //获取当前选中的菜品信息 +//获取当前选中的菜品信息 export function selectTimeFoodApi(query?: Object) { return request({ url: "/canteen/canteenDailyMenu/selectTimeFood", @@ -64,3 +64,12 @@ export function selectTimeFoodApi(query?: Object) { params: query, }) } + +// 根据每日日期和每日餐段类型获取可添加的不重复的菜品列表 +export function getCanteenDailyMenuList(query?: Object) { + return request({ + url: "/canteen/canteenSpu/pageDaily", + method: "get", + params: query, + }) +} diff --git a/src/views/canteen/canteenDailyMenu/form.vue b/src/views/canteen/canteenDailyMenu/form.vue index 089a636..809b949 100644 --- a/src/views/canteen/canteenDailyMenu/form.vue +++ b/src/views/canteen/canteenDailyMenu/form.vue @@ -1,5 +1,5 @@ + - - - - - - - - - - - 查询 - 重置 - - - + + + + + + + + + + + + 查询 + 重置 + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - +