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