From a9c0c1316c95e774e840237378359275645f57ca Mon Sep 17 00:00:00 2001 From: zzyuan <781948537@qq.com> Date: Tue, 4 Mar 2025 18:41:42 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8C=BA=E5=9F=9F=E7=AE=A1=E7=90=86=E9=A1=B5?= =?UTF-8?q?=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/base/area.js | 94 +++++ src/views/base/area/index.vue | 648 ++++++++++++++++++++++++++++++++++ 2 files changed, 742 insertions(+) create mode 100644 src/api/base/area.js diff --git a/src/api/base/area.js b/src/api/base/area.js new file mode 100644 index 00000000..63cd3f7c --- /dev/null +++ b/src/api/base/area.js @@ -0,0 +1,94 @@ +import request from '@/utils/request' + +// export function listData(query) { +// return request({ +// url: '/system/dict/data/list', +// method: 'get', +// params: query +// }) +// } + +// export function getDicts(dictType) { +// return request({ +// url: '/system/dict/data/type/' + dictType, +// method: 'get' +// }) +// } + +// 系统区域权限树 +export function systemAreaTreeApi(data) { + return request({ + url: '/smart-canteen/api/v2/alloc/area/system-auth/tree', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 查询区域列表 +export function getAreaListApi(data) { + return request({ + url: '/smart-canteen/api/v2/alloc/area/page', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 根据区域id,查询区域名称 +export function getAreaNameApi(data) { + return request({ + url: '/smart-canteen/api/v2/alloc/area/get-area-name', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 查询区域(食堂,档口,餐线)编号 +export function getAreaNumApi(data) { + return request({ + url: 'smart-canteen/api/v2/alloc/canteen/get-canteen-num', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +// 新增区域 +export function addAreaApi(data) { + return request({ + url: 'smart-canteen/api/v2/alloc/area/add', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +//修改区域 +export function updateAreaApi(data) { + return request({ + url: 'smart-canteen/api/v2/alloc/area/update', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} +//删除区域 +export function removeAreaApi(data) { + return request({ + url: 'smart-canteen/api/v2/alloc/area/remove', + method: 'post', + headers: { + "merchant-id":"378915229716713472", + }, + data: data + }) +} diff --git a/src/views/base/area/index.vue b/src/views/base/area/index.vue index e69de29b..6b101515 100644 --- a/src/views/base/area/index.vue +++ b/src/views/base/area/index.vue @@ -0,0 +1,648 @@ + + + + + \ No newline at end of file