From 65276f5281ed4532b8509a2c203d8195b13cb48a Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Thu, 20 Jun 2024 15:01:15 +0900 Subject: [PATCH] =?UTF-8?q?=EC=BB=A4=EB=AE=A4=EB=8B=88=ED=8B=B0=20?= =?UTF-8?q?=EC=A0=95=EC=82=B0=20-=20=ED=95=A9=EA=B3=84=20=EC=B6=94?= =?UTF-8?q?=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Calculate/CalculateCommunityPost.vue | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/src/views/Calculate/CalculateCommunityPost.vue b/src/views/Calculate/CalculateCommunityPost.vue index 02c3753..105a7fc 100644 --- a/src/views/Calculate/CalculateCommunityPost.vue +++ b/src/views/Calculate/CalculateCommunityPost.vue @@ -43,8 +43,6 @@ 조회 - - @@ -57,6 +55,20 @@ class="elevation-1" hide-default-footer > + + @@ -211,6 +223,10 @@ export default { this.$dialog.notify.error(message) }, + sumField(key) { + return this.items.reduce((a, b) => a + (b[key] || 0), 0) + }, + async next() { await this.getCalculateCommunityPost() }, -- 2.40.1