hanbaoshan
2020-12-04 46183ba8c63b38ea3671e7923edc7ec2fd34a6c3
统计查询人脸比对卡片图片分值区布局调整
2个文件已修改
29 ■■■■■ 已修改文件
src/components/canvas/Dialog.vue 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/subComponents/CardItem.vue 26 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/components/canvas/Dialog.vue
@@ -394,6 +394,7 @@
    },
    // 删除元素
    del() {
      debugger
      let delEle = {};
      switch (this.delCursor.type) {
        case "1":
@@ -537,7 +538,6 @@
          _this.type = "0";
          _this.delCursor.type = "2";
          _this.delCursor.index = i;
          debugger
          _this.delCursor.remarksName = v.name;
          _this.delCursor.id = v.id;
          // console.log("当前选中元素:",_this.delCursor)
@@ -854,6 +854,7 @@
      width = typeof width !== "undefined" ? width : 1;
      // color = typeof color !== 'undefined' ? color : 'yellow'
      // 计算各角度和对应的P2,P3坐标
      debugger
      let angle = (Math.atan2(fromY - toY, fromX - toX) * 180) / Math.PI;
      let angle1 = ((angle + theta) * Math.PI) / 180;
      let angle2 = ((angle - theta) * Math.PI) / 180;
src/components/subComponents/CardItem.vue
@@ -31,9 +31,8 @@
        </div>
        <div
          class="s-card-left-isCompare-div compareScore111"
          style
          :style="{
            bottom: getBottom(),
            bottom: '0',
            background: getUrl(data.baseInfo[initialIndex].bwType)
          }"
        >
@@ -492,7 +491,8 @@
export default {
  mounted() {
    window.addEventListener("resize", this.watchWindow);
    //window.addEventListener("resize", this.watchWindow);
    window.addEventListener("resize",this.getBottom)
  },
  props: {
    data: {
@@ -555,13 +555,14 @@
  },
  methods: {
    getBottom() {
      // let imgDom = document.getElementById(str)
      this.$nextTick(() => {
      let imgDom = this.$refs.firstImg
      if (imgDom) {
        let num = (imgDom.offsetHeight - imgDom.offsetWidth) / 2
        return `${num}px`;
      }
      return `4px`;
      })
    },
    getUrl(bwtype) {
      if (bwtype == 1) {
@@ -621,6 +622,7 @@
  line-height: 1.25rem;
}
.box-card {
  cursor: default;
  .el-carousel__arrow {
    height: 20px;
@@ -640,11 +642,11 @@
    .card-img-box {
      box-sizing: border-box;
      width: 100%;
      height: 100%;
      position: relative;
      overflow: hidden;
          top: 50%;
    transform: translateY(-50%);
      .card-img-box-compear {
        height: 100%;
        width: 100%;
        display: flex;
        .card-img-box-compear-left {
@@ -653,8 +655,13 @@
          justify-content: center;
          align-items: Center;
          overflow: hidden;
          width: 100%;
          flex: 1;
          height: 100%;
        }
        .el-carousel{
          flex: 1;
          width: auto;
          height: auto!important;
        }
        .el-carousel__item {
          display: flex;
@@ -692,9 +699,10 @@
      }
    }
    img {
      display: block;
      width: 100%;
      height: 100%;
      object-fit: contain;
      //height: 100%;
      //object-fit: contain;
    }
    .s-card-left-isCompare-div {
      width: 60px;