From d66c6b59a20f54eb8ce303e71f01ebc07261cff0 Mon Sep 17 00:00:00 2001 From: Bai Date: Mon, 5 Dec 2022 19:11:49 +0800 Subject: [PATCH] =?UTF-8?q?perf:=20=E4=BF=AE=E6=94=B9=20GatewayList=20?= =?UTF-8?q?=E9=A1=B5=E9=9D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Domain/DomainDetail/GatewayList.vue | 31 +------------------ 1 file changed, 1 insertion(+), 30 deletions(-) diff --git a/src/views/assets/Domain/DomainDetail/GatewayList.vue b/src/views/assets/Domain/DomainDetail/GatewayList.vue index 3170f6b17..f22cd95c0 100644 --- a/src/views/assets/Domain/DomainDetail/GatewayList.vue +++ b/src/views/assets/Domain/DomainDetail/GatewayList.vue @@ -55,8 +55,7 @@ export default { tableConfig: { url: `/api/v1/assets/gateways/?domain=${this.$route.params.id}`, columns: [ - 'name', 'address', 'platform', 'password_account', - 'ssh_key_account', 'connectivity', 'is_active', 'actions' + 'name', 'address', 'platform', 'connectivity', 'is_active', 'actions' ], columnsMeta: { name: { @@ -72,34 +71,6 @@ export default { address: { width: '140px' }, - password_account: { - label: this.$t('assets.passwordAccount'), - formatter: function(row) { - const [accountInfo] = row.effective_accounts.filter( - item => item.secret_type === 'password' - ) - if (!accountInfo) return - - const to = { - name: 'AssetAccountDetail', - params: { id: accountInfo.id } - } - return { accountInfo.username } - } - }, - ssh_key_account: { - label: this.$t('assets.sshkeyAccount'), - formatter: function(row) { - const [accountInfo] = row.effective_accounts.filter( - item => item.secret_type === 'ssh_key' - ) - if (!accountInfo) return - - const to = { - name: 'AssetAccountDetail', - params: { id: accountInfo.id } - } - return { accountInfo.username } - } - }, actions: { formatterArgs: { updateRoute: 'GatewayUpdate',