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
14847e85
Commit
14847e85
authored
May 23, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
调整
parent
8e5fcd93
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
30 additions
and
31 deletions
+30
-31
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+1
-5
AssetManageTree.jsx
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
+2
-2
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+5
-2
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+22
-22
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
14847e85
...
...
@@ -130,22 +130,19 @@ const AssetAction = (props) => {
{
title
:
'操作'
,
dataIndex
:
'action'
,
width
:
1
5
0
,
width
:
1
7
0
,
render
:
(
_
,
record
)
=>
{
return
(
reference
===
AssetManageReference
||
canEdit
)
?
<
Space
>
<
Button
type=
'link'
size=
'small'
onClick=
{
()
=>
{
setSelectStandardParam
({
visible
:
true
,
id
:
record
.
_id
});
}
}
style=
{
{
padding
:
0
}
}
>
关联标准
</
Button
>
{
record
.
standard
?.
standardId
&&
<
Button
type=
'link'
size=
'small'
onClick=
{
()
=>
{
modal
.
confirm
({
...
...
@@ -166,7 +163,6 @@ const AssetAction = (props) => {
}
})
}
}
style=
{
{
padding
:
0
}
}
>
取消关联
</
Button
>
...
...
src/view/Manage/AssetManage/Component/AssetManageTree.jsx
View file @
14847e85
...
...
@@ -735,9 +735,9 @@ const AssetManageTree = (props) => {
<
ExportOutlined
className=
'default'
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
}
}
/>
</
Tooltip
>
</
Dropdown
>
<
Tooltip
title=
"自定义目录"
>
{
/*
<Tooltip title="自定义目录">
<SettingOutlined className='default' onClick={customDir} style={{ fontSize:16,cursor:'pointer' }} />
</
Tooltip
>
</Tooltip>
*/
}
</
div
>
)
}
bordered=
{
false
}
...
...
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
14847e85
...
...
@@ -503,6 +503,9 @@ const AssetTree = (props) => {
className=
{
(
item
.
level
===
1
)?
'title-color'
:
'text-color'
}
>
{
item
.
text
}
{
(
item
.
level
!==
1
||
(
item
.
level
===
1
&&
item
.
resourceType
!==
'custom'
))
&&
<
span
>
{
` (${item.dataAssetAndSubDirCount})`
}
</
span
>
}
</
span
>
);
...
...
@@ -532,9 +535,9 @@ const AssetTree = (props) => {
<
Tooltip
title=
"刷新目录"
>
<
ReloadOutlined
className=
'default'
onClick=
{
refreshTree
}
style=
{
{
fontSize
:
16
,
cursor
:
'pointer'
,
flex
:
1
}
}
/>
</
Tooltip
>
<
Tooltip
title=
"自定义目录"
>
{
/*
<Tooltip title="自定义目录">
<SettingOutlined className='default' onClick={customDir} style={{ fontSize:16,cursor:'pointer',flex:1}} />
</
Tooltip
>
</Tooltip>
*/
}
<
div
style=
{
{
flex
:
3
}
}
></
div
>
</
div
>
}
...
...
src/view/Manage/Model/Component/ModelTable.jsx
View file @
14847e85
...
...
@@ -188,6 +188,28 @@ const ModelTable = (props) => {
}
},
{
title
:
'URI'
,
dataIndex
:
'odata'
,
ellipsis
:
true
,
width
:
170
,
render
:
(
text
,
_
,
__
)
=>
{
return
(
<
React
.
Fragment
>
{
text
?
<
div
className=
'flex'
>
<
Tooltip
title=
{
text
||
''
}
overlayClassName=
'tooltip-common'
>
<
Text
ellipsis=
{
true
}
>
{
text
||
''
}
</
Text
>
</
Tooltip
>
<
Text
copyable=
{
{
text
}
}
></
Text
>
</
div
>
:
''
}
</
React
.
Fragment
>
);
}
},
{
title
:
'路径'
,
dataIndex
:
'path'
,
width
:
120
,
...
...
@@ -285,28 +307,6 @@ const ModelTable = (props) => {
);
}
},
{
title
:
'URI'
,
dataIndex
:
'odata'
,
ellipsis
:
true
,
width
:
170
,
render
:
(
text
,
_
,
__
)
=>
{
return
(
<
React
.
Fragment
>
{
text
?
<
div
className=
'flex'
>
<
Tooltip
title=
{
text
||
''
}
overlayClassName=
'tooltip-common'
>
<
Text
ellipsis=
{
true
}
>
{
text
||
''
}
</
Text
>
</
Tooltip
>
<
Text
copyable=
{
{
text
}
}
></
Text
>
</
div
>
:
''
}
</
React
.
Fragment
>
);
}
},
];
const
[
columns
,
setColumns
]
=
useState
([]);
...
...
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