|
|
@@ -312,7 +312,7 @@ export default { |
|
|
|
this.cnName = JSON.parse(sessionStorage.user).userName; |
|
|
|
//this.setDateTime(); |
|
|
|
//setInterval(this.setDateTime, 1000); |
|
|
|
this.listProjects(); |
|
|
|
this.listProjects(true); |
|
|
|
// setInterval(this.listProjects, 1000 * 60); |
|
|
|
}, |
|
|
|
beforeDestroy() { |
|
|
@@ -419,11 +419,13 @@ export default { |
|
|
|
// console.log(error); |
|
|
|
// }); |
|
|
|
// }, |
|
|
|
async listProjects(){ |
|
|
|
async listProjects(runTick){ |
|
|
|
const projectListRes = await prjService.queryProjectsByUserId(this.$store.state.accountId); |
|
|
|
this.projList=projectListRes.Data; |
|
|
|
this.projectsWithPage(); |
|
|
|
this.fetchTickIns = setTimeout(() => this.listProjects(), 1000 * 60); |
|
|
|
if(runTick) { |
|
|
|
this.fetchTickIns = setTimeout(() => this.listProjects(true), 1000 * 60); |
|
|
|
} |
|
|
|
}, |
|
|
|
/** |
|
|
|
* 设置分页项目数据 |
|
|
|