Browse Source

feat: 企微数据 - 粉丝激活趋势 - 账号筛选优化

zhengxy 2 years ago
parent
commit
53dc5abe43
1 changed files with 9 additions and 2 deletions
  1. 9 2
      project/src/components/dataBoard/fansActiveTrends.vue

+ 9 - 2
project/src/components/dataBoard/fansActiveTrends.vue

@@ -225,8 +225,15 @@ export default {
225 225
     },
226 226
     // 当前"时间"列是否展示的为"时间段" => 是时间段 默认排序"消耗"、非时间段 默认排序时间
227 227
     isShowTimes() {
228
-      // (MP && 选了MP账号 && 选了短剧) || (ADQ && 选了ADQ账号 && 选了短剧)
229
-      if ((this.isMP && this.filter.account_id && this.filter.playlet_id) || (this.isADQ && this.filter.account_id_adq && this.filter.playlet_id)) {
228
+      // (MP && 选了MP账号 && 没选短剧) || (MP && 选了MP账号 && 选了短剧) || (ADQ && 选了ADQ账号 && 没选短剧) || (ADQ && 选了ADQ账号 && 选了短剧)
229
+      // 以上情况 => 显示"单日"数据
230
+      // 除以上情况 => 显示"时间段"数据
231
+      if (
232
+        (this.isMP && this.filter.account_id && !this.filter.playlet_id) ||
233
+        (this.isMP && this.filter.account_id && this.filter.playlet_id) ||
234
+        (this.isADQ && this.filter.account_id_adq && !this.filter.playlet_id) ||
235
+        (this.isADQ && this.filter.account_id_adq && this.filter.playlet_id)
236
+      ) {
230 237
         return false
231 238
       } else {
232 239
         return true