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
aedda061
Commit
aedda061
authored
Nov 17, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产管理页面调整
parent
c657a0f2
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
64 additions
and
49 deletions
+64
-49
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+0
-0
AssetTable.less
src/view/Manage/AssetManage/Component/AssetTable.less
+7
-23
AssetTree.jsx
src/view/Manage/AssetManage/Component/AssetTree.jsx
+1
-0
FilterElementModal.jsx
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
+49
-19
FilterElementModal.less
...view/Manage/AssetManage/Component/FilterElementModal.less
+0
-0
MetadataInfo.jsx
src/view/Manage/AssetManage/Component/MetadataInfo.jsx
+1
-1
AssetMount.jsx
src/view/Manage/AssetRecycle/Component/AssetMount.jsx
+4
-4
index.jsx
src/view/Manage/AssetRecycle/index.jsx
+1
-1
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+1
-1
No files found.
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
aedda061
This diff is collapsed.
Click to expand it.
src/view/Manage/AssetManage/Component/AssetTable.less
View file @
aedda061
@import '../../../../variables.less';
.asset-list {
.yy-list-item-action {
text-align: right;
}
.yy-card-head-title {
font-weight: normal;
font-size: 14px;
padding: 0;
}
.yy-list-vertical .yy-list-item-action > li {
padding: 0 ;
}
.data-asset-spin {
height: calc(100vh - @header-height - @pm-4 - 53px - 52px + 1px);
}
.yy-checkbox-group {
height: calc(100vh - @header-height - @pm-4 - 53px - 52px - 53px) !important;
overflow: auto !important;
}
.yy-divider-horizontal {
margin: 0 !important;
}
.yy-list-vertical {
.yy-list-item-meta, .yy-list-item-meta-title {
margin-bottom: 0 !important;
.highlight-row {
.yy-table-cell {
background-color: #e7f7ff !important;
}
}
.yy-list-item {
padding: 0 !important;
}
}
}
\ No newline at end of file
src/view/Manage/AssetManage/Component/AssetTree.jsx
View file @
aedda061
...
...
@@ -76,6 +76,7 @@ const AssetTree = (props) => {
},
callback
:
data
=>
{
setCheckedKeys
(
data
.
dirIds
||
[]);
onCheck
&&
onCheck
(
data
.
dirIds
||
[]);
},
})
}
...
...
src/view/Manage/AssetManage/Component/FilterElement.jsx
→
src/view/Manage/AssetManage/Component/FilterElement
Modal
.jsx
View file @
aedda061
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Row
,
Col
,
Checkbox
,
Typography
,
Space
,
Button
,
Switch
}
from
'antd'
;
import
{
Row
,
Col
,
Checkbox
,
Typography
,
Button
,
Switch
,
Modal
}
from
'antd'
;
import
{
dispatch
}
from
'../../../../model'
;
import
'./FilterElement.less'
;
import
'./FilterElement
Modal
.less'
;
const
FilterElement
=
(
props
)
=>
{
const
FilterElement
Modal
=
(
props
)
=>
{
const
{
onCancel
}
=
props
;
const
{
visible
,
onCancel
}
=
props
;
const
[
elements
,
setElements
]
=
useState
([]);
const
[
typesOfElements
,
setTypesOfElements
]
=
useState
([]);
const
[
selectedKeys
,
setSelectedKeys
]
=
useState
([]);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
useEffect
(()
=>
{
...
...
@@ -87,19 +88,56 @@ const FilterElement = (props) => {
const
onOk
=
()
=>
{
setConfirmLoading
(
true
);
dispatch
({
type
:
'assetmanage.setupFilterElementIds'
,
payload
:
{
data
:
selectedKeys
},
callback
:
()
=>
{
onCancel
&&
onCancel
(
false
,
true
);
reset
();
onCancel
&&
onCancel
(
true
);
},
error
:
()
=>
{
reset
();
}
})
}
const
cancel
=
()
=>
{
reset
();
onCancel
&&
onCancel
();
}
const
reset
=
()
=>
{
setConfirmLoading
(
false
);
}
return
(
<
div
className=
'filter-element'
style=
{
{
width
:
500
}
}
>
<
Modal
forceRender
visible=
{
visible
}
title=
'资产要素过滤'
width=
{
520
}
onCancel=
{
cancel
}
footer=
{
[
<
Button
key=
"0"
onClick=
{
cancel
}
>
取消
</
Button
>,
<
Button
key=
"1"
type=
"primary"
onClick=
{
onOk
}
loading=
{
confirmLoading
}
>
确定
</
Button
>,
]
}
>
<
div
className=
'd-flex'
>
<
Switch
checkedChildren=
"全不选"
...
...
@@ -108,13 +146,13 @@ const FilterElement = (props) => {
style=
{
{
marginLeft
:
'auto'
}
}
/>
</
div
>
<
div
style=
{
{
maxHeight
:
450
,
overflow
:
'auto'
}
}
>
<
div
className=
'mt-3'
style=
{
{
maxHeight
:
450
,
overflow
:
'auto'
}
}
>
{
(
typesOfElements
||
[]).
map
((
typeOfElements
,
index
)
=>
{
const
_type
=
typeOfElements
.
type
||
''
;
return
(
<
div
>
<
div
key=
{
index
}
>
<
div
className=
'flex'
style=
{
{
alignItems
:
'center'
,
padding
:
'15px 0'
}
}
>
<
div
style=
{
{
width
:
3
,
height
:
14
,
backgroundColor
:
'#0069AC'
,
marginRight
:
5
}
}
/>
<
span
style=
{
{
fontWeight
:
'bold'
,
color
:
'#464646'
}
}
>
{
_type
||
''
}
</
span
>
...
...
@@ -141,16 +179,8 @@ const FilterElement = (props) => {
})
}
</
div
>
<
div
className=
'mt-3 d-flex pt-3'
style=
{
{
borderTop
:
'1px solid rgba(0, 0, 0, 0.06)'
}
}
>
<
Space
style=
{
{
marginLeft
:
'auto'
}
}
>
<
Button
onClick=
{
()
=>
{
onCancel
&&
onCancel
();
}
}
>
取消
</
Button
>
<
Button
type=
'primary'
onClick=
{
onOk
}
>
确定
</
Button
>
</
Space
>
</
div
>
</
div
>
</
Modal
>
);
}
export
default
FilterElement
;
\ No newline at end of file
export
default
FilterElementModal
;
\ No newline at end of file
src/view/Manage/AssetManage/Component/FilterElement.less
→
src/view/Manage/AssetManage/Component/FilterElement
Modal
.less
View file @
aedda061
File moved
src/view/Manage/AssetManage/Component/MetadataInfo.jsx
View file @
aedda061
...
...
@@ -19,7 +19,7 @@ const MetadataInfo = ({ value = '', config = true }) => {
value
=>
<
span
>
{
(
typeof
metadata
===
'string'
)
?
<
span
style=
{
{
marginRight
:
5
}
}
>
{
metadata
||
''
}
</
span
>
:
<
a
onClick=
{
()
=>
{
value
?.
setGlobalState
({
value
?.
setGlobalState
&&
value
?.
setGlobalState
({
message
:
'data-govern-show-metadata-message'
,
data
:
metadata
})
...
...
src/view/Manage/AssetRecycle/Component/AssetMount.jsx
View file @
aedda061
...
...
@@ -7,7 +7,7 @@ import { showMessage } from '../../../../util';
const
AssetMount
=
(
props
)
=>
{
const
{
onCancel
,
visible
,
id
,
recycleId
s
,
refrence
=
'asset-manage'
}
=
props
;
const
{
onCancel
,
visible
,
ids
,
refrence
=
'asset-manage'
}
=
props
;
const
[
dirIds
,
setDirIds
]
=
useState
([]);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
...
...
@@ -28,7 +28,7 @@ const AssetMount = (props) => {
params
:
{
dirId
:
dirIds
.
join
(
","
),
},
data
:
(
refrence
===
'asset-recycle'
)
?
recycleIds
:
[
id
||
''
]
data
:
ids
},
callback
:
data
=>
{
setConfirmLoading
(
false
);
...
...
@@ -48,7 +48,7 @@ const AssetMount = (props) => {
return
(
<
Modal
title=
'
挂载
详情'
title=
'
变更目录
详情'
visible=
{
visible
}
width=
{
400
}
confirmLoading=
{
confirmLoading
}
...
...
@@ -63,7 +63,7 @@ const AssetMount = (props) => {
checkable=
{
true
}
showCustom=
{
false
}
onCheck=
{
onCheck
}
tableId=
{
refrence
===
'asset-manage'
?
id
:
''
}
tableId=
{
(
refrence
===
'asset-manage'
&&
(
ids
||
[].
length
>
0
))?
ids
[
0
]
:
''
}
reference=
'mount'
{
...
props
}
/>
...
...
src/view/Manage/AssetRecycle/index.jsx
View file @
aedda061
...
...
@@ -248,7 +248,7 @@ const AssetRecycle = (props) => {
<
AssetMount
refrence=
'asset-recycle'
visible=
{
assetMountVisible
}
recycleI
ds=
{
batchMount
?
selectedRowKeys
:
[
currentAssetId
]
}
i
ds=
{
batchMount
?
selectedRowKeys
:
[
currentAssetId
]
}
onCancel=
{
onAssetMountCancel
}
{
...
props
}
/>
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
aedda061
...
...
@@ -753,7 +753,7 @@ const ImportActionTable = (props) => {
}
{
record?.isPossibleNewTerm?.possible && <Typography.Link className='mr-3' onClick={() => {
value?.setGlobalState({
value?.setGlobalState
&& value?.setGlobalState
({
message: 'data-govern-show-standard-create',
data: {
column: record,
...
...
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