hanbaoshan
2020-10-22 2379a27a8b2e4368dc2079557525aeed6a11c631
修复目录树切换数据栈treeNodes传入空串的bug
2个文件已修改
12 ■■■■ 已修改文件
.gitignore 3 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/pages/search/index/Searching.vue 9 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
.gitignore
@@ -22,3 +22,6 @@
*.njsproj
*.sln
*.sw*
# webpack config inspector
output.js
src/pages/search/index/Searching.vue
@@ -314,6 +314,7 @@
      this.searchTime = this.getDateInit();
      this.VideoPhotoData.searchTime = this.getDateInit();
      // this.VideoPhotoData.querySearchList();
      console.log('mounted 查询es')
      this.setLoadSearch(this.VideoPhotoData.querySearchList());
    }
@@ -348,6 +349,7 @@
        this.VideoPhotoData.findPersonByPage();
      } else {
        // this.VideoPhotoData.querySearchList();
        console.log('showTreeBox 查询es')
        this.setLoadSearch(this.VideoPhotoData.querySearchList());
      }
    },
@@ -366,6 +368,7 @@
            this.VideoPhotoData.findPersonByPage()
          } else {
            // this.VideoPhotoData.querySearchList();
            console.log('TreeDataPool.selectedNodes 查询es')
            this.setLoadSearch(this.VideoPhotoData.querySearchList());
          }
        }
@@ -374,13 +377,14 @@
    },
    "DataStackPool.selectedDir": {
      handler(nodes, oldNodes) {
        if (nodes !== oldNodes) {
        if (nodes !== oldNodes && nodes.id != "") {
          // this.VideoPhotoData.treeNodes = nodes.map(i=>{return i.id});
          this.VideoPhotoData.treeNodes = [nodes.id];
          if (this.VideoPhotoData.uploadType) {
            this.VideoPhotoData.findPersonByPage()
          } else {
            // this.VideoPhotoData.querySearchList();
            console.log('DataStackPool.selectedDir 查询es')
            this.setLoadSearch(this.VideoPhotoData.querySearchList());
          }
        }
@@ -620,6 +624,7 @@
        this.VideoPhotoData.uploadDiaplay = false;
        //this.VideoPhotoData.page = this.currentPage;
        // this.VideoPhotoData.querySearchList();
        console.log('搜索按钮触发 查询es')
        this.setLoadSearch(this.VideoPhotoData.querySearchList());
      } else {
        console.log("以图搜图");
@@ -936,7 +941,7 @@
      width: 100%;
      height: 100%;
      .el-loading-spinner-search {
        background: url("/images/search/searchLoading.gif") no-repeat;
        background: url('/images/search/searchLoading.gif') no-repeat;
      }
    }
  }