排产看板优化

dev-scheduling
zhangdi 3 months ago
parent 4450c943f5
commit 04355b3477
  1. 20
      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"
>
<template #menu-left> </template>
@ -67,7 +67,7 @@
<el-button type="text" plain @click="showOrderDetail(row, 'errorCount','all')">{{ column }}</el-button>
</div>
<div v-if="index == 6" :style="{ width: columnWidthsData['schedulingRate']-24 + 'px' }">
{{ column }}
{{ column.indexOf('Na')>-1 ? 0 : column }}
<!-- <el-button type="text" plain @click="showOrderDetail(row, 'errorCount','all')">{{ column }}</el-button> -->
</div>
@ -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);
});
},
};

Loading…
Cancel
Save