From d109253bd011bd2e67859cc9a972acbb670108f4 Mon Sep 17 00:00:00 2001 From: gssong <1742057357@qq.com> Date: Sun, 4 Jun 2023 18:06:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E6=A8=A1=E5=9E=8B=E9=83=A8?= =?UTF-8?q?=E7=BD=B2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/workflow/model/index.ts | 18 +++++++++++++++--- src/views/workflow/model/index.vue | 9 ++++++--- 2 files changed, 21 insertions(+), 6 deletions(-) diff --git a/src/api/workflow/model/index.ts b/src/api/workflow/model/index.ts index 097ca27..3c4138c 100644 --- a/src/api/workflow/model/index.ts +++ b/src/api/workflow/model/index.ts @@ -29,11 +29,23 @@ export const addModel = (data: Object) => { /** * 按id删除模型 * @param {模型id} id - * @returns + * @returns {*} */ -export function delModel(id:Object) { +export function delModel(id: Object) { return request({ url: '/workflow/model/' + id, method: 'delete' }) -} \ No newline at end of file +} + +/** + * 模型部署 + * @param {模型id} id + * @returns {*} + */ +export const modelDeploy = (id: String) => { + return request({ + url: `/workflow/model/modelDeploy/${id}`, + method: 'post' + }); +}; \ No newline at end of file diff --git a/src/views/workflow/model/index.vue b/src/views/workflow/model/index.vue index 3f4f6b8..675a01b 100644 --- a/src/views/workflow/model/index.vue +++ b/src/views/workflow/model/index.vue @@ -92,7 +92,7 @@