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
15a5e3ea
Commit
15a5e3ea
authored
Apr 05, 2023
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
数据表类型
parent
9fab4d09
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
30 additions
and
44 deletions
+30
-44
ImportActionHeader.jsx
src/view/Manage/Model/Component/ImportActionHeader.jsx
+29
-43
index.jsx
src/view/Manage/ModelConfig/index.jsx
+1
-1
No files found.
src/view/Manage/Model/Component/ImportActionHeader.jsx
View file @
15a5e3ea
...
...
@@ -81,26 +81,30 @@ const ConstraintSelect = ({ value = {}, constraints = [], onChange, ...restProps
)
}
// const TemplateSelect = ({ value = {}, templates = [], onChange, ...restProps }) => {
// return (
// <Select
// onChange={onChange}
// value={value?.name || ''}
// placeholder='请选择生成表类型'
// allowClear
// {...restProps}
// >
// {
// (templates||[]) && templates.map((template, index) => {
// return (
// <Option key={index} value={template.name||''} >{template.cnName||''}</Option>
// );
// })
// }
// </Select>
// )
// }
const
TemplateSelect
=
({
value
=
{},
templates
=
[],
onChange
,
...
restProps
})
=>
{
return
(
<
Select
onChange=
{
onChange
}
value=
{
value
?.
name
||
''
}
placeholder=
'请选择数据表类型'
allowClear
{
...
restProps
}
>
{
(
templates
||
[])
&&
templates
.
map
((
template
,
index
)
=>
{
return
(
<
Option
key=
{
index
}
value=
{
template
.
name
||
''
}
>
<
Tooltip
title=
{
template
.
remark
}
>
{
template
.
cnName
}
</
Tooltip
>
</
Option
>
);
})
}
</
Select
>
)
}
const
AttributesSelect
=
({
value
=
[],
modelerData
,
onChange
,
mode
=
'multiple'
,
...
restProps
})
=>
{
...
...
@@ -611,33 +615,16 @@ const ImportActionHeader = (props) => {
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"数据表类型"
name=
"tableType"
rules=
{
[{
required
:
true
,
message
:
'请选择数据表类型!'
}]
}
>
<
Select
allowClear
placeholder=
'请选择数据表类型'
>
{
tableTypeOptions
.
map
((
item
,
index
)
=>
<
Option
key=
{
index
}
value=
{
item
.
title
}
>
<
Tooltip
title=
{
item
.
remark
}
>
{
item
.
title
}
</
Tooltip
>
</
Option
>)
}
</
Select
>
</
Form
.
Item
>
</
Col
>
<
Row
gutter=
{
10
}
>
{
/* <Col xs={24} sm={24} lg={12} xl={8}>
<Form.Item
label="生成表类型"
name=
"easyDataModelerModelingTemplate"
rules={[{ required: false, message: '请选择
生成
表类型!' }]}
rules=
{
[{
required
:
false
,
message
:
'请选择
数据
表类型!'
}]
}
>
<
TemplateSelect
templates=
{
templates
}
onChange=
{
onTemplateChange
}
/>
</
Form
.
Item
>
</Col> */
}
</
Col
>
<
Row
gutter=
{
10
}
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
<
Form
.
Item
label=
"技术主键"
...
...
@@ -651,7 +638,7 @@ const ImportActionHeader = (props) => {
label=
"数据平台"
name=
"dataResidence"
>
<
Input
disabled=
{
true
}
placeholder=
'描述数据表落地的数据平台及数据库'
/>
<
Input
placeholder=
'描述数据表落地的数据平台及数据库'
/>
</
Form
.
Item
>
</
Col
>
<
Col
xs=
{
24
}
sm=
{
24
}
lg=
{
12
}
xl=
{
8
}
>
...
...
@@ -765,14 +752,13 @@ const ImportActionHeader = (props) => {
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
规范
</
div
>
}
>
{
modelerData
.
easyDataModelerModelingConstraint
?(
modelerData
.
easyDataModelerModelingConstraint
.
cnName
||
''
):
''
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据内容
</
div
>
}
>
{
highlightSearchContentByTerms
(
modelerData
.
remark
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据表类型
</
div
>
}
>
{
highlightSearchContentByTerms
(
modelerData
.
tableType
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据表类型
</
div
>
}
>
{
modelerData
.
easyDataModelerModelingTemplate
?(
modelerData
.
easyDataModelerModelingTemplate
.
cnName
||
''
):
''
}
</
Descriptions
.
Item
>
</
Descriptions
>
{
!
onlyShowRequireChange
&&
<
Divider
style=
{
{
margin
:
'0 0 15px'
}
}
/>
}
{
!
onlyShowRequireChange
&&
<
Descriptions
column=
{
3
}
>
{
/* <Descriptions.Item label={<div style={{ textAlign: 'right', width: 85 }}>生成表类型</div>} >{modelerData.easyDataModelerModelingTemplate?(modelerData.easyDataModelerModelingTemplate.cnName||''):''}</Descriptions.Item> */
}
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
技术主键
</
div
>
}
>
{
highlightSearchContentByTerms
(
primaryDescription
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据平台
</
div
>
}
>
{
highlightSearchContentByTerms
(
modelerData
.
dataResidence
||
''
,
terms
)
}
</
Descriptions
.
Item
>
<
Descriptions
.
Item
label=
{
<
div
style=
{
{
textAlign
:
'right'
,
width
:
85
}
}
>
数据情况
</
div
>
}
>
{
highlightSearchContentByTerms
(
modelerData
.
dataCircumstances
||
''
,
terms
)
}
</
Descriptions
.
Item
>
...
...
src/view/Manage/ModelConfig/index.jsx
View file @
15a5e3ea
...
...
@@ -23,7 +23,7 @@ const ModelConfig = () => {
<
TabPane
tab=
'Word模版配置'
key=
'1'
>
<
WordTemplate
/>
</
TabPane
>
<
TabPane
tab=
'
生成
表类型配置'
key=
'2'
>
<
TabPane
tab=
'
数据
表类型配置'
key=
'2'
>
<
TemplateCURD
/>
</
TabPane
>
<
TabPane
tab=
'规范配置'
key=
'3'
>
...
...
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