From da5d2a1d0b14978762a12ac200ca4ef42678087d Mon Sep 17 00:00:00 2001 From: shuzhenyang Date: Wed, 27 Nov 2024 11:55:11 +0800 Subject: [PATCH] =?UTF-8?q?fix(resource):=20=E8=B5=84=E6=BA=90=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E6=95=B0=E6=8D=AE=E5=AF=BC=E5=87=BA=E9=99=90=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/dashboard-front/src/views/resource/setting/index.vue | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/dashboard-front/src/views/resource/setting/index.vue b/src/dashboard-front/src/views/resource/setting/index.vue index bbb3edd1e..006ab4a59 100644 --- a/src/dashboard-front/src/views/resource/setting/index.vue +++ b/src/dashboard-front/src/views/resource/setting/index.vue @@ -1104,7 +1104,7 @@ const handleOutBatch = () => { { value: 'filtered', label: t('已筛选资源'), - disabled: !searchValue.value.length, + disabled: !searchValue.value.length || !tableData.value.length, tooltips: t('请先筛选资源'), }, ]; @@ -1426,6 +1426,12 @@ watch( item.isEditLabel = false; }); + exportDropData.value.forEach((e: IDropList) => { + if (e.value === 'filtered') { + e.disabled = !v.length || !searchValue.value.length; + } + }); + updateTableEmptyConfig(); }, { immediate: true },