perf: endpoint搜索条件的状态增加suspended
This commit is contained in:
@@ -273,8 +273,8 @@
|
|||||||
id:33,
|
id:33,
|
||||||
name:this.$t('asset.state'),
|
name:this.$t('asset.state'),
|
||||||
// name: this.$t('asset.asset'),
|
// name: this.$t('asset.asset'),
|
||||||
type:'state',
|
type:'select',
|
||||||
label:'state',
|
label:'endpointState',
|
||||||
disabled:false,
|
disabled:false,
|
||||||
readonly:true,
|
readonly:true,
|
||||||
}],
|
}],
|
||||||
@@ -385,7 +385,11 @@
|
|||||||
// this.pageObj.pageNo = 1;
|
// this.pageObj.pageNo = 1;
|
||||||
for (let item in searchObj) {
|
for (let item in searchObj) {
|
||||||
if (searchObj[item]) {
|
if (searchObj[item]) {
|
||||||
this.$set(this.endpointSearchLabel, item, searchObj[item]);
|
if (item === "endpointState") {
|
||||||
|
this.$set(this.endpointSearchLabel, 'state', searchObj[item]);
|
||||||
|
} else {
|
||||||
|
this.$set(this.endpointSearchLabel,item,searchObj[item]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(orderBy){
|
if(orderBy){
|
||||||
|
|||||||
@@ -53,11 +53,14 @@
|
|||||||
],
|
],
|
||||||
endpointState: [ //资产入库/出库状态
|
endpointState: [ //资产入库/出库状态
|
||||||
{
|
{
|
||||||
value: 'UP',
|
value: 1,
|
||||||
label: 'UP'
|
label: 'UP'
|
||||||
}, {
|
}, {
|
||||||
value: 'DOWN',
|
value: 0,
|
||||||
label: 'DOWN'
|
label: 'DOWN'
|
||||||
|
}, {
|
||||||
|
value: 2,
|
||||||
|
label: 'SUSPENDED'
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
pingStatus:[
|
pingStatus:[
|
||||||
|
|||||||
@@ -373,8 +373,8 @@
|
|||||||
id:33,
|
id:33,
|
||||||
name:this.$t('asset.state'),
|
name:this.$t('asset.state'),
|
||||||
// name: this.$t('asset.asset'),
|
// name: this.$t('asset.asset'),
|
||||||
type:'state',
|
type:'select',
|
||||||
label:'state',
|
label:'endpointState',
|
||||||
disabled:false,
|
disabled:false,
|
||||||
readonly:true,
|
readonly:true,
|
||||||
}],
|
}],
|
||||||
@@ -580,7 +580,11 @@
|
|||||||
this.endpointPageObj.pageNo=1;
|
this.endpointPageObj.pageNo=1;
|
||||||
for(let item in searchObj){
|
for(let item in searchObj){
|
||||||
if(searchObj[item]){
|
if(searchObj[item]){
|
||||||
this.$set(this.endpointSearchLabel,item,searchObj[item]);
|
if (item === "endpointState") {
|
||||||
|
this.$set(this.endpointSearchLabel, 'state', searchObj[item]);
|
||||||
|
} else {
|
||||||
|
this.$set(this.endpointSearchLabel,item,searchObj[item]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if(orderBy){
|
if(orderBy){
|
||||||
|
|||||||
Reference in New Issue
Block a user