From 55ff4ad6155248a7c2f391fd4fe75682a311dac0 Mon Sep 17 00:00:00 2001 From: baoshiwei <baoshiwei@shlanbao.cn> Date: 星期四, 24 七月 2025 16:54:26 +0800 Subject: [PATCH] refactor(svg): 优化 SVG相关组件功能 --- zhitan-vue/src/views/buildingConsumption/item-build/index.vue | 8 ++++---- 1 files changed, 4 insertions(+), 4 deletions(-) diff --git a/zhitan-vue/src/views/buildingConsumption/item-build/index.vue b/zhitan-vue/src/views/buildingConsumption/item-build/index.vue index e821c1d..12c53e8 100644 --- a/zhitan-vue/src/views/buildingConsumption/item-build/index.vue +++ b/zhitan-vue/src/views/buildingConsumption/item-build/index.vue @@ -103,7 +103,7 @@ align="center" min-width="130" > - <template #default="scope">{{ scope.row[`value${index}`] }}</template> + <template #default="scope">{{ scope.row[`value${index - 1}`] }}</template> </el-table-column> </template> <template v-if="queryParams.timeType == 'YEAR'"> @@ -114,7 +114,7 @@ align="center" min-width="130" > - <template #default="scope">{{ scope.row[`value${index}`] }}</template> + <template #default="scope">{{ scope.row[`value${index - 1}`] }}</template> </el-table-column> </template> </el-table> @@ -211,12 +211,12 @@ } } else if (queryParams.value.timeType == "MONTH") { for (let i = 0; i < 31; i++) { - xData.push(i + "鏃�") + xData.push(i + 1 + "鏃�") yData.push(dataList[0][`value${i}`]) } } else { for (let i = 0; i < 12; i++) { - xData.push(i + "鏈�") + xData.push(i + 1 + "鏈�") yData.push(dataList[0][`value${i}`]) } } -- Gitblit v1.9.3