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

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
}];
this.initCommonMemberList();
this.$nextTick(() => {
if (this.$refs.tree) {
this.$refs.tree.filter(this.queryMember);
}
});
}
}
},
@ -374,8 +379,12 @@ export default {
this.drawer = false;
} else {
this.drawer = true;
this.$nextTick(() => {
if (this.$refs.tree) {
this.$refs.tree.filter(this.queryMember);
}
});
}
},
setSetting(data) {
this.form = data;

View File

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