hanbaoshan
2020-10-17 837775fc6f9188764f487a3517e14595fc03b8fd
统计查询搜索判断应用来源动态传递搜索参数
3个文件已修改
19 ■■■■■ 已修改文件
src/Pool/VideoPhotoData.ts 10 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/serfDiagram/index.vue 6 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/searchForCluster/index/Searching.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/Pool/VideoPhotoData.ts
@@ -8,6 +8,7 @@
  addToBase
} from "@/api/search";
export default class VideoPhotoData {
  public searchForm: string = 'search';
  public preCards: Array<object> = [];
  public cards: Array<object> = [];
  public persons: Array<object> = [];
@@ -73,7 +74,7 @@
  async querySearchList() {
    this.cards = []
    this.preCards = []
    var param = {
    var param:any = {
      page: this.page,
      size: this.size,
      searchTime: this.searchTime,
@@ -81,10 +82,11 @@
      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 // 清两次,第一次是为了点完之后不会出现之前数据的残影,这次是为了防止因为异步问题两次请求会出现双倍数据的问题
src/components/serfDiagram/index.vue
@@ -40,7 +40,7 @@
      toolTipStyle: {
        display: "none",
        height: "30px",
        width: "120px"
        width: "150px"
      }
    };
  },
@@ -129,7 +129,7 @@
      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;
    },
@@ -267,7 +267,7 @@
.arrow_box p {
  height: 30px;
  line-height: 30px;
  width: 100px;
  width: 100%;
  overflow: hidden;
}
.arrow_box:after,
src/pages/searchForCluster/index/Searching.vue
@@ -296,7 +296,8 @@
    this.searchTime = this.getDateInit();
    this.VideoPhotoData.searchTime = this.getDateInit();
    //设置搜索来源(应用名称)
    this.VideoPhotoData.searchForm = 'cluster';
    // 暂时关闭跳转 20200730
    // if (this.$route.query.showType === "findByPic") {
    if (this.getUrlKey("showType")) {