调用接口时机修改

This commit is contained in:
mengxiaolong
2021-02-08 16:31:32 +08:00
parent ae7f63f2cf
commit c99fee37c2

View File

@@ -92,7 +92,12 @@ export default {
// 切换部
onDeptChanged() {
this.pageNum = 1
this.groupIndex = 0
// groupIndex为0时切换部不会触发groupChange事件, 手动调一下接口
if (this.groupIndex === 0) {
this.getNewcomers()
} else {
this.groupIndex = 0
}
this.groups = this.dept.subBranchGroupLst
},
// 切换组