中建四局-进度管理:优化部分功能

This commit is contained in:
Luck-Xiaomi 2022-09-16 09:32:46 +08:00
parent f0e9146b84
commit 48caef1a3d

View File

@ -49,15 +49,20 @@ export default {
methods: { methods: {
/** 查询待办事项列表 */ /** 查询待办事项列表 */
getList() { getList() {
listProgressOfTheTask({ projectSn: this.projectSn, isNoStart: true }).then(res => { if (this.activeTab == 0) {
console.log('查询待办事项列表: ', res); listProgressOfTheTask({ projectSn: this.projectSn, isNoStart: true }).then(res => {
this.todoList = res.result; console.log('查询待办事项列表: ', res);
}) this.todoList = res.result;
})
} else {
}
}, },
/** tab点击事件 */ /** tab点击事件 */
handleTabClick(index) { handleTabClick(index) {
if (this.activeTab == index) return if (this.activeTab == index) return
this.activeTab = index; this.activeTab = index;
this.getList()
}, },
}, },
} }