Переглянути джерело

fix: 优化统计看板设备信息展示

- 为日生产简报使用设备列增加溢出省略和 tooltip 展示
- 补充日运行看板设备分类中的新疆修井项目 650HP 数据
Zimo 2 днів тому
батько
коміт
face37f03a

+ 16 - 2
src/views/pms/stat/rdkb/rdProductionBriefs.vue

@@ -198,9 +198,16 @@ onMounted(() => {
             {{ formatText(row.techniqueNames) }}
           </template>
         </el-table-column>
-        <el-table-column prop="deviceNames" label="使用设备" min-width="170" align="center">
+        <el-table-column
+          prop="deviceNames"
+          label="使用设备"
+          min-width="170"
+          align="center"
+          show-overflow-tooltip>
           <template #default="{ row }">
-            {{ formatText(row.deviceNames) }}
+            <span class="production-brief-table__device-names">
+              {{ formatText(row.deviceNames) }}
+            </span>
           </template>
         </el-table-column>
         <el-table-column
@@ -283,6 +290,13 @@ onMounted(() => {
   }
 }
 
+.production-brief-table__device-names {
+  display: block;
+  overflow: hidden;
+  text-overflow: ellipsis;
+  white-space: nowrap;
+}
+
 .production-brief-table--full {
   :deep(.el-scrollbar__view) {
     display: block;

+ 1 - 0
src/views/pms/stat/rykb/equipment-category.vue

@@ -40,6 +40,7 @@ const activeTitle = computed(() =>
 const categoryData: EquipmentCategoryItem[] = [
   { project: 'SCP项目', model: '50L', total: 4, owned: 3 },
   { project: '紫金山项目', model: '40J', total: 2, owned: 1 },
+  { project: '新疆修井项目', model: '650HP', total: 1, owned: 1 },
   { project: '新疆修井项目', model: '550HP', total: 7, owned: 7 },
   { project: '新疆修井项目', model: '450HP', total: 2, owned: 2 },
   { project: '伊拉克钻修项目', model: '750HP', total: 4, owned: 4 },