From 09c7fd1f63b35e82d68111e813b6a2410cf2f138 Mon Sep 17 00:00:00 2001 From: juzi <819872918@qq.com> Date: Fri, 13 Mar 2026 15:42:39 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E5=88=87=E6=8D=A2=E5=B1=95?= =?UTF-8?q?=E7=A4=BA=E9=A1=BA=E5=BA=8F=EF=BC=8C=E5=AE=8C=E6=88=90=E7=8E=87?= =?UTF-8?q?=E4=B8=8D=E4=B8=80=E8=B5=B7=E5=88=87=E6=8D=A2=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../home/productionCostAnalysisComponents/operatingBar.vue | 4 ++-- .../productionCostAnalysisComponents/operatingLineChart.vue | 6 +++--- .../operatingLineChartCumulative.vue | 6 +++--- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/src/views/home/productionCostAnalysisComponents/operatingBar.vue b/src/views/home/productionCostAnalysisComponents/operatingBar.vue index eb031276..e97805fe 100644 --- a/src/views/home/productionCostAnalysisComponents/operatingBar.vue +++ b/src/views/home/productionCostAnalysisComponents/operatingBar.vue @@ -83,7 +83,7 @@ export default { name, real: factory.reals[index], target: factory.targets[index], - rate: factory.rate[index], + rate: factory.rates[index], diff: factory.diff[index], flag: factory.flags[index] })); @@ -144,7 +144,7 @@ export default { { offset: 1, color: 'rgba(40, 138, 255, 0)' } ]) }, - data: data.rate || [], + data: data.rates || [], symbol: 'circle', symbolSize: 6 }, diff --git a/src/views/home/productionCostAnalysisComponents/operatingLineChart.vue b/src/views/home/productionCostAnalysisComponents/operatingLineChart.vue index affeae29..7160e80b 100644 --- a/src/views/home/productionCostAnalysisComponents/operatingLineChart.vue +++ b/src/views/home/productionCostAnalysisComponents/operatingLineChart.vue @@ -89,7 +89,7 @@ export default { diff: [], // 对应差值数组 targets: [], // 预算值数组 reals: [], // 实际值数组 - rate: [], // 完成率数组 + rates: [], // 完成率数组 flags: [] // 完成状态数组(0/1) // baseIndexes: []// 对应levelId(序号)数组 } @@ -114,7 +114,7 @@ export default { const initTopBarData = { locations: [], diff: [], targets: [], reals: [], rate: [], flags: [] }; - const initBarData = { locations: [], diff: [], targets: [], reals: [], rate: [], flags: [] }; + const initBarData = { locations: [], diff: [], targets: [], reals: [], rates: [], flags: [] }; if (!Array.isArray(this.monData) || this.monData.length === 0) { this.chartData = { topBarData: initTopBarData, barData: initBarData }; @@ -151,7 +151,7 @@ export default { barData.diff.push(item.diffValue || 0); barData.targets.push(item.targetValue || 0); barData.reals.push(item.value || 0); - barData.rate.push(item.proportion || 0); + barData.rates.push(item.proportion || 0); barData.flags.push(item.completed ? 1 : 0); // barData.baseIndexes.push(Number(item.levelId) || 0); // 序号转数字 } diff --git a/src/views/home/productionCostAnalysisComponents/operatingLineChartCumulative.vue b/src/views/home/productionCostAnalysisComponents/operatingLineChartCumulative.vue index 5bc0faf6..268c5745 100644 --- a/src/views/home/productionCostAnalysisComponents/operatingLineChartCumulative.vue +++ b/src/views/home/productionCostAnalysisComponents/operatingLineChartCumulative.vue @@ -89,7 +89,7 @@ export default { diff: [], // 对应差值数组 targets: [], // 预算值数组 reals: [], // 实际值数组 - rate: [], // 完成率数组 + rates: [], // 完成率数组 flags: [] // 完成状态数组(0/1) // baseIndexes: []// 对应levelId(序号)数组 } @@ -114,7 +114,7 @@ export default { const initTopBarData = { locations: [], diff: [], targets: [], reals: [], rate: [], flags: [] }; - const initBarData = { locations: [], diff: [], targets: [], reals: [], rate: [], flags: [] }; + const initBarData = { locations: [], diff: [], targets: [], reals: [], rates: [], flags: [] }; if (!Array.isArray(this.totalData) || this.totalData.length === 0) { this.chartData = { topBarData: initTopBarData, barData: initBarData }; @@ -151,7 +151,7 @@ export default { barData.diff.push(item.diffValue || 0); barData.targets.push(item.targetValue || 0); barData.reals.push(item.value || 0); - barData.rate.push(item.proportion || 0); + barData.rates.push(item.proportion || 0); barData.flags.push(item.completed ? 1 : 0); // barData.baseIndexes.push(Number(item.levelId) || 0); // 序号转数字 }