From f8188da5c9022239ce8d7de5a004120eb92a231a Mon Sep 17 00:00:00 2001
From: wangting <675591594@qq.com>
Date: 星期五, 14 七月 2023 15:33:28 +0800
Subject: [PATCH] 附件列表联动

---
 Source/UBCS-WEB/dist/src/api/tool/datasource.js |   50 ++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 50 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/dist/src/api/tool/datasource.js b/Source/UBCS-WEB/dist/src/api/tool/datasource.js
new file mode 100644
index 0000000..8b6f38f
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/api/tool/datasource.js
@@ -0,0 +1,50 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/ubcs-develop/datasource/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/ubcs-develop/datasource/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/ubcs-develop/datasource/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/ubcs-develop/datasource/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/ubcs-develop/datasource/submit',
+    method: 'post',
+    data: row
+  })
+}
+

--
Gitblit v1.9.3