From da0fd2d14b912d055d850317a7161eb969540f43 Mon Sep 17 00:00:00 2001 From: songguoqiang Date: Tue, 18 Mar 2025 15:07:28 +0800 Subject: [PATCH] =?UTF-8?q?YT-2138:=E3=80=8A=E5=A4=96=E9=83=A8=E6=8E=A5?= =?UTF-8?q?=E5=8F=A3=E8=AE=B0=E5=BD=95=E3=80=8B=E5=A2=9E=E5=8A=A0=E3=80=90?= =?UTF-8?q?=E6=89=B9=E9=87=8F=E9=87=8D=E8=AF=95=E3=80=91=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=8C=E5=A2=9E=E5=8A=A0=E5=85=A8=E9=83=A8=E9=87=8D=E8=AF=95?= =?UTF-8?q?=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/infra/outerApiHis/index.vue | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/src/views/infra/outerApiHis/index.vue b/src/views/infra/outerApiHis/index.vue index 60e6ad669..cc221822b 100644 --- a/src/views/infra/outerApiHis/index.vue +++ b/src/views/infra/outerApiHis/index.vue @@ -105,16 +105,25 @@ const { tableObject, tableMethods } = useTable({ const { getList, setSearchParams } = tableMethods // 列表头部按钮 -const HeadButttondata = [ +const HeadButttondata = computed(()=>{ + const button = [ // defaultButtons.defaultAddBtn({hasPermi:'wms:outerApiHis:create'}), // 新增 // defaultButtons.defaultImportBtn({hasPermi:'wms:outerApiHis:import'}), // 导入 - defaultButtons.mainListSelectionReTryBtn(null), // 批量重试 - defaultButtons.mainListAllReTryBtn(null), // 全部重试 + // defaultButtons.mainListSelectionReTryBtn(null), // 批量重试 + defaultButtons.defaultExportBtn(null), // 导出 + defaultButtons.mainListAllReTryBtn(null), // 全部重试 defaultButtons.defaultFreshBtn(null), // 刷新 defaultButtons.defaultFilterBtn(null), // 筛选 defaultButtons.defaultSetBtn(null), // 设置 -] +] +if(selectionRows.value.length > 0 ){ + button.push(defaultButtons.mainListSelectionReTryBtn(null)) + }else{ + button.push(defaultButtons.mainListSelectionReTryBtn({type: 'info',})) + } + return button +}) // 头部按钮事件 const buttonBaseClick = (val, item) => {