diff --git a/src/views/projectAdmin/zjsj/progress/topRight.vue b/src/views/projectAdmin/zjsj/progress/topRight.vue index 04a85c42..933a055e 100644 --- a/src/views/projectAdmin/zjsj/progress/topRight.vue +++ b/src/views/projectAdmin/zjsj/progress/topRight.vue @@ -49,15 +49,20 @@ export default { methods: { /** 查询待办事项列表 */ getList() { - listProgressOfTheTask({ projectSn: this.projectSn, isNoStart: true }).then(res => { - console.log('查询待办事项列表: ', res); - this.todoList = res.result; - }) + if (this.activeTab == 0) { + listProgressOfTheTask({ projectSn: this.projectSn, isNoStart: true }).then(res => { + console.log('查询待办事项列表: ', res); + this.todoList = res.result; + }) + } else { + + } }, /** tab点击事件 */ handleTabClick(index) { if (this.activeTab == index) return this.activeTab = index; + this.getList() }, }, }