NEZ-2617 fix:Web terminal logs通过State过滤时点击选中标签会变为数字

This commit is contained in:
zhangyu
2023-02-28 15:16:02 +08:00
parent 63c9054386
commit bddc6c7712
2 changed files with 11 additions and 3 deletions

View File

@@ -551,6 +551,10 @@ export default {
val.val = selectItem.name
val.valnum = selectItem.id
val.valString = ''
} else if (val.type == 'terminalStatus' && selectItem.searchType == 'terminalStatus') {
val.val = selectItem.label
val.valnum = selectItem.id
val.valString = ''
} else if (val.type == 'assetType' && selectItem.searchType == 'assetType') {
val.val = selectItem.name
val.valnum = selectItem.id
@@ -957,6 +961,8 @@ export default {
objectInfo.type = val.valnum
} else if (val.label === 'assetState') {
objectInfo.stateIds = val.valnum
}else if (val.label === 'terminalStatus') {
objectInfo.state = val.valnum
} else if (val.label === 'assetType') {
objectInfo.typeIds = val.valnum
} else if (val.label === 'credentialType') {
@@ -1010,6 +1016,8 @@ export default {
objectInfo.projectIds = val.valnum
} else if (val.label === 'assetState') {
objectInfo.stateIds = val.valnum
} else if (val.label === 'terminalStatus') {
objectInfo.state = val.valnum
} else if (val.label === 'assetType') {
objectInfo.typeIds = val.valnum
} else if (val.type === 'brand') {

View File

@@ -156,10 +156,10 @@ export default {
readonly: true,
disabled: false
}, {
id: 17,
id: 'state',
name: this.$t('overall.state'),
type: 'terminalStatus',
label: 'state',
type: 'select',
label: 'terminalStatus',
readonly: true,
disabled: false
}