Commit 827ee000 by zhaochengxiang

模型推荐来源跳转

parent 2f7e639c
......@@ -171,17 +171,23 @@ const EditModel = (props) => {
} else if (action === 'detail') {
actionsBtn = (
<Space>
<Button type='primary' onClick={onHistory} danger >版本历史</Button>
{
(editable==='true') && <Button type='primary' onClick={edit} danger >
编辑
</Button>
}
<Button type='primary' onClick={onHistory} danger >版本历史</Button>
</Space>
);
} else if (action === 'edit') {
actionsBtn = (
<Space>
<Button onClick={cancelEdit} >
取消
</Button>
<Button type='primary' onClick={onHistory} danger >
版本历史
</Button>
<Button
type='primary'
onClick={save}
......@@ -190,12 +196,6 @@ const EditModel = (props) => {
>
保存
</Button>
<Button type='primary' onClick={onHistory} danger >
版本历史
</Button>
<Button onClick={cancelEdit} >
取消
</Button>
</Space>
)
} else if (action === 'flow') {
......
......@@ -494,7 +494,7 @@ const ImportActionIndex = (props) => {
{
title: '操作',
dataIndex: 'action',
width: 100,
width: 180,
render: (_, record) => {
if (!editable) return null;
......
......@@ -338,7 +338,7 @@ const ImportActionPartition = (props) => {
{
title: '操作',
dataIndex: 'action',
width: 100,
width: 180,
render: (_, record) => {
if (!editable) return null;
......
......@@ -1008,15 +1008,13 @@ const ImportActionTable = (props) => {
{ index===0 && <span style={{ color: '#f50' }}> 推荐</span> }
{` 使用次数: ${suggest.recommendedStats?.referencesCount}`}
{' 来源: '}
{
((suggest.recommendedStats?.idInSource||'').split('=').length>=3) ? `${suggest.recommendedStats?.pathInSource||''}` : <a
<a
href='#'
onClick={() => {
sourceOnClick(suggest.recommendedStats?.idInSource||'');
}}
>
{`${suggest.recommendedStats?.pathInSource||''}`}</a>
}
</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