From c2026418a9daa210ee64f40c0d7a3ce98ddd5a05 Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Mon, 16 Jun 2025 18:16:22 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8E=A8=E6=88=BF=E8=AE=BE=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/kitchen/setting.js | 39 ++ src/views/kitchen/baseSetting/index.vue | 494 ++++++++++++++++++++---- 2 files changed, 468 insertions(+), 65 deletions(-) create mode 100644 src/api/kitchen/setting.js diff --git a/src/api/kitchen/setting.js b/src/api/kitchen/setting.js new file mode 100644 index 00000000..ac668a74 --- /dev/null +++ b/src/api/kitchen/setting.js @@ -0,0 +1,39 @@ +import request from '@/utils/request' + +// ---------- 基础参数设置 ------------------ + +// 查询基础参数列表 + export function getSettingListApi(data) { + return request({ + url: '/smart-canteen/basic_setting/list', + method: 'get', + headers: { + "merchant-id":"378915229716713472", + }, + params: data + }) + } + + // 编辑基础参数 + export function batchEditSettingApi(data) { + return request({ + url: '/smart-canteen/basic_setting/batchEdit', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } + + // 编辑基础参数 + export function batchResetSettingApi(data) { + return request({ + url: '/smart-canteen/basic_setting/batchToDefault', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) + } \ No newline at end of file diff --git a/src/views/kitchen/baseSetting/index.vue b/src/views/kitchen/baseSetting/index.vue index b25b4c1c..35fbabfb 100644 --- a/src/views/kitchen/baseSetting/index.vue +++ b/src/views/kitchen/baseSetting/index.vue @@ -8,7 +8,7 @@