Commit afa1e503 by zhaochengxiang

模型增加匹配度

parent 6128a4e0
...@@ -152,7 +152,7 @@ const EditableCell = ({ ...@@ -152,7 +152,7 @@ const EditableCell = ({
message: `请输入${colTitle}!`, message: `请输入${colTitle}!`,
}, },
]} ]}
> >
<DatatypeInput datatypes={datatypes} /> <DatatypeInput datatypes={datatypes} />
</Form.Item> </Form.Item>
) )
...@@ -388,6 +388,16 @@ const ImportActionTable = (props) => { ...@@ -388,6 +388,16 @@ const ImportActionTable = (props) => {
setEnglishSuggests(data||[]); setEnglishSuggests(data||[]);
} }
}) })
}
if (allValues.partOfPrimaryKey) {
form.setFieldsValue({
nullable: false
});
} else {
form.setFieldsValue({
partOfDistributionKey: false
})
} }
}; };
...@@ -783,7 +793,9 @@ const ImportActionTable = (props) => { ...@@ -783,7 +793,9 @@ const ImportActionTable = (props) => {
suggests && suggests.map((suggest, index) => { suggests && suggests.map((suggest, index) => {
return ( return (
<Radio key={index} value={index} className='mt-3' style={{ display: 'block' }}> <Radio key={index} value={index} className='mt-3' style={{ display: 'block' }}>
{`中文名称: ${suggest.cnName||''} 英文名称: ${suggest.name||''} 描述: ${suggest.remark||''}`} {`中文名称: ${suggest.cnName||''} 英文名称: ${suggest.name||''} 描述: ${suggest.remark||''} 匹配度: `}
<span style={{ color: '#f50' }}>{`${suggest.score*100}%`}</span>
{ index===0 && <span style={{ color: '#f50' }}> 推荐</span> }
</Radio> </Radio>
) )
}) })
......
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