From 8c7966e107caa5dd8cd43818a487252178c1a66c Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 20 七月 2023 16:09:20 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- Source/UBCS-WEB/dist/src/api/base/region.js | 53 +++++++++++++++++++++++++++++++++++++++++++++++++++++ 1 files changed, 53 insertions(+), 0 deletions(-) diff --git a/Source/UBCS-WEB/dist/src/api/base/region.js b/Source/UBCS-WEB/dist/src/api/base/region.js new file mode 100644 index 0000000..0bc626a --- /dev/null +++ b/Source/UBCS-WEB/dist/src/api/base/region.js @@ -0,0 +1,53 @@ +import request from '@/router/axios'; + +export const getList = (current, size, params) => { + return request({ + url: '/api/ubcs-system/region/list', + method: 'get', + params: { + ...params, + current, + size, + } + }) +} + +export const getLazyTree = (parentCode, params) => { + return request({ + url: '/api/ubcs-system/region/lazy-tree', + method: 'get', + params: { + ...params, + parentCode + } + }) +} + +export const getDetail = (code) => { + return request({ + url: '/api/ubcs-system/region/detail', + method: 'get', + params: { + code + } + }) +} + +export const remove = (id) => { + return request({ + url: '/api/ubcs-system/region/remove', + method: 'post', + params: { + id, + } + }) +} + +export const submit = (row) => { + return request({ + url: '/api/ubcs-system/region/submit', + method: 'post', + data: row + }) +} + -- Gitblit v1.9.3