mirror of
https://github.com/jumpserver/lina.git
synced 2025-09-16 07:09:14 +00:00
perf: 添加可中断API字段
This commit is contained in:
@@ -106,6 +106,9 @@ export default {
|
|||||||
type: 'danger',
|
type: 'danger',
|
||||||
label: this.$t('sessions.terminate')
|
label: this.$t('sessions.terminate')
|
||||||
},
|
},
|
||||||
|
can: () => {
|
||||||
|
return vm.sessionData.can_terminate
|
||||||
|
},
|
||||||
callbacks: {
|
callbacks: {
|
||||||
click: function() {
|
click: function() {
|
||||||
// 终断 session reload
|
// 终断 session reload
|
||||||
|
@@ -19,6 +19,9 @@ export default {
|
|||||||
name: 'terminate',
|
name: 'terminate',
|
||||||
title: this.$t('sessions.terminate'),
|
title: this.$t('sessions.terminate'),
|
||||||
type: 'danger',
|
type: 'danger',
|
||||||
|
can: (row, cellValue) => {
|
||||||
|
return row.can_terminate
|
||||||
|
},
|
||||||
callback: function({ reload, cellValue, tableData }) {
|
callback: function({ reload, cellValue, tableData }) {
|
||||||
// 终断 session reload
|
// 终断 session reload
|
||||||
const data = [cellValue]
|
const data = [cellValue]
|
||||||
|
Reference in New Issue
Block a user