From f2e217064c63c63e7be741d20aba8c6acfffb469 Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Fri, 26 Jul 2024 17:08:36 +0800 Subject: [PATCH] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E8=AE=B0=E5=BD=95=E7=BC=96?= =?UTF-8?q?=E8=BE=91=E6=98=BE=E7=A4=BA=E8=BF=98=E6=98=AF=E9=9A=90=E8=97=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionRecord/index.vue | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/views/qms/inspectionRecord/index.vue b/src/views/qms/inspectionRecord/index.vue index 678b64570..989ddb785 100644 --- a/src/views/qms/inspectionRecord/index.vue +++ b/src/views/qms/inspectionRecord/index.vue @@ -160,7 +160,13 @@ const buttonBaseClick = (val, item) => { return val ? true : false } } - + const isShowEditBtn = (row, val) => { + if (val.indexOf(row.inspectionType) > -1) { + return true + } else { + return row.useDecision + } + } // 列表-操作按钮 const butttondata = (row) => { return [ @@ -173,7 +179,7 @@ const buttonBaseClick = (val, item) => { // hide:row.useDecision, // hasPermi: 'qms:inspection-recode-main:execute', // }), // 执行 - defaultButtons.mainListEditBtn({ hide:row.useDecision }), // 编辑 + defaultButtons.mainListEditBtn({ hide:isShowEditBtn(row,['11'])}), // 编辑 ] }