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
ae52f174
Commit
ae52f174
authored
Dec 29, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加分区方式
parent
83b40e16
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
4 deletions
+21
-4
PartitionCURD.jsx
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
+13
-2
UpdatePartitionModal.jsx
...iew/Manage/ModelConfig/Component/UpdatePartitionModal.jsx
+8
-2
No files found.
src/view/Manage/ModelConfig/Component/PartitionCURD.jsx
View file @
ae52f174
...
@@ -59,9 +59,21 @@ const PartitionCURD = (props) => {
...
@@ -59,9 +59,21 @@ const PartitionCURD = (props) => {
}
}
},
},
{
{
title
:
'分区方式'
,
dataIndex
:
'partitionMethod'
,
width
:
180
,
ellipsis
:
true
,
render
:
(
text
,
_
,
__
)
=>
{
return
(
<
Tooltip
title=
{
text
||
''
}
>
<
span
>
{
text
||
''
}
</
span
>
</
Tooltip
>
)
}
},
{
title
:
'定义'
,
title
:
'定义'
,
dataIndex
:
'definition'
,
dataIndex
:
'definition'
,
width
:
180
,
ellipsis
:
true
,
ellipsis
:
true
,
render
:
(
text
,
_
,
__
)
=>
{
render
:
(
text
,
_
,
__
)
=>
{
return
(
return
(
...
@@ -88,7 +100,6 @@ const PartitionCURD = (props) => {
...
@@ -88,7 +100,6 @@ const PartitionCURD = (props) => {
title
:
'操作'
,
title
:
'操作'
,
key
:
'action'
,
key
:
'action'
,
width
:
120
,
width
:
120
,
render
:
(
text
,
record
)
=>
{
render
:
(
text
,
record
)
=>
{
return
(
return
(
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
<
div
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
}
}
>
...
...
src/view/Manage/ModelConfig/Component/UpdatePartitionModal.jsx
View file @
ae52f174
...
@@ -24,7 +24,7 @@ const UpdatePartitionModal = (props) => {
...
@@ -24,7 +24,7 @@ const UpdatePartitionModal = (props) => {
if
(
visible
)
{
if
(
visible
)
{
if
(
action
!==
'add'
)
{
if
(
action
!==
'add'
)
{
form
.
setFieldsValue
({
name
:
item
?.
name
||
''
,
cnName
:
item
?.
cnName
||
''
,
definition
:
item
?.
definition
||
''
,
remark
:
item
?.
remark
||
''
});
form
.
setFieldsValue
({
name
:
item
?.
name
||
''
,
cnName
:
item
?.
cnName
||
''
,
partitionMethod
:
item
?.
partitionMethod
||
''
,
definition
:
item
?.
definition
||
''
,
remark
:
item
?.
remark
||
''
});
}
}
}
}
...
@@ -101,10 +101,16 @@ const UpdatePartitionModal = (props) => {
...
@@ -101,10 +101,16 @@ const UpdatePartitionModal = (props) => {
<
Input
/>
<
Input
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
label=
"分区方式"
name=
"partitionMethod"
>
<
Input
/>
</
Form
.
Item
>
<
Form
.
Item
label=
"定义"
label=
"定义"
name=
"definition"
name=
"definition"
>
>
<
Input
/>
<
Input
.
TextArea
row=
{
4
}
/>
</
Form
.
Item
>
</
Form
.
Item
>
<
Form
.
Item
<
Form
.
Item
label=
"描述"
label=
"描述"
...
...
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