Commit 4a7211a8 by zhaochengxiang

模版可不选

parent 81ed822d
...@@ -787,6 +787,14 @@ const ImportActionTable = (props) => { ...@@ -787,6 +787,14 @@ const ImportActionTable = (props) => {
row: (editable&&editingKey===''&&keyword==='')?DragableBodyRow:null, row: (editable&&editingKey===''&&keyword==='')?DragableBodyRow:null,
}, },
}} }}
rowClassName={(record, index) => {
console.log('record', record);
if (record.modelingTemplateTag && record.modelingTemplateTag!=={}) {
return 'editable-row template-highlight-row';
}
return 'editable-row';
}}
onRow={(record, index) => { onRow={(record, index) => {
if (!editable || editingKey!=='' || keyword.length>0) return null; if (!editable || editingKey!=='' || keyword.length>0) return null;
...@@ -799,7 +807,6 @@ const ImportActionTable = (props) => { ...@@ -799,7 +807,6 @@ const ImportActionTable = (props) => {
columns={mergedColumns()} columns={mergedColumns()}
size='small' size='small'
rowKey='iid' rowKey='iid'
rowClassName="editable-row"
pagination={false} pagination={false}
search={false} search={false}
options={{ options={{
......
...@@ -10,4 +10,8 @@ ...@@ -10,4 +10,8 @@
padding: 0 !important; padding: 0 !important;
} }
} }
.template-highlight-row {
background-color: #e7f7ff;
}
} }
\ 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