From ebc407f51d306a00edc23ef49fbc51efee9dd852 Mon Sep 17 00:00:00 2001 From: yaojn Date: Wed, 2 Apr 2025 16:49:13 +0800 Subject: [PATCH] =?UTF-8?q?-=20[=E4=BF=AE=E5=A4=8D]=E5=BA=94=E7=94=A8?= =?UTF-8?q?=E9=85=8D=E7=BD=AE=E4=B8=AD=E7=9A=84=E5=AE=9E=E4=BE=8B=E5=88=97?= =?UTF-8?q?=E8=A1=A8=EF=BC=8C=E9=80=89=E6=8B=A9=E7=8E=B0=E6=9C=89=E5=AE=9E?= =?UTF-8?q?=E4=BE=8Bip=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=95=B0=E6=8D=AE?= =?UTF-8?q?=E6=B2=A1=E6=9C=89=E8=BF=87=E6=BB=A4=20=20=20-=20[=E5=85=B3?= =?UTF-8?q?=E8=81=94]#[1390627172876288]=E5=BA=94=E7=94=A8=E9=85=8D?= =?UTF-8?q?=E7=BD=AE=E4=B8=AD=E7=9A=84=E5=AE=9E=E4=BE=8B=E5=88=97=E8=A1=A8?= =?UTF-8?q?=EF=BC=8C=E9=80=89=E6=8B=A9=E7=8E=B0=E6=9C=89=E5=AE=9E=E4=BE=8B?= =?UTF-8?q?ip=E4=B8=BA=E7=A9=BA=E7=9A=84=E6=95=B0=E6=8D=AE=E6=B2=A1?= =?UTF-8?q?=E6=9C=89=E8=BF=87=E6=BB=A4=20http://192.168.0.96:8090/demo/rdm?= =?UTF-8?q?.html#/bug-detail/939050947543040/939050947543057/1390627172876?= =?UTF-8?q?288?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../config/env/env-instance-edit.vue | 20 ++++++++++++++----- 1 file changed, 15 insertions(+), 5 deletions(-) diff --git a/src/views/pages/deploy/application-config/config/env/env-instance-edit.vue b/src/views/pages/deploy/application-config/config/env/env-instance-edit.vue index 5907a8a04..595bd6707 100644 --- a/src/views/pages/deploy/application-config/config/env/env-instance-edit.vue +++ b/src/views/pages/deploy/application-config/config/env/env-instance-edit.vue @@ -136,12 +136,22 @@ export default { dealDataByUrl(nodeList) { let dataList = []; if (nodeList) { - nodeList.forEach(item => { - dataList.push({ - value: item.id, - text: item.ip ? (item.port ? (item.name ? `${item.ip}:${item.port}[${item.name}]` : `${item.ip}:${item.port}`) : item.name ? `${item.ip}[${item.name}]` : item.ip) : '' + let filterNodeList = nodeList.filter(item => item.ip); + if (filterNodeList.length > 0) { + dataList = filterNodeList.map((item) => { + let baseText = item.ip; + if (item.port) { + baseText += `:${item.port}`; + } + if (item.name) { + baseText += `[${item.name}]`; + } + return { + value: item.id, + text: baseText + }; }); - }); + } } return dataList; }, -- Gitee