From 33f1649f0a237b4b8ef09ebd93a3c4d3d5bc5119 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=88=B1=7E=E6=B5=B7=7E=E7=88=B1=E6=B5=B7=E7=88=B1?= =?UTF-8?q?=E6=B5=B7=7E=E5=8F=B3?= <1828712314@qq.com> Date: Mon, 31 Mar 2025 15:34:49 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD=EF=BC=8C=E6=94=AF=E6=8C=81=E9=80=9A=E8=BF=87=E7=B4=A2?= =?UTF-8?q?=E5=BC=95=E5=88=A0=E9=99=A4=E9=A1=B9=E7=9B=AE=EF=BC=8C=E8=B0=83?= =?UTF-8?q?=E6=95=B4=E6=A0=87=E7=AD=BE=E5=88=87=E6=8D=A2=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/enterprises/update.vue | 25 ++++++++++++++++++------- src/views/screen/compenonts/tabber.vue | 4 ++-- 2 files changed, 20 insertions(+), 9 deletions(-) diff --git a/src/views/enterprises/update.vue b/src/views/enterprises/update.vue index 66b26be..6a72839 100644 --- a/src/views/enterprises/update.vue +++ b/src/views/enterprises/update.vue @@ -164,7 +164,11 @@ 放大 -
+
删除
@@ -207,7 +211,9 @@ @@ -459,11 +465,16 @@ const getProveList = () => { }) } -const deleteProve = (id: any) => { - EnterpriseQualificationApi.deleteEnterpriseQualification(id).then(() => { - message.success('删除成功') - getProveList() - }) +const deleteProve = (params) => { + if (params.id) { + EnterpriseQualificationApi.deleteEnterpriseQualification(params.id).then(() => { + message.success('删除成功') + getProveList() + }) + } else { + proveList.value.splice(params.index, 1) + message.success('删除成功') + } } const getLogList = () => { diff --git a/src/views/screen/compenonts/tabber.vue b/src/views/screen/compenonts/tabber.vue index ca763ba..d7e1cc7 100644 --- a/src/views/screen/compenonts/tabber.vue +++ b/src/views/screen/compenonts/tabber.vue @@ -13,10 +13,10 @@
{{ item }}