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
361facf3
Commit
361facf3
authored
Nov 03, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产授权
parent
d28ae430
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
14 deletions
+24
-14
dataassetmanager.js
src/service/dataassetmanager.js
+1
-1
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+21
-10
AttributeRelationModal.jsx
...w/Manage/AssetManage/Component/AttributeRelationModal.jsx
+2
-3
No files found.
src/service/dataassetmanager.js
View file @
361facf3
import
{
PostJSON
,
GetJSON
,
PostFile
,
Post
,
Delete
}
from
"../util/axios"
import
{
PostJSON
,
GetJSON
,
PostFile
,
Post
}
from
"../util/axios"
export
function
importElement
(
payload
)
{
return
PostFile
(
"/dataassetmanager/elementApi/import"
,
payload
);
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
361facf3
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
classNames
from
'classnames'
;
import
{
Resizable
}
from
'react-resizable'
;
...
...
@@ -16,6 +16,7 @@ import { showMessage, showNotifaction, getQueryParam, inputWidth, isSzseEnv } fr
import
{
AnchorId
,
AnchorDirId
,
AnchorTimestamp
,
AssetBrowseReference
,
AssetManageReference
,
AssetRecycleReference
,
ResourceBrowseReference
}
from
'../../../../util/constant'
;
import
{
FullScreenSvg
,
CancelFullScreenSvg
}
from
'./AssetSvg'
;
import
AssetDeleteModal
from
'./AssetDeleteModal'
;
import
{
AppContext
}
from
"../../../../App"
;
import
"./AssetTable.less"
;
import
'react-contexify/dist/ReactContexify.css'
;
...
...
@@ -158,6 +159,8 @@ const AssetTable = (props) => {
const
metadataIndexRef
=
useRef
(
''
);
const
remoteRelationRef
=
useRef
(
null
);
const
app
=
useContext
(
AppContext
)
useEffect
(()
=>
{
if
(
TableWidth
>
0
&&
columns
.
length
>
0
)
{
const
currentWidth
=
(
columns
.
reduce
((
preVal
,
col
)
=>
(
col
.
width
?
col
.
width
:
0
)
+
preVal
,
0
))
+
32.0
;
...
...
@@ -763,6 +766,11 @@ const AssetTable = (props) => {
});
}
});
}
else
if
(
key
===
'authorization'
)
{
app
?.
setGlobalState
&&
app
?.
setGlobalState
({
message
:
'data-govern-assets-admit'
,
data
:
contextMenuItem
})
}
}
...
...
@@ -1013,16 +1021,19 @@ const AssetTable = (props) => {
onDeleteAll=
{
onAssetDeleteModalDeleteAll
}
/>
<
RcMenu
id=
{
MENU_ID
}
>
{
(
contextMenuItem
.
resourceState
===
'notRelatedAsset'
)
&&
<
RcItem
id=
"uncombed"
onClick=
{
handleItemClick
}
>
转为未梳理
</
RcItem
>
}
{
(
contextMenuItem
.
resourceState
===
'uncombed'
)
&&
<
RcItem
id=
"notRelatedAsset"
onClick=
{
handleItemClick
}
>
转为非资产
{
(
contextMenuItem
.
resourceState
===
'notRelatedAsset'
)
&&
<
RcItem
id=
"uncombed"
onClick=
{
handleItemClick
}
>
转为未梳理
</
RcItem
>
}
{
(
contextMenuItem
.
resourceState
===
'uncombed'
)
&&
<
RcItem
id=
"notRelatedAsset"
onClick=
{
handleItemClick
}
>
转为非资产
</
RcItem
>
}
<
RcItem
id=
"authorization"
onClick=
{
handleItemClick
}
>
授权
</
RcItem
>
}
</
RcMenu
>
{
contextHolder
}
...
...
src/view/Manage/AssetManage/Component/AttributeRelationModal.jsx
View file @
361facf3
...
...
@@ -2,7 +2,6 @@ import React, { useEffect, useMemo, useRef, useState } from 'react';
import
{
Modal
,
Form
,
TreeSelect
,
Select
,
Space
,
Button
,
Row
,
Col
,
Tabs
,
Spin
,
Input
}
from
'antd'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
draft
}
from
'../../../../service/datamodeler'
;
import
{
showMessage
}
from
'../../../../util'
;
const
AddSourceModelName
=
'新增数据来源'
...
...
@@ -233,7 +232,7 @@ const AttributeRelationWithSourceModel = (props) => {
<
Button
type=
"primary"
onClick=
{
()
=>
onOk
()
}
loading=
{
confirmLoading
}
>
确定
</
Button
>
</
Space
>
</
div
>
<
Form
form=
{
form
}
style=
{
{
maxHeight
:
5
00
,
overflow
:
'auto'
}
}
{
...
formItemLayout
}
>
<
Form
form=
{
form
}
style=
{
{
maxHeight
:
4
00
,
overflow
:
'auto'
}
}
{
...
formItemLayout
}
>
<
Form
.
Item
label=
'来源模型名称'
name=
'sourceModel'
...
...
@@ -376,7 +375,7 @@ const AttributeRelationModal = (props) => {
</
Space
>
}
>
<
Tabs
tabPosition=
'left'
activeKey=
{
activeKey
}
onChange=
{
onTabsChange
}
style=
{
{
maxHeight
:
5
00
,
overflow
:
'auto'
}
}
>
<
Tabs
tabPosition=
'left'
activeKey=
{
activeKey
}
onChange=
{
onTabsChange
}
style=
{
{
maxHeight
:
4
00
,
overflow
:
'auto'
}
}
>
{
tabData
?.
map
((
item
,
i
)
=>
{
return
<
Tabs
.
TabPane
tab=
{
item
}
key=
{
item
}
>
...
...
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