Commit 365755fc by zhaochengxiang

授权

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