index.less 6.14 KB
@import "~@/mixins.less";

@total-width: 445px;
@title-height: 40px;

.siderInfoComponent {
  .size();
  //   .size(@total-width, 100%);
  .size(100%, 100%);

  :global {
    .commonInfo {
      background-color: #FFF;
      .size();
      display: flex;
      flex-direction: column;
      gap: 15px;
      position: relative;
      opacity: 1;
    }
  }
}

.workOrdertype,
.deviceTargetInfo,
.teamInfo {
  min-width: 200px;
  //   padding: 6px;

  :global {
    .mesTitle {
      //   .size(100%, @title-height);
      .size(100%, auto);
      .flex(center, initial);
      color: #1890FF;
      font-size: 20px;
      font-weight: bold;
      line-height: 23.44px;
      margin-bottom: 10px;
      gap: 5px;

      img {
        .size(24px, 24px);
      }
    }

    .ant-form-item-label {
      background-color: transparent !important;

      label {
        span {
          line-height: 38px;
        }
      }
    }

    .ant-form-item[class*='formItemMargin'] {
      border-right: 1px solid #AAA;

      input {
        text-indent: 0;
        padding-left: 0;
      }
    }

    .slick-slide {
      .mesShowType:last-child {
        .ant-form-item[class*='formItemMargin'] {
          border-bottom: 1px solid #AAA;
        }
      }
    }
  }
}


// 工单类型
.workOrdertype {
  position: relative;
  .size(100%, calc(100% - 160px - 30px));
  // .size(100%, calc(100% - 230px - 280px));

  :global {
    .ant-carousel {
      //   .size(100%, calc(100% - @title-height));
      .size(100%, calc(100% - 70px));

      .slick-slider,
      .slick-list,
      .slick-track,
      .slick-slide {
        .size(100%, 100%);
      }

      * {
        border: none !important;
      }

      .slick-dots {
        bottom: -23px;

        li {
          width: 8px;
          height: 8px;
          border-radius: 50%;

          button {
            width: 8px;
            height: 8px;
            border-radius: 50%;
            background-color: #666;
          }
        }
      }

      .showTypeDiv {
        .size(100%, 36px);
        .flex(center, center);

        >div {
          .size();
        }
      }
    }

    .rightBottomBtns {
      position: absolute;
      bottom: 2px;
      right: 10px;
      z-index: 100;

      span[role="img"] {
        .size(32px, 32px);
        .flex(center, center);
        background: #EEE;
        color: #999;
        border-radius: 5px;

        &:active {
          color: #48B2FF;

          svg {
            zoom: 0.9;
          }
        }
      }
    }

  }

  .productionTitle {
    padding-left: 10px;
    font-size: 18px;
    line-height: 38px;
  }

  .productionContent {
    font-size: 18px;
    line-height: 38px;
    text-wrap: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-right: 10px;
  }

  .productionContent1 {
    overflow: hidden;

    >span {
      font-size: 18px;
      line-height: 38px;
      text-wrap: nowrap;
      overflow: hidden;
      display: flex;
      align-items: center;
      padding-right: 10px;
    }
  }

  .productionBtnLeft {
    position: absolute;
    top: 8px;
    right: 26px;
    width: 24px;
    height: 22px !important;
    border: 1px solid #1890FF !important;
    color: #1890FF;
    background-color: #c0daf2;
  }

  .productionBtnRight {
    position: absolute;
    top: 8px;
    right: 4px;
    width: 22px;
    height: 22px !important;
    border: 1px solid #1890FF !important;
    color: #1890FF;
    background-color: #c0daf2;
  }

  .mesSpecial {
    border-radius: 5px;
    height: 34px !important;
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: default;
    border: 1px solid #FFA39E !important;
    background-color: #FFF1F0;
    color: #F5222D;
    padding: 0 10px 0 10px;
  }
}

// 设备及目标信息
.deviceTargetInfo {
  //   .size(100%, 25%);
  .size(100%);
  max-height: 390px;
  //   margin-bottom: 15px;
  background-color: #FFF6DE;


  :global {
    .mesShowType {
      position: relative;
    }

    .mesShowType:last-child {
      .ant-form-item[class*='formItemMargin'] {
        border-bottom: 1px solid #AAA;
      }
    }

    *:not([class*="clock"]) {
      border: none !important;
    }
  }

  .clock {
    .size(30px, 100%);
    position: absolute;
    z-index: 1;
    font-size: 10px;
    right: 20px;
    top: 0;
    .flex(center, center);
  }

  .dynamicNumTitle {
    padding-left: 10px;
    font-size: 18px;
    line-height: 38px;
  }

  .dynamicNumContent {
    font-size: 18px;
    line-height: 38px;
    text-wrap: nowrap;
    overflow: hidden;
    display: flex;
    align-items: center;
    padding-right: 10px;
  }

  .MesDynamicNumItem {
    border-bottom: 1px solid #1890FF !important;
  }

  .statusSetting {
    position: absolute;
    top: 0;
    right: 0;

    :global {
      span {
        color: #ec5f67;
      }
    }
  }
}

// 班组信息
.teamInfo {
  .size(100%, 280px);

  :global {
    img {
      .size(100%, 160px);
    }

    .user {
      font-size: 18px;
      font-weight: bold;
    }
  }
}

// 标牌颜色

.mesTagCommon0 {
  border-radius: 5px;
  margin: 3px;
  height: 34px !important;
  min-height: 34px;
  display: flex !important;
  align-items: center;
  justify-content: center;
  cursor: default;
  width: 60px;
}

// 白
.mesColor0 {
  &:extend(.mesTagCommon0);
  border: 1px solid #CCC;
  background-color: #FFF;
  color: #000;
}

// 粉
.mesColor1 {
  &:extend(.mesTagCommon0);
  border: 1px solid #FFC0CB;
  background-color: #FFC0CB;
  color: #000;
}

// 青
.mesColor2 {
  &:extend(.mesTagCommon0);
  border: 1px solid #008080;
  background-color: #008080;
  color: #FFF;
}

// 蓝
.mesColor3 {
  &:extend(.mesTagCommon0);
  border: 1px solid #0000FF;
  background-color: #0000FF;
  color: #FFF;
}

// 橙
.mesColor4 {
  &:extend(.mesTagCommon0);
  border: 1px solid #FF8000;
  background-color: #FF8000;
  color: #FFF;
}

// 绿
.mesColor5 {
  &:extend(.mesTagCommon0);
  border: 1px solid #00DD00;
  background-color: #00DD00;
  color: #fff;
}

// 黄
.mesColor6 {
  &:extend(.mesTagCommon0);
  border: 1px solid #FFFF00;
  background-color: #FFFF00;
  color: #000;
}

// 红
.mesColor7 {
  &:extend(.mesTagCommon0);
  border: 1px solid #FF0000;
  background-color: #FF0000;
  color: #FFF;
}