Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
S
szse
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zhaochengxiang
szse
Commits
827ee000
Commit
827ee000
authored
Oct 22, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型推荐来源跳转
parent
2f7e639c
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
10 additions
and
12 deletions
+10
-12
EditModel.jsx
src/view/Manage/Model/Component/EditModel.jsx
+7
-7
ImportActionIndex.jsx
src/view/Manage/Model/Component/ImportActionIndex.jsx
+1
-1
ImportActionPartition.jsx
src/view/Manage/Model/Component/ImportActionPartition.jsx
+1
-1
ImportActionTable.jsx
src/view/Manage/Model/Component/ImportActionTable.jsx
+1
-3
No files found.
src/view/Manage/Model/Component/EditModel.jsx
View file @
827ee000
...
...
@@ -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'
)
{
...
...
src/view/Manage/Model/Component/ImportActionIndex.jsx
View file @
827ee000
...
...
@@ -494,7 +494,7 @@ const ImportActionIndex = (props) => {
{
title
:
'操作'
,
dataIndex
:
'action'
,
width
:
1
0
0
,
width
:
1
8
0
,
render
:
(
_
,
record
)
=>
{
if
(
!
editable
)
return
null
;
...
...
src/view/Manage/Model/Component/ImportActionPartition.jsx
View file @
827ee000
...
...
@@ -338,7 +338,7 @@ const ImportActionPartition = (props) => {
{
title
:
'操作'
,
dataIndex
:
'action'
,
width
:
1
0
0
,
width
:
1
8
0
,
render
:
(
_
,
record
)
=>
{
if
(
!
editable
)
return
null
;
...
...
src/view/Manage/Model/Component/ImportActionTable.jsx
View file @
827ee000
...
...
@@ -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
>
)
})
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment