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
8843c41d
Commit
8843c41d
authored
Apr 22, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
微调
parent
062d3703
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
6 deletions
+9
-6
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+3
-3
ImportActionIndex.jsx
src/view/Manage/Model/Component/ImportActionIndex.jsx
+6
-1
ImportModal.jsx
src/view/Manage/Model/Component/ImportModal.jsx
+0
-2
No files found.
src/view/Manage/Model/Component/ImportAction.jsx
View file @
8843c41d
...
...
@@ -83,7 +83,7 @@ const ImportAction = (props) => {
},
callback
:
data
=>
{
let
newModelerData
=
{...(
data
||
{})};
newModelerData
=
{
...
newModelerData
,
easyDataModelerIndices
:
getIndices
When
TableChange
(
newModelerData
)
}
newModelerData
=
{
...
newModelerData
,
easyDataModelerIndices
:
getIndices
After
TableChange
(
newModelerData
)
}
setModelerData
(
newModelerData
)
onChange
&&
onChange
(
newModelerData
);
...
...
@@ -174,7 +174,7 @@ const ImportAction = (props) => {
let
newModelerData
=
{...
modelerData
,
...{
easyDataModelerDataModelAttributes
:
data
}};
newModelerData
=
{
...
newModelerData
,
easyDataModelerIndices
:
getIndices
When
TableChange
(
newModelerData
)
};
newModelerData
=
{
...
newModelerData
,
easyDataModelerIndices
:
getIndices
After
TableChange
(
newModelerData
)
};
setModelerData
(
newModelerData
);
onChange
&&
onChange
(
newModelerData
);
...
...
@@ -203,7 +203,7 @@ const ImportAction = (props) => {
onChange
&&
onChange
(
newModelerData
);
}
const
getIndices
When
TableChange
=
(
newModelerData
)
=>
{
const
getIndices
After
TableChange
=
(
newModelerData
)
=>
{
const
newEasyDataModelerIndices
=
[...(
newModelerData
.
easyDataModelerIndices
||
[])];
(
newModelerData
.
easyDataModelerIndices
||
[]).
forEach
((
easyDataModelerIndex
,
index
)
=>
{
...
...
src/view/Manage/Model/Component/ImportActionIndex.jsx
View file @
8843c41d
...
...
@@ -48,7 +48,7 @@ const AttributesInputItem = ({ indexedAttribute = null, indexedAttributeOrder =
</
Select
>
</
Col
>
<
Col
span=
{
1
}
></
Col
>
<
Col
span=
{
2
}
>
<
Col
span=
{
1
}
>
<
Tooltip
title=
"删除"
>
<
Button
type=
"text"
icon=
{
<
DeleteOutlined
/>
}
onClick=
{
onDelete
}
/>
</
Tooltip
>
...
...
@@ -466,6 +466,11 @@ const ImportActionIndex = (props) => {
);
}
},
{
title
:
''
,
dataIndex
:
''
,
width
:
200
,
}
];
const
editableColumn
=
[
...
...
src/view/Manage/Model/Component/ImportModal.jsx
View file @
8843c41d
...
...
@@ -262,9 +262,7 @@ const ImportModal = (props) => {
title=
{
title
}
width=
{
step
===
2
?
1300
:
520
}
maskClosable=
{
false
}
destroyOnClose
onCancel=
{
()
=>
{
setStep
(
0
);
reset
();
onCancel
&&
onCancel
();
}
}
...
...
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