Commit 5f6ccbbf by zhaochengxiang

bug fix

parent 4ba91182
......@@ -41,7 +41,7 @@ const actions = [
]
const ModelNameColumn = (props) => {
const { text, record, detailItem } = props;
const { text, record, detailItem, keyword } = props;
const [ data, setData ] = useState(record);
const cols = [
......@@ -110,7 +110,7 @@ const ModelNameColumn = (props) => {
}}
>
<a onClick={()=>{detailItem(record);}}>
{text||''}
{highlightSearchContentByTerms(text||'', [keyword??''], true)}
</a>
</Tooltip>
);
......@@ -551,7 +551,7 @@ const ModelTable = (props) => {
if (item.key === 'name') {
col.render = (text, record, index) => {
return (<ModelNameColumn text={record.basicInfo?record.basicInfo[item.key]:''} record={record} detailItem={detailItem} />);
return (<ModelNameColumn text={record.basicInfo?record.basicInfo[item.key]:''} record={record} keyword={keyword} detailItem={detailItem} />);
};
}
......
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