提交 5d3da792 authored 作者: Ma's avatar Ma

提交代码 优化切换年份数据的展示

上级 1c651387
......@@ -45,7 +45,8 @@
<!-- right 县级-->
<div class="rightCounty" v-if="carouselShow">
<el-carousel :height="domHeight" trigger="click" :loop="true" :interval="4000"
direction="vertical" indicator-position="none" :autoplay="countyList.length > 3 ? true:false">
direction="vertical" indicator-position="none"
:autoplay="countyList.length > 3 ? true:false">
<el-carousel-item v-for="num in this.getNum(countyList.length)" :key="num">
<div class="carouselBox">
<el-col v-for="(item,index) in getColData(countyList,num)" :key="index">
......@@ -122,6 +123,15 @@ export default {
mounted() {
this.domHeight = this.$refs.rankingDiv.clientHeight - 18 + 'px'
},
watch: {
curDataType(val) {
if (val == "2022One" || val == "2022Two ") {
this.$nextTick(() => {
this.radioChange();
})
}
}
},
created() {
// let indexs = [1, 2, 3, 4, 5];
// let newData = {};
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论