Commit ccf961a3 by zhaochengxiang

模型主键样式调整

parent ce74dbf3
...@@ -318,7 +318,7 @@ const ImportAction = (props) => { ...@@ -318,7 +318,7 @@ const ImportAction = (props) => {
} }
if (ownPrimaryKey) { if (ownPrimaryKey) {
attribute.nullable = false; attribute.notNull = true;
} }
}) })
} }
......
...@@ -1254,13 +1254,10 @@ const ImportActionTable = (props) => { ...@@ -1254,13 +1254,10 @@ const ImportActionTable = (props) => {
if (type==='model' && !isEditing(record)) { if (type==='model' && !isEditing(record)) {
if (record?.needAttention) { if (record?.needAttention) {
return 'editable-row attention-row'; return 'editable-row attention-row';
} else { } else if (record?.partOfPrimaryKeyLogically) {
const index = (modelerData?.easyDataModelerPrimaryKey||[]).findIndex(item => item.iid===record?.iid);
if (index !== -1) {
return 'editable-row primary-row'; return 'editable-row primary-row';
} }
} }
}
return 'editable-row'; return 'editable-row';
}} }}
......
...@@ -25,7 +25,7 @@ ...@@ -25,7 +25,7 @@
.primary-row { .primary-row {
.yy-table-cell { .yy-table-cell {
background-color: #f2fcfe !important; background-color: #d3ebff !important;
} }
} }
} }
\ No newline at end of file
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