调整代码

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

View File

@ -45,7 +45,7 @@
<div v-for="(item, index) in treeData" :key="index" class="proper_box">
<div class="proper_title">{{ item.label }}</div>
<div v-for="(data, i) in item.children" :key="i">
<div v-if="data.show && item.id == 'driver'" class="proper_content_box" :class="{'active':data.active}" @click="handleCheckChange(data)">{{ data.label + (data.userId? '(' + (simulationUsers[data.userId]||{}).nickName + ')': '') }}</div>
<div v-if="data.show && item.id == 'driver'" class="proper_content_box" :class="{'active': data.active}" @click="handleCheckChange(data)">{{ data.label + (data.userId? '(' + (simulationUsers[data.userId]||{}).nickName + ')': '') }}</div>
<div v-if="item.id != 'driver'" class="proper_content_box" :class="{'active':data.active}" @click="handleCheckChange(data)">{{ data.label + (data.userId? '(' + (simulationUsers[data.userId]||{}).nickName + ')': '') }}</div>
<div v-if="item.loading" class="mask_loading">
<i class="el-icon-loading" style="margin-bottom: 4px;" />
@ -272,7 +272,6 @@ export default {
this.activeTrains.push(groupNumber);
});
}
// console.log(this.activeTrains, '=====');
this.filterNode();
// if (this.$refs.tree) {
// this.$refs.tree.filter(this.queryMember);
@ -319,7 +318,7 @@ export default {
},
'$store.state.training.memberList': function (val) {
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 electricDispatcherList = [];
const depotDispatcherList = [];
@ -668,7 +667,6 @@ export default {
const temMaintainerList = [];
const temDriverList = [];
const temDepotDispatcherList = [];
console.log(this.$store.state.training.memberList);
this.$store.state.training.memberList.forEach(item =>{
switch (item.type) {
case 'DISPATCHER':