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
dd86b2c6
Commit
dd86b2c6
authored
Apr 17, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
衍生表预览
parent
ac54c3ff
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
80 additions
and
0 deletions
+80
-0
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+2
-0
ImportActionInherited.jsx
src/view/Manage/Model/Component/ImportActionInherited.jsx
+45
-0
InheritedPreview.jsx
src/view/Manage/Model/Component/InheritedPreview.jsx
+33
-0
No files found.
src/view/Manage/Model/Component/ImportAction.jsx
View file @
dd86b2c6
...
...
@@ -3,6 +3,7 @@ import { Spin } from 'antd';
import
LocalStorage
from
'local-storage'
;
import
ImportActionHeader
from
'./ImportActionHeader'
;
import
ImportActionInherited
from
'./ImportActionInherited'
;
import
{
ImportActionTable
}
from
'./ImportActionTable'
;
import
ImportActionIndex
from
'./ImportActionIndex'
;
import
{
getQueryParam
}
from
'../../../../util'
;
...
...
@@ -547,6 +548,7 @@ const ImportAction = (props) => {
terms={terms}
supportedPartitionTypes={supportedPartitionTypes}
/>
<ImportActionInherited />
<ImportActionTable
modelerData={modelerData||{}}
constraint={constraint}
...
...
src/view/Manage/Model/Component/ImportActionInherited.jsx
0 → 100644
View file @
dd86b2c6
import
React
,
{
useState
}
from
"react"
;
import
{
Button
,
Tabs
,
Checkbox
}
from
"antd"
;
import
{
DownOutlined
,
UpOutlined
}
from
"@ant-design/icons"
;
import
Preview
from
'./InheritedPreview'
;
const
FC
=
(
props
)
=>
{
const
[
collapse
,
setCollapse
]
=
useState
(
true
);
const
[
activeKey
,
setActiveKey
]
=
useState
(
'history'
);
const
[
generateHistory
,
setGenerateHistory
]
=
useState
(
false
);
const
[
generateZipper
,
setGenerateZipper
]
=
useState
(
false
);
return
(
<
div
className=
'model-import-action-inherited'
>
<
div
className=
'mb-3'
>
<
Tabs
activeKey=
{
activeKey
}
onChange=
{
(
key
)
=>
{
setActiveKey
(
key
);
}
}
tabBarExtraContent=
{
{
left
:
<
div
className=
'flex mr-6'
style=
{
{
alignItems
:
'center'
}
}
>
<
h2
className=
'mr-3'
style=
{
{
marginBottom
:
0
}
}
>
历史存储形式
</
h2
>
{
collapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
collapse
);
}
}
>
展开
<
DownOutlined
/>
</
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
collapse
);
}
}
>
收起
<
UpOutlined
/>
</
Button
>
}
</
div
>
}
}
>
<
Tabs
.
TabPane
tab=
{
<
Checkbox
onChange=
{
(
e
)
=>
{
setGenerateHistory
(
e
.
target
.
checked
);
}
}
>
历史表
</
Checkbox
>
}
key=
'history'
>
<
Preview
/>
</
Tabs
.
TabPane
>
<
Tabs
.
TabPane
tab=
{
<
Checkbox
onChange=
{
(
e
)
=>
{
setGenerateZipper
(
e
.
target
.
checked
);
}
}
>
拉链表
</
Checkbox
>
}
key=
'zipper'
>
<
Preview
/>
</
Tabs
.
TabPane
>
</
Tabs
>
</
div
>
</
div
>
)
}
export
default
FC
;
\ No newline at end of file
src/view/Manage/Model/Component/InheritedPreview.jsx
0 → 100644
View file @
dd86b2c6
import
React
from
"react"
;
import
{
Row
,
Col
,
Descriptions
}
from
"antd"
;
const
FC
=
(
props
)
=>
{
return
(
<
Row
>
<
Col
span=
{
12
}
>
<
Basic
/>
</
Col
>
<
Col
span=
{
12
}
>
</
Col
>
</
Row
>
)
}
export
default
FC
;
const
Basic
=
()
=>
{
return
(
<
Descriptions
column=
{
2
}
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
中文名称
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
英文名称
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
分区键
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
技术主键
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据类型
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
绑定加载范围
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
更新时间
</
div
>
}
></
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据情况
</
div
>
}
></
Descriptions
.
Item
>
</
Descriptions
>
)
}
\ No newline at end of file
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