From fcdc4224c8be4177b85fead6d128e4699e6385cd Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Mon, 24 Mar 2025 17:19:02 +0800 Subject: [PATCH] =?UTF-8?q?SBBJ-902=E8=AE=BE=E5=A4=87=E5=8F=B0=E8=B4=A6?= =?UTF-8?q?=E3=80=81=E5=9C=BA=E5=86=85=E6=A8=A1=E5=85=B7=E5=8F=B0=E8=B4=A6?= =?UTF-8?q?=E3=80=81=E5=8E=82=E5=A4=96=E6=A8=A1=E5=85=B7=E5=8F=B0=E8=B4=A6?= =?UTF-8?q?=E9=9C=80=E8=A6=81=E5=A2=9E=E5=8A=A0=E5=88=A0=E9=99=A4=E5=8A=9F?= =?UTF-8?q?=E8=83=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/device/deviceAccounts/index.vue | 4 +++- src/views/eam/mold/moldAccounts/index.vue | 6 ++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/src/views/eam/device/deviceAccounts/index.vue b/src/views/eam/device/deviceAccounts/index.vue index 1c6bb5c..64e9993 100644 --- a/src/views/eam/device/deviceAccounts/index.vue +++ b/src/views/eam/device/deviceAccounts/index.vue @@ -173,7 +173,7 @@ // 列表-操作按钮 const butttondata = [ defaultButtons.mainListEditBtn({hasPermi:'eam:device-accounts:update'}), // 编辑 - // defaultButtons.mainListDeleteBtn(null), // 删除 + defaultButtons.mainListDeleteBtn(null), // 删除 defaultButtons.selectQrCodeBtn(null), //二维码 defaultButtons.selectItemBtn(null) //备件 ] @@ -193,6 +193,8 @@ openItem(row.number) } else if (val == 'qrCode') { window.open(src.value + "&number='" + row.number + "'") + } else if(val == 'delete'){ + handleDelete(row.id) } else { // 其他按钮 console.log('其他按钮', val, row) diff --git a/src/views/eam/mold/moldAccounts/index.vue b/src/views/eam/mold/moldAccounts/index.vue index eb749f2..228bf59 100644 --- a/src/views/eam/mold/moldAccounts/index.vue +++ b/src/views/eam/mold/moldAccounts/index.vue @@ -223,7 +223,7 @@ const buttonBaseClick = (val, item) => { // 列表-操作按钮 const butttondata = [ defaultButtons.mainListEditBtn({hasPermi:'eam:mold-accounts:update'}), // 编辑 - // defaultButtons.mainListDeleteBtn(null), // 删除 + defaultButtons.mainListDeleteBtn(null), // 删除 defaultButtons.selectQrCodeBtn(null), //二维码 // defaultButtons.selectItemBtn(null) //备件 ] @@ -237,7 +237,9 @@ const buttonTableClick = async (val, row) => { window.open(src.value + "&number='" + row.number + "'") } else if (val == 'selectItem') { openItem(row.number) - } + } else if(val == 'delete'){ + handleDelete(row.id) + } } /** 添加/修改操作 */