From 04355b347790c6472819485ae2eb75c8dae67ea7 Mon Sep 17 00:00:00 2001
From: zhangdi <15053473693@163.com>
Date: Tue, 6 Jan 2026 13:53:30 +0800
Subject: [PATCH] =?UTF-8?q?=E6=8E=92=E4=BA=A7=E7=9C=8B=E6=9D=BF=E4=BC=98?=
=?UTF-8?q?=E5=8C=96?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../statisticalAnalysis/index.vue | 20 ++++++-------------
1 file changed, 6 insertions(+), 14 deletions(-)
diff --git a/src/views/productionSchedulingPlan/statisticalAnalysis/index.vue b/src/views/productionSchedulingPlan/statisticalAnalysis/index.vue
index 019f9a9..1b2a958 100644
--- a/src/views/productionSchedulingPlan/statisticalAnalysis/index.vue
+++ b/src/views/productionSchedulingPlan/statisticalAnalysis/index.vue
@@ -13,7 +13,7 @@
@current-change="currentChange"
@size-change="sizeChange"
@refresh-change="refreshChange"
- @on-load="onLoad"
+
:summary-method="summaryMethod"
>
@@ -67,7 +67,7 @@
{{ column }}
- {{ column }}
+ {{ column.indexOf('Na')>-1 ? 0 : column }}
@@ -247,9 +247,7 @@ export default {
});
});
},
- rowClick(row, column, cell, event) {
- console.log(88888, row, column, cell, event);
- },
+
handleSummaryRowClick(event) {
// 处理统计行点击事件
console.log('统计行被点击');
@@ -342,7 +340,7 @@ export default {
sums[index] = all;
} else if (prop == 'schedulingRate') {
// sums[index] = all / values.length + '%' || 0;
- sums[index] = ((sums[3] / sums[2]) * 100).toFixed(2) + '%' || 0;
+ sums[index] = (((sums[3] / sums[2]) * 100).toFixed(2) + '%') || 0;
}
} else {
if (index == 0) {
@@ -400,16 +398,10 @@ export default {
threeDaysAgo.setDate(today.getDate() - 3);
this.query.cycledate = [this.formatDate(threeDaysAgo), this.formatDate(today)];
- console.log('查询时间范围:', this.form);
- // 加载数据
- // this.$nextTick(() => {
- // this.onLoad(this.page, this.query);
- // });
+ // 加载数据
this.$nextTick(() => {
- const summaryRow = this.$refs.crud.$el.querySelector('.your-summary-row-class'); // 使用正确的选择器找到统计行
- console.log('summaryRow:', summaryRow);
- // summaryRow.addEventListener('click', this.handleSummaryRowClick);
+ this.onLoad(this.page, this.query);
});
},
};