| | |
| | | async querySearchList() { |
| | | this.cards = [] |
| | | this.preCards = [] |
| | | var param:any = { |
| | | var param: any = { |
| | | page: this.page, |
| | | size: this.size, |
| | | searchTime: this.searchTime, |
| | |
| | | tasks: this.queryTasks, |
| | | treeNodes: this.treeNodes |
| | | } |
| | | if(this.searchFrom == 'cluster'){ |
| | | if (this.searchFrom == 'cluster') { |
| | | param.isAll = true |
| | | } |
| | | const rsp: any = await getSearchList(param); |
| | |
| | | treeNodes: this.treeNodes, |
| | | picUrl: this.picUrl, |
| | | databases: this.compareTabs, |
| | | threshold: this.threshold |
| | | threshold: this.threshold, |
| | | isAll: this.searchFrom == "cluster" ? true : false |
| | | } |
| | | const rsp: any = await findPersonByPic(param); |
| | | if (rsp && rsp.success) { |
| | |
| | | } |
| | | } |
| | | async findPerson2() { |
| | | // 111 |
| | | this.cards = [] |
| | | var compType = this.compTargetType == "1" ? 1 : 0 |
| | | var param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | searchTime: this.searchTime, |
| | | picUrl: this.picUrl, |
| | | alarmlevel: this.queryAlarmlevel, |
| | | inputValue: this.inputValue, |
| | | tasks: this.queryTasks, |
| | | treeNodes: this.treeNodes, |
| | | compTargetId: this.compTargetId, |
| | | compTargetType: compType, |
| | | databases: this.compareTabs, |
| | | threshold: this.threshold |
| | | let param |
| | | if (this.searchFrom == "cluster") { |
| | | param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | searchTime: this.searchTime, |
| | | picUrl: this.picUrl, |
| | | alarmlevel: this.queryAlarmlevel, |
| | | inputValue: this.inputValue, |
| | | tasks: this.queryTasks, |
| | | treeNodes: this.treeNodes, |
| | | compTargetId: this.compTargetId, |
| | | compTargetType: compType, |
| | | databases: this.compareTabs, |
| | | threshold: this.threshold, |
| | | isAll: true |
| | | } |
| | | } else { |
| | | param = { |
| | | page: this.page, |
| | | size: this.size, |
| | | searchTime: this.searchTime, |
| | | picUrl: this.picUrl, |
| | | alarmlevel: this.queryAlarmlevel, |
| | | inputValue: this.inputValue, |
| | | tasks: this.queryTasks, |
| | | treeNodes: this.treeNodes, |
| | | compTargetId: this.compTargetId, |
| | | compTargetType: compType, |
| | | databases: this.compareTabs, |
| | | threshold: this.threshold, |
| | | } |
| | | } |
| | | const rsp: any = await findPersonByPic(param); |
| | | if (rsp && rsp.success) { |
| | |
| | | picUrl: this.picUrl, |
| | | databases: this.compareTabs, |
| | | compareNum: this.compareNum, |
| | | threshold: this.threshold |
| | | threshold: this.threshold, |
| | | isAll: this.searchFrom == "cluster" ? true : false |
| | | } |
| | | const rsp: any = await findPerson(param); |
| | | if (rsp && rsp.success) { |
| | |
| | | } |
| | | |
| | | async queryTaskList() { |
| | | const rsp: any = await getTaskList({}); |
| | | let params: any = {}; |
| | | if (this.searchFrom == 'cluster') { |
| | | params.isPlatform = 1 |
| | | } |
| | | console.log(params) |
| | | const rsp: any = await getTaskList(params); |
| | | if (rsp && rsp.success) { |
| | | // this.tasks.splice(0, this.tasks.length) |
| | | // rsp.data.forEach(element => { |