Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
ee27b8a2
Commit
ee27b8a2
authored
Dec 28, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
授权
parent
933c9f2a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
24 additions
and
10 deletions
+24
-10
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+24
-10
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
ee27b8a2
import
React
,{
useState
,
useEffect
,
useRef
}
from
"react"
;
import
React
,{
useState
,
useEffect
,
useRef
,
useContext
}
from
"react"
;
import
{
Button
,
Pagination
,
Space
,
Modal
,
Input
,
Table
,
Tooltip
,
Checkbox
,
Typography
,
Dropdown
,
Menu
}
from
"antd"
;
import
{
Button
,
Pagination
,
Space
,
Modal
,
Input
,
Table
,
Tooltip
,
Checkbox
,
Typography
,
Dropdown
,
Menu
}
from
"antd"
;
import
classNames
from
'classnames'
;
import
classNames
from
'classnames'
;
import
{
Resizable
}
from
'react-resizable'
;
import
{
Resizable
}
from
'react-resizable'
;
...
@@ -21,6 +21,7 @@ import WorkbookDrawer from "./WorkbookDrawer";
...
@@ -21,6 +21,7 @@ import WorkbookDrawer from "./WorkbookDrawer";
import
"./AssetTable.less"
;
import
"./AssetTable.less"
;
import
'react-contexify/dist/ReactContexify.css'
;
import
'react-contexify/dist/ReactContexify.css'
;
import
{
AppContext
}
from
"../../../../App"
;
const
{
Text
}
=
Typography
;
const
{
Text
}
=
Typography
;
const
{
Search
}
=
Input
;
const
{
Search
}
=
Input
;
...
@@ -156,6 +157,7 @@ const AssetTable = (props) => {
...
@@ -156,6 +157,7 @@ const AssetTable = (props) => {
const
[
biType
,
setBiType
]
=
useState
(
''
);
const
[
biType
,
setBiType
]
=
useState
(
''
);
const
[
reportTypes
,
setReportTypes
]
=
useState
();
const
[
reportTypes
,
setReportTypes
]
=
useState
();
const
[
report
,
setReport
]
=
useState
();
const
[
report
,
setReport
]
=
useState
();
const
app
=
useContext
(
AppContext
);
const
[
modal
,
contextHolder
]
=
Modal
.
useModal
();
const
[
modal
,
contextHolder
]
=
Modal
.
useModal
();
const
anchorId
=
getQueryParam
(
AnchorId
,
props
?.
location
?.
search
);
const
anchorId
=
getQueryParam
(
AnchorId
,
props
?.
location
?.
search
);
...
@@ -807,6 +809,15 @@ const AssetTable = (props) => {
...
@@ -807,6 +809,15 @@ const AssetTable = (props) => {
});
});
}
}
});
});
}
else
if
(
key
===
'authorization'
)
{
if
(
contextMenuItem
?.
metadata
?.
metadataTableId
)
{
app
?.
setGlobalState
&&
app
?.
setGlobalState
({
message
:
'data-govern-assets-admit'
,
data
:
contextMenuItem
})
}
else
{
showMessage
(
"warn"
,
"该资产目录没有关联元数据信息"
);
}
}
}
}
}
...
@@ -1088,16 +1099,19 @@ const AssetTable = (props) => {
...
@@ -1088,16 +1099,19 @@ const AssetTable = (props) => {
onCancel=
{
onWorkbookDrawerCancel
}
onCancel=
{
onWorkbookDrawerCancel
}
/>
/>
<
RcMenu
id=
{
MENU_ID
}
>
<
RcMenu
id=
{
MENU_ID
}
>
{
{
(
contextMenuItem
.
resourceState
===
'notRelatedAsset'
)
&&
<
RcItem
id=
"uncombed"
onClick=
{
handleItemClick
}
>
(
contextMenuItem
.
resourceState
===
'notRelatedAsset'
)
&&
<
RcItem
id=
"uncombed"
onClick=
{
handleItemClick
}
>
转为未梳理
转为未梳理
</
RcItem
>
</
RcItem
>
}
}
{
{
(
contextMenuItem
.
resourceState
===
'uncombed'
)
&&
<
RcItem
id=
"notRelatedAsset"
onClick=
{
handleItemClick
}
>
(
contextMenuItem
.
resourceState
===
'uncombed'
)
&&
<
RcItem
id=
"notRelatedAsset"
onClick=
{
handleItemClick
}
>
转为非资产
转为非资产
</
RcItem
>
}
<
RcItem
id=
"authorization"
onClick=
{
handleItemClick
}
>
授权
</
RcItem
>
</
RcItem
>
}
</
RcMenu
>
</
RcMenu
>
{
contextHolder
}
{
contextHolder
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment