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