From 1d552a3bad95caae4af15322df28e6240b797693 Mon Sep 17 00:00:00 2001
From: 罗广辉 <guanghui.luo@foxmail.com>
Date: Thu, 13 Aug 2026 15:32:06 +0800
Subject: [PATCH] feat: app视频封面图
---
applications/task-work-order/src/styles/common/cockpit.scss | 125 +++++++++++++++++++++++++++++------------
1 files changed, 89 insertions(+), 36 deletions(-)
diff --git a/applications/task-work-order/src/styles/common/cockpit.scss b/applications/task-work-order/src/styles/common/cockpit.scss
index 3a63e08..f7c7fb8 100644
--- a/applications/task-work-order/src/styles/common/cockpit.scss
+++ b/applications/task-work-order/src/styles/common/cockpit.scss
@@ -55,7 +55,13 @@
color: #ffffff;
}
-.gd-select {
+.gd-select,.gd-input,.gd-input-text,.gd-date-picker,.gd-cascader{
+ .is-disabled{
+ opacity: 0.6;
+ }
+}
+.gd-select,
+.gd-cascader {
--bg: #{$form-bg};
--tips: #{$form-tips};
@@ -64,14 +70,16 @@
--tips: #{$form-tips-gray};
}
- .el-select__wrapper {
+ .el-select__wrapper,
+ .el-input__wrapper {
padding: 0 8px;
background: var(--bg);
box-shadow: none !important;
border: none;
+ min-height: 36px; // 确保最小高度一致
-
- .el-select__suffix {
+ .el-select__suffix,
+ .el-input__suffix {
.el-icon {
color: $search-item-icon-color;
}
@@ -86,6 +94,17 @@
&.el-select__selected-item {
color: #383874;
}
+ }
+
+ .el-input__inner {
+ height: 100%; // 让内部 input 撑满
+ line-height: 36px;
+ height: 36px !important;
+ &::placeholder {
+ color: var(--tips);
+ }
+
+ color: #383874;
}
}
@@ -667,7 +686,8 @@
th.el-table__cell:not(.fixed-column),
td.el-table__cell:not(.fixed-column) {
- background: transparent !important;
+ // background: transparent !important;
+ background: white !important;
}
.el-checkbox {
@@ -861,8 +881,10 @@
line-height: 36px;
}
- .gd-select {
- .el-select__wrapper {
+ .gd-select,
+ .gd-cascader {
+ .el-select__wrapper,
+ .el-input__wrapper {
width: 200px;
height: 36px;
}
@@ -980,12 +1002,14 @@
color: $search-item-symbol-txt;
&.hover {
- background-color: rgba(0, 120, 233, 0.63) !important;
+ // background-color: rgba(0, 120, 233, 0.63) !important;
color: #383874;
}
- &.selected {
- color: #8ac3fd !important;
+ &.selected,
+ &.is-selected {
+ // color: #8ac3fd !important;
+ color: #383874;
font-weight: 700;
}
}
@@ -994,14 +1018,55 @@
}
.el-select-dropdown__empty {
- background: $form-bg;
+ background: $search-item-symbol-bg;
border-radius: 0px 0px 8px 8px;
}
}
.el-popper__arrow::before {
- background: $form-bg !important;
- border: 1px solid #F2F3F5 !important;
+ background: $search-item-symbol-bg !important;
+ border: 1px solid $search-item-symbol-bg !important;
+ }
+}
+
+.gd-cascader-popper {
+ border: none;
+ background: $search-item-symbol-bg !important;
+
+ .el-cascader-panel {
+ background: transparent !important;
+ }
+
+ .el-cascader-menu {
+ background: transparent !important;
+ border-right: 1px solid #DDE2ED !important;
+ color: $search-item-symbol-txt;
+
+ &:last-child {
+ border-right: none !important;
+ }
+
+ .el-cascader-node {
+ color: $search-item-symbol-txt;
+
+ &.is-selectable.in-active-path,
+ &.in-active-path,
+ &:hover {
+ // background-color: rgba(0, 120, 233, 0.63) !important;
+ color: #383874;
+ }
+
+ &.is-active {
+ color: #383874;
+ // color: #8ac3fd !important;
+ font-weight: 700;
+ }
+ }
+ }
+
+ .el-popper__arrow::before {
+ background: $search-item-symbol-bg !important;
+ border: 1px solid $search-item-symbol-bg !important;
}
}
@@ -1177,8 +1242,6 @@
}
.el-popper {
- background: #FEFEFE !important;
-
.el-menu--popup-container {
.el-menu--popup {
min-width: auto !important;
@@ -1199,7 +1262,7 @@
}
&:first-child {
- margin-top: 0;
+ margin-top: 0 !important;
}
}
@@ -1220,24 +1283,10 @@
}
.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 {
+ .gd-select,
+ .gd-cascader {
+ .el-select__wrapper,
+ .el-input__wrapper {
height: 36px;
}
}
@@ -1252,11 +1301,15 @@
height: 36px;
}
.el-input,
- .el-input-number {
+ .el-input-number,
+ .el-cascader,
+ .el-select {
min-width: 200px;
flex: 1;
+ width: 100%; // 确保占满容器
- .el-input__wrapper {
+ .el-input__wrapper,
+ .el-select__wrapper {
padding: 0 8px;
}
--
Gitblit v1.9.3