Commit 827ee000 by zhaochengxiang

模型推荐来源跳转

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