tianxinyu 5 месяцев назад
Родитель
Сommit
f2aeffa956
1 измененных файлов с 4 добавлено и 9 удалено
  1. 4 9
      src/views/statistics/index.vue

+ 4 - 9
src/views/statistics/index.vue

@@ -289,10 +289,7 @@
                   :id="`bhgyp1${item.id_}`"
                   :wancheng="'合格率'"
                   :weiwancheng="'不合格率'"
-                  v-if="
-                    (showAll || showComponents[24]) &&
-                    item.zhi_liang_mu_biao != '服务与沟通达标率'
-                  "
+                  v-if="showAll && item.zhi_liang_mu_biao != '服务与沟通达标率'"
                   :data="getbuhegeyangpin(index)"
                   :date="endDate"
                 />
@@ -303,10 +300,7 @@
                   :id="`bhgyp1${item.id_}`"
                   :wancheng="'合格率'"
                   :weiwancheng="'不合格率'"
-                  v-if="
-                    (showAll || showComponents[24]) &&
-                    item.zhi_liang_mu_biao == '服务与沟通达标率'
-                  "
+                  v-if="showAll && item.zhi_liang_mu_biao == '服务与沟通达标率'"
                   :data="getbuhegeyangpin(index)"
                   :date="endDate"
                 />
@@ -397,7 +391,7 @@
                   :id="`chang${item.id_}${item.parent_id_}`"
                   :wancheng="'合格率'"
                   :weiwancheng="'不合格率'"
-                  v-if="showAll || showComponents[24]"
+                  v-if="showAll"
                   :data="getbuhegeyangpin2(index)"
                   :date="endDate"
                 />
@@ -1557,6 +1551,7 @@ export default {
   },
   mounted() {
     /*以shows是否有参数来判断, 是否需要仅显示部分子组件*/
+
     if (this.shows.length > 0) {
       this.showAll = false;
       this.isShowComponents();