yanghao 3 днів тому
батько
коміт
c179d3eda7
1 змінених файлів з 2 додано та 5 видалено
  1. 2 5
      src/views/pms/qhse/reportSummary/preview-drawer.vue

+ 2 - 5
src/views/pms/qhse/reportSummary/preview-drawer.vue

@@ -17,7 +17,6 @@ interface Props {
 interface TableRow {
   category: string
   label: string
-  unit: string
   field: keyof QhseMonthReportItem
   summary: string
   [key: string]: string | keyof QhseMonthReportItem
@@ -191,7 +190,6 @@ const tableRows = computed<TableRow[]>(() => {
     return {
       category: row.category,
       label: row.label,
-      unit: row.unit,
       field: row.field,
       summary: getMetricSummaryValue(row.field),
       ...companyValues
@@ -302,8 +300,7 @@ watch(
               fixed="left"
               width="140"
               align="center" />
-            <el-table-column prop="label" label="指标项" fixed="left" width="260" align="center" />
-            <el-table-column prop="unit" label="单位" fixed="left" width="110" align="center" />
+            <el-table-column prop="label" label="单位" fixed="left" width="220" align="center" />
             <el-table-column
               v-for="company in companyColumns"
               :key="company.key"
@@ -440,7 +437,7 @@ watch(
   font-weight: 600;
 }
 
-:deep(.qhse-report-preview__el-table .el-table__body-wrapper td:nth-child(n + 4):not(:last-child)) {
+:deep(.qhse-report-preview__el-table .el-table__body-wrapper td:nth-child(n + 3):not(:last-child)) {
   color: #0f3f8f;
   font-weight: 600;
 }