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
72c74cbd
Commit
72c74cbd
authored
Mar 14, 2022
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
资产是否可选择 是否可展开由后台控制
parent
014d1ec7
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
8 deletions
+3
-8
AssetAction.jsx
src/view/Manage/AssetManage/Component/AssetAction.jsx
+1
-2
FilterElementModal.jsx
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
+2
-3
index.js
src/view/Manage/AssetManage/util/index.js
+0
-3
No files found.
src/view/Manage/AssetManage/Component/AssetAction.jsx
View file @
72c74cbd
...
...
@@ -6,7 +6,6 @@ import LocalStorage from 'local-storage';
import
MetadataInfo
from
'./MetadataInfo'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
highlightSearchContentByTerms
,
showMessage
}
from
'../../../../util'
;
import
{
unfoldedElements
}
from
'../util'
;
import
{
AppContext
}
from
'../../../../App'
;
import
Tag
from
'../../Tag'
;
import
Separate
from
'./Separate'
;
...
...
@@ -333,7 +332,7 @@ const AssetAction = (props) => {
let
sameAttributeElements
=
(
elements
||
[]).
filter
(
element
=>
element
.
type
===
attribute
);
if
(
currentAction
!==
'add'
&&
!
fullScreen
&&
attributesFoldMap
[
attribute
])
{
sameAttributeElements
=
(
sameAttributeElements
||
[]).
filter
(
element
=>
unfoldedElements
.
indexOf
(
element
?.
name
||
''
)
!==-
1
);
sameAttributeElements
=
(
sameAttributeElements
||
[]).
filter
(
element
=>
element
.
foldAble
===
'否'
);
}
return
(
...
...
src/view/Manage/AssetManage/Component/FilterElementModal.jsx
View file @
72c74cbd
...
...
@@ -2,7 +2,6 @@ import React, { useEffect, useState } from 'react';
import
{
Row
,
Col
,
Checkbox
,
Typography
,
Button
,
Switch
,
Modal
}
from
'antd'
;
import
{
dispatch
}
from
'../../../../model'
;
import
{
requireElements
}
from
'../util'
;
import
'./FilterElementModal.less'
;
//type
...
...
@@ -101,7 +100,7 @@ const FilterElementModal = (props) => {
});
}
else
{
(
elements
||
[]).
forEach
(
element
=>
{
if
(
requireElements
.
indexOf
(
element
.
name
||
''
)
!==-
1
)
{
if
(
element
.
selectAble
===
'否'
)
{
_selectedKeys
.
push
(
element
.
id
||
''
);
}
});
...
...
@@ -194,7 +193,7 @@ const FilterElementModal = (props) => {
return
(
<
Col
className=
'mb-3'
key=
{
_index
}
md=
{
6
}
>
<
div
className=
'd-flex'
>
<
Checkbox
checked=
{
selectedKeys
.
indexOf
(
element
.
id
||
''
)
!==-
1
}
value=
{
element
.
id
||
''
}
onChange=
{
onCheckChange
}
disabled=
{
requireElements
.
indexOf
(
element
.
name
)
!==-
1
}
>
<
Checkbox
checked=
{
selectedKeys
.
indexOf
(
element
.
id
||
''
)
!==-
1
}
value=
{
element
.
id
||
''
}
onChange=
{
onCheckChange
}
disabled=
{
element
.
selectAble
===
'否'
}
>
</
Checkbox
>
<
Typography
.
Paragraph
className=
'ml-1'
title=
{
element
.
name
||
''
}
ellipsis
>
{
element
.
name
||
''
}
...
...
src/view/Manage/AssetManage/util/index.js
deleted
100644 → 0
View file @
014d1ec7
export
const
requireElements
=
[
'中文名称'
,
'资产项'
,
'使用方'
,
'信息安全等级'
];
export
const
unfoldedElements
=
[
'编号'
,
'中文名称'
,
'英文名称'
,
'描述'
,
'表现形式'
,
'数据类型'
,
'来源系统'
,
'资产项'
,
'使用方'
,
'标签'
,
'共享级别'
,
'信息安全等级'
,
'来源单位'
,
'状态'
,
'所属部门'
,
'维护方'
,
'所属层次'
,
'更新频度'
,
'数据规模'
,
'数据大小'
,
'质量情况'
];
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