From f9d502b976ebb53281432faa56899015d49a87b6 Mon Sep 17 00:00:00 2001
From: zhangwencui <1064582902@qq.com>
Date: 星期三, 11 三月 2026 18:00:11 +0800
Subject: [PATCH] 能源管理、生产计划模块开发
---
src/views/productionPlan/productionPlan/components/PIMTable.vue | 18 +++++++++++++-----
1 files changed, 13 insertions(+), 5 deletions(-)
diff --git a/src/views/productionPlan/productionPlan/components/PIMTable.vue b/src/views/productionPlan/productionPlan/components/PIMTable.vue
index c0f7616..9431002 100644
--- a/src/views/productionPlan/productionPlan/components/PIMTable.vue
+++ b/src/views/productionPlan/productionPlan/components/PIMTable.vue
@@ -43,7 +43,8 @@
:align="item.align"
:sortable="!!item.sortable"
:type="item.type"
- :width="item.width">
+ :width="item.width"
+ :class-name="item.className || ''">
<template #header="scope">
<div class="pim-table-header-cell">
<div class="pim-table-header-title">
@@ -65,24 +66,28 @@
</template>
<template #default="scope">
<!-- 鎻掓Ы -->
- <div v-if="item.dataType == 'slot'">
+ <div v-if="item.dataType == 'slot'"
+ :class="item.className || ''">
<slot v-if="item.slot"
:index="scope.$index"
:name="item.slot"
:row="scope.row" />
</div>
<!-- 杩涘害鏉� -->
- <div v-else-if="item.dataType == 'progress'">
+ <div v-else-if="item.dataType == 'progress'"
+ :class="item.className || ''">
<el-progress :percentage="Number(scope.row[item.prop])" />
</div>
<!-- 鍥剧墖 -->
- <div v-else-if="item.dataType == 'image'">
+ <div v-else-if="item.dataType == 'image'"
+ :class="item.className || ''">
<img :src="javaApi + '/img/' + scope.row[item.prop]"
alt=""
style="width: 40px; height: 40px; margin-top: 10px" />
</div>
<!-- tag -->
- <div v-else-if="item.dataType == 'tag'">
+ <div v-else-if="item.dataType == 'tag'"
+ :class="item.className || ''">
<el-tag v-if="
typeof dataTypeFn(scope.row[item.prop], item.formatData) ===
'string'
@@ -112,6 +117,7 @@
</div>
<!-- 鎸夐挳 -->
<div v-else-if="item.dataType == 'action'"
+ :class="item.className || ''"
@click.stop>
<template v-for="(o, key) in item.operation"
:key="key">
@@ -172,6 +178,7 @@
</div>
<!-- 鍙偣鍑荤殑鏂囧瓧 -->
<div v-else-if="item.dataType == 'link'"
+ :class="item.className || ''"
class="cell link"
style="width: 100%"
@click="goLink(scope.row, item.linkMethod)">
@@ -180,6 +187,7 @@
<!-- 榛樿绾睍绀烘暟鎹� -->
<div v-else
class="cell"
+ :class="item.className || ''"
style="width: 100%">
<span v-if="!item.formatData">{{ scope.row[item.prop] }}</span>
<span v-else>{{
--
Gitblit v1.9.3