吉安感知网项目-前端
shuishen
2026-02-03 89380e6260a75d1d3b94de687ebcc2f50d50659d
applications/task-work-order/src/styles/common/cockpit.scss
@@ -1,142 +1,135 @@
//变量
$gd-placeholder: #86909C;
$form-bg:#F2F3F5;
$form-bg: #F2F3F5;
$form-tips: #86909C;
//灰色变量
$form-bg-gray: #DDE2ED;
$form-tips-gray: #A1A3D4;
.gd-table {
  height: 0;
  flex: 1;
  background: transparent !important;
$search-item-icon-color: #383874;
$search-item-symbol-color: #383874;
  .el-table--border .el-table__inner-wrapper:after,
  .el-table--border:after,
  .el-table--border:before,
  .el-table__inner-wrapper:before {
    height: 0;
  }
  tr {
    background: transparent !important;
  }
  th.el-table__cell {
    height: 40px;
    border-bottom: 1px solid #DBDFF1 !important;
    .cell {
      padding: 0 0 0 16px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #9292C1;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }
  td.el-table__cell {
    padding: 9px 0;
    height: 56px;
    .cell {
      padding: 0 0 0 16px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #383874;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }
  td.operation-btns .cell {
    display: flex;
    flex-wrap: nowrap;
    gap: 12px;
    /* 按钮间距(推荐) */
    white-space: nowrap;
    /* 双保险 */
    a {
      min-width: 28px;
      color: #0075FF;
      &:last-child {
        margin-right: 0;
      }
    }
  }
  th.el-table__cell:not(.fixed-column),
  td.el-table__cell:not(.fixed-column) {
    background: transparent !important;
  }
  .fixed-column {
    background-color: #1A1A2A !important;
  }
}
$search-item-symbol-bg: #fff;
$search-item-symbol-txt: #4E5969;
.gd-input {
  .el-input__wrapper,.el-textarea__inner {
    padding: 0 8px !important;
    background: $form-bg;
  --bg: #{$form-bg};
  --tips: #{$form-tips};
  &.gray {
    --bg: #{$form-bg-gray};
    --tips: #{$form-tips-gray};
  }
  .el-input__wrapper,
  .el-textarea__inner {
    box-shadow: none !important;
    background: var(--bg);
    border: none;
  }
  .el-input__inner,.el-textarea__inner {
  .el-input__inner,
  .el-textarea__inner {
    &::placeholder {
      color: $gd-placeholder;
      color: var(--tips);
    }
  }
    color: #383874;
  }
  &.is-disabled {
    .el-input__wrapper {
      background: #DDE2ED;
      background: var(--bg);
    }
  }
}
.gd-button-main {
  --el-button-bg-color: #4C34FF;
  --el-button-text-color: #ffffff;
  --el-button-border-color: #4C34FF;
  --el-button-hover-bg-color: rgb(130, 113, 255);
  --el-button-hover-text-color: #ffffff;
  --el-button-hover-border-color: rgb(130, 113, 255);
  --el-button-active-bg-color: rgb(65, 46, 208);
  --el-button-active-border-color: rgb(65, 46, 208);
  color: #ffffff;
}
.gd-select {
  .el-select__input {
    color: #8ac3fd !important;
  --bg: #{$form-bg};
  --tips: #{$form-tips};
  &.gray {
    --bg: #{$form-bg-gray};
    --tips: #{$form-tips-gray};
  }
  .el-select__wrapper {
    padding: 0 8px;
    background: $form-bg;
    background: var(--bg);
    box-shadow: none !important;
    border: none;
    width: 100%;
    .el-select__suffix {
      .el-icon {
        color: $search-item-icon-color;
      }
    }
  }
  .el-select__placeholder {
    &.is-transparent {
      color: $gd-placeholder !important;
      color: var(--tips) !important;
    }
    &.el-select__selected-item {
      color: #383874;
    }
  }
}
  .el-select {
    --el-select-border-color-hover: rgb(0, 162, 255) !important;
.gd-date-picker {
  --bg: #{$form-bg};
  --tips: #{$form-tips};
  &.gray {
    --bg: #{$form-bg-gray};
    --tips: #{$form-tips-gray};
  }
  .el-input {
    --el-border-color: rgb(0, 162, 255);
  .el-icon {
    color: $search-item-icon-color;
  }
  .el-select .el-input__wrapper {
    background-color: #DDE2ED !important;
  .el-range-separator {
    color: $search-item-symbol-color !important;
  }
  box-shadow: none !important;
  background: var(--bg);
  border: none;
  border-radius: 5px;
  box-sizing: border-box !important;
  .el-input__wrapper {
    --el-input-text-color: #DDE2ED !important;
    box-shadow: none !important;
    background-color: transparent !important;
    &.is-focus {
      box-shadow: none !important;
    }
  }
  .el-range-input {
    &::placeholder {
      color: var(--tips);
    }
    color: #383874;
  }
  .el-range-separator {
    color: #ffffff;
  }
}
@@ -161,7 +154,7 @@
      background: none !important;
    }
    .el-tree-node.is-current > .el-tree-node__content {
    .el-tree-node.is-current>.el-tree-node__content {
      color: #479dff !important;
    }
  }
@@ -218,56 +211,27 @@
  }
}
.gd-date-picker {
  box-shadow: none !important;
  background: $form-bg;
  border: none;
  border-radius: 5px;
  box-sizing: border-box !important;
  .el-input__wrapper {
    box-shadow: none !important;
    background-color: transparent !important;
    &.is-focus {
      box-shadow: none !important;
    }
  }
  .el-range-input {
    color: #fff;
    &::placeholder {
      color: $gd-placeholder;
    }
  }
  .el-range-separator {
    color: #ffffff;
  }
}
.gd-date-picker-popper {
  background: #DDE2ED !important;
  background: #fff !important;
  border: none !important;
  border-radius: 0px 0px 8px 8px;
  .el-date-picker__prev-btn,
  .el-date-picker__next-btn {
    .el-icon {
      color: #fff !important;
      color: #4E5969 !important;
    }
  }
  .el-date-picker__header-label {
    color: #fff !important;
    color: #4E5969 !important;
  }
  .el-picker-panel {
    .el-picker-panel__body-wrapper {
      .el-picker-panel__body {
        background: #DDE2ED !important;
        color: #fff !important;
        background: #fff !important;
        color: #4E5969 !important;
        .el-date-range-picker__time-header {
          .el-input__wrapper {
@@ -335,7 +299,7 @@
        .el-picker-panel__content {
          .el-date-range-picker__header {
            .el-picker-panel__icon-btn {
              color: #fff !important;
              color: #4E5969 !important;
              &:hover {
                color: var(--el-color-primary) !important;
@@ -348,9 +312,9 @@
              }
            }
            & > div {
            &>div {
              span {
                color: #fff !important;
                color: #4E5969 !important;
              }
            }
          }
@@ -375,14 +339,15 @@
            td.start-date span,
            td.start-date span,
            td.end-date span {
              background-color: #DDE2ED !important;
              color: #fff !important;
              background-color: #354DFF !important;
            }
            td.in-range div,
            td.in-range div:hover,
            &.is-week-mode .el-date-table__row.current div,
            &.is-week-mode .el-date-table__row:hover div {
              background-color: rgba(60, 121, 202) !important;
              background-color: rgba(71, 126, 255, .1) !important;
            }
          }
        }
@@ -454,17 +419,27 @@
  }
}
.el-overlay-dialog {
  display: flex;
  justify-content: center;
  /* 水平居中 */
  align-items: center;
  /* 垂直居中 */
}
.gd-dialog {
  padding: 30px;
  padding: 20px;
  display: flex;
  flex-direction: column;
  width: 770px;
  background: #FFFFFF;
  border: 1px solid #CCCCCC;
  border-radius: 6px 6px 6px 6px;
  margin: 0 !important;
  max-height: 90vh;
  .el-dialog__header {
    padding-bottom: 20px;
    position: relative;
    span {
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: bold;
@@ -476,92 +451,108 @@
      text-transform: none;
    }
    &>button {
      width: auto;
      height: auto;
      display: flex;
      align-items: center;
    }
    .el-icon {
      color: #383874;
    }
  }
  .el-dialog__body {
    height: 0;
    flex: 1;
    overflow: auto;
    min-height: 5vh;
    .detail-title {
      margin-bottom: 10px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #161B2C;
    }
    .detail-container {
      padding: 0 10px;
      display: flex;
      justify-content: space-between;
      max-height: 680px;
      .detail-title {
        margin-bottom: 30px;
        font-family: Source Han Sans CN, Source Han Sans CN;
        font-weight: 500;
        font-size: 18px;
        color: #FFFFFF;
        text-align: left;
        font-style: normal;
        text-transform: none;
      .detail-left {
        margin-right: 20px;
        width: 312px;
        padding: 24px;
        border: 1px solid #E4E4E4;
      }
      .el-row {
        .el-col {
          margin-bottom: 20px;
      .detail-right {
        width: 920px;
        flex: 1;
        overflow: auto;
        display: flex;
        flex-direction: column;
        .view-container {
          display: flex;
          align-items: center;
          .label {
            width: 88px;
            font-family: Source Han Sans CN, Source Han Sans CN;
            font-weight: 500;
            font-size: 14px;
            color: #86909C;
            line-height: 22px;
            text-align: right;
            font-style: normal;
            text-transform: none;
          }
          .val {
            margin-left: 12px;
            font-family: Source Han Sans CN, Source Han Sans CN;
            font-weight: 400;
            font-size: 14px;
            color: #4E5969;
            line-height: 22px;
            text-align: left;
            font-style: normal;
            text-transform: none;
          }
          flex-direction: column;
        }
      }
      .gd-table-container {
        height: 360px;
        .gd-pagination-parent {
          justify-content: center;
        .gd-cesium {
          width: 100%;
          min-height: 380px;
          flex: 1;
        }
      }
    }
    .dialog-form {
      .el-form-item {
    // 查看
    .detail-row-view {
      background: #F2F3F5;
      border-radius: 2px 2px 2px 2px;
      gap: 20px 0;
      padding: 20px;
      .el-col {
        display: flex;
        align-items: center;
        margin-bottom: 0;
        .el-form-item__label {
          display: flex;
          align-items: center;
        .label {
          display: inline-block;
          width: 88px;
          flex-shrink: 0;
          font-family: Source Han Sans CN, Source Han Sans CN;
          font-weight: 500;
          font-size: 14px;
          color: #4E5969;
          color: #86909C;
          line-height: 22px;
          text-align: right;
          font-style: normal;
          text-transform: none;
        }
        .el-form-item__content {
          display: flex;
          align-items: center;
        .val {
          margin-left: 12px;
          flex: 1;
          overflow: hidden;
          font-family: Source Han Sans CN, Source Han Sans CN;
          font-weight: 400;
          font-size: 14px;
          color: #4E5969;
          line-height: 22px;
          text-align: left;
          font-style: normal;
          text-transform: none;
        }
        .val-long {
          overflow: hidden;
          text-overflow: ellipsis;
          white-space: nowrap;
          cursor: pointer;
        }
      }
    }
@@ -575,16 +566,156 @@
      margin-left: 16px;
      width: 96px;
      height: 36px;
      color: #161B2C;
      &:first-child {
        margin-left: 0;
      }
    }
  }
}
    .save-btn {
      color: #FFFFFF;
.gd-table {
  height: 0;
  flex: 1;
  background: transparent !important;
  tr {
    background: transparent !important;
  }
  tr.el-table__row {
    &:hover {
      background: #F7F8FC !important;
    }
  }
  th.el-table__cell {
    height: 40px;
    border-bottom: 1px solid #DBDFF1 !important;
    .cell {
      padding: 0 0 0 16px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #9292C1;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }
  td.el-table__cell {
    padding: 9px 0;
    height: 56px;
    .cell {
      padding: 0 0 0 16px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #383874;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }
  td.operation-btns .cell {
    display: flex;
    flex-wrap: nowrap;
    /* 按钮间距(推荐) */
    white-space: nowrap;
    /* 双保险 */
    a {
      display: flex;
      align-items: center;
      position: relative;
      margin: 0 10px;
      min-width: 28px;
      span {
        color: #0075FF;
      }
      &:first-child {
        margin-left: 0;
      }
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -10px;
        width: 1px;
        height: 12px;
        background: #BCC8E3;
        transform: translateY(calc(-50% - 1px));
      }
      &:last-child {
        margin-right: 0;
        &::before {
          display: none;
        }
      }
    }
  }
  th.el-table__cell:not(.fixed-column),
  td.el-table__cell:not(.fixed-column) {
    background: transparent !important;
  }
  .el-checkbox {
    width: 16px;
    height: 16px;
    .el-checkbox__input {
      width: 16px;
      height: 16px;
      .el-checkbox__inner {
        width: 16px;
        height: 16px;
        border: none;
        background: url("@/assets/images/common/n-checkbox.png") no-repeat center / 100% 100% !important;
      }
    }
    &.is-checked {
      .el-checkbox__input {
        .el-checkbox__inner {
          border: none;
          background: url("@/assets/images/common/checkbox.png") no-repeat center / 100% 100% !important;
          &::after {
            content: none;
          }
        }
      }
    }
  }
  .fixed-column {
    background-color: #1A1A2A !important;
  }
}
.el-table {
  .el-table--border .el-table__inner-wrapper:after,
  .el-table--border:after,
  .el-table--border:before,
  .el-table__inner-wrapper:before {
    height: 0;
  }
  td.el-table__cell {
    border: none !important;
  }
}
@@ -649,7 +780,7 @@
        text-transform: none;
      }
      background: #F2F3F5;
      background: $form-bg;
      border: none;
      box-shadow: none;
    }
@@ -657,16 +788,16 @@
}
.gd-confirm-custom {
  background: #1A1A2A;
  background: #fff;
  border-radius: 6px;
  border: 1px solid #2E2E46;
  border: none;
  .el-message-box__header {
    .el-message-box__title {
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: bold;
      font-size: 18px;
      color: #FFFFFF;
      color: #383874;
      line-height: 22px;
      text-align: left;
      font-style: normal;
@@ -675,7 +806,7 @@
  }
  .el-message-box__content {
    color: #D4D5D7;
    color: #4E5969;
  }
  .el-message-box__btns {
@@ -695,14 +826,15 @@
}
.gd-confirm-button {
  background: #284FE3 !important;
  border-color: #284FE3 !important;
  background: #4C34FF !important;
  border: none !important;
  color: #fff !important;
}
.gd-confirm-cancel-button {
  background: #2B2B4C !important;
  border-color: #2B2B4C !important;
  color: #FFFFFF !important;
  background: #F2F3F5 !important;
  border: none !important;
  color: #161B2C !important;
}
.gd-search-form {
@@ -732,47 +864,6 @@
  .gd-input {
    width: 200px;
    height: 36px;
    .el-input__wrapper {
    }
    &.is-disabled {
      .el-input__wrapper {
      }
    }
  }
  .gd-date-picker {
  }
  .gd-date-picker-popper {
    .el-picker-panel {
      .el-picker-panel__body-wrapper {
        .el-picker-panel__body {
          .el-date-picker__time-header {
            .el-date-picker__editor-wrap {
              .el-time-panel {
                // 将 time-picker-popper 的样式移到这里
                .el-time-panel__header {
                }
              }
            }
          }
        }
      }
    }
    .el-popper__arrow {
      &::before {
        background: #DDE2ED !important;
        border: 1px solid #DDE2ED !important;
        box-sizing: border-box;
      }
    }
  }
  .gd-search-actions {
@@ -860,14 +951,14 @@
.gd-select-popper {
  border: none;
  background: #F2F3F5 !important;
  background: $search-item-symbol-bg !important;
  .el-select-dropdown {
    .el-scrollbar {
      .el-select-dropdown__wrap {
        .el-select-dropdown__list {
          .el-select-dropdown__item {
            color: #4E5969;
            color: $search-item-symbol-txt;
            &.hover {
              background-color: rgba(0, 120, 233, 0.63) !important;
@@ -884,14 +975,252 @@
    }
    .el-select-dropdown__empty {
      background: #F2F3F5;
      background: $form-bg;
      border-radius: 0px 0px 8px 8px;
    }
  }
  .el-popper__arrow::before {
    background: #F2F3F5 !important;
    background: $form-bg !important;
    border: 1px solid #F2F3F5 !important;
  }
}
.gd-timeline {
  padding-left: 120px;
  .el-timeline-item {
    height: 120px;
    &:nth-last-child(1) {
      height: auto;
    }
    .el-timeline-item__tail {
      left: 15px;
      transform: translate(-15px);
      border-left-color: #4c34ff;
    }
    .el-timeline-item__node {
      width: 32px;
      height: 32px;
      background-color: #161b2c;
      transform: translate(-15px);
      &.el-timeline-item__node--success {
        background-color: #4c34ff;
      }
      .el-timeline-item__icon {
        font-size: 22px;
      }
    }
    .el-timeline-item__wrapper {
      top: 5px;
      font-size: 16px;
      .el-timeline-item__timestamp {
        margin-top: 20px;
      }
    }
  }
}
.gd-dialog-table {
  background: transparent !important;
  tr {
    background: transparent !important;
  }
  tr.el-table__row {
    &:hover {
      background: #F7F8FC !important;
    }
  }
  th.el-table__cell {
    height: 40px;
    border-bottom: 1px solid #E5E6EB !important;
    .cell {
      padding: 0 0 0 16px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #86909C;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }
  td.el-table__cell {
    padding: 9px 0;
    height: 56px;
    .cell {
      padding: 0 0 0 16px;
      font-family: Source Han Sans CN, Source Han Sans CN;
      font-weight: 400;
      font-size: 14px;
      color: #4E5969;
      text-align: left;
      font-style: normal;
      text-transform: none;
    }
  }
  td.operation-btns .cell {
    display: flex;
    flex-wrap: nowrap;
    /* 按钮间距(推荐) */
    white-space: nowrap;
    /* 双保险 */
    a {
      display: flex;
      align-items: center;
      position: relative;
      margin: 0 10px;
      min-width: 28px;
      span {
        color: #0075FF;
      }
      &:first-child {
        margin-left: 0;
      }
      &::before {
        content: '';
        position: absolute;
        top: 50%;
        right: -10px;
        width: 1px;
        height: 12px;
        background: #BCC8E3;
        transform: translateY(calc(-50% - 1px));
      }
      &:last-child {
        margin-right: 0;
        &::before {
          display: none;
        }
      }
    }
  }
  th.el-table__cell:not(.fixed-column),
  td.el-table__cell:not(.fixed-column) {
    background: transparent !important;
  }
  .el-checkbox {
    width: 16px;
    height: 16px;
    .el-checkbox__input {
      width: 16px;
      height: 16px;
      .el-checkbox__inner {
        width: 16px;
        height: 16px;
        border: none;
        background: url("@/assets/images/common/n-checkbox.png") no-repeat center / 100% 100% !important;
      }
    }
    &.is-checked {
      .el-checkbox__input {
        .el-checkbox__inner {
          border: none;
          background: url("@/assets/images/common/checkbox.png") no-repeat center / 100% 100% !important;
          &::after {
            content: none;
          }
        }
      }
    }
  }
  .fixed-column {
    background-color: #1A1A2A !important;
  }
}
.el-popper {
  .el-menu--popup-container {
    .el-menu {
      .el-menu-item.is-active {
        &::before {
          display: none;
        }
        background: #4C34FF;
        span {
          color: #fff;
        }
      }
    }
  }
}
.gd-dialog-form {
  // 最后一排不需要设置 margin-bottom
  // border: 1px solid red;
  // 倒数第二个也设置为0
  // .el-col:nth-last-child(2) {
  //   margin-bottom: 0;
  // }
  // .el-col:nth-last-child(1) {
  //   margin-bottom: 0;
  // }
  // .el-form-item:nth-last-child(2) {
  //   margin-bottom: 0;
  // }
  //  .el-form-item:nth-last-child(1) {
  //   margin-bottom: 0;
  // }
  .gd-select {
    .el-select__wrapper {
      height: 36px;
    }
  }
  .gd-date-picker {
    height: 36px;
  }
  .gd-input {
    height: 36px;
  }
  .el-input,
  .el-input-number {
    min-width: 200px;
    flex: 1;
    .el-input__wrapper {
      padding: 0 8px;
    }
    .el-input__inner {
      text-align: left;
      color: #383874;
      &::placeholder {
        text-align: left;
      }
    }
  }
}