mirror of
http://112.124.100.131/ebiz-ai/ebiz-ai-knowledge-manage.git
synced 2025-12-09 02:46:50 +08:00
refactor(knowledge): 调整知识详情页面文档列表的按钮布局和样式
- 将删除按钮移到编辑按钮之前 -为删除按钮添加"删除"文字 - 移除查看详情按钮的冗余代码
This commit is contained in:
@@ -613,15 +613,31 @@ export default {
|
||||
h('el-button', {
|
||||
class: 'floatSpan',
|
||||
props: {
|
||||
type: 'danger',
|
||||
type: 'primary',
|
||||
size: 'mini',
|
||||
icon: 'el-icon-delete',
|
||||
title: '删除'
|
||||
icon: 'el-icon-tickets',
|
||||
title: '查看详情'
|
||||
},
|
||||
on: {
|
||||
click: () => this.deleteKnowledge(params.row)
|
||||
click: () => this.viewDocumentDetail(params.row)
|
||||
}
|
||||
}),
|
||||
h(
|
||||
'el-button',
|
||||
{
|
||||
class: 'floatSpan',
|
||||
props: {
|
||||
type: 'danger',
|
||||
size: 'mini',
|
||||
icon: 'el-icon-delete',
|
||||
title: '删除'
|
||||
},
|
||||
on: {
|
||||
click: () => this.deleteKnowledge(params.row)
|
||||
}
|
||||
},
|
||||
'删除'
|
||||
),
|
||||
h(
|
||||
'el-button',
|
||||
{
|
||||
@@ -637,22 +653,7 @@ export default {
|
||||
},
|
||||
'编辑'
|
||||
),
|
||||
h(
|
||||
'el-button',
|
||||
{
|
||||
class: 'floatSpan',
|
||||
props: {
|
||||
type: 'primary',
|
||||
size: 'mini',
|
||||
icon: 'el-icon-tickets',
|
||||
title: '查看详情'
|
||||
},
|
||||
on: {
|
||||
click: () => this.viewDocumentDetail(params.row)
|
||||
}
|
||||
},
|
||||
'查看详情'
|
||||
),
|
||||
|
||||
h(
|
||||
'el-button',
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user