|
@@ -34,7 +34,7 @@
|
|
|
<div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="container" style="margin: 15px auto">
|
|
|
+ <div class="container" style="margin: 15px auto" v-loading="loading">
|
|
|
<el-row>
|
|
|
<el-col :span="18" class="project-task">
|
|
|
<CrowdTool
|
|
@@ -144,6 +144,15 @@
|
|
|
})
|
|
|
}
|
|
|
},
|
|
|
+
|
|
|
+ //显示页面加载画面
|
|
|
+ showLoading() {
|
|
|
+ this.loading = true
|
|
|
+ },
|
|
|
+ //隐藏页面加载画面
|
|
|
+ hideLoading() {
|
|
|
+ this.loading = false
|
|
|
+ },
|
|
|
gotoHome(){
|
|
|
this.$router.push('/home');
|
|
|
},
|
|
@@ -162,6 +171,7 @@
|
|
|
})
|
|
|
},
|
|
|
loadTechnologyArticles(index){
|
|
|
+ this.showLoading()
|
|
|
let url = '/api/technical/articles';
|
|
|
this.activePage = index;
|
|
|
let params = {
|
|
@@ -181,7 +191,8 @@
|
|
|
.then(res=>{
|
|
|
let { technicalArticlesPage , publicationsPage ,toolVOPage,taskVOS} = res.data;
|
|
|
this.techArticleList = technicalArticlesPage || publicationsPage || toolVOPage || taskVOS;
|
|
|
- console.log(res.data)
|
|
|
+ // console.log(res.data)
|
|
|
+ this.hideLoading()
|
|
|
// if(res.data.technicalArticlesPage){
|
|
|
// this.techArticleList = res.data.technicalArticlesPage;
|
|
|
// }else if(res.data.publicationsPage){
|