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
8c6c8e79
Commit
8c6c8e79
authored
Oct 21, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型表头增加数据情况
parent
9cfe4f67
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
98 additions
and
58 deletions
+98
-58
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+10
-8
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+49
-36
EditTemplate.jsx
src/view/Manage/ModelConfig/Component/EditTemplate.jsx
+10
-8
TemplateAction.jsx
src/view/Manage/ModelConfig/Component/TemplateAction.jsx
+22
-1
TemplateActionHeader.jsx
...iew/Manage/ModelConfig/Component/TemplateActionHeader.jsx
+6
-4
index.less
src/view/Manage/ModelConfig/index.less
+1
-1
No files found.
src/view/Manage/Model/Component/EditModel.jsx
View file @
8c6c8e79
...
...
@@ -157,14 +157,16 @@ const EditModel = (props) => {
if
(
action
===
'add'
)
{
actionsBtn
=
(
<
Button
type=
'primary'
onClick=
{
save
}
loading=
{
confirmLoading
}
danger
>
保存
</
Button
>
<
Space
>
<
Button
type=
'primary'
onClick=
{
save
}
loading=
{
confirmLoading
}
danger
>
保存
</
Button
>
</
Space
>
)
}
else
if
(
action
===
'detail'
)
{
actionsBtn
=
(
...
...
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
8c6c8e79
...
...
@@ -222,50 +222,52 @@ const ImportActionHeader = (props) => {
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"数据
平台
"
name=
"data
Residence
"
label=
"数据
内容
"
name=
"data
Content
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"数据
内容
"
name=
"data
Content
"
label=
"数据
平台
"
name=
"data
Residence
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"
更新时间
"
name=
"data
UpdatingTiming
"
label=
"
数据情况
"
name=
"data
Circumstances
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"
维护历史
"
name=
"
maintenanceRecords
"
label=
"
分布键
"
name=
"
distributionKeysDescription
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
<
Input
style=
{
{
width
:
300
}
}
disabled=
{
true
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
8
}
>
<
Row
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"
加载方式
"
name=
"
dataLoadingStrategy
"
label=
"
分区键
"
name=
"
partitionsDescription
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
...
...
@@ -280,36 +282,47 @@ const ImportActionHeader = (props) => {
<
Input
style=
{
{
width
:
300
}
}
disabled=
{
true
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
</
Row
>
<
Row
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"
分布
键"
name=
"
distribution
KeysDescription"
label=
"
类主
键"
name=
"
semiPrimary
KeysDescription"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
disabled=
{
true
}
/>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"加载方式"
name=
"dataLoadingStrategy"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Col
span=
{
8
}
>
<
Row
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"
分区
"
name=
"
partitionsDescription
"
label=
"
更新时间
"
name=
"
dataUpdatingTiming
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
<
Col
span=
{
8
}
>
<
Col
span=
{
8
}
>
<
Form
.
Item
label=
"
类主键
"
name=
"
semiPrimaryKeysDescription
"
label=
"
维护历史
"
name=
"
maintenanceRecords
"
labelAlign=
"left"
>
<
Input
style=
{
{
width
:
300
}
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
</
Row
>
<
Row
>
<
Col
span=
{
8
}
>
<
Form
.
Item
...
...
@@ -342,19 +355,19 @@ const ImportActionHeader = (props) => {
</
div
>
}
</
Descriptions
.
Item
>
<
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
.
dataResidence
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"数据情况"
>
{
highlightSearchContentByTerms
(
modelerData
.
dataCircumstances
||
''
,
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
.
partitionsDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"主键"
>
{
highlightSearchContentByTerms
(
modelerData
.
primaryKeysDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"类主键"
>
{
highlightSearchContentByTerms
(
modelerData
.
semiPrimaryKeysDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"加载方式"
>
{
highlightSearchContentByTerms
(
modelerData
.
dataLoadingStrategy
||
''
,
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
.
remark
||
''
,
terms
)
}
</
Descriptions
.
Item
>
</
Descriptions
>
)
}
...
...
src/view/Manage/ModelConfig/Component/EditTemplate.jsx
View file @
8c6c8e79
...
...
@@ -90,14 +90,16 @@ const EditTemplate = (props) => {
if
(
action
===
'add'
)
{
actionsBtn
=
(
<
Button
type=
'primary'
onClick=
{
save
}
loading=
{
confirmLoading
}
danger
>
保存
</
Button
>
<
Space
>
<
Button
type=
'primary'
onClick=
{
save
}
loading=
{
confirmLoading
}
danger
>
保存
</
Button
>
</
Space
>
)
}
else
if
(
action
===
'detail'
)
{
actionsBtn
=
(
...
...
src/view/Manage/ModelConfig/Component/TemplateAction.jsx
View file @
8c6c8e79
import
React
,
{
useState
,
useEffect
}
from
'react'
;
import
{
Spin
,
Tabs
,
Popover
}
from
'antd'
;
import
{
Spin
,
Tabs
,
Popover
,
Divider
,
Button
,
Space
}
from
'antd'
;
import
{
QuestionCircleOutlined
}
from
'@ant-design/icons'
;
import
TemplateActionHeader
from
'./TemplateActionHeader'
;
...
...
@@ -92,6 +92,14 @@ const TemplateAction = (props) => {
setTabKey
(
key
);
}
const
prevStep
=
()
=>
{
setTabKey
(
`
${
Number
(
tabKey
)
-
1
}
`
);
}
const
nextStep
=
()
=>
{
setTabKey
(
`
${
Number
(
tabKey
)
+
1
}
`
);
}
return
(
<
Spin
spinning=
{
loading
}
>
<
Tabs
activeKey=
{
tabKey
}
onChange=
{
onTabChange
}
>
...
...
@@ -126,6 +134,19 @@ const TemplateAction = (props) => {
/>
</
TabPane
>
</
Tabs
>
{
action
!==
'detail'
&&
(
<
React
.
Fragment
>
<
Divider
style=
{
{
margin
:
0
}
}
/>
<
div
className=
'flex'
style=
{
{
justifyContent
:
'flex-end'
,
height
:
64
,
alignItems
:
'center'
}
}
>
<
Space
size=
'small'
>
<
Button
type=
'primary'
onClick=
{
prevStep
}
disabled=
{
tabKey
===
'1'
}
danger
>
上一步
</
Button
>
<
Button
type=
'primary'
onClick=
{
nextStep
}
disabled=
{
tabKey
===
'2'
}
danger
>
下一步
</
Button
>
</
Space
>
</
div
>
</
React
.
Fragment
>
)
}
</
Spin
>
);
};
...
...
src/view/Manage/ModelConfig/Component/TemplateActionHeader.jsx
View file @
8c6c8e79
import
React
from
'react'
;
import
{
Form
,
Input
,
Row
,
Col
,
Descriptions
}
from
'antd'
;
const
{
TextArea
}
=
Input
;
const
TemplateActionHeader
=
(
props
)
=>
{
const
{
editable
,
form
,
templateData
}
=
props
;
...
...
@@ -21,7 +23,7 @@ const TemplateActionHeader = (props) => {
form=
{
form
}
{
...
formItemLayout
}
>
<
Row
gutter=
{
10
}
>
<
Row
>
<
Col
span=
{
12
}
>
<
Form
.
Item
label=
"中文名称"
...
...
@@ -43,7 +45,7 @@ const TemplateActionHeader = (props) => {
</
Form
.
Item
>
</
Col
>
</
Row
>
<
Row
gutter=
{
10
}
>
<
Row
>
<
Col
span=
{
12
}
>
<
Form
.
Item
label=
"描述"
...
...
@@ -51,13 +53,13 @@ const TemplateActionHeader = (props) => {
labelAlign=
"left"
rules=
{
[{
required
:
true
,
message
:
'请输入描述!'
}]
}
>
<
Input
/>
<
TextArea
row=
{
4
}
/>
</
Form
.
Item
>
</
Col
>
</
Row
>
</
Form
>
)
:
(
<
Descriptions
>
<
Descriptions
column=
{
2
}
>
<
Descriptions
.
Item
label=
"中文名称"
>
{
templateData
.
cnName
||
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"英文名称"
>
{
templateData
.
name
||
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
"描述"
>
{
templateData
.
remark
||
''
}
</
Descriptions
.
Item
>
...
...
src/view/Manage/ModelConfig/index.less
View file @
8c6c8e79
.model-config {
height: calc(100vh - 30px);
height: calc(100vh -
64px -
30px);
padding: 20px;
background: #fff;
overflow: auto;
...
...
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