From e581891072a36f0d0f7f57246366ded965e2ab8a Mon Sep 17 00:00:00 2001
From: xiejun <xiejun@vci-tech.com>
Date: 星期四, 25 一月 2024 10:11:17 +0800
Subject: [PATCH] 获取集团分类根节点前端传null传入后端直接改为空字符串bug修复

---
 Source/UBCS-WEB/src/api/omd/btmType.js |   28 ++++++++++++++++++++++++++++
 1 files changed, 28 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/src/api/omd/btmType.js b/Source/UBCS-WEB/src/api/omd/btmType.js
index 1d9218e..11938d0 100644
--- a/Source/UBCS-WEB/src/api/omd/btmType.js
+++ b/Source/UBCS-WEB/src/api/omd/btmType.js
@@ -40,4 +40,32 @@
             oid: oid
         }
     })
+}
+
+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/' + auto,
+        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
+        }
+    })
 }
\ No newline at end of file

--
Gitblit v1.10.0