| | |
| | | } |
| | | } |
| | | 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) { |