Commit 93fe8351 by zhaochengxiang

操作

parent 9c4e2939
...@@ -364,10 +364,15 @@ const ModelTable = (props) => { ...@@ -364,10 +364,15 @@ const ModelTable = (props) => {
const authActions = actions.filter(item => authActionTitles.indexOf(item.title) !== -1); const authActions = actions.filter(item => authActionTitles.indexOf(item.title) !== -1);
if (getDataModelerRole(user)!==DataModelerRoleReader && view!=='grant') {
record.state?.supportedActions?.forEach((item, index) => {
authActions.push({ title: item.cnName, key: `action-${index}` });
});
}
const haveMore = authActions.length > 3; const haveMore = authActions.length > 3;
const showActions = authActions.slice(0, 3); const showActions = authActions.slice(0, 3);
const hiddenActions = authActions.slice(3, authActions.length); const hiddenActions = authActions.slice(3, authActions.length);
console.log('hiddenActions', hiddenActions);
return ( return (
<Row gutter={20}> <Row gutter={20}>
......
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