From c5c1a886c02a52219138d7e921a2c161a76c5aa7 Mon Sep 17 00:00:00 2001 From: Yu Sung Date: Mon, 8 Jul 2024 23:35:18 +0900 Subject: [PATCH] =?UTF-8?q?=ED=81=AC=EB=A6=AC=EC=97=90=EC=9D=B4=ED=84=B0?= =?UTF-8?q?=20=EA=B8=B0=EC=A4=80=20=EB=9D=BC=EC=9D=B4=EB=B8=8C,=20?= =?UTF-8?q?=EC=BD=98=ED=85=90=EC=B8=A0,=20=EC=BB=A4=EB=AE=A4=EB=8B=88?= =?UTF-8?q?=ED=8B=B0=20=ED=95=A9=EA=B3=84=20=EC=A0=95=EC=82=B0=20=ED=8E=98?= =?UTF-8?q?=EC=9D=B4=EC=A7=80=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Calculate/CalculateCommunityByCreator.vue | 19 +++++++++++++++++++ .../Calculate/CalculateContentByCreator.vue | 19 +++++++++++++++++++ .../Calculate/CalculateLiveByCreator.vue | 19 +++++++++++++++++++ 3 files changed, 57 insertions(+) diff --git a/src/views/Calculate/CalculateCommunityByCreator.vue b/src/views/Calculate/CalculateCommunityByCreator.vue index dc374db..5a0f297 100644 --- a/src/views/Calculate/CalculateCommunityByCreator.vue +++ b/src/views/Calculate/CalculateCommunityByCreator.vue @@ -76,6 +76,21 @@ class="elevation-1" hide-default-footer > + + @@ -260,6 +275,10 @@ export default { this.$dialog.notify.success(message) }, + sumField(key) { + return this.items.reduce((a, b) => a + (b[key] || 0), 0) + }, + async next() { await this.getCalculateCommunityByCreator() }, diff --git a/src/views/Calculate/CalculateContentByCreator.vue b/src/views/Calculate/CalculateContentByCreator.vue index 892d4d5..ada95cf 100644 --- a/src/views/Calculate/CalculateContentByCreator.vue +++ b/src/views/Calculate/CalculateContentByCreator.vue @@ -76,6 +76,21 @@ class="elevation-1" hide-default-footer > + + @@ -260,6 +275,10 @@ export default { this.$dialog.notify.success(message) }, + sumField(key) { + return this.items.reduce((a, b) => a + (b[key] || 0), 0) + }, + async next() { await this.getCalculateContentByCreator() }, diff --git a/src/views/Calculate/CalculateLiveByCreator.vue b/src/views/Calculate/CalculateLiveByCreator.vue index 984f8b4..66ac51c 100644 --- a/src/views/Calculate/CalculateLiveByCreator.vue +++ b/src/views/Calculate/CalculateLiveByCreator.vue @@ -76,6 +76,21 @@ class="elevation-1" hide-default-footer > + + @@ -260,6 +275,10 @@ export default { this.$dialog.notify.success(message) }, + sumField(key) { + return this.items.reduce((a, b) => a + (b[key] || 0), 0) + }, + async next() { await this.getCalculateLiveByCreator() },