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() },