...
|
...
|
@@ -135,24 +135,23 @@ export default { |
|
|
startTime:startTime,
|
|
|
endTime: endTime,
|
|
|
resType:search.value.resType,
|
|
|
param:{
|
|
|
param:{}
|
|
|
}
|
|
|
if(search.value.keyword){
|
|
|
params.param={
|
|
|
'resName.keyword': search.value.keyword,
|
|
|
'host.keyword':search.value.keyword,
|
|
|
'message.keyword':search.value.keyword,
|
|
|
'program.keyword':search.value.program,
|
|
|
}
|
|
|
}
|
|
|
if(search.value.program){
|
|
|
params['param']['program.keyword']=search.value.program;
|
|
|
}
|
|
|
proxy.$http.post(`/api-web/esData/list`, params, function (res) {
|
|
|
if (res && res.object) {
|
|
|
let dataList=res.object.content;
|
|
|
let arr=[];
|
|
|
dataList.map(item=>{
|
|
|
/* for(let key in item[0]){
|
|
|
if(key=='timestamp'){
|
|
|
console.log("item[0]['timestamp']",item[0]['timestamp'])
|
|
|
item[0]['timestampStr']=getDateTime(item[0]['timestamp'])
|
|
|
}
|
|
|
}*/
|
|
|
arr.push(item[0])
|
|
|
})
|
|
|
tableData.value.dataList = arr;
|
...
|
...
|
|