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) + } } /** 添加/修改操作 */