From 1d741371442d8cfe378c15e328f24dde26813757 Mon Sep 17 00:00:00 2001 From: OrangeM21 Date: Tue, 23 Jun 2020 16:31:21 +0800 Subject: [PATCH] =?UTF-8?q?[fix]=E5=A2=9E=E5=8A=A0=E7=B3=BB=E7=BB=9F?= =?UTF-8?q?=E7=94=A8=E6=88=B7=E4=B8=BA=E8=87=AA=E5=8A=A8=E6=8E=A8=E9=80=81?= =?UTF-8?q?=E6=97=B6=E7=9A=84=E6=89=8B=E5=8A=A8=E6=8E=A8=E9=80=81=E5=85=A8?= =?UTF-8?q?=E5=B1=80=E6=8C=89=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../SystemUser/SystemUserDetail/AssetList.vue | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue b/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue index 62a34f0d7..30235977d 100644 --- a/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue +++ b/src/views/assets/SystemUser/SystemUserDetail/AssetList.vue @@ -105,6 +105,23 @@ export default { ) }.bind(this) } + }, + { + title: this.$t('assets.PushSystemUserNow'), + attrs: { + type: 'primary', + disabled: !vm.object.auto_push, + label: this.$t('common.Push') + }, + callbacks: { + click: function({ row }) { + const theUrl = `/api/v1/assets/system-users/${vm.object.id}/tasks/` + const data = { action: 'push' } + this.$axios.post(theUrl, data).then(resp => { + window.open(`/#/ops/celery/task/${resp.task}/log/`, '', 'width=900,height=600') + }) + }.bind(this) + } } ], nodeRelationConfig: {