NEZ-2081 fix : 建议IPAM 搜索给出选项
This commit is contained in:
@@ -122,8 +122,9 @@ export default {
|
|||||||
disabled: false
|
disabled: false
|
||||||
}, {
|
}, {
|
||||||
name: this.$t('overall.state'),
|
name: this.$t('overall.state'),
|
||||||
type: 'input',
|
type: 'select',
|
||||||
label: 'state',
|
label: 'ipamState',
|
||||||
|
readonly: true,
|
||||||
disabled: false
|
disabled: false
|
||||||
}]
|
}]
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -898,6 +898,21 @@ export default {
|
|||||||
},
|
},
|
||||||
jsonKey: 'val'
|
jsonKey: 'val'
|
||||||
},
|
},
|
||||||
|
state: {
|
||||||
|
target: this.searchLabel,
|
||||||
|
isSearchInput: true,
|
||||||
|
propertyName: 'state',
|
||||||
|
type: 'string',
|
||||||
|
defaultJson: {
|
||||||
|
disabled: false,
|
||||||
|
label: 'ipamState',
|
||||||
|
name: 'State',
|
||||||
|
readonly: true,
|
||||||
|
type: 'select',
|
||||||
|
val: ''
|
||||||
|
},
|
||||||
|
jsonKey: 'val'
|
||||||
|
},
|
||||||
name: {
|
name: {
|
||||||
target: this.searchLabel,
|
target: this.searchLabel,
|
||||||
isSearchInput: true,
|
isSearchInput: true,
|
||||||
|
|||||||
@@ -900,6 +900,8 @@ export default {
|
|||||||
objectInfo.types = val.valnum
|
objectInfo.types = val.valnum
|
||||||
} else if (val.label === 'promState') {
|
} else if (val.label === 'promState') {
|
||||||
objectInfo.statuses = val.valnum
|
objectInfo.statuses = val.valnum
|
||||||
|
} else if (val.label === 'ipamState') {
|
||||||
|
objectInfo.state = val.valnum
|
||||||
} else if (typeof (val.valnum) === 'undefined' || val.valnum == '') {
|
} else if (typeof (val.valnum) === 'undefined' || val.valnum == '') {
|
||||||
this.selectInfoList[val.label].forEach(item => {
|
this.selectInfoList[val.label].forEach(item => {
|
||||||
if (item.label === val.val) {
|
if (item.label === val.val) {
|
||||||
|
|||||||
@@ -72,6 +72,19 @@ const searchSelectInfo = { // value: 传给后台的值;label:显示给用
|
|||||||
label: i18n.t('asset.down')
|
label: i18n.t('asset.down')
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
ipamState: [
|
||||||
|
{
|
||||||
|
value: 1,
|
||||||
|
label: i18n.t('overall.ipam.available')
|
||||||
|
}, {
|
||||||
|
value: 2,
|
||||||
|
label: i18n.t('overall.ipam.transient')
|
||||||
|
}, {
|
||||||
|
value: 3,
|
||||||
|
label: i18n.t('overall.ipam.used')
|
||||||
|
}
|
||||||
|
|
||||||
|
],
|
||||||
pingStatus: [
|
pingStatus: [
|
||||||
{
|
{
|
||||||
value: '0',
|
value: '0',
|
||||||
|
|||||||
Reference in New Issue
Block a user