调整代码
This commit is contained in:
parent
88ec572564
commit
7fb7c0a819
@ -45,7 +45,7 @@
|
|||||||
<div v-for="(item, index) in treeData" :key="index" class="proper_box">
|
<div v-for="(item, index) in treeData" :key="index" class="proper_box">
|
||||||
<div class="proper_title">{{ item.label }}</div>
|
<div class="proper_title">{{ item.label }}</div>
|
||||||
<div v-for="(data, i) in item.children" :key="i">
|
<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.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">
|
<div v-if="item.loading" class="mask_loading">
|
||||||
<i class="el-icon-loading" style="margin-bottom: 4px;" />
|
<i class="el-icon-loading" style="margin-bottom: 4px;" />
|
||||||
@ -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':
|
||||||
|
Loading…
Reference in New Issue
Block a user