From 6ca4dcf73b6fd1ac42c77c75c8ce422a75b75a19 Mon Sep 17 00:00:00 2001 From: 田源 <lastanimals@163.com> Date: 星期四, 07 三月 2024 09:59:54 +0800 Subject: [PATCH] 整合代码 --- Source/UBCS-WEB/src/api/omd/btmType.js | 41 ++++++++++++++++++++++++++++++++++++++++- 1 files changed, 40 insertions(+), 1 deletions(-) diff --git a/Source/UBCS-WEB/src/api/omd/btmType.js b/Source/UBCS-WEB/src/api/omd/btmType.js index 1d9218e..a082511 100644 --- a/Source/UBCS-WEB/src/api/omd/btmType.js +++ b/Source/UBCS-WEB/src/api/omd/btmType.js @@ -40,4 +40,43 @@ oid: oid } }) -} \ No newline at end of file +} + +export const add = (btmType,auto) => { + return request({ + url: '/api/ubcs-omd/btm-type/submit/' + auto, + method: 'post', + data: btmType + }) +} + +export const update = (btmType) => { + return request({ + url: '/api/ubcs-omd/btm-type/submit/', + method: 'post', + data: btmType + }) +} + +export const btmPage = (current,size,params) => { + return request ({ + url: '/api/ubcs-omd/btm-type/page', + method: 'get', + params: { + current, + size, + ...params + } + }) +} + +//榛樿璇锋眰 +export const defaultRequestHandler =(defaultAttrType) => { + return request({ + url:'/api/ubcs-omd/btm-type/getDefaultAttr', + method:'get', + params:{ + defaultAttrType + } + }) +} -- Gitblit v1.9.3