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