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
1f0131b3
Commit
1f0131b3
authored
Apr 20, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
预览
parent
d3182212
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
41 additions
and
8 deletions
+41
-8
InheritedPreview.jsx
src/view/Manage/Model/Component/InheritedPreview.jsx
+41
-8
No files found.
src/view/Manage/Model/Component/InheritedPreview.jsx
View file @
1f0131b3
import
React
,
{
useEffect
,
useState
}
from
"react"
;
import
React
,
{
useEffect
,
useState
,
useMemo
}
from
"react"
;
import
{
Row
,
Col
,
Tooltip
,
Typography
,
Space
,
Button
}
from
"antd"
;
import
{
Row
,
Col
,
Tooltip
,
Typography
,
Space
,
Button
}
from
"antd"
;
import
DataGrid
from
'../../VirtualTable'
;
import
DataGrid
from
'../../VirtualTable'
;
import
EditInherited
from
'./EditInherited'
;
import
EditInherited
from
'./EditInherited'
;
...
@@ -40,6 +40,39 @@ const FC = (props) => {
...
@@ -40,6 +40,39 @@ const FC = (props) => {
export
default
FC
;
export
default
FC
;
const
Basic
=
({
modelerData
})
=>
{
const
Basic
=
({
modelerData
})
=>
{
const
partitionsDescription
=
useMemo
(()
=>
{
let
newPartitionsDescription
=
''
if
(
modelerData
?.
partition
?.
keys
)
{
(
modelerData
?.
partition
?.
keys
||
[]).
forEach
((
item
,
index
)
=>
{
if
(
index
>
0
)
{
newPartitionsDescription
+=
','
;
}
newPartitionsDescription
+=
item
.
name
||
''
;
})
}
if
(
modelerData
?.
partition
?.
partitionType
?.
cnName
)
{
newPartitionsDescription
+=
'/'
+
modelerData
?.
partition
?.
partitionType
?.
cnName
||
''
;
}
return
newPartitionsDescription
;
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
modelerData
])
const
primaryDescription
=
useMemo
(()
=>
{
let
newPrimaryDescription
=
''
if
(
modelerData
?.
easyDataModelerPrimaryKey
)
{
(
modelerData
?.
easyDataModelerPrimaryKey
||
[]).
forEach
((
item
,
index
)
=>
{
if
(
index
>
0
)
{
newPrimaryDescription
+=
','
;
}
newPrimaryDescription
+=
item
.
name
||
''
;
})
}
return
newPrimaryDescription
;
//eslint-disable-next-line react-hooks/exhaustive-deps
},
[
modelerData
])
return
(
return
(
<
Row
gutter=
{
10
}
>
<
Row
gutter=
{
10
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
...
@@ -52,49 +85,49 @@ const Basic = ({ modelerData }) => {
...
@@ -52,49 +85,49 @@ const Basic = ({ modelerData }) => {
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
英文名称:
<
Typography
.
Text
></
Typography
.
Text
>
英文名称:
<
Typography
.
Text
>
{
modelerData
?.
name
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
分区键:
<
Typography
.
Text
></
Typography
.
Text
>
分区键:
<
Typography
.
Text
>
{
partitionsDescription
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
技术主键:
<
Typography
.
Text
></
Typography
.
Text
>
技术主键:
<
Typography
.
Text
>
{
primaryDescription
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
数据类型:
<
Typography
.
Text
></
Typography
.
Text
>
数据类型:
<
Typography
.
Text
>
{
modelerData
?.
dataType
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
绑定加载范围:
<
Typography
.
Text
></
Typography
.
Text
>
绑定加载范围:
<
Typography
.
Text
>
{
modelerData
?.
bindingLoadRange
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
更新时间:
<
Typography
.
Text
></
Typography
.
Text
>
更新时间:
<
Typography
.
Text
>
{
modelerData
?.
dataUpdatingTiming
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Col
className=
'mb-4'
span=
{
12
}
>
<
Tooltip
title=
''
>
<
Tooltip
title=
''
>
<
Typography
.
Text
ellipsis=
{
true
}
>
<
Typography
.
Text
ellipsis=
{
true
}
>
数据情况:
<
Typography
.
Text
></
Typography
.
Text
>
数据情况:
<
Typography
.
Text
>
{
modelerData
?.
dataCircumstances
}
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Typography
.
Text
>
</
Tooltip
>
</
Tooltip
>
</
Col
>
</
Col
>
...
...
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