fix:修改添加endpoint的ip为Host
This commit is contained in:
@@ -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"><i @click="searchAsset" class="nz-icon nz-icon-search"></i></button>
|
type="button" class="nz-btn nz-btn-size-small nz-btn-style-light nz-btn-style-square nz-input-group-append" id="search-asset"><i @click="searchAsset" class="nz-icon nz-icon-search"></i></button>
|
||||||
|
|
||||||
<div class="endpoint-asset-search-dropdown" v-if="assetSearch.dropdownShow">
|
<div class="endpoint-asset-search-dropdown" v-if="assetSearch.dropdownShow">
|
||||||
<div @click="dropdownSelect('IP')" class="endpoint-asset-search-dropdown-item" id="search-asset-ip">Host</div>
|
<div @click="dropdownSelect('Host')" class="endpoint-asset-search-dropdown-item" id="search-asset-ip">Host</div>
|
||||||
<div @click="dropdownSelect('SN')" class="endpoint-asset-search-dropdown-item" id="search-asset-sn">SN</div>
|
<div @click="dropdownSelect('SN')" class="endpoint-asset-search-dropdown-item" id="search-asset-sn">SN</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
@@ -320,7 +320,7 @@
|
|||||||
editParamBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框
|
editParamBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框
|
||||||
editLabelsBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框
|
editLabelsBox: {show: false, top: 0, left: 0, type: 0}, //param编辑弹框
|
||||||
moduleParamShow: false, //module默认参数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},
|
assetPageObj: {pageNo: 1, pageSize: -1,states:1},
|
||||||
selectedAssets: [], //侧滑框中选中的asset
|
selectedAssets: [], //侧滑框中选中的asset
|
||||||
projectList: [],
|
projectList: [],
|
||||||
@@ -568,7 +568,7 @@
|
|||||||
},
|
},
|
||||||
//endpoint弹框中的asset子弹框搜索
|
//endpoint弹框中的asset子弹框搜索
|
||||||
searchAsset() {
|
searchAsset() {
|
||||||
if (this.assetSearch.label == 'IP') {
|
if (this.assetSearch.label == 'Host') {
|
||||||
this.assetSearch.host = this.assetSearch.text;
|
this.assetSearch.host = this.assetSearch.text;
|
||||||
this.assetSearch.sn = '';
|
this.assetSearch.sn = '';
|
||||||
} else if (this.assetSearch.label == 'SN') {
|
} else if (this.assetSearch.label == 'SN') {
|
||||||
@@ -794,7 +794,7 @@
|
|||||||
clearEndpoints() {
|
clearEndpoints() {
|
||||||
this.getAssetList();
|
this.getAssetList();
|
||||||
this.endpointList = [];
|
this.endpointList = [];
|
||||||
this.assetSearch= {host: '', sn: '', text: '', label: 'IP', dropdownShow: false}
|
this.assetSearch= {host: '', sn: '', text: '', label: 'Host', dropdownShow: false}
|
||||||
},
|
},
|
||||||
|
|
||||||
setRowIndex({row, rowIndex}) {
|
setRowIndex({row, rowIndex}) {
|
||||||
@@ -1041,7 +1041,7 @@
|
|||||||
}
|
}
|
||||||
.endpoint-asset-label-txt {
|
.endpoint-asset-label-txt {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
width: 19px;
|
min-width: 19px;
|
||||||
text-align: center;
|
text-align: center;
|
||||||
}
|
}
|
||||||
.endpoint-asset-search-dropdown-item:first-of-type {
|
.endpoint-asset-search-dropdown-item:first-of-type {
|
||||||
|
|||||||
Reference in New Issue
Block a user