CN-257 Entity Explorer--接口对接

This commit is contained in:
hanyuxia
2022-01-04 14:54:26 +08:00
parent 1ebc5f76f5
commit e764fc4b69
9 changed files with 451 additions and 187 deletions

View File

@@ -85,7 +85,7 @@ export default {
startTime: Math.floor(now.getTime() / 1000 - 3600),
endTime: Math.floor(now.getTime() / 1000)
},
ip: this.entityData.ipAddr
ip: this.entityData.ip
}
break
}
@@ -142,7 +142,7 @@ export default {
queryAlert () {
get(api.entityAlertNum, { entityType: this.entityData.entityType, name: this.entityName }).then(response => {
if (response.code === 200) {
this.entityData.securityCount = response.data.result[0].value
this.entityData.alertCount = response.data.result[0].value
}
})
},