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
8ee9f26c
Commit
8ee9f26c
authored
Nov 10, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改分区表崩溃问题
parent
beb7f1a2
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
11 deletions
+11
-11
ImportActionPartition.jsx
src/view/Manage/Model/Component/ImportActionPartition.jsx
+11
-11
No files found.
src/view/Manage/Model/Component/ImportActionPartition.jsx
View file @
8ee9f26c
...
...
@@ -208,7 +208,7 @@ const ImportActionPartition = (props) => {
setAttributes
(
modelerData
.
easyDataModelerDataModelAttributes
||
[]);
if
(
modelerData
?.
pa
gina
tion
)
{
if
(
modelerData
?.
pa
rti
tion
)
{
setData
(
modelerData
.
partition
);
}
...
...
@@ -222,7 +222,7 @@ const ImportActionPartition = (props) => {
keys
:
[],
});
form
.
setFieldsValue
({
partitionT
ype
:
{},
t
ype
:
{},
keys
:
[],
});
...
...
@@ -231,7 +231,7 @@ const ImportActionPartition = (props) => {
}
const
edit
=
(
record
)
=>
{
form
.
setFieldsValue
({
...
record
});
form
.
setFieldsValue
({
type
:
record
.
partitionType
,
keys
:
record
.
keys
});
setIsEditing
(
true
);
}
...
...
@@ -250,26 +250,26 @@ const ImportActionPartition = (props) => {
try
{
const
row
=
await
form
.
validateFields
();
if
(
!
row
.
partitionT
ype
?.
name
)
{
form
.
setFields
([{
name
:
'
partitionT
ype'
,
errors
:
[
'必须选择分区类型'
]
}]);
if
(
!
row
.
t
ype
?.
name
)
{
form
.
setFields
([{
name
:
'
t
ype'
,
errors
:
[
'必须选择分区类型'
]
}]);
return
;
}
const
_
iid
s
=
[];
const
_
name
s
=
[];
(
row
.
keys
||
[]).
forEach
(
item
=>
{
if
((
item
.
iid
||
''
)
!==
''
)
{
_
iids
.
push
(
item
.
iid
);
if
((
item
.
name
||
''
)
!==
''
)
{
_
names
.
push
(
item
.
name
);
}
})
if
((
_
iid
s
||
[]).
length
===
0
)
{
if
((
_
name
s
||
[]).
length
===
0
)
{
form
.
setFields
([{
name
:
'keys'
,
errors
:
[
'必须选择字段'
]
}]);
return
;
}
const
newData
=
{
partitionType
:
row
.
partitionT
ype
,
partitionType
:
row
.
t
ype
,
keys
:
row
.
keys
}
...
...
@@ -300,7 +300,7 @@ const ImportActionPartition = (props) => {
{
title
:
'分区类型'
,
width
:
200
,
dataIndex
:
'type'
,
dataIndex
:
'type'
,
//注意 这里type改成partitionType会崩溃 暂不清楚是什么问题
editable
:
true
,
ellipsis
:
true
,
render
:
(
text
,
record
,
index
)
=>
{
...
...
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