|
@@ -24,18 +24,15 @@
|
|
|
<!-- 时间 -->
|
|
|
<div class="text_date"><topDate /></div>
|
|
|
<!-- 第二行-->
|
|
|
- <div class="wrapperTop" >
|
|
|
+ <div class="wrapperTop">
|
|
|
<swiper
|
|
|
v-if="showTop"
|
|
|
class="swiper-containewTop"
|
|
|
ref="mySwiperTop"
|
|
|
:options="swiperOptionsTop"
|
|
|
>
|
|
|
- <swiper-slide
|
|
|
- v-for="(item, index) in dayInfoList"
|
|
|
- :key="index"
|
|
|
- >
|
|
|
- <top1 ref="top1" :info="item" />
|
|
|
+ <swiper-slide v-for="(item, index) in dayInfoList" :key="index">
|
|
|
+ <top1 ref="top1" :info="item" />
|
|
|
</swiper-slide>
|
|
|
</swiper>
|
|
|
</div>
|
|
@@ -44,18 +41,18 @@
|
|
|
<div class="content-box">
|
|
|
<div>
|
|
|
<dv-border-box-13>
|
|
|
- <centerRight2 :info="deptInfo"/>
|
|
|
+ <centerRight2 :info="deptInfo" />
|
|
|
</dv-border-box-13>
|
|
|
</div>
|
|
|
<div>
|
|
|
<dv-border-box-1>
|
|
|
- <centerRight1 :tableList="planList"/>
|
|
|
- <center :info="proportionInfo" />
|
|
|
+ <centerRight1 :tableList="planList" />
|
|
|
+ <center :info="proportionInfo" />
|
|
|
</dv-border-box-1>
|
|
|
</div>
|
|
|
<div>
|
|
|
<dv-border-box-13>
|
|
|
- <centerRight3 :info="securitiesInfo"/>
|
|
|
+ <centerRight3 :info="securitiesInfo" />
|
|
|
</dv-border-box-13>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -145,14 +142,15 @@ export default {
|
|
|
topDate
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.cancelLoading()
|
|
|
this.getTableData()
|
|
|
+ this.cancelLoading()
|
|
|
},
|
|
|
created() {
|
|
|
-
|
|
|
- },
|
|
|
- beforeDestroy() {
|
|
|
+ setTimeout(() => {
|
|
|
+ this.getTableData()
|
|
|
+ }, 500)
|
|
|
},
|
|
|
+ beforeDestroy() {},
|
|
|
methods: {
|
|
|
async getTableData() {
|
|
|
// console.log('轮询请求接口')
|
|
@@ -177,7 +175,11 @@ export default {
|
|
|
}
|
|
|
this.dayInfoList = retObj.dayList
|
|
|
if (this.dayInfoList.length > 1) {
|
|
|
- this.$set(this.swiperOptionsTop, 'autoplay', this.defSecuritiesAutoplay)
|
|
|
+ this.$set(
|
|
|
+ this.swiperOptionsTop,
|
|
|
+ 'autoplay',
|
|
|
+ this.defSecuritiesAutoplay
|
|
|
+ )
|
|
|
} else {
|
|
|
this.$set(this.swiperOptionsTop, 'autoplay', 0)
|
|
|
}
|