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/model.js |  111 +++++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 files changed, 111 insertions(+), 0 deletions(-)

diff --git a/Source/UBCS-WEB/dist/src/api/tool/model.js b/Source/UBCS-WEB/dist/src/api/tool/model.js
new file mode 100644
index 0000000..71ad620
--- /dev/null
+++ b/Source/UBCS-WEB/dist/src/api/tool/model.js
@@ -0,0 +1,111 @@
+import request from '@/router/axios';
+
+export const getList = (current, size, params) => {
+  return request({
+    url: '/api/ubcs-develop/model/list',
+    method: 'get',
+    params: {
+      ...params,
+      current,
+      size,
+    }
+  })
+}
+
+export const getDetail = (id) => {
+  return request({
+    url: '/api/ubcs-develop/model/detail',
+    method: 'get',
+    params: {
+      id
+    }
+  })
+}
+
+export const remove = (ids) => {
+  return request({
+    url: '/api/ubcs-develop/model/remove',
+    method: 'post',
+    params: {
+      ids,
+    }
+  })
+}
+
+export const add = (row) => {
+  return request({
+    url: '/api/ubcs-develop/model/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const update = (row) => {
+  return request({
+    url: '/api/ubcs-develop/model/submit',
+    method: 'post',
+    data: row
+  })
+}
+
+export const getTableList = (datasourceId) => {
+  return request({
+    url: '/api/ubcs-develop/model/table-list',
+    method: 'get',
+    params: {
+      datasourceId,
+    }
+  })
+}
+
+export const getTableInfo = (modelId, datasourceId) => {
+  return request({
+    url: '/api/ubcs-develop/model/table-info',
+    method: 'get',
+    params: {
+      modelId,
+      datasourceId,
+    }
+  })
+}
+
+export const getTableInfoByName = (tableName, datasourceId) => {
+  return request({
+    url: '/api/ubcs-develop/model/table-info',
+    method: 'get',
+    params: {
+      tableName,
+      datasourceId,
+    }
+  })
+}
+
+export const getModelPrototype = (modelId, datasourceId) => {
+  return request({
+    url: '/api/ubcs-develop/model/model-prototype',
+    method: 'get',
+    params: {
+      modelId,
+      datasourceId,
+    }
+  })
+}
+
+export const submitModelPrototype = (row) => {
+  return request({
+    url: '/api/ubcs-develop/model-prototype/submit-list',
+    method: 'post',
+    data: row
+  })
+}
+
+
+export const prototypeDetail = (modelId) => {
+  return request({
+    url: '/api/ubcs-develop/model-prototype/select',
+    method: 'get',
+    params: {
+      modelId,
+    }
+  })
+}

--
Gitblit v1.9.3