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
fe7350fa
Commit
fe7350fa
authored
Oct 21, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型表头增加字段
parent
8bf3bfa0
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
111 additions
and
9 deletions
+111
-9
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+11
-8
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+97
-0
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+3
-1
No files found.
src/view/Manage/Model/Component/ImportAction.jsx
View file @
fe7350fa
...
...
@@ -28,13 +28,7 @@ const ImportAction = (props) => {
//初始化form状态
if
(
action
===
'add'
||
action
===
'edit'
||
action
===
'flow'
)
{
form
.
setFieldsValue
({
cnName
:
''
,
name
:
''
,
remark
:
''
,
easyDataModelerModelingConstraint
:
''
,
easyDataModelerModelingTemplate
:
''
,
});
form
.
resetFields
();
}
setLoading
(
true
);
...
...
@@ -182,7 +176,16 @@ const ImportAction = (props) => {
name
:
data
.
name
||
''
,
remark
:
data
.
remark
||
''
,
easyDataModelerModelingConstraint
:
data
.
easyDataModelerModelingConstraint
||
''
,
easyDataModelerModelingTemplate
:
data
.
easyDataModelerModelingTemplate
||
''
easyDataModelerModelingTemplate
:
data
.
easyDataModelerModelingTemplate
||
''
,
dataResidence
:
data
.
dataResidence
||
''
,
dataContent
:
data
.
dataContent
||
''
,
dataUpdatingTiming
:
data
.
dataUpdatingTiming
||
''
,
maintenanceRecords
:
data
.
maintenanceRecords
||
''
,
dataLoadingStrategy
:
data
.
dataLoadingStrategy
||
''
,
primaryKeysDescription
:
data
.
primaryKeysDescription
||
''
,
distributionKeysDescription
:
data
.
distributionKeysDescription
||
''
,
partitionsDescription
:
data
.
partitionsDescription
||
''
,
semiPrimaryKeysDescription
:
data
.
semiPrimaryKeysDescription
||
''
,
});
}
...
...
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
fe7350fa
...
...
@@ -232,6 +232,93 @@ const ImportActionHeader = (props) => {
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"数据平台"
name=
"dataResidence"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"数据内容"
name=
"dataContent"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"更新时间"
name=
"dataUpdatingTiming"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"维护历史"
name=
"maintenanceRecords"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"加载方式"
name=
"dataLoadingStrategy"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"主键"
name=
"primaryKeysDescription"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
disabled=
{
true
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"分布键"
name=
"distributionKeysDescription"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
disabled=
{
true
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"分区"
name=
"partitionsDescription"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"类主键"
name=
"semiPrimaryKeysDescription"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
</
Form
>
)
:
(
...
...
@@ -256,6 +343,16 @@ const ImportActionHeader = (props) => {
<
Descriptions
.
Item
label=
"描述"
>
{
highlightSearchContentByTerms
(
modelerData
.
remark
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"规范"
>
{
modelerData
.
easyDataModelerModelingConstraint
?(
modelerData
.
easyDataModelerModelingConstraint
.
cnName
||
''
):
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"数据表类型"
>
{
modelerData
.
easyDataModelerModelingTemplate
?(
modelerData
.
easyDataModelerModelingTemplate
.
cnName
||
''
):
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"数据平台"
>
{
highlightSearchContentByTerms
(
modelerData
.
dataResidence
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"数据内容"
>
{
highlightSearchContentByTerms
(
modelerData
.
dataContent
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"更新时间"
>
{
highlightSearchContentByTerms
(
modelerData
.
dataUpdatingTiming
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"维护历史"
>
{
highlightSearchContentByTerms
(
modelerData
.
maintenanceRecords
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"加载方式"
>
{
highlightSearchContentByTerms
(
modelerData
.
dataLoadingStrategy
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"主键"
>
{
highlightSearchContentByTerms
(
modelerData
.
primaryKeysDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"分布键"
>
{
highlightSearchContentByTerms
(
modelerData
.
distributionKeysDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"分区"
>
{
highlightSearchContentByTerms
(
modelerData
.
partitionsDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"类主键"
>
{
highlightSearchContentByTerms
(
modelerData
.
semiPrimaryKeysDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
</
Descriptions
>
)
}
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
fe7350fa
...
...
@@ -1000,13 +1000,15 @@ const ImportActionTable = (props) => {
{
index
===
0
&&
<
span
style=
{
{
color
:
'#f50'
}
}
>
推荐
</
span
>
}
{
` 使用次数: ${suggest.recommendedStats?.referencesCount}`
}
{
' 来源: '
}
<
a
{
((
suggest
.
recommendedStats
?.
idInSource
||
''
).
split
(
'='
).
length
>=
3
)
?
`${suggest.recommendedStats?.pathInSource||''}`
:
<
a
href=
'#'
onClick=
{
()
=>
{
sourceOnClick
(
suggest
.
recommendedStats
?.
idInSource
||
''
);
}
}
>
{
`${suggest.recommendedStats?.pathInSource||''}`
}
</
a
>
}
</
Radio
>
)
})
...
...
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