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
7d68342d
Commit
7d68342d
authored
Nov 30, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug fix
parent
de6e0823
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
9 deletions
+9
-9
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+2
-2
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+4
-4
index.jsx
src/view/Manage/Model/index.jsx
+3
-3
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
7d68342d
...
...
@@ -954,9 +954,9 @@ const AssetAction = (props) => {
}
<Button type='primary' onClick={onAuthorizationButtonClick}>授权</Button>
{
currentAction === 'detail' && <Button
type='primary'
onClick={shareAsset}>分享</Button>
currentAction === 'detail' && <Button onClick={shareAsset}>分享</Button>
}
</Space> : (reference!==AssetRecycleReference) && <Button
type='primary'
onClick={shareAsset}>分享</Button>
</Space> : (reference!==AssetRecycleReference) && <Button onClick={shareAsset}>分享</Button>
}
</div>
{
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
7d68342d
...
...
@@ -708,7 +708,7 @@ const AssetTable = (props) => {
modal
.
confirm
({
title
:
'提示'
,
content
:
'是否确认
订阅
选中资产目录?'
,
content
:
'是否确认
收藏
选中资产目录?'
,
onOk
:
()
=>
{
let
payload
=
{
dataAssetIds
:
(
checkedKeys
||
[]).
join
(
','
),
...
...
@@ -719,7 +719,7 @@ const AssetTable = (props) => {
type
:
'assetmanage.subs'
,
payload
,
callback
:
()
=>
{
showMessage
(
"success"
,
"
订阅
成功"
);
showMessage
(
"success"
,
"
收藏
成功"
);
setCheckedKeys
([]);
},
error
:
()
=>
{
...
...
@@ -976,7 +976,7 @@ const AssetTable = (props) => {
(
reference
!==
AssetRecycleReference
)
&&
<
Menu
.
Item
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
<
div
className=
'text-center'
onClick=
{
subscriptAsset
}
>
订阅
收藏
</
div
>
</
Menu
.
Item
>
}
...
...
@@ -1095,7 +1095,7 @@ const AssetTable = (props) => {
{
(
reference
!==
AssetRecycleReference
)
&&
<
Tooltip
title=
{
(
checkedKeys
||
[]).
length
===
0
?
'请先选择资产目录'
:
''
}
>
<
Button
onClick=
{
subscriptAsset
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
订阅
</
Button
>
<
Button
onClick=
{
subscriptAsset
}
disabled=
{
(
checkedKeys
||
[]).
length
===
0
}
>
收藏
</
Button
>
</
Tooltip
>
}
...
...
src/view/Manage/Model/index.jsx
View file @
7d68342d
...
...
@@ -356,7 +356,7 @@ class Model extends React.Component {
modal?.confirm({
title: '提示',
content: '是否确认
订阅
选中服务?',
content: '是否确认
收藏
选中服务?',
onOk: () => {
dispatch({
type: 'pds.subscribe',
...
...
@@ -366,7 +366,7 @@ class Model extends React.Component {
}
},
callback: () => {
showMessage('success', '
订阅
成功');
showMessage('success', '
收藏
成功');
this.setState({ selectModelerIds: [] });
}
})
...
...
@@ -721,7 +721,7 @@ class Model extends React.Component {
{
(getDataModelerRole(app?.user)!==DataModelerRoleReader) && isOnlyEnding &&
<Tooltip title={(selectModelerIds||[]).length===0?'请先选择服务':''}>
<Button onClick={this.onSubscribeBtnClick} disabled={(selectModelerIds||[]).length===0}>
订阅
</Button>
<Button onClick={this.onSubscribeBtnClick} disabled={(selectModelerIds||[]).length===0}>
收藏
</Button>
</Tooltip>
}
{
...
...
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