From a73c47d9d1382f04e4735fd2c188cbabf6788955 Mon Sep 17 00:00:00 2001 From: zhangyu Date: Thu, 12 Nov 2020 11:00:40 +0800 Subject: [PATCH] =?UTF-8?q?fix=EF=BC=9A=E4=BF=AE=E6=94=B9=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0endpoint=E7=9A=84ip=E4=B8=BAHost?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/common/rightBox/addEndpointBox.vue | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue index a68afa79f..7e6dd656f 100644 --- a/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue +++ b/nezha-fronted/src/components/common/rightBox/addEndpointBox.vue @@ -42,7 +42,7 @@ type="button" class="nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-append" id="search-asset">
-
Host
+
Host
SN
@@ -320,7 +320,7 @@ editParamBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框 editLabelsBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框 moduleParamShow: false, //module默认参数param悬浮窗 - assetSearch: {host: '', sn: '', text: '', label: 'IP', dropdownShow: false}, //侧滑框中asset的搜索相关 + assetSearch: {host: '', sn: '', text: '', label: 'Host', dropdownShow: false}, //侧滑框中asset的搜索相关 assetPageObj: {pageNo: 1, pageSize: -1,states:1}, selectedAssets: [], //侧滑框中选中的asset projectList: [], @@ -568,7 +568,7 @@ }, //endpoint弹框中的asset子弹框搜索 searchAsset() { - if (this.assetSearch.label == 'IP') { + if (this.assetSearch.label == 'Host') { this.assetSearch.host = this.assetSearch.text; this.assetSearch.sn = ''; } else if (this.assetSearch.label == 'SN') { @@ -794,7 +794,7 @@ clearEndpoints() { this.getAssetList(); this.endpointList = []; - this.assetSearch= {host: '', sn: '', text: '', label: 'IP', dropdownShow: false} + this.assetSearch= {host: '', sn: '', text: '', label: 'Host', dropdownShow: false} }, setRowIndex({row, rowIndex}) { @@ -1041,7 +1041,7 @@ } .endpoint-asset-label-txt { display: inline-block; - width: 19px; + min-width: 19px; text-align: center; } .endpoint-asset-search-dropdown-item:first-of-type {