From 12164869a966197cb89741d68bfb0ecea37499e0 Mon Sep 17 00:00:00 2001 From: zhufu <17863654727@163.com> Date: Tue, 17 Jun 2025 16:58:11 +0800 Subject: [PATCH] =?UTF-8?q?=E9=A1=B9=E7=9B=AE=E9=A6=96=E9=A1=B5-=E9=A1=B9?= =?UTF-8?q?=E7=9B=AE=E5=88=97=E8=A1=A8-=E9=A1=B9=E7=9B=AE=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/demo/projecthome.ts | 7 ++++++ .../projecthome/ProjectList/index.vue | 23 ++++++++++++++++--- 2 files changed, 27 insertions(+), 3 deletions(-) diff --git a/src/api/demo/projecthome.ts b/src/api/demo/projecthome.ts index eb3f52f..5bbde2f 100644 --- a/src/api/demo/projecthome.ts +++ b/src/api/demo/projecthome.ts @@ -5,6 +5,7 @@ enum Api { GetWorkspaceList = '/api/Manage/GetWorkspaceList', GetWorkSpaceById = '/api/Manage/GetWorkSpaceById', EditWorkspace = '/api/Manage/EditWorkspace', + DeleteWorkspace = '/api/Manage/DeleteWorkspace', } export function GetUavList(params?) { @@ -25,6 +26,12 @@ export function EditWorkspace(params) { params }); } +export function DeleteWorkspace(params: { id: string }) { + return defHttp.post({ + url: `${Api.DeleteWorkspace}?id=${params.id}`, + params, + }); +} export function GetWorkspaceList(params?) { return defHttp.get({ url: Api.GetWorkspaceList, diff --git a/src/views/demo/workmanagement/projecthome/ProjectList/index.vue b/src/views/demo/workmanagement/projecthome/ProjectList/index.vue index 1d22498..58b743b 100644 --- a/src/views/demo/workmanagement/projecthome/ProjectList/index.vue +++ b/src/views/demo/workmanagement/projecthome/ProjectList/index.vue @@ -32,8 +32,10 @@