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