fix: chartbox-preview、savechart回显等

This commit is contained in:
chenjinsong
2020-07-09 19:06:23 +08:00
parent 185f47212f
commit ea8dca30ae
3 changed files with 80 additions and 6 deletions

View File

@@ -421,10 +421,17 @@
}
}
},
getProjectList:function(){
getProjectList:function(reload){
this.$get('project',{pageSize:-1}).then(response=>{
if(response.code == 200){
this.projectList=response.data.list;
if (reload) {
if (this.projectList.length > 0) {
this.currentProject = this.projectList[0];
} else {
this.currentProject = {};
}
}
}
})
},
@@ -856,7 +863,7 @@
}
},
projectListChange:function(n,o){
this.getProjectList();
this.getProjectList(true);
},
currentProject(n, o) {
// this.getModuleList();