NEZ-2081 fix : 建议IPAM 搜索给出选项

This commit is contained in:
likexuan
2022-08-02 11:23:24 +08:00
parent 352672bbfe
commit 0310aea90a
4 changed files with 33 additions and 2 deletions

View File

@@ -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
}]
}

View File

@@ -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,

View File

@@ -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) {

View File

@@ -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',