From 19d6ddd5c4ee5a9d679103d7123d9654774555a2 Mon Sep 17 00:00:00 2001 From: "peng.peng" Date: Thu, 29 Jun 2023 08:56:08 +0800 Subject: [PATCH] =?UTF-8?q?=EF=BC=88*=EF=BC=89=E7=94=B3=E8=AF=B7=E8=B5=84?= =?UTF-8?q?=E6=BA=90=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- api/app/lib/controllers/homepage/index.js | 3 ++- .../src/sections/metadataManagement/containers/filesTable.js | 2 +- .../sections/metadataManagement/containers/restapisTable.js | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/api/app/lib/controllers/homepage/index.js b/api/app/lib/controllers/homepage/index.js index 1c0d886..7a5be17 100644 --- a/api/app/lib/controllers/homepage/index.js +++ b/api/app/lib/controllers/homepage/index.js @@ -62,5 +62,6 @@ async function getCPUUsage() { module.exports = { - getNodeResources + getNodeResources, + } diff --git a/web/client/src/sections/metadataManagement/containers/filesTable.js b/web/client/src/sections/metadataManagement/containers/filesTable.js index 72e925b..1ab54f3 100644 --- a/web/client/src/sections/metadataManagement/containers/filesTable.js +++ b/web/client/src/sections/metadataManagement/containers/filesTable.js @@ -205,7 +205,7 @@ const FilesTable = (props) => { width: '8%', render: (text, record) => { let resourceApplicationsRecords = metadataResourceApplications.filter(ra => - ra.applyBy == user.id && ra.resourceName === record.name && ra.resourceId == record.id); + ra.applyBy == user.id && ra.resourceName === record.name && ra.resourceId == record.id && !!record.token); return {user.role == '数据消费者' ? null : <> diff --git a/web/client/src/sections/metadataManagement/containers/restapisTable.js b/web/client/src/sections/metadataManagement/containers/restapisTable.js index af6c907..5ebefc1 100644 --- a/web/client/src/sections/metadataManagement/containers/restapisTable.js +++ b/web/client/src/sections/metadataManagement/containers/restapisTable.js @@ -141,7 +141,7 @@ const RestapisTable = (props) => { width: '8%', render: (text, record) => { let resourceApplicationsRecords = metadataResourceApplications.filter(ra => - ra.applyBy == user.id && ra.resourceName === record.name && ra.resourceId == record.id); + ra.applyBy == user.id && ra.resourceName === record.name && ra.resourceId == record.id && !!record.token); return {user.role == '数据消费者' ? null : <>