From 486f7e2675810a5730b73fd2a404e82f96b92d3c Mon Sep 17 00:00:00 2001 From: Eric Date: Wed, 3 Jun 2020 19:00:31 +0800 Subject: [PATCH] offline session actions button --- src/views/sessions/SessionList/OfflineList.vue | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/views/sessions/SessionList/OfflineList.vue b/src/views/sessions/SessionList/OfflineList.vue index 42ae90c74..4dce79633 100644 --- a/src/views/sessions/SessionList/OfflineList.vue +++ b/src/views/sessions/SessionList/OfflineList.vue @@ -17,6 +17,9 @@ export default { name: 'replay', title: this.$t('sessions.replay'), type: 'warning', + can: (row, cellValue) => { + return row.has_replay + }, callback: function({ cellValue, tableData }) { // 跳转到luna页面 const replayUrl = '/luna/replay/' + cellValue @@ -27,6 +30,9 @@ export default { name: 'download', title: this.$t('sessions.download'), type: 'primary', + can: (row, cellValue) => { + return row.has_replay + }, callback: function({ cellValue, tableData }) { // 跳转下载页面 const downloadUrl = '/terminal/session/00000000-0000-0000-0000-000000000000/replay/download/'