调整代码

This commit is contained in:
zyy 2020-09-24 19:04:33 +08:00
parent 88ec572564
commit 7fb7c0a819

View File

@ -272,7 +272,6 @@ export default {
this.activeTrains.push(groupNumber); this.activeTrains.push(groupNumber);
}); });
} }
// console.log(this.activeTrains, '=====');
this.filterNode(); this.filterNode();
// if (this.$refs.tree) { // if (this.$refs.tree) {
// this.$refs.tree.filter(this.queryMember); // this.$refs.tree.filter(this.queryMember);
@ -319,7 +318,7 @@ export default {
}, },
'$store.state.training.memberList': function (val) { '$store.state.training.memberList': function (val) {
if (val && val.length) { if (val && val.length) {
this.memberData = JSON.parse(JSON.stringify(this.$store.state.training.memberData)); this.memberData = this.$store.state.training.memberData;
const dispatcherList = []; const dispatcherList = [];
const electricDispatcherList = []; const electricDispatcherList = [];
const depotDispatcherList = []; const depotDispatcherList = [];
@ -668,7 +667,6 @@ export default {
const temMaintainerList = []; const temMaintainerList = [];
const temDriverList = []; const temDriverList = [];
const temDepotDispatcherList = []; const temDepotDispatcherList = [];
console.log(this.$store.state.training.memberList);
this.$store.state.training.memberList.forEach(item =>{ this.$store.state.training.memberList.forEach(item =>{
switch (item.type) { switch (item.type) {
case 'DISPATCHER': case 'DISPATCHER':