wenlele 2 years ago
parent
commit
c72ff32763
  1. 3
      api/app/lib/controllers/homepage/index.js
  2. 2
      web/client/src/sections/metadataManagement/containers/filesTable.js
  3. 2
      web/client/src/sections/metadataManagement/containers/restapisTable.js

3
api/app/lib/controllers/homepage/index.js

@ -62,5 +62,6 @@ async function getCPUUsage() {
module.exports = {
getNodeResources
getNodeResources,
}

2
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 <ButtonGroup>
{user.role == '数据消费者' ? null :
<>

2
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 <ButtonGroup>
{user.role == '数据消费者' ? null :
<>

Loading…
Cancel
Save