From a40acba00a1af3b6a81b22ef247ece3a8ded693b Mon Sep 17 00:00:00 2001 From: zhaoyiran Date: Tue, 18 Mar 2025 16:37:01 +0800 Subject: [PATCH] =?UTF-8?q?SBBJ-895=E5=9B=BA=E5=AE=9A=E8=B5=84=E4=BA=A7?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E7=85=A7=E7=89=87=E6=9F=A5=E7=9C=8B=EF=BC=8C?= =?UTF-8?q?=E5=8F=AA=E8=83=BD=E5=9C=A8=E7=BC=96=E8=BE=91=E4=B8=AD=E6=9F=A5?= =?UTF-8?q?=E7=9C=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/eam/basic/fixedAssets/index.vue | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/views/eam/basic/fixedAssets/index.vue b/src/views/eam/basic/fixedAssets/index.vue index 78460fb..0947439 100644 --- a/src/views/eam/basic/fixedAssets/index.vue +++ b/src/views/eam/basic/fixedAssets/index.vue @@ -36,7 +36,7 @@ @@ -152,10 +152,13 @@ const buttonBaseClick = (val, item) => { } // 列表-操作按钮 -const butttondata = [ - defaultButtons.mainListEditBtn({hasPermi:'eam:fixed-assets:update'}), // 编辑 - defaultButtons.mainListDeleteBtn({hasPermi:'eam:fixed-assets:delete'}), // 删除 -] +const butttondata = (row) => { + return [ + defaultButtons.mainListEditBtn({hasPermi:'eam:fixed-assets:update'}), // 编辑 + defaultButtons.mainListDeleteBtn({hasPermi:'eam:fixed-assets:delete'}), // 删除 + defaultButtons.viewBtn({ hide: !(row.filePathList != null && row.filePathList.length != 0) }) + ] +} // 列表-操作按钮事件 const buttonTableClick = async (val, row) => {