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 : <>