|
@@ -26,7 +26,7 @@
|
|
|
v-model="isShowMe"
|
|
|
@change="handleIsShowMeChange"
|
|
|
>只看我的</el-checkbox>
|
|
|
- <div class="list-wrap" v-infinite-scroll="handleLoadMore" :infinite-scroll-immediate="false">
|
|
|
+ <div class="list-wrap" v-infinite-scroll="handleLoadMore" :infinite-scroll-immediate="true">
|
|
|
<draggable
|
|
|
:list="list"
|
|
|
:group="{ name: 'component', pull: 'clone', put: false }"
|
|
@@ -81,7 +81,8 @@ export default {
|
|
|
list:[],
|
|
|
page:1,
|
|
|
pageSize:20,
|
|
|
- finished:false
|
|
|
+ finished:false,
|
|
|
+ loading:false
|
|
|
}
|
|
|
},
|
|
|
created(){
|
|
@@ -135,6 +136,7 @@ export default {
|
|
|
PageSize: this.pageSize,
|
|
|
IsShowMe: this.isShowMe,
|
|
|
};
|
|
|
+ this.loading=true
|
|
|
let res = null;
|
|
|
if (this.activeType === '相关性') {
|
|
|
res = await chartRelevanceApi.searchChart(params);
|
|
@@ -145,6 +147,7 @@ export default {
|
|
|
} else if (this.activeType === '跨品种分析') {
|
|
|
res = await crossVarietyInterface.searchChart(params);
|
|
|
}
|
|
|
+ this.loading=false
|
|
|
|
|
|
if (res.Ret !== 200) return;
|
|
|
const arr = res.Data.List || [];
|
|
@@ -156,7 +159,7 @@ export default {
|
|
|
},
|
|
|
|
|
|
handleLoadMore(){
|
|
|
- if(this.finished) return
|
|
|
+ if(this.finished||this.loading) return
|
|
|
this.page++
|
|
|
this.getChartList()
|
|
|
}
|