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
2a8d620e
Commit
2a8d620e
authored
Jan 24, 2024
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型详情修改样式
parent
174dbf1c
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
281 additions
and
247 deletions
+281
-247
EditInherited.jsx
src/view/Manage/Model/Component/EditInherited.jsx
+2
-0
EditModel.less
src/view/Manage/Model/Component/EditModel.less
+3
-3
ImportAction.jsx
src/view/Manage/Model/Component/ImportAction.jsx
+2
-2
ImportAction.less
src/view/Manage/Model/Component/ImportAction.less
+8
-1
ImportActionComment.jsx
src/view/Manage/Model/Component/ImportActionComment.jsx
+16
-16
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+186
-185
ImportActionHeader.less
src/view/Manage/Model/Component/ImportActionHeader.less
+21
-0
ImportActionIndex.jsx
src/view/Manage/Model/Component/ImportActionIndex.jsx
+12
-8
ImportActionManage.jsx
src/view/Manage/Model/Component/ImportActionManage.jsx
+9
-11
ImportActionRelation.jsx
src/view/Manage/Model/Component/ImportActionRelation.jsx
+19
-19
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+2
-1
update-task.jsx
src/view/Manage/ModelCompare/update-task.jsx
+1
-1
No files found.
src/view/Manage/Model/Component/EditInherited.jsx
View file @
2a8d620e
...
...
@@ -115,6 +115,7 @@ const FC = (props) => {
onCancel
?.();
}
}
width=
'95%'
bodyStyle=
{
{
padding
:
0
,
background
:
'#F2F2F2'
}
}
footer=
{
<
Space
>
<
Button
onClick=
{
()
=>
{
...
...
@@ -134,6 +135,7 @@ const FC = (props) => {
tabBarExtraContent=
{
{
left
:
<
span
className=
'mr-5'
style=
{
{
fontSize
:
16
,
fontWeight
:
500
}
}
>
编辑历史存储形式
</
span
>
}
}
tabBarStyle=
{
{
backgroundColor
:
'#FFF'
,
padding
:
'5px 20px'
,
margin
:
0
}
}
>
<
Tabs
.
TabPane
tab=
{
...
...
src/view/Manage/Model/Component/EditModel.less
View file @
2a8d620e
...
...
@@ -13,15 +13,15 @@
}
.edit-container {
background: #
EDF0F5
;
background: #
F2F2F2
;
height: calc(100vh - 44px - 64px);
overflow: hidden;
}
.edit-container-card {
margin: 10px
20px
;
margin: 10px;
height: calc(100vh - 44px - 64px - 20px);
background: #fff;
//
background: #fff;
}
.edit-footer {
...
...
src/view/Manage/Model/Component/ImportAction.jsx
View file @
2a8d620e
...
...
@@ -606,7 +606,7 @@ const ImportAction = React.forwardRef((props, ref) => {
modelerData?.id && <Tabs.TabPane tab='模型评论' key="model-import-action-comment" />
}
</Tabs>
<div ref={setContainer} style={{ height: action==='edit-inherite-modal'?'60vh':'calc(100vh - 44px - 64px - 66px)', overflow: 'auto'
, padding: '20px 20px 0'
}}>
<div ref={setContainer} style={{ height: action==='edit-inherite-modal'?'60vh':'calc(100vh - 44px - 64px - 66px)', overflow: 'auto' }}>
<ImportActionHeader
form={form}
editable={action!=='detail'&&action!=='flow'&&action!=='detail-version'&&action!=='edit-inherited'}
...
...
@@ -652,7 +652,7 @@ const ImportAction = React.forwardRef((props, ref) => {
/>
<ImportActionRelation
modelerData={modelerData} action={action}
/>
/>
{
modelerData?.id && <ImportActionComment
modelerData={modelerData}
...
...
src/view/Manage/Model/Component/ImportAction.less
View file @
2a8d620e
.import-action {
.import-action {
.yy-tabs-nav {
background-color: #EBEBEB;
margin: 0;
}
.yy-tabs-nav-list {
width: 80%;
justify-content: space-between;
}
}
\ No newline at end of file
src/view/Manage/Model/Component/ImportActionComment.jsx
View file @
2a8d620e
import
React
from
"react"
import
{
Button
,
Space
,
Input
,
Divider
,
Upload
,
Row
,
Col
,
Tooltip
,
List
,
Typography
,
Modal
}
from
"antd"
import
{
DownOutlined
,
UpOutlined
,
PlusOutlined
}
from
'@ant-design/icons'
import
{
showMessage
}
from
"../../../../util"
import
{
dispatch
}
from
'../../../../model'
import
{
importActionSubject
}
from
"./ImportAction"
import
'./ImportActionHeader.less'
import
'./ImportActionComment.less'
import
{
importActionSubject
}
from
"./ImportAction"
const
FC
=
(
props
)
=>
{
const
{
modelerData
,
action
}
=
props
...
...
@@ -123,20 +125,18 @@ const FC = (props) => {
return
(
<
div
className=
'model-import-action-comment'
>
<
div
className=
'mb-3'
>
<
Space
>
<
h3
style=
{
{
marginBottom
:
0
}
}
>
评论
{
` (${(comments??[]).length})`
}
</
h3
>
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
Space
>
</
div
>
<
Space
>
<
h3
style=
{
{
width
:
120
,
marginBottom
:
0
}
}
>
评论
{
` (${(comments??[]).length})`
}
</
h3
>
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
Space
>
{
!
isCollapse
&&
<
React
.
Fragment
>
!
isCollapse
&&
<
div
className=
'mt-3'
>
<
div
style=
{
{
border
:
'1px solid #d9d9d9'
,
borderRadius
:
4
}
}
>
<
Input
.
TextArea
value=
{
comment
}
bordered=
{
false
}
rows=
{
3
}
placeholder=
'请输入您的评论'
onChange=
{
(
e
)
=>
{
setComment
(
e
.
target
.
value
)
}
}
/>
<
Divider
style=
{
{
margin
:
0
}
}
/>
...
...
@@ -152,7 +152,7 @@ const FC = (props) => {
</
Tooltip
>
</
div
>
</
div
>
<
div
className=
'm
y
-3'
>
<
div
className=
'm
t
-3'
>
<
List
itemLayout=
"horizontal"
dataSource=
{
comments
??[]
}
...
...
@@ -187,7 +187,7 @@ const FC = (props) => {
)
}
/>
</
div
>
</
React
.
Fragment
>
</
div
>
}
{
contextHolder
}
</
div
>
...
...
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
2a8d620e
...
...
@@ -277,249 +277,250 @@ const ImportActionHeader = (props) => {
return
(
<
div
className=
{
classnames
(
'model-import-action-header'
,
editable
?
''
:
'model-import-action-header-readolny'
)
}
>
<
div
className=
'model-import-action-basic mb-3'
>
<
h3
className=
'mr-3'
style=
{
{
marginBottom
:
0
}
}
>
基本信息
</
h3
>
</
div
>
<
Form
form=
{
form
}
{
...
formItemLayout
}
onValuesChange=
{
onValuesChange
}
>
<
Row
gutter=
{
10
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
{
<
ItemTitle
name=
'cnName'
cnName=
'中文名称'
validateReports=
{
validateReports
}
/>
}
name=
"cnName"
rules=
{
[{
required
:
true
,
message
:
'请输入中文名称!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
InputDebounce
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
cnName
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
{
<
ItemTitle
name=
'name'
cnName=
'英文名称'
validateReports=
{
validateReports
}
/>
}
name=
"name"
rules=
{
[{
required
:
true
,
message
:
'请输入英文名称!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
AutoComplete
options=
{
options
}
onSearch=
{
onSearch
}
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
name
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
{
<
ItemTitle
name=
'remark'
cnName=
'数据内容'
validateReports=
{
validateReports
}
/>
}
name=
"remark"
rules=
{
[{
required
:
true
,
message
:
'请输入数据内容!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
TextArea
rows=
{
1
}
placeholder=
'描述数据表包含的业务数据,包括数据内容业务描述、表的适用范围、数据粒度、数据统计口径、数据来源等。对于原始数据表,可以说明加载的源接口信息。'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
remark
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"技术主键"
name=
"easyDataModelerPrimaryKey"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
AttributesSelect
modelerData=
{
modelerData
}
mode=
'tags'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
primaryDescription
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"数据平台"
name=
"dataResidence"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Input
placeholder=
'描述数据表落地的数据平台及数据库'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataResidence
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"规范"
name=
"easyDataModelerModelingConstraint"
rules=
{
[{
required
:
true
,
message
:
'请选择规范!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
ConstraintSelect
constraints=
{
constraints
}
onChange=
{
onConstraintChange
}
onDetail=
{
()
=>
{
setRuleParams
({
visible
:
true
})
}
}
/>
:
<
div
className=
'flex'
style=
{
{
alignItems
:
'flex-start'
}
}
>
<
div
className=
'word-wrap mr-2'
>
{
modelerData
?.
easyDataModelerModelingConstraint
?.
cnName
}
</
div
>
<
div
style=
{
{
flex
:
1
,
minWidth
:
30
}
}
>
<
a
onClick=
{
()
=>
{
setRuleParams
({
visible
:
true
})
}
}
>
查看
</
a
>
</
div
>
</
div
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"数据表类型"
name=
"tableType"
rules=
{
[{
required
:
true
,
message
:
'请选择数据表类型!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
TemplateSelect
modelerData=
{
modelerData
}
templates=
{
templates
}
onChange=
{
onTemplateChange
}
/>
:
<
span
className=
'word-wrap'
>
{
modelerData
?.
tableType
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
{
modelerData
?.
id
&&
modelerData
?.
state
?.
id
===
'4'
&&
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"标签"
style=
{
{
marginBottom
}
}
>
<
DataQuality
type=
{
DataQualityFeignTagList
}
data=
{
{
type
:
'model'
,
id
:
modelerData
?.
id
,
}
}
/>
</
Form
.
Item
>
</
Col
>
}
</
Row
>
</
Form
>
<
div
className=
'model-import-action-technical mb-3'
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
,
}
}
>
<
h3
className=
'mr-3'
style=
{
{
marginBottom
:
0
}
}
>
技术信息
</
h3
>
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
div
>
{
!
isCollapse
&&
<
Form
form=
{
form
}
{
...
formItemLayout
}
<
div
className=
'model-import-action-basic'
>
<
div
>
<
h3
style=
{
{
marginBottom
:
0
}
}
>
基本信息
</
h3
>
</
div
>
<
Form
className=
'mt-3'
form=
{
form
}
{
...
formItemLayout
}
onValuesChange=
{
onValuesChange
}
>
<
Row
gutter=
{
10
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"分布键"
name=
"easyDataModelerDistributionKey"
label=
{
<
ItemTitle
name=
'cnName'
cnName=
'中文名称'
validateReports=
{
validateReports
}
/>
}
name=
"cnName"
rules=
{
[{
required
:
true
,
message
:
'请输入中文名称!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
AttributesSelect
modelerData=
{
modelerData
}
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
distributionDescription
,
terms
)
}
</
span
>
editable
?
<
InputDebounce
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
cnName
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"分区键"
name=
"partition"
label=
{
<
ItemTitle
name=
'name'
cnName=
'英文名称'
validateReports=
{
validateReports
}
/>
}
name=
"name"
rules=
{
[{
required
:
true
,
message
:
'请输入英文名称!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
PartitionSelect
modelerData=
{
modelerData
}
partitionTypes=
{
supportedPartitionTypes
}
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
partitionsDescription
,
terms
)
}
</
span
>
}
editable
?
<
AutoComplete
options=
{
options
}
onSearch=
{
onSearch
}
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
name
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"类主键"
name=
"easyDataModelerSemiPrimaryKey"
label=
{
<
ItemTitle
name=
'remark'
cnName=
'数据内容'
validateReports=
{
validateReports
}
/>
}
name=
"remark"
rules=
{
[{
required
:
true
,
message
:
'请输入数据内容!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
AttributesSelect
modelerData=
{
modelerData
}
mode=
'tags'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
semiPrimaryDescription
,
terms
)
}
</
span
>
editable
?
<
TextArea
rows=
{
1
}
placeholder=
'描述数据表包含的业务数据,包括数据内容业务描述、表的适用范围、数据粒度、数据统计口径、数据来源等。对于原始数据表,可以说明加载的源接口信息。'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
remark
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"
数据情况
"
name=
"
dataCircumstances
"
label=
"
技术主键
"
name=
"
easyDataModelerPrimaryKey
"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Input
placeholder=
'描述数据表中数据的更新频率、每日增量情况、数据量级和历史数据'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataCircumstances
,
terms
)
}
</
span
>
editable
?
<
AttributesSelect
modelerData=
{
modelerData
}
mode=
'tags'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
primaryDescription
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"
更新时间
"
name=
"data
UpdatingTiming
"
label=
"
数据平台
"
name=
"data
Residence
"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
UpdateSelect
placeholder=
'描述数据表的更新时间点'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataUpdatingTiming
,
terms
)
}
</
span
>
editable
?
<
Input
placeholder=
'描述数据表落地的数据平台及数据库'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataResidence
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"
数据类型
"
name=
"
dataType
"
tooltip=
{
dataTypeRemark
}
label=
"
规范
"
name=
"
easyDataModelerModelingConstraint
"
rules=
{
[{
required
:
true
,
message
:
'请选择规范!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Select
allowClear
placeholder=
'请选择数据类型'
>
{
dataTypeList
?.
map
((
item
,
index
)
=>
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>)
}
</
Select
>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataType
,
terms
)
}
</
span
>
editable
?
<
ConstraintSelect
constraints=
{
constraints
}
onChange=
{
onConstraintChange
}
onDetail=
{
()
=>
{
setRuleParams
({
visible
:
true
})
}
}
/>
:
<
div
className=
'flex'
style=
{
{
alignItems
:
'flex-start'
}
}
>
<
div
className=
'word-wrap mr-2'
>
{
modelerData
?.
easyDataModelerModelingConstraint
?.
cnName
}
</
div
>
<
div
style=
{
{
flex
:
1
,
minWidth
:
30
}
}
>
<
a
onClick=
{
()
=>
{
setRuleParams
({
visible
:
true
})
}
}
>
查看
</
a
>
</
div
>
</
div
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"
绑定加载范围
"
name=
"
bindingLoadRang
e"
tooltip=
{
bindingLoadRemark
}
label=
"
数据表类型
"
name=
"
tableTyp
e"
rules=
{
[{
required
:
true
,
message
:
'请选择数据表类型!'
}]
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Select
allowClear
placeholder=
'请选择绑定加载范围'
>
{
bindingLoadRangeList
?.
map
((
item
,
index
)
=>
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>)
}
</
Select
>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
bindingLoadRange
,
terms
)
}
</
span
>
editable
?
<
TemplateSelect
modelerData=
{
modelerData
}
templates=
{
templates
}
onChange=
{
onTemplateChange
}
/>
:
<
span
className=
'word-wrap'
>
{
modelerData
?.
tableType
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
{
modelerData
?.
id
&&
modelerData
?.
state
?.
id
===
'4'
&&
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"标签"
style=
{
{
marginBottom
}
}
>
<
DataQuality
type=
{
DataQualityFeignTagList
}
data=
{
{
type
:
'model'
,
id
:
modelerData
?.
id
,
}
}
/>
</
Form
.
Item
>
</
Col
>
}
</
Row
>
</
Form
>
}
</
Form
>
</
div
>
<
div
className=
'model-import-action-technical'
>
<
Space
>
<
h3
style=
{
{
width
:
120
,
marginBottom
:
0
}
}
>
技术信息
</
h3
>
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
Space
>
{
!
isCollapse
&&
<
Form
className=
'mt-3'
form=
{
form
}
{
...
formItemLayout
}
onValuesChange=
{
onValuesChange
}
>
<
Row
gutter=
{
10
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"分布键"
name=
"easyDataModelerDistributionKey"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
AttributesSelect
modelerData=
{
modelerData
}
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
distributionDescription
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"分区键"
name=
"partition"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
PartitionSelect
modelerData=
{
modelerData
}
partitionTypes=
{
supportedPartitionTypes
}
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
partitionsDescription
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"类主键"
name=
"easyDataModelerSemiPrimaryKey"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
AttributesSelect
modelerData=
{
modelerData
}
mode=
'tags'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
semiPrimaryDescription
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"数据情况"
name=
"dataCircumstances"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Input
placeholder=
'描述数据表中数据的更新频率、每日增量情况、数据量级和历史数据'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataCircumstances
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"更新时间"
name=
"dataUpdatingTiming"
style=
{
{
marginBottom
}
}
>
{
editable
?
<
UpdateSelect
placeholder=
'描述数据表的更新时间点'
/>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataUpdatingTiming
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"数据类型"
name=
"dataType"
tooltip=
{
dataTypeRemark
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Select
allowClear
placeholder=
'请选择数据类型'
>
{
dataTypeList
?.
map
((
item
,
index
)
=>
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>)
}
</
Select
>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
dataType
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"绑定加载范围"
name=
"bindingLoadRange"
tooltip=
{
bindingLoadRemark
}
style=
{
{
marginBottom
}
}
>
{
editable
?
<
Select
allowClear
placeholder=
'请选择绑定加载范围'
>
{
bindingLoadRangeList
?.
map
((
item
,
index
)
=>
<
Option
key=
{
index
}
value=
{
item
}
>
{
item
}
</
Option
>)
}
</
Select
>
:
<
span
className=
'word-wrap'
>
{
highlightSearchContentByTerms
(
modelerData
?.
bindingLoadRange
,
terms
)
}
</
span
>
}
</
Form
.
Item
>
</
Col
>
</
Row
>
</
Form
>
}
</
div
>
<
Rule
{
...
ruleParams
}
onCancel=
{
()
=>
{
...
...
src/view/Manage/Model/Component/ImportActionHeader.less
View file @
2a8d620e
...
...
@@ -6,4 +6,24 @@
.yy-form-item-control-input {
min-height: 0;
}
}
.model-import-action-basic,
.model-import-action-technical,
.model-import-action-table,
.model-import-action-index,
.model-import-action-manage,
.model-import-action-relation,
.model-import-action-comment {
background-color: #FFF;
padding: 20px;
}
.model-import-action-technical,
.model-import-action-table,
.model-import-action-index,
.model-import-action-manage,
.model-import-action-relation,
.model-import-action-comment {
margin-top: 7px;
}
\ No newline at end of file
src/view/Manage/Model/Component/ImportActionIndex.jsx
View file @
2a8d620e
...
...
@@ -14,6 +14,8 @@ import { EditModelContext } from './ContextManage';
import
{
ValidateTip
}
from
'./ImportActionHeader'
;
import
{
importActionSubject
}
from
'./ImportAction'
;
import
'./ImportActionHeader.less'
;
const
{
Option
}
=
Select
;
const
type
=
'DragableIndexBodyRow'
;
...
...
@@ -824,14 +826,16 @@ const ImportActionIndex = (props) => {
return
(
<
div
className=
'model-import-action-index'
id=
'model-import-action-index'
>
<
div
className=
'
d-flex mb-3
'
style=
{
{
justifyContent
:
'space-between'
}
}
>
<
div
className=
'
flex
'
style=
{
{
justifyContent
:
'space-between'
}
}
>
<
Space
>
<
h3
style=
{
{
marginBottom
:
0
}
}
>
数据表索引
</
h3
>
{
editable
&&
<
Popover
content=
'点击行进行编辑,表格可以通过拖拽来排序'
>
<
QuestionCircleOutlined
className=
'pointer'
/>
</
Popover
>
}
<
Space
style=
{
{
width
:
120
}
}
>
<
h3
style=
{
{
marginBottom
:
0
}
}
>
数据表索引
</
h3
>
{
editable
&&
<
Popover
content=
'点击行进行编辑,表格可以通过拖拽来排序'
>
<
QuestionCircleOutlined
className=
'pointer'
/>
</
Popover
>
}
</
Space
>
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
...
...
@@ -858,7 +862,7 @@ const ImportActionIndex = (props) => {
</
Space
>
</
div
>
{
!
isCollapse
&&
<
div
className=
'm
b
-3'
id=
"containerId"
ref=
{
tableRef
}
>
!
isCollapse
&&
<
div
className=
'm
t
-3'
id=
"containerId"
ref=
{
tableRef
}
>
<
DndProvider
backend=
{
HTML5Backend
}
>
<
Form
form=
{
form
}
component=
{
false
}
onValuesChange=
{
onValuesChange
}
>
<
Table
...
...
src/view/Manage/Model/Component/ImportActionManage.jsx
View file @
2a8d620e
import
React
from
'react'
import
{
Button
,
Form
,
Descriptions
,
Input
,
Row
,
Col
}
from
'antd'
import
{
Button
,
Form
,
Descriptions
,
Input
,
Row
,
Col
,
Space
}
from
'antd'
import
{
DownOutlined
,
UpOutlined
}
from
'@ant-design/icons'
import
{
Subject
}
from
'rxjs'
;
import
{
dispatch
}
from
'../../../../model'
import
{
importActionSubject
}
from
'./ImportAction'
;
import
'./ImportActionHeader.less'
;
export
const
ImportActionHeaderSubject
=
new
Subject
();
const
FC
=
(
props
)
=>
{
...
...
@@ -81,13 +83,9 @@ const FC = (props) => {
};
return
(
<
div
>
<
div
className=
'model-import-action-manage mb-3'
style=
{
{
display
:
'flex'
,
alignItems
:
'center'
,
}
}
>
<
h3
className=
'mr-3'
style=
{
{
marginBottom
:
0
}
}
>
管理信息
</
h3
>
<
div
className=
'model-import-action-manage'
>
<
Space
>
<
h3
style=
{
{
width
:
120
,
marginBottom
:
0
}
}
>
管理信息
</
h3
>
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
...
...
@@ -95,9 +93,9 @@ const FC = (props) => {
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
div
>
</
Space
>
{
!
isCollapse
&&
<
React
.
Fragment
>
!
isCollapse
&&
<
div
className=
'mt-3'
>
{
editable
?
(
<
Form
form=
{
form
}
{
...
formItemLayout
}
>
...
...
@@ -125,7 +123,7 @@ const FC = (props) => {
</
Descriptions
>
)
}
</
React
.
Fragment
>
</
div
>
}
</
div
>
)
...
...
src/view/Manage/Model/Component/ImportActionRelation.jsx
View file @
2a8d620e
...
...
@@ -5,6 +5,8 @@ import { DownOutlined, UpOutlined, QuestionCircleOutlined } from '@ant-design/ic
import
{
Action
,
ModelerId
,
PermitCheckOut
,
Editable
,
StateId
,
Holder
,
ReadOnly
}
from
'../../../../util/constant'
import
{
importActionSubject
}
from
"./ImportAction"
import
'./ImportActionHeader.less'
export
const
inheritanceHistoricalType
=
'historical'
export
const
inheritanceZipperType
=
'zipper'
...
...
@@ -53,26 +55,24 @@ const FC = (props) => {
},
[
modelerData
])
return
(
<
div
>
<
div
className=
'model-import-action-relation mb-3'
>
<
Space
>
<
h3
style=
{
{
marginBottom
:
0
}
}
>
关联对象
</
h3
>
{
action
===
'add'
&&
<
Popover
content=
'保存当前模型后方可选择历史存储形式'
>
<
QuestionCircleOutlined
className=
'pointer'
/>
</
Popover
>
}
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
Space
>
</
div
>
<
div
className=
'model-import-action-relation'
>
<
Space
>
<
h3
style=
{
{
width
:
120
,
marginBottom
:
0
}
}
>
关联对象
</
h3
>
{
action
===
'add'
&&
<
Popover
content=
'保存当前模型后方可选择历史存储形式'
>
<
QuestionCircleOutlined
className=
'pointer'
/>
</
Popover
>
}
{
isCollapse
?
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
展开
<
DownOutlined
/></
Button
>
:
<
Button
type=
'primary'
size=
'small'
onClick=
{
()
=>
{
setCollapse
(
!
isCollapse
)
}
}
>
收起
<
UpOutlined
/></
Button
>
}
</
Space
>
{
!
isCollapse
&&
<
Descriptions
column=
{
3
}
>
!
isCollapse
&&
<
Descriptions
c
lassName=
'mt-3'
c
olumn=
{
3
}
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
100
}
}
>
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
2a8d620e
...
...
@@ -19,6 +19,7 @@ import { AttentionSvg, UnAttentionSvg } from './ModelSvg';
import
{
EditModelContext
}
from
'./ContextManage'
;
import
{
ValidateTip
}
from
'./ImportActionHeader'
;
import
'./ImportActionHeader.less'
;
import
'./ImportActionTable.less'
;
import
'react-contexify/dist/ReactContexify.css'
;
...
...
@@ -1100,7 +1101,7 @@ export const ImportActionTable = (props) => {
</div>
</Space>
</div>
<div
className='mb-3'
id="containerId" ref={tableRef}>
<div id="containerId" ref={tableRef}>
<ResizeObserver
onResize={({ width }) => {
setTableWidth(width);
...
...
src/view/Manage/ModelCompare/update-task.jsx
View file @
2a8d620e
...
...
@@ -408,7 +408,7 @@ const Strategy = React.forwardRef(function ({ type, task }, ref) {
dataIndex
:
'index'
,
width
:
60
,
editable
:
false
,
render
:(
_
,
__
,
index
)
=>
((
args
.
page
-
1
)
*
args
.
size
+
index
+
1
)
//
render:(_, __, index)=> ((args.page-1)*args.size+index+1)
},
{
title
:
'模型属性'
,
...
...
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