haoxuan
2023-08-31 401524fb5661d57ffb2229d683fe4de85b65fd1c
src/components/subComponents/CardItem.vue
@@ -71,7 +71,7 @@
        />
      </div>
      <div class="s-card-left-box" v-else>
        <img :src="data.baseInfo[0] | httpImage" class="cursor-pointer" />
        <img :src="data.baseInfo[0].targetPicUrl | httpImage" class="cursor-pointer" />
      </div>
    </div>
@@ -295,7 +295,7 @@
    <!-- 没有底库,非比对,普通模式 一定有targetInfo,并且targetInfo个数为1-->
    <div
      v-else-if="data.targetInfo !== null && data.targetInfo[0].picSmUrl !== '' && data.targetInfo.length == 1"
      v-else-if="data.targetInfo !== null && data.targetInfo[0].picSmUrl !== ''"
      class="s-card-right-signal"
    >
      <div
@@ -504,7 +504,12 @@
    showType: {
      type: String,
      default: "search"
    }
    },
    fromCluster: {
      type: Boolean,
      default: false
    },
    searchT: {}
  },
  computed: {
    isId() {
@@ -535,6 +540,9 @@
      }
    },
    httpImage(url) {
      if (!url.length) {
        return ""
      }
      return '/httpImage/' + url + ((url.indexOf("?") >= 0) ? '&' : '?') + 'width=160'
    }
  },
@@ -592,15 +600,19 @@
      this.$emit("addToBase", item);
    },
    tosearch(item) {
      this.searchT
      let captureId = item.id == "" ? item.baseInfo[0].targetId : item.id
      let imgUrl = item.targetInfo ? item.targetInfo[0].picSmUrl : item.baseInfo[0].targetPicUrl
      let compType = 1 //  数据来自于es
      if (!item.id || item.id == "") {
        compType = 0 // 数据来自于底库
      }
      let message = 'toSearch?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + imgUrl + '&compType=' + compType + '&timestamp=' + new Date().getTime();
      //let message = 'toSearch?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + imgUrl + '&compType=' + compType;
      let message
      if (this.fromCluster) {
        message = 'toCluster?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + imgUrl + '&compType=' + compType + '&timestamp=' + new Date().getTime() + '&start=' + this.searchT[0] + '&end=' + this.searchT[1];
      } else {
        message = 'toSearch?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + imgUrl + '&compType=' + compType + '&timestamp=' + new Date().getTime() + '&start=' + this.searchT[0] + '&end=' + this.searchT[1];
      }
      window.parent.postMessage({
        msg: message
      }, "*")
@@ -613,15 +625,15 @@
  font-family: PingFangSC-Medium;
}
.color222 {
  font-size: 0.75rem;
  font-size: 12px;
  font-weight: 600;
  line-height: 1rem;
  line-height: 14px;
  color: #222222;
}
.color666 {
  color: #666666;
  font-size: 0.75rem;
  line-height: 1.25rem;
  font-size: 12px;
  line-height: 16px;
}
.box-card {
  cursor: default;