|
@@ -102,7 +102,7 @@
|
|
<div class="flex-column">车牌号码</div>
|
|
<div class="flex-column">车牌号码</div>
|
|
<div class="flex-column">派车单数</div>
|
|
<div class="flex-column">派车单数</div>
|
|
</div>
|
|
</div>
|
|
- <div class="dataBody">
|
|
|
|
|
|
+ <div class="dataBody" ref="scrollContainer" style="padding-bottom: 140px">
|
|
<div class="flex-row" style="margin-bottom: 10px" v-for="(item,index) in manageLastHalf.list" :key="index" @click="choose()">
|
|
<div class="flex-row" style="margin-bottom: 10px" v-for="(item,index) in manageLastHalf.list" :key="index" @click="choose()">
|
|
<div class="flex-column" style="width: 50%">{{item.appName}}</div>
|
|
<div class="flex-column" style="width: 50%">{{item.appName}}</div>
|
|
<div class="flex-column">{{item.vechileNum}}</div>
|
|
<div class="flex-column">{{item.vechileNum}}</div>
|
|
@@ -403,9 +403,21 @@ export default {
|
|
},
|
|
},
|
|
created() {},
|
|
created() {},
|
|
destroyed() {},
|
|
destroyed() {},
|
|
- beforeDestroy() {},
|
|
|
|
- mounted() {},
|
|
|
|
- methods: {},
|
|
|
|
|
|
+ beforeDestroy() {clearTimeout(this.scrollTimeout);},
|
|
|
|
+ mounted() {this.startAutoScroll()},
|
|
|
|
+ methods: {
|
|
|
|
+ startAutoScroll() {
|
|
|
|
+ const scrollContainer = this.$refs.scrollContainer;
|
|
|
|
+ const scroll = () => {
|
|
|
|
+ scrollContainer.scrollTop += 1;
|
|
|
|
+ if (scrollContainer.scrollTop >= scrollContainer.scrollHeight - scrollContainer.clientHeight) {
|
|
|
|
+ scrollContainer.scrollTop = 0;
|
|
|
|
+ }
|
|
|
|
+ this.scrollTimeout = setTimeout(scroll, 30);
|
|
|
|
+ };
|
|
|
|
+ this.scrollTimeout = setTimeout(scroll, 30);
|
|
|
|
+ },
|
|
|
|
+ },
|
|
};
|
|
};
|
|
</script>
|
|
</script>
|
|
|
|
|
|
@@ -470,8 +482,8 @@ export default {
|
|
|
|
|
|
.dataBody{
|
|
.dataBody{
|
|
width:100%;
|
|
width:100%;
|
|
- height:250px;
|
|
|
|
- overflow: auto
|
|
|
|
|
|
+ height:150px;
|
|
|
|
+ overflow: auto;
|
|
}
|
|
}
|
|
|
|
|
|
.dataBody::-webkit-scrollbar {
|
|
.dataBody::-webkit-scrollbar {
|