From 54aa252c209a115406f0b95f78320cf6972ebb88 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 17 Dec 2020 15:09:26 +0800 Subject: [PATCH] =?UTF-8?q?fix(some):=20=E4=BF=AE=E5=A4=8D=E6=B2=A1?= =?UTF-8?q?=E6=9C=89clone=E7=9A=84=E5=88=97=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DatabaseApp/DatabaseAppList.vue | 1 + .../applications/RemoteApp/RemoteAppList.vue | 1 + .../CommandFilter/CommandFilterList.vue | 55 ++++--------------- src/views/assets/Label/LabelList.vue | 39 +++---------- src/views/assets/Platform/PlatformList.vue | 47 ++-------------- .../ApplicationPermissionList.vue | 5 ++ 6 files changed, 31 insertions(+), 117 deletions(-) diff --git a/src/views/applications/DatabaseApp/DatabaseAppList.vue b/src/views/applications/DatabaseApp/DatabaseAppList.vue index 2aec06d24..b71d90871 100644 --- a/src/views/applications/DatabaseApp/DatabaseAppList.vue +++ b/src/views/applications/DatabaseApp/DatabaseAppList.vue @@ -37,6 +37,7 @@ export default { actions: { prop: '', formatterArgs: { + hasClone: true, performDelete: function({ row, col, cellValue, reload }) { this.$axios.delete( `/api/v1/applications/applications/${row.id}/` diff --git a/src/views/applications/RemoteApp/RemoteAppList.vue b/src/views/applications/RemoteApp/RemoteAppList.vue index 24df27a58..f200de486 100644 --- a/src/views/applications/RemoteApp/RemoteAppList.vue +++ b/src/views/applications/RemoteApp/RemoteAppList.vue @@ -34,6 +34,7 @@ export default { }, actions: { formatterArgs: { + hasClone: true, onUpdate: ({ row }) => { vm.$router.push({ name: 'RemoteAppUpdate', params: { id: row.id }, query: { type: row.type }}) }, diff --git a/src/views/assets/CommandFilter/CommandFilterList.vue b/src/views/assets/CommandFilter/CommandFilterList.vue index 4bfa4ad9f..42b90a5ac 100644 --- a/src/views/assets/CommandFilter/CommandFilterList.vue +++ b/src/views/assets/CommandFilter/CommandFilterList.vue @@ -4,7 +4,7 @@