fix:修复现场问题
This commit is contained in:
@@ -56,6 +56,11 @@
|
|||||||
</template>
|
</template>
|
||||||
<template v-else> </template>
|
<template v-else> </template>
|
||||||
</div>
|
</div>
|
||||||
|
<template v-else-if="key == 'cabinet'">
|
||||||
|
<span v-if="value&&item.data.cabinetStart&&item.data.cabinetEnd">{{value + '['+item.data.cabinetStart+'-'+item.data.cabinetEnd+']'}}</span>
|
||||||
|
<span v-else-if="value&&!(item.data.cabinetStart||item.data.cabinetEnd)">{{value}}</span>
|
||||||
|
<span v-else></span>
|
||||||
|
</template>
|
||||||
<template v-else-if="key == 'pingRtt'">
|
<template v-else-if="key == 'pingRtt'">
|
||||||
<div class="active-icon" :class="{'green': item.data.pingStatus == 1, 'red': item.data.pingStatus == 1 != 1}"></div>
|
<div class="active-icon" :class="{'green': item.data.pingStatus == 1, 'red': item.data.pingStatus == 1 != 1}"></div>
|
||||||
<span>{{value ? value + 'ms' : ''}}</span>
|
<span>{{value ? value + 'ms' : ''}}</span>
|
||||||
|
|||||||
@@ -52,9 +52,7 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
<span v-else>{{item.name}}</span>
|
<span v-else>{{item.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-tooltip :content="''+item.total" placement="top" effect="light" :disabled="item.total<99">
|
<el-badge class="mark" :value="item.total" />
|
||||||
<el-badge class="mark" :value="item.total" :max="99"/>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@@ -67,9 +65,7 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
<span v-else>{{item.name}}</span>
|
<span v-else>{{item.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-tooltip :content="''+item.total" placement="top" effect="light" :disabled="item.total<99">
|
<el-badge class="mark" :value="item.total" />
|
||||||
<el-badge class="mark" :value="item.total" :max="99"/>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@@ -82,9 +78,7 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
<span v-else>{{item.name}}</span>
|
<span v-else>{{item.name}}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-tooltip :content="''+item.total" placement="top" effect="light" :disabled="item.total<99">
|
<el-badge class="mark" :value="item.total" />
|
||||||
<el-badge class="mark" :value="item.total" :max="99"/>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@@ -94,9 +88,7 @@
|
|||||||
<div class="sidebar-info-item-txt">
|
<div class="sidebar-info-item-txt">
|
||||||
<span>{{item.label}}</span>
|
<span>{{item.label}}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-tooltip :content="''+item.total" placement="top" effect="light" :disabled="item.total < 99">
|
<el-badge class="mark" :value="item.total" />
|
||||||
<el-badge class="mark" :value="item.total" :max="99"/>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@@ -115,9 +107,7 @@
|
|||||||
</el-popover>
|
</el-popover>
|
||||||
<span v-else>{{tag.value}}</span>
|
<span v-else>{{tag.value}}</span>
|
||||||
</div>
|
</div>
|
||||||
<el-tooltip :content="''+tag.total" placement="top" effect="light" :disabled="tag.total<99">
|
<el-badge class="mark" :value="tag.total" :max="99"/>
|
||||||
<el-badge class="mark" :value="tag.total" :max="99"/>
|
|
||||||
</el-tooltip>
|
|
||||||
</el-checkbox>
|
</el-checkbox>
|
||||||
</el-checkbox-group>
|
</el-checkbox-group>
|
||||||
</el-collapse-item>
|
</el-collapse-item>
|
||||||
@@ -515,11 +505,16 @@
|
|||||||
// vendor
|
// vendor
|
||||||
this.vendorData = response.data.vendor;
|
this.vendorData = response.data.vendor;
|
||||||
// ping
|
// ping
|
||||||
this.pingData = response.data.ping.map(item => {
|
this.pingData=[{label:'up',value:1,total:0},{label:'down',value:0,total:0}]
|
||||||
item.label = item.name;
|
|
||||||
item.value = item.status;
|
this.pingData.map(item=>{
|
||||||
|
if(response.data.ping){
|
||||||
|
let data=response.data.ping.find(t=>t.name == item.label);
|
||||||
|
item.total = data.total;
|
||||||
|
item.value = data.status
|
||||||
|
}
|
||||||
return item;
|
return item;
|
||||||
});
|
})
|
||||||
|
|
||||||
this.tagData = response.data.tag
|
this.tagData = response.data.tag
|
||||||
|
|
||||||
|
|||||||
@@ -574,6 +574,8 @@
|
|||||||
}
|
}
|
||||||
if(this.locationInfo.cabinet) {
|
if(this.locationInfo.cabinet) {
|
||||||
this.editAsset.cabinetId = this.locationInfo.cabinet.id;
|
this.editAsset.cabinetId = this.locationInfo.cabinet.id;
|
||||||
|
}else{
|
||||||
|
this.editAsset.cabinetId = null;
|
||||||
}
|
}
|
||||||
if(this.locationInfo.u && this.locationInfo.u.length > 0) {
|
if(this.locationInfo.u && this.locationInfo.u.length > 0) {
|
||||||
this.editAsset.cabinetStart = this.locationInfo.u[0];
|
this.editAsset.cabinetStart = this.locationInfo.u[0];
|
||||||
|
|||||||
@@ -193,7 +193,6 @@
|
|||||||
input_sreach: '',
|
input_sreach: '',
|
||||||
sreach_num: 0,
|
sreach_num: 0,
|
||||||
searchLabelList: [ //下拉列表里的选项
|
searchLabelList: [ //下拉列表里的选项
|
||||||
{id: 0, name: this.$t('search.searchTip'), icon: 'nz-icon nz-icon-search'},
|
|
||||||
],
|
],
|
||||||
bool: false,
|
bool: false,
|
||||||
no_condition: '',
|
no_condition: '',
|
||||||
@@ -916,7 +915,7 @@
|
|||||||
this.no_condition = ''
|
this.no_condition = ''
|
||||||
this.input_sreach = ''
|
this.input_sreach = ''
|
||||||
this.select_list = []
|
this.select_list = []
|
||||||
this.searchLabelList = [{id: 0, name: 'Press Enter or click to search', icon: 'nz-icon nz-icon-search'},]
|
this.searchLabelList = []
|
||||||
JSON.parse(JSON.stringify(this.searchMsg.searchLabelList)).forEach(val => {
|
JSON.parse(JSON.stringify(this.searchMsg.searchLabelList)).forEach(val => {
|
||||||
this.searchLabelList.push(val)
|
this.searchLabelList.push(val)
|
||||||
})
|
})
|
||||||
@@ -969,7 +968,7 @@
|
|||||||
}*/
|
}*/
|
||||||
this.searchMsg.searchLabelList.forEach((val, key) => {
|
this.searchMsg.searchLabelList.forEach((val, key) => {
|
||||||
if (this.select_list[ind].id == val.id) {
|
if (this.select_list[ind].id == val.id) {
|
||||||
this.searchLabelList.splice(key , 1, val);
|
this.searchLabelList.splice(key+1 , 0, val);
|
||||||
this.Iskeywords(ind)
|
this.Iskeywords(ind)
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
@@ -288,6 +288,12 @@
|
|||||||
type: 'select',
|
type: 'select',
|
||||||
label: 'pingStatus',
|
label: 'pingStatus',
|
||||||
disabled: false
|
disabled: false
|
||||||
|
},{
|
||||||
|
id: 23,
|
||||||
|
name: this.$t("asset.tableTitle.cabinet"),
|
||||||
|
type: 'input',
|
||||||
|
label: 'cabinetName',
|
||||||
|
disabled: false
|
||||||
}],
|
}],
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user