| | |
| | | addToBase |
| | | } from "@/api/search"; |
| | | export default class VideoPhotoData { |
| | | public searchForm: string = 'search'; |
| | | public preCards: Array<object> = []; |
| | | public cards: Array<object> = []; |
| | | public persons: Array<object> = []; |
| | |
| | | async querySearchList() { |
| | | this.cards = [] |
| | | this.preCards = [] |
| | | var param = { |
| | | var param:any = { |
| | | page: this.page, |
| | | size: this.size, |
| | | searchTime: this.searchTime, |
| | |
| | | inputValue: this.inputValue, |
| | | tabs: this.queryTabs, |
| | | tasks: this.queryTasks, |
| | | treeNodes: this.treeNodes, |
| | | isAll: true |
| | | treeNodes: this.treeNodes |
| | | } |
| | | |
| | | if(this.searchForm == 'cluster'){ |
| | | param.isAll = true |
| | | } |
| | | const rsp: any = await getSearchList(param); |
| | | if (rsp && rsp.success) { |
| | | this.cards.length = 0 // 清两次,第一次是为了点完之后不会出现之前数据的残影,这次是为了防止因为异步问题两次请求会出现双倍数据的问题 |