Просмотр исходного кода

feature_20260209_质感日报同步首页指标

zhujindu 5 дней назад
Родитель
Сommit
96a8240132
1 измененных файлов с 4 добавлено и 11 удалено
  1. 4 11
      src/views/home/HomeTarget.vue

+ 4 - 11
src/views/home/HomeTarget.vue

@@ -1,8 +1,8 @@
 <template>
   <div class="ABtarage">
-    <p class="updataTime" v-if="updataTime">更新时间:{{ updataTime }}</p>
+    <p class="updataTime">更新时间:{{ updataTime }}</p>
     <template>
-      <div class="container linep" :style="{ margin: updataTime ? '10px' : '0px' }">
+      <div class="container linep">
         <van-collapse v-model="activeNames">
           <div v-for="(homePageItem, index) in homePageIndicatorList" :key="index">
             <van-collapse-item
@@ -139,9 +139,6 @@ export default {
       type: [String, Number],
       default: '-1',
     },
-    homePageIndicatorDate: {
-      type: Array,
-    },
   },
   data() {
     return {
@@ -241,11 +238,7 @@ export default {
     },
     initData() {
       console.log(this.tabVal);
-      if (!this.homePageIndicatorDate) {
-        this.getReportInfo();
-      } else {
-        this.homePageIndicatorList = this.homePageIndicatorDate;
-      }
+      this.getReportInfo();
       this.userTodayPlanNum();
     },
     getReportInfo() {
@@ -317,7 +310,7 @@ export default {
 }
 
 .container {
-  /* margin: 10px; */
+  margin: 10px;
 }
 
 .container .van-collapse-item {