mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-25 22:36:23 +00:00
[Update] 修改会话列表自定义按钮
This commit is contained in:
@@ -354,7 +354,9 @@ const cn = {
|
||||
'quick_modify': '快速修改',
|
||||
'terminate_session': '终止会话',
|
||||
'confirm': '确认',
|
||||
'commands': '命令记录'
|
||||
'commands': '命令记录',
|
||||
'replay': '回放',
|
||||
'download': '下载'
|
||||
},
|
||||
setting: {
|
||||
'setting': '系统设置',
|
||||
|
@@ -23,7 +23,10 @@ export default {
|
||||
},
|
||||
url: '/api/v1/terminal/sessions/',
|
||||
columns: [
|
||||
{ type: 'index' },
|
||||
{
|
||||
label: this.$t('sessions.id'),
|
||||
type: 'index'
|
||||
},
|
||||
{
|
||||
prop: 'user',
|
||||
label: this.$t('sessions.user'),
|
||||
@@ -64,9 +67,26 @@ export default {
|
||||
],
|
||||
tableActions: {
|
||||
hasEdit: false,
|
||||
hadDelete: false
|
||||
hasDelete: false
|
||||
},
|
||||
extraButtons: [
|
||||
{
|
||||
type: 'warning',
|
||||
text: this.$t('sessions.replay'),
|
||||
// 必须使用箭头函数
|
||||
atClick: (row) => {
|
||||
this.$router.push({ name: '404' })
|
||||
}
|
||||
},
|
||||
{
|
||||
type: 'primary',
|
||||
text: this.$t('sessions.download'),
|
||||
atClick: (row) => {
|
||||
this.$router.push({ name: '404' })
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
headerActions: {
|
||||
hasCreate: false,
|
||||
hasDelete: false,
|
||||
|
@@ -63,8 +63,18 @@ export default {
|
||||
],
|
||||
tableActions: {
|
||||
hasEdit: false,
|
||||
hadDelete: false
|
||||
hasDelete: false
|
||||
},
|
||||
extraButtons: [
|
||||
{
|
||||
type: 'danger',
|
||||
text: this.$t('sessions.terminate'),
|
||||
// 必须使用箭头函数
|
||||
atClick: (row) => {
|
||||
this.$router.push({ name: '404' })
|
||||
}
|
||||
}
|
||||
]
|
||||
},
|
||||
headerActions: {
|
||||
hasCreate: false,
|
||||
|
Reference in New Issue
Block a user