perf: endpoint搜索条件的状态增加suspended

This commit is contained in:
陈劲松
2020-11-22 19:24:24 +08:00
committed by chenjinsong
parent d9b19b364f
commit f9e111f49b
3 changed files with 19 additions and 8 deletions

View File

@@ -273,8 +273,8 @@
id:33,
name:this.$t('asset.state'),
// name: this.$t('asset.asset'),
type:'state',
label:'state',
type:'select',
label:'endpointState',
disabled:false,
readonly:true,
}],
@@ -385,9 +385,13 @@
// this.pageObj.pageNo = 1;
for (let item in searchObj) {
if (searchObj[item]) {
if (item === "endpointState") {
this.$set(this.endpointSearchLabel, 'state', searchObj[item]);
} else {
this.$set(this.endpointSearchLabel,item,searchObj[item]);
}
}
}
if(orderBy){
this.$set(this.endpointSearchLabel, 'orderBy', orderBy);
}

View File

@@ -53,11 +53,14 @@
],
endpointState: [ //资产入库/出库状态
{
value: 'UP',
value: 1,
label: 'UP'
}, {
value: 'DOWN',
value: 0,
label: 'DOWN'
}, {
value: 2,
label: 'SUSPENDED'
}
],
pingStatus:[

View File

@@ -373,8 +373,8 @@
id:33,
name:this.$t('asset.state'),
// name: this.$t('asset.asset'),
type:'state',
label:'state',
type:'select',
label:'endpointState',
disabled:false,
readonly:true,
}],
@@ -580,9 +580,13 @@
this.endpointPageObj.pageNo=1;
for(let item in searchObj){
if(searchObj[item]){
if (item === "endpointState") {
this.$set(this.endpointSearchLabel, 'state', searchObj[item]);
} else {
this.$set(this.endpointSearchLabel,item,searchObj[item]);
}
}
}
if(orderBy){
this.$set(this.endpointSearchLabel,'orderBy',orderBy);
}