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
0a1c8d80
Commit
0a1c8d80
authored
Apr 06, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改目录问题
parent
af362a02
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
3 deletions
+7
-3
ModelTree.jsx
src/view/Manage/Model/Component/ModelTree.jsx
+2
-1
UpdateTreeItemModal.jsx
src/view/Manage/Model/Component/UpdateTreeItemModal.jsx
+0
-1
index.jsx
src/view/Manage/Model/index.jsx
+5
-1
No files found.
src/view/Manage/Model/Component/ModelTree.jsx
View file @
0a1c8d80
...
@@ -55,7 +55,7 @@ const ModelTree = (props) => {
...
@@ -55,7 +55,7 @@ const ModelTree = (props) => {
setItem
(
firstItem
);
setItem
(
firstItem
);
firstItem
&&
onSelect
&&
onSelect
(
firstItem
.
key
||
''
);
onSelect
&&
onSelect
(
firstItem
?(
firstItem
.
key
||
''
):
''
);
}
}
})
})
}
}
...
@@ -102,6 +102,7 @@ const ModelTree = (props) => {
...
@@ -102,6 +102,7 @@ const ModelTree = (props) => {
title
:
'提示!'
,
title
:
'提示!'
,
content
:
'删除目录会删除相关的模型,您确定删除吗?'
,
content
:
'删除目录会删除相关的模型,您确定删除吗?'
,
onOk
:
()
=>
{
onOk
:
()
=>
{
setLoading
(
true
);
dispatchLatest
({
dispatchLatest
({
type
:
'datamodel.deleteDataModelCatalog'
,
type
:
'datamodel.deleteDataModelCatalog'
,
payload
:
{
payload
:
{
...
...
src/view/Manage/Model/Component/UpdateTreeItemModal.jsx
View file @
0a1c8d80
...
@@ -105,7 +105,6 @@ const UpdateTreeItemModal = (props) => {
...
@@ -105,7 +105,6 @@ const UpdateTreeItemModal = (props) => {
try
{
try
{
const
values
=
await
form
.
validateFields
();
const
values
=
await
form
.
validateFields
();
// console.log('value action', values.action);
let
payload
=
null
;
let
payload
=
null
;
if
(
type
===
'add'
&&
values
.
action
===
'root'
)
{
if
(
type
===
'add'
&&
values
.
action
===
'root'
)
{
payload
=
{
payload
=
{
...
...
src/view/Manage/Model/index.jsx
View file @
0a1c8d80
...
@@ -24,7 +24,11 @@ class Model extends React.Component {
...
@@ -24,7 +24,11 @@ class Model extends React.Component {
onTreeSelect
=
(
key
)
=>
{
onTreeSelect
=
(
key
)
=>
{
this
.
setState
({
catalogId
:
key
},
()
=>
{
this
.
setState
({
catalogId
:
key
},
()
=>
{
this
.
onTableChange
();
if
(
!
key
||
key
===
''
)
{
this
.
setState
({
tableData
:
[]
});
}
else
{
this
.
onTableChange
();
}
});
});
}
}
...
...
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