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);
});
},
};