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
c16cfe06
Commit
c16cfe06
authored
Jul 28, 2021
by
fanyj
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改neo4j类型细节显示
parent
2abd7859
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
7 deletions
+11
-7
UpdateDatasourceModal.jsx
...nage/DatasourceManage/Component/UpdateDatasourceModal.jsx
+1
-3
UpdateTaskModal.jsx
...iew/Manage/DatasourceManage/Component/UpdateTaskModal.jsx
+7
-4
index.jsx
src/view/Manage/DatasourceManage/index.jsx
+3
-0
No files found.
src/view/Manage/DatasourceManage/Component/UpdateDatasourceModal.jsx
View file @
c16cfe06
...
...
@@ -35,7 +35,6 @@ const UpdateDatasourceModal = (props) => {
dispatch
({
type
:
'datasource.getAllSupportedDatasourceTypies'
,
callback
:
data
=>
{
function
compare
(
val1
,
val2
)
{
var
a
=
val1
.
seq
;
var
b
=
val2
.
seq
;
...
...
@@ -77,13 +76,12 @@ const UpdateDatasourceModal = (props) => {
const
getCurrentSupportedDatasourceTypies
=
(
allTypies
,
type
)
=>
{
let
_currentTypies
=
null
;
(
allTypies
||
[]).
forEach
(
typies
=>
{
if
(
typies
.
type
===
type
)
{
_currentTypies
=
{...
typies
};
}
})
console
.
log
(
_currentTypies
)
setCurrentSupportedDatasourceTypies
(
_currentTypies
);
}
...
...
src/view/Manage/DatasourceManage/Component/UpdateTaskModal.jsx
View file @
c16cfe06
...
...
@@ -4,7 +4,7 @@ import { Modal, Checkbox, Row, Col, Divider, Input, Typography, Form, Switch } f
import
{
dispatch
}
from
'../../../../model'
;
const
UpdateTaskModal
=
(
props
)
=>
{
const
{
visible
,
onCancel
,
action
,
id
,
datasourceId
}
=
props
;
const
{
visible
,
onCancel
,
action
,
id
,
datasourceId
,
currentDatabase
}
=
props
;
const
[
schemas
,
setSchemas
]
=
useState
([]);
const
[
filterSchemas
,
setFilterSchemas
]
=
useState
([]);
const
[
selectedSchemas
,
setSelectedSchemas
]
=
useState
([]);
...
...
@@ -57,6 +57,7 @@ const UpdateTaskModal = (props) => {
},
callback
:
data
=>
{
setTaskSettings
(
data
);
data
&&
(
data
.
targetConfParameters
||
[]).
forEach
(
item
=>
{
if
(
item
.
name
===
'schema'
)
{
setSchemas
(
item
.
selectItem
||
[]);
...
...
@@ -164,6 +165,8 @@ const UpdateTaskModal = (props) => {
},
};
console
.
log
(
currentDatabase
)
return
(
<
Modal
className=
'update-task-modal'
...
...
@@ -175,11 +178,11 @@ const UpdateTaskModal = (props) => {
onOk=
{
onOk
}
confirmLoading=
{
confirmLoading
}
>
<
Divider
>
schema信息
</
Divider
>
<
Divider
>
{
(
currentDatabase
?.
type
===
"Neo4jTarget"
)?
'neo4j数据库信息'
:
'schema信息'
}
</
Divider
>
<
div
className=
'd-flex mb-3'
style=
{
{
alignItems
:
'center'
}
}
>
<
span
className=
'mr-3'
>
schema搜索
:
</
span
>
<
span
className=
'mr-3'
>
{
(
currentDatabase
?.
type
===
"Neo4jTarget"
)?
'neo4j数据库搜索'
:
'schema搜索'
}
:
</
span
>
<
Input
placeholder=
"请输入schema名称"
placeholder=
{
`请输入${(currentDatabase?.type==="Neo4jTarget")?'neo4j数据库':'schema'}名称`
}
allowClear
value=
{
keyword
}
onChange=
{
onSearchInputChange
}
...
...
src/view/Manage/DatasourceManage/index.jsx
View file @
c16cfe06
...
...
@@ -47,6 +47,7 @@ const DatasourceManage = (props) => {
const
[
currentDatasourceIdBindTasksNeedRefresh
,
setCurrentDatasourceIdBindTasksNeedRefresh
]
=
useState
(
''
);
const
[
currentTaskId
,
setCurrentTaskId
]
=
useState
(
''
);
const
[
tasksProgress
,
setTasksProgress
]
=
useState
({});
const
[
currentDatabase
,
setCurrentDatabase
]
=
useState
({})
const
[
modal
,
contextHolder
]
=
Modal
.
useModal
();
...
...
@@ -234,6 +235,7 @@ const DatasourceManage = (props) => {
setCurrentDatasourceId
(
datasource
.
id
||
''
);
setUpdateTaskModalAction
(
'add'
);
setUpdateTaskModalVisible
(
true
);
setCurrentDatabase
(
datasource
)
}
const
scheduleShow
=
(
task
)
=>
{
...
...
@@ -400,6 +402,7 @@ const DatasourceManage = (props) => {
id=
{
currentTaskId
}
datasourceId=
{
currentDatasourceId
}
action=
{
updateTaskModalAction
}
currentDatabase=
{
currentDatabase
}
onCancel=
{
onUpdateTaskModalVisibleCancel
}
/>
...
...
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