feat:时间选择&定时刷新抽取为组件

This commit is contained in:
wangwenrui
2020-04-24 12:21:22 +08:00
parent 2638f45934
commit a74795ff2a
7 changed files with 365 additions and 295 deletions

View File

@@ -457,15 +457,18 @@
// }
},
detailProjectInfo:function(event,project){
console.log(event)
if(event){
this.pageType='project'
if(project){
this.currentProject=project;
this.$store.commit('setProject',this.currentProject)
// this.$store.commit('setProject',this.currentProject)
}
this.currentModule={};
this.currentProjectTitle=this.currentProject.name+"-"+this.currentProject.id
// this.$refs.projectLeft.setActiveNames([]);
}else{
this.currentProjectTitle=this.currentProject.name+"-"+this.currentProject.id
}
},
getAllModuleList:function(){
@@ -744,7 +747,7 @@
if (pageSize) {
this.endpointPageObj.pageSize = pageSize
}
this.detailProjectInfo({});
this.detailProjectInfo();
// setTimeout(()=>{
// this.getEndpointTableData();
// }, 200);
@@ -794,7 +797,7 @@
currentProjectChange:{
handler(n, o) {
this.currentProject = Object.assign({}, n);
this.detailProjectInfo({});
this.detailProjectInfo();
}
},
currentProject(n, o) {