From 847a5d7300dfc2e407ad82c018d43cc7533d47d1 Mon Sep 17 00:00:00 2001 From: hyunfa <1598047833@qq.com> Date: Mon, 18 Nov 2024 10:43:56 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20agent=E9=87=8D=E8=A3=85=E4=BC=98?= =?UTF-8?q?=E5=8C=96=20#=20Reviewed,=20transaction=20id:=2024032?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/views/agent/config/editTableConfig.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/frontend/src/views/agent/config/editTableConfig.ts b/frontend/src/views/agent/config/editTableConfig.ts index 6eb72a0b3..f6044ae16 100644 --- a/frontend/src/views/agent/config/editTableConfig.ts +++ b/frontend/src/views/agent/config/editTableConfig.ts @@ -50,9 +50,9 @@ export const config: ISetupHead[] = [ placeholder: window.i18n.t('请选择'), manualProp: true, handleValueChange(row) { - if (row.install_channel_id !== 'default' && row.bk_cloud_id === window.PROJECT_CONFIG.DEFAULT_CLOUD) { - row.ap_id = this.apList.find(item => item.id !== -1)?.id || ''; - } + // if (row.install_channel_id !== 'default' && row.bk_cloud_id === window.PROJECT_CONFIG.DEFAULT_CLOUD) { + // row.ap_id = this.apList.find(item => item.id !== -1)?.id || ''; + // } }, getOptions(row) { return row.bk_cloud_id || row.bk_cloud_id === 0 @@ -103,8 +103,8 @@ export const config: ISetupHead[] = [ disabled, }; }); - list.sort(p => (p.disabled ? 1 : -1)); - return list; + // list.sort(p => (p.disabled ? 1 : -1)); + return list.filter(item => !item.disabled || item.id === -1); } return this.apList.map(item => ({ ...item,