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
beb7f1a2
Commit
beb7f1a2
authored
Nov 10, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
新增字段默认放在最后
parent
22690d50
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
19 additions
and
8 deletions
+19
-8
ImportActionIndex.jsx
src/view/Manage/Model/Component/ImportActionIndex.jsx
+4
-3
ImportActionPartition.jsx
src/view/Manage/Model/Component/ImportActionPartition.jsx
+5
-2
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+10
-3
No files found.
src/view/Manage/Model/Component/ImportActionIndex.jsx
View file @
beb7f1a2
...
...
@@ -309,10 +309,11 @@ const ImportActionIndex = (props) => {
const
onAddClick
=
()
=>
{
const
newFilterData
=
[
{
name
:
''
},
...
filterData
];
const
newFilterData
=
[
...
filterData
,
{
name
:
''
}
];
setFilterData
(
newFilterData
);
edit
(
newFilterData
[
0
]);
edit
(
newFilterData
[
newFilterData
.
length
-
1
]);
}
const
edit
=
(
record
)
=>
{
...
...
@@ -544,7 +545,7 @@ const ImportActionIndex = (props) => {
{
shortCauses
&&
shortCauses
.
map
((
shortCause
,
index
)
=>
{
return
(
<
Tooltip
title=
{
shortCause
}
>
<
Tooltip
key=
{
index
}
title=
{
shortCause
}
>
<
div
className=
'textOverflow'
style=
{
{
width
:
130
,
color
:
'#f5222d'
}
}
title=
{
shortCause
}
key=
{
index
}
>
<
span
>
{
shortCause
||
''
}
</
span
>
</
div
>
...
...
src/view/Manage/Model/Component/ImportActionPartition.jsx
View file @
beb7f1a2
...
...
@@ -207,7 +207,10 @@ const ImportActionPartition = (props) => {
useEffect
(()
=>
{
setAttributes
(
modelerData
.
easyDataModelerDataModelAttributes
||
[]);
setData
(
modelerData
.
partition
);
if
(
modelerData
?.
pagination
)
{
setData
(
modelerData
.
partition
);
}
},
[
modelerData
])
...
...
@@ -297,7 +300,7 @@ const ImportActionPartition = (props) => {
{
title
:
'分区类型'
,
width
:
200
,
dataIndex
:
'
partitionT
ype'
,
dataIndex
:
'
t
ype'
,
editable
:
true
,
ellipsis
:
true
,
render
:
(
text
,
record
,
index
)
=>
{
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
beb7f1a2
...
...
@@ -269,10 +269,14 @@ const ImportActionTable = (props) => {
const
onAddClick
=
()
=>
{
const
newFilterData
=
[{
iid
:
generateUUID
()},
...
filterData
];
const
iid
=
generateUUID
();
const
newFilterData
=
[...
filterData
,
{
iid
}];
setFilterData
(
newFilterData
);
edit
(
newFilterData
[
0
]);
edit
(
newFilterData
[
newFilterData
.
length
-
1
]);
setTimeout
(()
=>
{
document
.
getElementById
(
`field-
${
iid
}
`
)?.
scrollIntoView
();
},
200
)
}
const
edit
=
(
record
)
=>
{
...
...
@@ -982,10 +986,13 @@ const ImportActionTable = (props) => {
return 'editable-row';
}}
onRow={(record, index) => {
if (!editable || editingKey!=='' || keyword.length>0) return null;
if (!editable || editingKey!=='' || keyword.length>0) return {
id: `
field
-
$
{
record
.
iid
}
`
};
return {
index,
id: `
field
-
$
{
record
.
iid
}
`,
moveRow
}
}}
...
...
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