CN-1391 fix: 添加eventInfoObj字段

This commit is contained in:
刘洪洪
2023-10-20 16:02:24 +08:00
parent 0f52bd5362
commit d2feedb319

View File

@@ -633,7 +633,11 @@ export default {
}
axios.get(api.detection[this.pageType].securityList, { params }).then(response => {
if (response.status === 200) {
this.listData = response.data.data.result
const data = response.data.data.result
data.forEach(item => {
item.eventInfoObj = JSON.parse(item.eventInfo)
})
this.listData = data
} else {
this.listData = []
console.error(response.data.message)
@@ -690,7 +694,7 @@ export default {
}
// 参数q避免切换页码时地址栏参数q为空
let urlQ = ''
if (param.str) {
if (param && param.str) {
urlQ = encodeURI(param.str)
} else if (this.q) {
urlQ = encodeURI(this.q)