Commit 365755fc by zhaochengxiang

授权

parent 1b018364
......@@ -755,10 +755,8 @@ const AssetTable = (props) => {
})
}
const handleItemClick = ({ event, props, data, triggerEvent }) => {
const key = event.currentTarget.id;
if (key === 'uncombed') {
const handleItemClick = ({ id, event, props }) => {
if (id === 'uncombed') {
modal.confirm({
title: '提示',
content: '是否将该条非资产的资源转为未梳理状态?',
......@@ -782,7 +780,7 @@ const AssetTable = (props) => {
});
}
});
} else if (key === 'notRelatedAsset') {
} else if (id === 'notRelatedAsset') {
modal.confirm({
title: '提示',
content: '是否将该条未梳理的资源转为非资产?',
......@@ -806,7 +804,7 @@ const AssetTable = (props) => {
});
}
});
} else if (key === 'authorization') {
} else if (id === 'authorization') {
app?.setGlobalState && app?.setGlobalState({
message: 'data-govern-assets-admit',
data: contextMenuItem
......
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