Commit ebc4370c by zhaochengxiang

字段增加外健

parent fe7350fa
...@@ -287,6 +287,7 @@ const ImportActionTable = (props) => { ...@@ -287,6 +287,7 @@ const ImportActionTable = (props) => {
remark: '', remark: '',
defaultValue: '', defaultValue: '',
definition: '', definition: '',
foreignKey: null,
valueRange: '', valueRange: '',
...record, ...record,
}); });
...@@ -609,6 +610,25 @@ const ImportActionTable = (props) => { ...@@ -609,6 +610,25 @@ const ImportActionTable = (props) => {
} }
}, },
{ {
title: '外键',
width: 80,
dataIndex: 'foreignKey',
editable: (type==='model'?true:false),
render: (foreignKey, record, index) => {
if (!foreignKey) {
return (
<CloseOutlined />
);
} else if (foreignKey === true) {
return (
<CheckOutlined />
)
}
return '';
}
},
{
title: '重点关注', title: '重点关注',
width: 80, width: 80,
dataIndex: 'needAttention', dataIndex: 'needAttention',
...@@ -854,7 +874,7 @@ const ImportActionTable = (props) => { ...@@ -854,7 +874,7 @@ const ImportActionTable = (props) => {
onCell: (record) => ({ onCell: (record) => ({
record, record,
dataIndex: col.dataIndex, dataIndex: col.dataIndex,
inputType: (col.dataIndex==='nullable' || col.dataIndex==='partOfDistributionKey' || col.dataIndex==='partOfPrimaryKey' || col.dataIndex==='needAttention') ? 'check' : 'text', inputType: (col.dataIndex==='nullable' || col.dataIndex==='partOfDistributionKey' || col.dataIndex==='partOfPrimaryKey' || col.dataIndex==='needAttention' || col.dataIndex==='foreignKey') ? 'check' : 'text',
colTitle: col.title, colTitle: col.title,
editing: isEditing(record), editing: isEditing(record),
datatypes: supportedDatatypes, datatypes: supportedDatatypes,
......
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