Commit afa1e503 by zhaochengxiang

模型增加匹配度

parent 6128a4e0
...@@ -389,6 +389,16 @@ const ImportActionTable = (props) => { ...@@ -389,6 +389,16 @@ const ImportActionTable = (props) => {
} }
}) })
} }
if (allValues.partOfPrimaryKey) {
form.setFieldsValue({
nullable: false
});
} else {
form.setFieldsValue({
partOfDistributionKey: false
})
}
}; };
const onSuggestChange = (e) => { const onSuggestChange = (e) => {
...@@ -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