| | |
| | | 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 // 清两次,第一次是为了点完之后不会出现之前数据的残影,这次是为了防止因为异步问题两次请求会出现双倍数据的问题 |
| | |
| | | toolTipStyle: { |
| | | display: "none", |
| | | height: "30px", |
| | | width: "120px" |
| | | width: "150px" |
| | | } |
| | | }; |
| | | }, |
| | |
| | | this.toolTipStyle.display = "block"; |
| | | this.toolTipStyle.top = node.y - 60 + "px"; |
| | | this.toolTipStyle.left = node.x + "px"; |
| | | |
| | | console.log(this.members[node.id]) |
| | | this.toolTipNode = this.members[node.id].nodeName; |
| | | this.toolTipAddr = this.members[node.id].Address; |
| | | }, |
| | |
| | | .arrow_box p { |
| | | height: 30px; |
| | | line-height: 30px; |
| | | width: 100px; |
| | | width: 100%; |
| | | overflow: hidden; |
| | | } |
| | | .arrow_box:after, |
| | |
| | | |
| | | this.searchTime = this.getDateInit(); |
| | | this.VideoPhotoData.searchTime = this.getDateInit(); |
| | | |
| | | //设置搜索来源(应用名称) |
| | | this.VideoPhotoData.searchForm = 'cluster'; |
| | | // 暂时关闭跳转 20200730 |
| | | // if (this.$route.query.showType === "findByPic") { |
| | | if (this.getUrlKey("showType")) { |