|
|
@@ -1,8 +1,8 @@
|
|
|
<template>
|
|
|
<div class="ABtarage">
|
|
|
- <p class="updataTime" v-if="updataTimeFlag">更新时间:{{ updataTime }}</p>
|
|
|
+ <p class="updataTime" v-if="updataTime">更新时间:{{ updataTime }}</p>
|
|
|
<template>
|
|
|
- <div class="container linep" :style="{ margin: updataTimeFlag ? '10px' : '0px' }">
|
|
|
+ <div class="container linep" :style="{ margin: updataTime ? '10px' : '0px' }">
|
|
|
<van-collapse v-model="activeNames">
|
|
|
<div v-for="(homePageItem, index) in homePageIndicatorList" :key="index">
|
|
|
<van-collapse-item
|
|
|
@@ -143,6 +143,12 @@ export default {
|
|
|
type: Boolean,
|
|
|
default: false,
|
|
|
},
|
|
|
+ homePageIndicatorDate: {
|
|
|
+ type: Array,
|
|
|
+ },
|
|
|
+ homePageIndicatorUpdateTime: {
|
|
|
+ type: String,
|
|
|
+ },
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
@@ -242,7 +248,12 @@ export default {
|
|
|
},
|
|
|
initData() {
|
|
|
console.log(this.tabVal);
|
|
|
- this.getReportInfo();
|
|
|
+ if (this.homePageIndicatorUpdateTime) this.updataTime = this.homePageIndicatorUpdateTime;
|
|
|
+ if (!this.homePageIndicatorDate) {
|
|
|
+ this.getReportInfo();
|
|
|
+ } else {
|
|
|
+ this.homePageIndicatorList = this.homePageIndicatorDate;
|
|
|
+ }
|
|
|
this.userTodayPlanNum();
|
|
|
},
|
|
|
getReportInfo() {
|