hanbaoshan
2020-08-15 ddb0df2153bc75e54c3f7c1049be663d4d2dba96
src/pages/library/components/personList.vue
@@ -55,7 +55,7 @@
      <el-col :span="2">
        <div class="text-left">
          <upload
            limitTypes=".jpg,.png,.jpeg,.gif,.mp4"
            limitTypes=".jpg,.png,.jpeg"
            limitSize
            uploadBtntext="上传照片"
            uploadBtnIcon
@@ -77,7 +77,6 @@
        tooltip-effect="dark"
        style="width: 100%;"
        :fit="true"
        :max-height="tableHeight"
        :default-sort="{prop: 'createTime', order: 'descending'}"
        @selection-change="handleSelectionChange"
        :header-cell-style="{background:'#f8f8f8',color:'#222222'}"
@@ -189,7 +188,7 @@
        </el-table-column>
      </el-table>
    </div>
    <div class="pt5 pb20" style="height:40px;position:relative">
    <div class="pt5 " style="height:40px;position:relative">
      <el-pagination
        @current-change="refrash"
        :current-page="BaseManageData.page"
@@ -816,18 +815,33 @@
        }
      }
    },
    // tosearch(item) {
    //   // console.log("跳转地址", item)
    //   var curWwwPath = window.document.location.href;
    //   var pathname = window.document.location.pathname;
    //   var pos = curWwwPath.indexOf(pathname);
    //   var localhostPath = curWwwPath.substring(0, pos); //ip+port
    //   var href = localhostPath + "/Layout/Searching"
    //   let captureId = item.id == "" ? item.personId : item.id
    //   var url = item.personPicUrl ? item.personPicUrl : item.personPicUrl
    //   // console.log("跳转地址",href,"url",url)
    //   var compType = 0
    //   window.open(href + '?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + url + '&compType=' + compType)
    // },
    tosearch(item) {
      // console.log("跳转地址", item)
      var curWwwPath = window.document.location.href;
      var pathname = window.document.location.pathname;
      var pos = curWwwPath.indexOf(pathname);
      var localhostPath = curWwwPath.substring(0, pos); //ip+port
      var href = localhostPath + "/Layout/Searching"
      //let captureId = item.id == "" ? item.baseInfo[0].targetId : item.id
      let captureId = item.id == "" ? item.personId : item.id
      var url = item.personPicUrl ? item.personPicUrl : item.personPicUrl
      // console.log("跳转地址",href,"url",url)
      var compType = 0
      window.open(href + '?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + url + '&compType=' + compType)
      let imgUrl = item.personPicUrl ? item.personPicUrl : item.personPicUrl
      let compType = 1 //  数据来自于es
      if (!item.id || item.id == "") {
        compType = 0 // 数据来自于底库
      }
      // window.open(href + '?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + url + '&compType=' + compType)
      let message = 'toSearch?showType=findByPic&targetId=' + captureId + '&picSmUrl=' + imgUrl + '&compType=' + compType;
      window.parent.postMessage({
        msg: message
      }, "*")
    },
    copyClick(row) {
      this.BaseManageData.personId = row.id
@@ -1032,6 +1046,12 @@
  border-bottom: none;
  // border-bottom: none;
}
.el-dialog{
  min-width: 515px;
  .el-button--info{
    color: #222;
  }
}
.el-dialog__header {
  padding: 20px 0 10px;
  text-align: left;