Ver Fonte

fix(qualityBoard): 下钻弹窗表格行悬停高亮修复

- 行悬停/选中高亮补齐旧版 td 选择器,防止行变白

- 移除各下钻配置中的临时 source 口径文案
lihaiting há 3 dias atrás
pai
commit
17c6695ee9

+ 11 - 11
src/views/qualityBoard/components/DrillDialog.vue

@@ -16,7 +16,6 @@
           <i class="qb-drill-title-bar"></i>
           {{ config.title }}
         </span>
-        <span class="qb-drill-source">{{ config.source }}</span>
         <!-- 继承看板顶部工厂筛选时给出显式提示,避免误读为全厂数据 -->
         <span v-if="factoryName" class="qb-drill-factory">工厂:{{ factoryName }}</span>
       </div>
@@ -170,7 +169,7 @@ export default {
   },
   computed: {
     config() {
-      return DRILL_CONFIG[this.drillKey] || { title: '明细', source: '', filters: [], columns: [], defaultWhere: {} };
+      return DRILL_CONFIG[this.drillKey] || { title: '明细', filters: [], columns: [], defaultWhere: {} };
     },
     dictCtx() {
       return { dictName: (name, code) => this.getDictName(name, code) };
@@ -403,7 +402,8 @@ export default {
 .qb-drill-head-left {
   display: flex;
   flex: 1 1 auto;
-  flex-direction: column;
+  flex-direction: row;
+  align-items: center;
   min-width: 0;
 }
 .qb-drill-title {
@@ -423,14 +423,8 @@ export default {
   background: linear-gradient(180deg, #7af6ff, rgba(0, 180, 255, 0.1));
   box-shadow: 0 0 10px rgba(0, 230, 255, 0.8);
 }
-.qb-drill-source {
-  margin-top: 4px;
-  font-size: 12px;
-  color: #7eafc8;
-}
-/* 工厂筛选提示:青色胶囊,与口径说明区分 */
+/* 工厂筛选提示:青色胶囊,与标题同行 */
 .qb-drill-factory {
-  margin-top: 4px;
   margin-left: 10px;
   padding: 1px 10px;
   font-size: 12px;
@@ -616,7 +610,13 @@ export default {
 .qb-drill-dialog .el-table--striped .el-table__body tr.el-table__row--striped td.el-table__cell {
   background: rgba(0, 200, 255, 0.05);
 }
-.qb-drill-dialog .el-table__body tr:hover > td.el-table__cell {
+/* 悬停/选中行统一青色高亮: 覆盖 Element 默认 hover-row、current-row 及旧版 td 选择器, 防止行变白 */
+.qb-drill-dialog .el-table__body tr:hover > td.el-table__cell,
+.qb-drill-dialog .el-table__body tr.hover-row > td.el-table__cell,
+.qb-drill-dialog .el-table__body tr.current-row > td.el-table__cell,
+.qb-drill-dialog .el-table__body tr:hover > td,
+.qb-drill-dialog .el-table__body tr.hover-row > td,
+.qb-drill-dialog .el-table__body tr.current-row > td {
   background: rgba(0, 200, 255, 0.14) !important;
 }
 .qb-drill-dialog .el-table__empty-text {

+ 0 - 4
src/views/qualityBoard/components/drillConfig.js

@@ -180,7 +180,6 @@ export const DRILL_CONFIG = {
   completion: {
     ...workOrderBase,
     title: '检验批次明细',
-    source: '7.2.1 · 对齐系统「执行管理 - 检测工单」,按检测工单维度统计',
     defaultWhere: {},
     filters: [
       { prop: 'code', label: '检测工单编码', type: 'text', width: 180 },
@@ -201,7 +200,6 @@ export const DRILL_CONFIG = {
   firstPass: {
     ...workOrderBase,
     title: '一次通过明细',
-    source: '7.2.2 · 检测工单批次;首检结论/返工返修次数后端未返回,暂以批次合格率呈现',
     defaultWhere: { status: 1 },
     filters: [
       { prop: 'code', label: '检测工单编码', type: 'text', width: 180 },
@@ -216,7 +214,6 @@ export const DRILL_CONFIG = {
   defect: {
     ...unqualifiedBase,
     title: '不良明细',
-    source: '7.2.3 · 对齐系统「不良品管理 - 不良品台账」',
     defaultWhere: {},
     filters: [
       { prop: 'unqualifiedProductsCode', label: '编码', type: 'text', width: 170 },
@@ -231,7 +228,6 @@ export const DRILL_CONFIG = {
   pending: {
     ...unqualifiedBase,
     title: '待处理异常明细',
-    source: '7.2.4 · 不良待处置;待请样/待审核滞留口径待后端补充聚合接口',
     defaultWhere: { status: 0 },
     filters: [
       { prop: 'unqualifiedProductsCode', label: '编码', type: 'text', width: 170 },