ZZJ
2022-07-18 65752fcffafa02c5f646d0a6207c85bf81284b73
src/Pool/VideoPhotoData.ts
@@ -82,7 +82,8 @@
      inputValue: this.inputValue,
      tabs: this.queryTabs,
      tasks: this.queryTasks,
      treeNodes: this.treeNodes
      treeNodes: this.treeNodes,
      dataSource: "camera"
    }
    if (this.searchFrom == 'cluster') {
      param.isAll = true
@@ -93,6 +94,15 @@
      this.preCards.length = 0
      if (rsp.data.datalist) {
        rsp.data.datalist.forEach(element => {
    if(element.activeObject.targetInfo&&element.activeObject.targetInfo.length === 0) {
      element.activeObject.targetInfo = null
    }
    if(element.list[0].targetInfo&&element.list[0].targetInfo.length === 0) {
      element.list[0].targetInfo = null
    }
          element.ownerPage = this.page
          this.cards.push(element as any);
          // 只允许每个card渲染一张图片
@@ -225,20 +235,20 @@
    this.tabsForUploadImg.splice(0, this.tabsForUploadImg.length)
    if (rsp && rsp.success) {
      var arr1 = new Array
      arr1 = rsp.data.filter(i => {
      arr1 = rsp.data&&rsp.data.tags.filter(i => {
        if (i.status === 1) {
          i.title = i.title + '(已删除)'
          return i
        }
      });
      this.tabs = rsp.data.filter(function (i) {
      this.tabs = rsp.data&&rsp.data.tags.filter(function (i) {
        if (i.status !== 1) {
          return i
        }
      })
      this.tabs.push(...arr1)
      this.tabsForUploadImg.push({ key: "esData", title: "抓拍库" });
      rsp.data.forEach(element => {
      rsp.data.tags.forEach(element => {
        this.tabsForUploadImg.push(element as any);
      });
      // 放置黑白名单 0为白名单
@@ -246,7 +256,7 @@
      this.whiteList.length = 0
      var josn = JSON.stringify(rsp)
      var resp = JSON.parse(josn)
      resp.data.forEach(i => {
      resp.data.tags.forEach(i => {
        if (i.status === 0 && i.bwType === "0") { //白名单
          if (i.analyServerId === "") { //同步库
            i.title = i.title + '(同步库)'
@@ -287,7 +297,7 @@
      // });
      let taskNames = [];
      this.tasks = [];
      rsp.data.forEach((d: any) => {
      rsp.data.aggs.forEach((d: any) => {
        if (taskNames.indexOf(d.name) < 0) {
          taskNames.push(d.name);
          this.tasks.push(d)