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
26f36d2f
Commit
26f36d2f
authored
Aug 23, 2021
by
zhaochengxiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
模型详情跳转优化
parent
573cedac
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
13 deletions
+19
-13
ModelTable.jsx
src/view/Manage/Model/Component/ModelTable.jsx
+19
-13
No files found.
src/view/Manage/Model/Component/ModelTable.jsx
View file @
26f36d2f
...
@@ -48,6 +48,13 @@ const ModelTable = (props) => {
...
@@ -48,6 +48,13 @@ const ModelTable = (props) => {
dataIndex
:
'name'
,
dataIndex
:
'name'
,
width
:
180
,
width
:
180
,
ellipsis
:
true
,
ellipsis
:
true
,
render
:
(
text
,
record
,
_
)
=>
{
return
(
<
Button
type=
"link"
onClick=
{
()
=>
{
detailItem
(
record
);}
}
>
{
text
||
''
}
</
Button
>
);
}
},
},
{
{
title
:
'中文名称'
,
title
:
'中文名称'
,
...
@@ -77,24 +84,23 @@ const ModelTable = (props) => {
...
@@ -77,24 +84,23 @@ const ModelTable = (props) => {
return
(
return
(
<
Space
size=
'small'
>
<
Space
size=
'small'
>
{
{
record
.
editable
&&
<
Tooltip
placement=
'bottom'
title=
{
'修改'
}
>
record
.
editable
&&
(
<
Button
icon=
{
<
EditOutlined
/>
}
size=
'small'
onClick=
{
()
=>
{
editItem
(
record
);
}
}
/>
<
React
.
Fragment
>
</
Tooltip
>
<
Tooltip
placement=
'bottom'
title=
{
'修改'
}
>
}
<
Button
icon=
{
<
EditOutlined
/>
}
size=
'small'
onClick=
{
()
=>
{
editItem
(
record
);
}
}
/>
<
Tooltip
placement=
'bottom'
title=
{
'详情'
}
>
</
Tooltip
>
<
Button
icon=
{
<
ReconciliationOutlined
/>
}
size=
'small'
onClick=
{
()
=>
{
detailItem
(
record
);
}
}
/>
<
Tooltip
placement=
'bottom'
title=
{
'删除'
}
>
</
Tooltip
>
<
Button
icon=
{
<
DeleteOutlined
/>
}
size=
'small'
onClick=
{
()
=>
{
deleteItem
(
record
);
}
}
/>
{
</
Tooltip
>
record
.
editable
&&
<
Tooltip
placement=
'bottom'
title=
{
'删除'
}
>
</
React
.
Fragment
>
<
Button
icon=
{
<
DeleteOutlined
/>
}
size=
'small'
onClick=
{
()
=>
{
deleteItem
(
record
);
}
}
/>
)
</
Tooltip
>
}
}
{
{
(
record
?.
state
?.
supportedActions
||
[]).
length
>
0
&&
record
?.
state
?.
supportedActions
.
map
((
item
,
index
)
=>
{
(
record
?.
state
?.
supportedActions
||
[]).
length
>
0
&&
record
?.
state
?.
supportedActions
.
map
((
item
,
index
)
=>
{
return
(
return
(
<
React
.
Fragment
>
<
React
.
Fragment
>
{
{
index
===
0
&&
<
Divider
type=
'vertical'
/>
record
.
editable
&&
index
===
0
&&
<
Divider
type=
'vertical'
/>
}
}
<
Button
key=
{
index
}
size=
'small'
onClick=
{
()
=>
{
stateAction
(
record
,
item
);
}
}
>
{
item
.
cnName
||
''
}
</
Button
>
<
Button
key=
{
index
}
size=
'small'
onClick=
{
()
=>
{
stateAction
(
record
,
item
);
}
}
>
{
item
.
cnName
||
''
}
</
Button
>
</
React
.
Fragment
>
</
React
.
Fragment
>
...
@@ -103,7 +109,7 @@ const ModelTable = (props) => {
...
@@ -103,7 +109,7 @@ const ModelTable = (props) => {
}
}
{
{
record
?.
deployable
&&
<
React
.
Fragment
>
record
?.
deployable
&&
<
React
.
Fragment
>
<
Divider
type=
'vertical'
/>
{
record
.
editable
&&
<
Divider
type=
'vertical'
/>
}
<
Button
size=
'small'
onClick=
{
()
=>
{
deployAction
(
record
);
}
}
>
建表
</
Button
>
<
Button
size=
'small'
onClick=
{
()
=>
{
deployAction
(
record
);
}
}
>
建表
</
Button
>
</
React
.
Fragment
>
</
React
.
Fragment
>
}
}
...
...
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