Commit 15a5e3ea by zhaochengxiang

数据表类型

parent 9fab4d09
...@@ -81,26 +81,30 @@ const ConstraintSelect = ({ value = {}, constraints = [], onChange, ...restProps ...@@ -81,26 +81,30 @@ const ConstraintSelect = ({ value = {}, constraints = [], onChange, ...restProps
) )
} }
// const TemplateSelect = ({ value = {}, templates = [], onChange, ...restProps }) => { const TemplateSelect = ({ value = {}, templates = [], onChange, ...restProps }) => {
// return ( return (
// <Select <Select
// onChange={onChange} onChange={onChange}
// value={value?.name || ''} value={value?.name || ''}
// placeholder='请选择生成表类型' placeholder='请选择数据表类型'
// allowClear allowClear
// {...restProps} {...restProps}
// > >
// { {
// (templates||[]) && templates.map((template, index) => { (templates||[]) && templates.map((template, index) => {
// return ( return (
// <Option key={index} value={template.name||''} >{template.cnName||''}</Option> <Option key={index} value={template.name||''} >
// ); <Tooltip title={template.remark}>
// }) {template.cnName}
// } </Tooltip>
// </Select> </Option>
// ) );
// } })
}
</Select>
)
}
const AttributesSelect = ({ value = [], modelerData, onChange, mode = 'multiple', ...restProps }) => { const AttributesSelect = ({ value = [], modelerData, onChange, mode = 'multiple', ...restProps }) => {
...@@ -611,33 +615,16 @@ const ImportActionHeader = (props) => { ...@@ -611,33 +615,16 @@ const ImportActionHeader = (props) => {
<Col xs={24} sm={24} lg={12} xl={8}> <Col xs={24} sm={24} lg={12} xl={8}>
<Form.Item <Form.Item
label="数据表类型" 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" name="easyDataModelerModelingTemplate"
rules={[{ required: false, message: '请选择生成表类型!' }]} rules={[{ required: false, message: '请选择数据表类型!' }]}
> >
<TemplateSelect <TemplateSelect
templates={templates} templates={templates}
onChange={onTemplateChange} onChange={onTemplateChange}
/> />
</Form.Item> </Form.Item>
</Col> */} </Col>
<Row gutter={10}>
<Col xs={24} sm={24} lg={12} xl={8}> <Col xs={24} sm={24} lg={12} xl={8}>
<Form.Item <Form.Item
label="技术主键" label="技术主键"
...@@ -651,7 +638,7 @@ const ImportActionHeader = (props) => { ...@@ -651,7 +638,7 @@ const ImportActionHeader = (props) => {
label="数据平台" label="数据平台"
name="dataResidence" name="dataResidence"
> >
<Input disabled={true} placeholder='描述数据表落地的数据平台及数据库' /> <Input placeholder='描述数据表落地的数据平台及数据库' />
</Form.Item> </Form.Item>
</Col> </Col>
<Col xs={24} sm={24} lg={12} xl={8}> <Col xs={24} sm={24} lg={12} xl={8}>
...@@ -765,14 +752,13 @@ const ImportActionHeader = (props) => { ...@@ -765,14 +752,13 @@ const ImportActionHeader = (props) => {
</Descriptions.Item> </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>} >{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.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> </Descriptions>
{ {
!onlyShowRequireChange && <Divider style={{ margin: '0 0 15px' }} /> !onlyShowRequireChange && <Divider style={{ margin: '0 0 15px' }} />
} }
{ {
!onlyShowRequireChange && <Descriptions column={3}> !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(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.dataResidence||'', terms)}</Descriptions.Item>
<Descriptions.Item label={<div style={{ textAlign: 'right', width: 85 }}>数据情况</div>} >{highlightSearchContentByTerms(modelerData.dataCircumstances||'', terms)}</Descriptions.Item> <Descriptions.Item label={<div style={{ textAlign: 'right', width: 85 }}>数据情况</div>} >{highlightSearchContentByTerms(modelerData.dataCircumstances||'', terms)}</Descriptions.Item>
......
...@@ -23,7 +23,7 @@ const ModelConfig = () => { ...@@ -23,7 +23,7 @@ const ModelConfig = () => {
<TabPane tab='Word模版配置' key='1'> <TabPane tab='Word模版配置' key='1'>
<WordTemplate /> <WordTemplate />
</TabPane> </TabPane>
<TabPane tab='生成表类型配置' key='2'> <TabPane tab='数据表类型配置' key='2'>
<TemplateCURD /> <TemplateCURD />
</TabPane> </TabPane>
<TabPane tab='规范配置' key='3'> <TabPane tab='规范配置' key='3'>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment