From 9782981ecf77e5b4e7d991d05da3b7792450e7fa Mon Sep 17 00:00:00 2001 From: limengnan <420004014@qq.com> Date: Thu, 4 Jun 2026 10:01:38 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=E5=88=A0=E9=99=A4=E6=96=B9?= =?UTF-8?q?=E6=B3=95=E5=92=8C=E5=A4=8D=E5=88=B6=E8=AE=BE=E5=A4=87bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../frontend/src/api/business/event/index.ts | 16 ++++++++-------- .../frontend/src/components/antvx6/index.vue | 7 +++++++ 2 files changed, 15 insertions(+), 8 deletions(-) diff --git a/business-css/frontend/src/api/business/event/index.ts b/business-css/frontend/src/api/business/event/index.ts index 9909ede..a3dfc3b 100644 --- a/business-css/frontend/src/api/business/event/index.ts +++ b/business-css/frontend/src/api/business/event/index.ts @@ -32,14 +32,14 @@ export function eventsBatchSave(data:any){ // } -// //单个删除项目 -// export function deleteScenarios(queryParams:any){ -// return request({ -// url:'/events/'+queryParams.id , -// method: 'delete' -// // params: queryParams -// }); -// } +// //单个删除事件 +export function deleteEvents(eventId:any){ + return request({ + url:'/events/'+eventId , + method: 'delete' + // params: queryParams + }); +} // //多选删除项目 // export function deleteBatchScenarios(queryParams:any){ // return request({ diff --git a/business-css/frontend/src/components/antvx6/index.vue b/business-css/frontend/src/components/antvx6/index.vue index 7dca7c2..78b848f 100644 --- a/business-css/frontend/src/components/antvx6/index.vue +++ b/business-css/frontend/src/components/antvx6/index.vue @@ -1688,6 +1688,13 @@ const confirmCopyClick = async ()=>{ loading.value = false saveDesign(false) isCopy.value = false + let json = graph.toJSON() + tabDeviceNum.value = 0 + for(let i = 0; i < json.cells.length; i++){ + if(json.cells[i].shape == 'custom-image'){ + tabDeviceNum.value++ + } + }antvStatus.value = '复制设备' }