系统管理模块, 任务列表Scheduling 增加点击回到顶部的效果
This commit is contained in:
parent
b992a4e35d
commit
34369b0544
|
@ -10,7 +10,7 @@
|
|||
</template>
|
||||
<!-- 标题结束 -->
|
||||
<!-- 内容 -->
|
||||
<div class="scheduling-list-content">
|
||||
<div class="scheduling-list-content" ref="listContainer">
|
||||
<div class="scheduling-list-item" v-for="item of schedulingInfo" :key="item.id">
|
||||
<h4 class="title">
|
||||
<span>
|
||||
|
@ -320,6 +320,9 @@ export default {
|
|||
return
|
||||
}
|
||||
this.schedulingInfo = this.scheduleList[date.format(dateFormat)]
|
||||
this.$nextTick(() => {
|
||||
this.$refs.listContainer.scrollTop = 0
|
||||
})
|
||||
},
|
||||
|
||||
// 获取详情
|
||||
|
@ -699,12 +702,14 @@ export default {
|
|||
}
|
||||
&-body {
|
||||
height: calc(100% - 52px);
|
||||
overflow: auto;
|
||||
// overflow: auto;
|
||||
}
|
||||
}
|
||||
}
|
||||
&-content {
|
||||
height: 100%;
|
||||
padding: 0 12px;
|
||||
overflow: auto;
|
||||
}
|
||||
&-item {
|
||||
margin-top: 15px;
|
||||
|
|
Loading…
Reference in New Issue
Block a user