From 425e47d61381b05a7dace720531ba05d21042301 Mon Sep 17 00:00:00 2001 From: ibuler Date: Thu, 8 Jul 2021 18:20:52 +0800 Subject: [PATCH 1/4] =?UTF-8?q?perf:=20=E4=BF=AE=E5=A4=8D=E8=B5=84?= =?UTF-8?q?=E4=BA=A7=E8=AF=A6=E6=83=85=E4=B8=AD=E8=B4=A6=E5=8F=B7=E5=88=97?= =?UTF-8?q?=E8=A1=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Asset/AssetDetail/{AssetUserList.vue => Account.vue} | 4 ++-- src/views/assets/Asset/AssetDetail/index.vue | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) rename src/views/assets/Asset/AssetDetail/{AssetUserList.vue => Account.vue} (87%) diff --git a/src/views/assets/Asset/AssetDetail/AssetUserList.vue b/src/views/assets/Asset/AssetDetail/Account.vue similarity index 87% rename from src/views/assets/Asset/AssetDetail/AssetUserList.vue rename to src/views/assets/Asset/AssetDetail/Account.vue index de1f23188..ce0606070 100644 --- a/src/views/assets/Asset/AssetDetail/AssetUserList.vue +++ b/src/views/assets/Asset/AssetDetail/Account.vue @@ -29,7 +29,7 @@ export default { }, data() { return { - assetUserUrl: `/api/v1/assets/accounts/?asset_id=${this.object.id}&latest=1`, + assetUserUrl: `/api/v1/assets/accounts/?asset=${this.object.id}`, quickActions: [ { title: this.$t('assets.TestAssetsConnective'), @@ -40,7 +40,7 @@ export default { callbacks: { click: function() { this.$axios.post( - `/api/v1/assets/accounts/tasks/?asset_id=${this.object.id}&latest=1`, + `/api/v1/assets/accounts/tasks/?asset=${this.object.id}`, { action: 'test' } ).then(res => { window.open(`/#/ops/celery/task/${res.task}/log/`, '', 'width=900,height=600') diff --git a/src/views/assets/Asset/AssetDetail/index.vue b/src/views/assets/Asset/AssetDetail/index.vue index 7f55e0c3f..ba3824a56 100644 --- a/src/views/assets/Asset/AssetDetail/index.vue +++ b/src/views/assets/Asset/AssetDetail/index.vue @@ -9,14 +9,14 @@