调整司机角色在添加仿真成员是未过滤

This commit is contained in:
fan 2020-08-03 19:00:42 +08:00
parent fc64c99c8a
commit f89d29ad59
2 changed files with 19 additions and 4 deletions

View File

@ -361,6 +361,11 @@ export default {
children: depotDispatcherList children: depotDispatcherList
}]; }];
this.initCommonMemberList(); this.initCommonMemberList();
this.$nextTick(() => {
if (this.$refs.tree) {
this.$refs.tree.filter(this.queryMember);
}
});
} }
} }
}, },
@ -374,8 +379,12 @@ export default {
this.drawer = false; this.drawer = false;
} else { } else {
this.drawer = true; this.drawer = true;
this.$nextTick(() => {
if (this.$refs.tree) {
this.$refs.tree.filter(this.queryMember); this.$refs.tree.filter(this.queryMember);
} }
});
}
}, },
setSetting(data) { setSetting(data) {
this.form = data; this.form = data;

View File

@ -200,10 +200,16 @@ export default {
label: '通号', label: '通号',
id: 'maintainer', id: 'maintainer',
children: maintainerList children: maintainerList
}, {
label: '车辆段',
id: 'depotDispatcher',
children: depotDispatcherList
}]; }];
if (depotDispatcherList) { this.$nextTick(() => {
this.treeData.push({label: '车辆段', id: 'depotDispatcher', children: depotDispatcherList}); if (this.$refs.tree) {
this.$refs.tree.filter(this.queryMember);
} }
});
} }
}, },
'$store.state.map.activeTrainListChange': function () { '$store.state.map.activeTrainListChange': function () {