Commit 1722f42d by zhaochengxiang

授权

parent 6c75e90c
......@@ -675,6 +675,8 @@ const ModelTable = (props) => {
const index = (key.split('-'))[1];
const action = currentItem?.state?.supportedActions[index];
stateAction(currentItem, action);
} else if (key === 'admit') {
app.openAdmit?.({ dirId: catalogId, service: currentItem })
}
}
......@@ -807,10 +809,15 @@ const ModelTable = (props) => {
})
}
{
currentItem?.state?.id?.indexOf('4')!==-1 && <RcItem id="admit" onClick={handleItemClick}>
授权
</RcItem>
}
{/* {
getDataModelerRole(user)!==DataModelerRoleReader &&currentItem?.deployable && <RcItem id='createTable' onClick={handleItemClick}>
建表
</RcItem>
}
} */}
</RcMenu>
{ contextHolder }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment