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
509e2f86
Commit
509e2f86
authored
Jun 10, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改资产问题
parent
b5e8a66f
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
26 additions
and
3 deletions
+26
-3
AssetItem.jsx
src/view/Manage/AssetManage/Component/AssetItem.jsx
+1
-1
AssetTable.jsx
src/view/Manage/AssetManage/Component/AssetTable.jsx
+2
-0
UpdateTaskModal.jsx
...iew/Manage/DatasourceManage/Component/UpdateTaskModal.jsx
+23
-2
No files found.
src/view/Manage/AssetManage/Component/AssetItem.jsx
View file @
509e2f86
...
...
@@ -62,7 +62,7 @@ const AssetItem = (props) => {
backgroundColor
:
colors
[
index
%
colors
.
length
]
}
}
>
{
_type
===
''
?
'无'
:
_type
.
slice
(
0
,
1
)
}
{
_type
===
''
?
'无'
:
_type
.
slice
(
0
,
2
)
}
</
Avatar
>
<
div
className=
'textOverflow'
style=
{
{
flex
:
1
}
}
>
<
Row
className=
'mb-3'
>
...
...
src/view/Manage/AssetManage/Component/AssetTable.jsx
View file @
509e2f86
...
...
@@ -54,6 +54,8 @@ const AssetTable = (props) =>{
},
[
keyword
,
pagination
])
const
changeCurrent
=
(
page
,
size
)
=>
{
setCheckAllValue
(
false
);
setSelectedKeys
([]);
setPagination
({
pageNum
:
page
,
pageSize
:
size
});
}
...
...
src/view/Manage/DatasourceManage/Component/UpdateTaskModal.jsx
View file @
509e2f86
import
React
,
{
useEffect
,
useState
}
from
'react'
;
import
{
Modal
,
Checkbox
,
Row
,
Col
,
Divider
,
Input
,
Typography
,
Form
}
from
'antd'
;
import
{
Modal
,
Checkbox
,
Row
,
Col
,
Divider
,
Input
,
Typography
,
Form
,
Switch
}
from
'antd'
;
import
{
dispatch
}
from
'../../../../model'
;
...
...
@@ -12,6 +12,7 @@ const UpdateTaskModal = (props) => {
const
[
currentTask
,
setCurrentTask
]
=
useState
({});
const
[
keyword
,
setKeyword
]
=
useState
(
''
);
const
[
confirmLoading
,
setConfirmLoading
]
=
useState
(
false
);
const
[
checkAllValue
,
setCheckAllValue
]
=
useState
(
false
);
const
[
form
]
=
Form
.
useForm
();
...
...
@@ -122,6 +123,7 @@ const UpdateTaskModal = (props) => {
setSchemas
([]);
setSelectedSchemas
([]);
setTaskSettings
({});
setCheckAllValue
(
false
);
form
.
resetFields
();
}
...
...
@@ -129,6 +131,18 @@ const UpdateTaskModal = (props) => {
setKeyword
(
e
.
target
.
value
||
''
);
}
const
onCheckAll
=
(
checked
)
=>
{
setCheckAllValue
(
checked
);
if
(
checked
)
{
const
_newSelectedSchemas
=
Array
.
from
(
new
Set
([...
selectedSchemas
,
...
filterSchemas
]));;
setSelectedSchemas
(
_newSelectedSchemas
);
}
else
{
setSelectedSchemas
(
selectedSchemas
.
filter
(
schema
=>!
filterSchemas
.
includes
(
schema
)));
}
}
const
onCheckChange
=
(
e
)
=>
{
if
(
e
.
target
.
checked
)
{
setSelectedSchemas
([...
selectedSchemas
,
e
.
target
.
value
]);
...
...
@@ -162,7 +176,7 @@ const UpdateTaskModal = (props) => {
confirmLoading=
{
confirmLoading
}
>
<
Divider
>
schema信息
</
Divider
>
<
div
className=
'
mb-3'
>
<
div
className=
'
d-flex mb-3'
style=
{
{
alignItems
:
'center'
}
}
>
<
span
className=
'mr-3'
>
schema搜索:
</
span
>
<
Input
placeholder=
"请输入schema名称"
...
...
@@ -171,6 +185,13 @@ const UpdateTaskModal = (props) => {
onChange=
{
onSearchInputChange
}
style=
{
{
width
:
230
}
}
/>
<
Switch
checkedChildren=
"全不选"
unCheckedChildren=
"全选"
checked=
{
checkAllValue
}
onChange=
{
onCheckAll
}
style=
{
{
marginLeft
:
'auto'
}
}
/>
</
div
>
<
div
style=
{
{
maxHeight
:
300
,
overflow
:
'auto'
}
}
>
<
Row
className=
'mb-3'
>
...
...
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