仿真角色统一

This commit is contained in:
dong 2023-05-24 18:34:38 +08:00
parent 8256758a7a
commit 9426ece04f
5 changed files with 144 additions and 253 deletions

View File

@ -77,29 +77,29 @@ export default {
{ label: '车务段段长', value: 'TRAIN_MASTER', enLabel: 'Train_Master' } { label: '车务段段长', value: 'TRAIN_MASTER', enLabel: 'Train_Master' }
], ],
roleTypeList: [ roleTypeList: [
{label: '行调', value: 'DISPATCHER'}, {label: 'NCC调度', value: 'NCC_DISPATCHER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
{label: 'NCC调度', value: 'NCC_DISPATCHER'}, {label: '信息调度', value: 'OCC_DISPATCHER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
{label: '信息调度', value: 'OCC_DISPATCHER'}, {label: '行调', value: 'DISPATCHER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
{label: '行值', value: 'STATION_SUPERVISOR'}, {label: '行值', value: 'STATION_SUPERVISOR', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
{label: '司机', value: 'DRIVER'}, {label: '司机', value: 'DRIVER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
{label: '通号', value: 'MAINTAINER'}, {label: '通号', value: 'MAINTAINER', simTypeList: ['METRO', 'RAILWAY', 'EMERGENCY']},
{label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER'}, {label: '车辆段/停车场调度', value: 'DEPOT_DISPATCHER', simTypeList: ['METRO']},
{label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING'}, {label: '车辆段/停车场信号楼', value: 'SIGNAL_BUILDING', simTypeList: ['METRO']},
{label: '车站助理', value: 'STATION_ASSISTANT'}, {label: '车站助理', value: 'STATION_ASSISTANT', simTypeList: ['RAILWAY']},
{label: '车站站长', value: 'STATION_MASTER'}, {label: '车站站长', value: 'STATION_MASTER', simTypeList: ['RAILWAY']},
{label: '车站信号员', value: 'STATION_SIGNALER'}, {label: '车站信号员', value: 'STATION_SIGNALER', simTypeList: ['RAILWAY']},
{label: '车站客运员', value: 'STATION_PASSENGER'}, {label: '车站客运员', value: 'STATION_PASSENGER', simTypeList: ['RAILWAY']},
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'}, {label: '车站扳道员', value: 'STATION_SWITCH_MAN', simTypeList: ['RAILWAY']},
{label: '车站引导员', value: 'STATION_FACILITATOR'}, {label: '车站引导员', value: 'STATION_FACILITATOR', simTypeList: ['RAILWAY']},
{label: '车站工务工', value: 'STATION_WORKER'}, {label: '车站工务工', value: 'STATION_WORKER', simTypeList: ['RAILWAY']},
{label: '车务段段长', value: 'TRAIN_MASTER'}, {label: '车务段段长', value: 'TRAIN_MASTER', simTypeList: ['METRO']},
{label: '工电调度', value: 'ELECTRIC_DISPATCHER'}, {label: '工电调度', value: 'ELECTRIC_DISPATCHER', simTypeList: ['METRO']},
{ label: '电力工务', value: 'STATION_ELECTRIC_WORKER'}, {label: '电力工务', value: 'STATION_ELECTRIC_WORKER', simTypeList: ['METRO']},
{label: '上级部分', value: 'PARENT_DEPARTMENT'}, {label: '上级部分', value: 'PARENT_DEPARTMENT', simTypeList: ['METRO']},
{label: '派班员', value: 'SCHEDULING'}, {label: '派班员', value: 'SCHEDULING', simTypeList: ['METRO']},
{label: '设备管理员', value: 'DEVICE_MANAGER'}, {label: '设备管理员', value: 'DEVICE_MANAGER', simTypeList: ['RAILWAY']},
{label: '值班主任', value: 'SHIFT_MANAGER'}, {label: '值班主任', value: 'SHIFT_MANAGER', simTypeList: ['METRO']},
{label: '环控调度', value: 'ENVIRONMENT_DISPATCHER'} {label: '环控调度', value: 'ENVIRONMENT_DISPATCHER', simTypeList: ['METRO']}
], ],
releaseReview: [ releaseReview: [
{ enlabel: 'Unpublished', label: '未发布', value: '0' }, { enlabel: 'Unpublished', label: '未发布', value: '0' },

View File

@ -49,7 +49,8 @@ const training = {
domConfig: {}, // 线路功能前端配置项 domConfig: {}, // 线路功能前端配置项
simulationUserType: '', // 仿真用户角色 simulationUserType: '', // 仿真用户角色
simulationCreator: false, simulationCreator: false,
chatBoxMin: true // 聊天框最小化 chatBoxMin: true, // 聊天框最小化
memberTreeData: [] // 仿真成员树数据
}, },
getters: { getters: {
@ -324,6 +325,9 @@ const training = {
}, },
setChatBoxMin: (state, chatBoxMin) => { setChatBoxMin: (state, chatBoxMin) => {
state.chatBoxMin = chatBoxMin; state.chatBoxMin = chatBoxMin;
},
setMemberTreeData: (state, memberTreeData) => {
state.memberTreeData = memberTreeData;
} }
}, },
@ -660,6 +664,9 @@ const training = {
}, },
setChatBoxMin: ({ commit }, chatBoxMin) => { setChatBoxMin: ({ commit }, chatBoxMin) => {
commit('setChatBoxMin', chatBoxMin); commit('setChatBoxMin', chatBoxMin);
},
setMemberTreeData: ({ commit }, memberTreeData) => {
commit('setMemberTreeData', memberTreeData);
} }
} }
}; };

View File

@ -43,6 +43,7 @@
<script> <script>
import { addSimulationMember } from '@/api/jointSimulation'; import { addSimulationMember } from '@/api/jointSimulation';
import ConstConfig from '@/scripts/ConstConfig';
export default { export default {
name: 'AddMember', name: 'AddMember',
props: { props: {
@ -78,28 +79,30 @@ export default {
'STATION_FACILITATOR', 'STATION_FACILITATOR',
'STATION_WORKER', 'STATION_WORKER',
'DEVICE_MANAGER' 'DEVICE_MANAGER'
],
typeList: [
{label: 'NCC调度', value: 'NCC_DISPATCHER'},
{label: '信息调度', value: 'OCC_DISPATCHER'},
{label: '行调', value: 'DISPATCHER'},
{label: '通号', value: 'MAINTAINER'},
{label: '车站值班员', value: 'STATION_SUPERVISOR'},
{label: '车站助理', value: 'STATION_ASSISTANT'},
{label: '车站站长', value: 'STATION_MASTER'},
{label: '车站信号员', value: 'STATION_SIGNALER'},
{label: '车站客运员', value: 'STATION_PASSENGER'},
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'},
{label: '车站引导员', value: 'STATION_FACILITATOR'},
{label: '车站工务工', value: 'STATION_WORKER'},
{label: '设备管理员', value: 'DEVICE_MANAGER'},
{label: '车务段段长', value: 'TRAIN_MASTER'}
] ]
}; };
}, },
computed: { computed: {
title() { title() {
return '添加仿真角色成员'; return '添加仿真角色成员';
},
simType() {
return this.$route.query.simType || 'METRO';
},
typeList() {
const list = [];
ConstConfig.ConstSelect.roleTypeList.forEach(item => {
if (item.simTypeList.includes(this.simType)) {
const obj = {
...item
};
if (item.value == 'STATION_SUPERVISOR' && this.simType == 'RAILWAY') {
obj.label = '车站值班员';
}
list.push(obj);
}
});
return list;
} }
}, },
methods: { methods: {

View File

@ -58,6 +58,7 @@ import eMembers from './e-members';
import { EventBus } from '@/scripts/event-bus'; import { EventBus } from '@/scripts/event-bus';
import { assignUsersPlayRoles } from '@/api/jointSimulation'; import { assignUsersPlayRoles } from '@/api/jointSimulation';
import AddMember from './addMember'; import AddMember from './addMember';
import ConstConfig from '@/scripts/ConstConfig';
export default { export default {
name: 'MembersManage', name: 'MembersManage',
components: { components: {
@ -159,6 +160,9 @@ export default {
group() { group() {
return this.$route.query.group; return this.$route.query.group;
}, },
simType() {
return this.$route.query.simType || 'METRO';
},
userId() { userId() {
return this.$store.state.user ? this.$store.state.user.id : ''; return this.$store.state.user ? this.$store.state.user.id : '';
}, },
@ -198,6 +202,12 @@ export default {
const deviceManagerList = []; const deviceManagerList = [];
const trainMasterList = []; const trainMasterList = [];
const stationElectricWorkerList = []; const stationElectricWorkerList = [];
const signalBuildingList = [];
const shiftManagerList = [];
const environmentDispatherList = [];
const parentDepartmentList = [];
const schedulingList = [];
const t = this.simType == 'METRO' ? '行值-' : '值班员-';
val.forEach(item => { val.forEach(item => {
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode); const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
switch (item.type) { switch (item.type) {
@ -214,15 +224,19 @@ export default {
dispatcherList.push(this.memberData[item.id]); dispatcherList.push(this.memberData[item.id]);
break; break;
case 'ELECTRIC_DISPATCHER': case 'ELECTRIC_DISPATCHER':
this.memberData[item.id].labelName = '调度' + (item.name || ''); this.memberData[item.id].labelName = '电调度' + (item.name || '');
electricDispatcherList.push(this.memberData[item.id]); electricDispatcherList.push(this.memberData[item.id]);
break; break;
case 'DEPOT_DISPATCHER': case 'DEPOT_DISPATCHER':
this.memberData[item.id].labelName = '信号楼-' + device.name + (item.name || ''); this.memberData[item.id].labelName = '车辆段调度-' + device.name + (item.name || '');
depotDispatcherList.push(this.memberData[item.id]); depotDispatcherList.push(this.memberData[item.id]);
break; break;
case 'SIGNAL_BUILDING':
this.memberData[item.id].labelName = '信号楼-' + device.name + (item.name || '');
signalBuildingList.push(this.memberData[item.id]);
break;
case 'STATION_SUPERVISOR': case 'STATION_SUPERVISOR':
this.memberData[item.id].labelName = '值班员-' + device.name + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = t + device.name + (item.name ? `-${item.name }` : '');
stationSupervisorList.push(this.memberData[item.id]); stationSupervisorList.push(this.memberData[item.id]);
break; break;
case 'DRIVER': case 'DRIVER':
@ -270,107 +284,176 @@ export default {
deviceManagerList.push(this.memberData[item.id]); deviceManagerList.push(this.memberData[item.id]);
break; break;
case 'TRAIN_MASTER': case 'TRAIN_MASTER':
// device.name;
this.memberData[item.id].labelName = '车务段段长-' + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = '车务段段长-' + (item.name ? `-${item.name }` : '');
trainMasterList.push(this.memberData[item.id]); trainMasterList.push(this.memberData[item.id]);
break; break;
case 'SHIFT_MANAGER':
this.memberData[item.id].labelName = '值班主任-' + (item.name ? `-${item.name }` : '');
shiftManagerList.push(this.memberData[item.id]);
break;
case 'ENVIRONMENT_DISPATCHER':
this.memberData[item.id].labelName = '环控调度-' + (item.name ? `-${item.name }` : '');
environmentDispatherList.push(this.memberData[item.id]);
break;
case 'PARENT_DEPARTMENT': case 'PARENT_DEPARTMENT':
this.memberData[item.id].labelName = '上级部门' + (item.name ? `-${item.name }` : ''); this.memberData[item.id].labelName = '上级部门' + (item.name ? `-${item.name }` : '');
parentDepartmentList.push(this.memberData[item.id]);
break;
case 'SCHEDULING':
this.memberData[item.id].labelName = '派班员' + (item.name ? `-${item.name }` : '');
schedulingList.push(this.memberData[item.id]);
break; break;
case 'STATION_ELECTRIC_WORKER': case 'STATION_ELECTRIC_WORKER':
this.memberData[item.id].labelName = '电力工务' + (item.name || ''); this.memberData[item.id].labelName = '电力工务' + (item.name || '');
stationElectricWorkerList.push(this.memberData[item.id]); stationElectricWorkerList.push(this.memberData[item.id]);
break; break;
// DEVICE_MANAGER:'' deviceManager
} }
}); });
this.treeData = [{ this.treeData = [{
labelName: 'NCC调度', labelName: 'NCC调度',
id: 'nccDispatcher', id: 'nccDispatcher',
memberType: 'NCC_DISPATCHER',
children: nccDispatcherList children: nccDispatcherList
}, { }, {
labelName: '信息调度', labelName: '信息调度',
id: 'occDispatcher', id: 'occDispatcher',
memberType: 'OCC_DISPATCHER',
children: occDispatcherList children: occDispatcherList
}, { }, {
labelName: '行调', labelName: '行调',
id: 'dispatcher', id: 'dispatcher',
memberType: 'DISPATCHER',
children: dispatcherList children: dispatcherList
}, { }, {
labelName: '车站值班员', labelName: this.simType == 'METRO' ? '行值' : '车站值班员',
id: 'stationSupervisor', id: 'stationSupervisor',
memberType: 'STATION_SUPERVISOR',
children: stationSupervisorList children: stationSupervisorList
}, { }, {
labelName: '司机', labelName: '司机',
id: 'driver', id: 'driver',
memberType: 'DRIVER',
children: driverList children: driverList
}, { }, {
labelName: '通号', labelName: '通号',
id: 'maintainer', id: 'maintainer',
memberType: 'MAINTAINER',
children: maintainerList children: maintainerList
}, { }, {
labelName: '车辆段信号楼', labelName: '车辆段调度',
id: 'depotDispatcher', id: 'depotDispatcher',
memberType: 'DEPOT_DISPATCHER',
children: depotDispatcherList children: depotDispatcherList
}, { }, {
labelName: '电力调度', labelName: '车辆段信号楼',
id: 'signalBuilding',
memberType: 'SIGNAL_BUILDING',
children: signalBuildingList
}, {
labelName: '工电调度',
id: 'electricDispatcher', id: 'electricDispatcher',
memberType: 'ELECTRIC_DISPATCHER',
children: electricDispatcherList children: electricDispatcherList
}, { }, {
labelName: 'CTC操作员', labelName: 'CTC操作员',
id: 'ctcOperator', id: 'ctcOperator',
memberType: 'RAIL_CTC',
children: ctcOperatorList children: ctcOperatorList
}, { }, {
labelName: '车站助理', labelName: '车站助理',
id: 'stationAssistant', id: 'stationAssistant',
memberType: 'STATION_ASSISTANT',
children: stationAssistantList children: stationAssistantList
}, },
{ {
labelName: '车站站长', labelName: '车站站长',
id: 'stationMaster', id: 'stationMaster',
memberType: 'STATION_MASTER',
children: stationMasterList children: stationMasterList
}, },
{ {
labelName: '车站信号员', labelName: '车站信号员',
id: 'stationSignaler', id: 'stationSignaler',
memberType: 'STATION_SIGNALER',
children: stationSignalerList children: stationSignalerList
}, },
{ {
labelName: '车站客运员', labelName: '车站客运员',
id: 'stationPassenger', id: 'stationPassenger',
memberType: 'STATION_PASSENGER',
children: stationPassengerList children: stationPassengerList
}, },
{ {
labelName: '车站扳道员', labelName: '车站扳道员',
id: 'stationSwitchMan', id: 'stationSwitchMan',
memberType: 'STATION_SWITCH_MAN',
children: stationSwitchManList children: stationSwitchManList
}, },
{ {
labelName: '车站引导员', labelName: '车站引导员',
id: 'stationFacilitator', id: 'stationFacilitator',
memberType: 'STATION_FACILITATOR',
children: stationFacilitatorList children: stationFacilitatorList
}, },
{ {
labelName: '车站工务工', labelName: '车站工务工',
id: 'stationWorker', id: 'stationWorker',
memberType: 'STATION_WORKER',
children: stationWorkerList children: stationWorkerList
}, },
{ {
labelName: '设备管理员', labelName: '设备管理员',
id: 'deviceManager', id: 'deviceManager',
memberType: 'DEVICE_MANAGER',
children: deviceManagerList children: deviceManagerList
}, },
{ {
labelName: '车务段段长 ', labelName: '车务段段长 ',
id: 'trainMaster', id: 'trainMaster',
memberType: 'TRAIN_MASTER',
children: trainMasterList children: trainMasterList
}, },
{
labelName: '值班主任 ',
id: 'shiftManager',
memberType: 'SHIFT_MANAGER',
children: shiftManagerList
},
{
labelName: '环控调度 ',
id: 'environmentDispather',
memberType: 'ENVIRONMENT_DISPATCHER',
children: environmentDispatherList
},
{ {
labelName: '电力工务 ', labelName: '电力工务 ',
id: 'stationElectricWorker', id: 'stationElectricWorker',
memberType: 'STATION_ELECTRIC_WORKER',
children: stationElectricWorkerList children: stationElectricWorkerList
},
{
labelName: '上级部门 ',
id: 'parentDepartment',
memberType: 'PARENT_DEPARTMENT',
children: parentDepartmentList
},
{
labelName: '派班员 ',
id: 'scheduling',
memberType: 'SCHEDULING',
children: schedulingList
} }
]; ];
const sType = [];
ConstConfig.ConstSelect.roleTypeList.forEach(ii => {
if (ii.simTypeList.includes(this.simType)) {
sType.push(ii.value);
}
});
this.treeData = this.treeData.filter(ii => {
return sType.includes(ii.memberType);
});
this.$store.dispatch('training/setMemberTreeData', this.treeData);
EventBus.$emit('trainTicketMember', [...stationSupervisorList, ...stationAssistantList]); EventBus.$emit('trainTicketMember', [...stationSupervisorList, ...stationAssistantList]);
this.$nextTick(() => { this.$nextTick(() => {
if (this.$refs.tree) { if (this.$refs.tree) {

View File

@ -111,7 +111,6 @@ export default {
groupList: [], groupList: [],
id: 0, // id id: 0, // id
privateChatId: '', // id privateChatId: '', // id
memberTreeData: [],
menu: [] // menu: [] //
}; };
}, },
@ -162,6 +161,9 @@ export default {
} }
} }
return name; return name;
},
memberTreeData() {
return this.$store.state.training.memberTreeData;
} }
}, },
watch: { watch: {
@ -249,15 +251,11 @@ export default {
} }
}, },
immediate: true immediate: true
},
memberList () {
this.getTreeData();
} }
}, },
mounted() { mounted() {
}, },
created() { created() {
this.getTreeData();
this.getBaseInfo(); this.getBaseInfo();
}, },
beforeDestroy() { beforeDestroy() {
@ -399,206 +397,6 @@ export default {
this.$store.dispatch('socket/resetConversationGroup'); this.$store.dispatch('socket/resetConversationGroup');
this.groupList = []; this.groupList = [];
}, },
getTreeData() {
const val = this.memberList;
if (val && val.length) {
const dispatcherList = [];
const nccDispatcherList = [];
const occDispatcherList = [];
const electricDispatcherList = [];
const depotDispatcherList = [];
const stationSupervisorList = [];
const driverList = [];
const maintainerList = [];
const ctcOperatorList = [];
const stationAssistantList = [];
const stationMasterList = [];
const stationSignalerList = [];
const stationPassengerList = [];
const stationSwitchManList = [];
const stationFacilitatorList = [];
const stationWorkerList = [];
const deviceManagerList = [];
const trainMasterList = [];
const stationElectricWorkerList = [];
val.forEach(item => {
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
switch (item.type) {
case 'NCC_DISPATCHER':
this.memberData[item.id].labelName = 'NCC调度' + (item.name || '');
nccDispatcherList.push(this.memberData[item.id]);
break;
case 'OCC_DISPATCHER':
this.memberData[item.id].labelName = item.name || '';
occDispatcherList.push(this.memberData[item.id]);
break;
case 'DISPATCHER':
this.memberData[item.id].labelName = '行调' + (item.name || '');
dispatcherList.push(this.memberData[item.id]);
break;
case 'ELECTRIC_DISPATCHER':
this.memberData[item.id].labelName = '电力调度' + (item.name || '');
electricDispatcherList.push(this.memberData[item.id]);
break;
case 'DEPOT_DISPATCHER':
this.memberData[item.id].labelName = '信号楼-' + `${ device ? device.name : '' }` + (item.name || '');
depotDispatcherList.push(this.memberData[item.id]);
break;
case 'STATION_SUPERVISOR':
this.memberData[item.id].labelName = '值班员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationSupervisorList.push(this.memberData[item.id]);
break;
case 'DRIVER':
this.memberData[item.id].labelName = '司机-列车' + item.deviceCode;
driverList.push(this.memberData[item.id]);
break;
case 'MAINTAINER':
this.memberData[item.id].labelName = '通号' + (item.name || '');
maintainerList.push(this.memberData[item.id]);
break;
case 'RAIL_CTC':
this.memberData[item.id].labelName = 'CTC操作员' + `${ device ? device.name : '' }`;
ctcOperatorList.push(this.memberData[item.id]);
break;
case 'STATION_ASSISTANT':
this.memberData[item.id].labelName = '车站助理-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationAssistantList.push(this.memberData[item.id]);
break;
case 'STATION_MASTER':
this.memberData[item.id].labelName = '车站站长-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationMasterList.push(this.memberData[item.id]);
break;
case 'STATION_SIGNALER':
this.memberData[item.id].labelName = '车站信号员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationSignalerList.push(this.memberData[item.id]);
break;
case 'STATION_PASSENGER':
this.memberData[item.id].labelName = '车站客运员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationPassengerList.push(this.memberData[item.id]);
break;
case 'STATION_SWITCH_MAN':
this.memberData[item.id].labelName = '车站扳道员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationSwitchManList.push(this.memberData[item.id]);
break;
case 'STATION_FACILITATOR':
this.memberData[item.id].labelName = '车站引导员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationFacilitatorList.push(this.memberData[item.id]);
break;
case 'STATION_WORKER':
this.memberData[item.id].labelName = '车站工务工-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
stationWorkerList.push(this.memberData[item.id]);
break;
case 'DEVICE_MANAGER':
this.memberData[item.id].labelName = '设备管理员-' + `${ device ? device.name : '' }` + (item.name ? `-${item.name }` : '');
deviceManagerList.push(this.memberData[item.id]);
break;
case 'TRAIN_MASTER':
this.memberData[item.id].labelName = '车务段段长-' + (item.name ? `-${item.name }` : '');
trainMasterList.push(this.memberData[item.id]);
break;
case 'PARENT_DEPARTMENT':
this.memberData[item.id].labelName = '上级部门' + (item.name ? `-${item.name }` : '');
break;
case 'STATION_ELECTRIC_WORKER':
this.memberData[item.id].labelName = '电力工务' + (item.name || '');
stationElectricWorkerList.push(this.memberData[item.id]);
break;
}
});
this.memberTreeData = [{
labelName: 'NCC调度',
id: 'nccDispatcher',
children: nccDispatcherList
}, {
labelName: '信息调度',
id: 'occDispatcher',
children: occDispatcherList
}, {
labelName: '行调',
id: 'dispatcher',
children: dispatcherList
}, {
labelName: '车站值班员',
id: 'stationSupervisor',
children: stationSupervisorList
}, {
labelName: '司机',
id: 'driver',
children: driverList
}, {
labelName: '通号',
id: 'maintainer',
children: maintainerList
}, {
labelName: '车辆段信号楼',
id: 'depotDispatcher',
children: depotDispatcherList
}, {
labelName: '电力调度',
id: 'electricDispatcher',
children: electricDispatcherList
}, {
labelName: 'CTC操作员',
id: 'ctcOperator',
children: ctcOperatorList
}, {
labelName: '车站助理',
id: 'stationAssistant',
children: stationAssistantList
},
{
labelName: '车站站长',
id: 'stationMaster',
children: stationMasterList
},
{
labelName: '车站信号员',
id: 'stationSignaler',
children: stationSignalerList
},
{
labelName: '车站客运员',
id: 'stationPassenger',
children: stationPassengerList
},
{
labelName: '车站扳道员',
id: 'stationSwitchMan',
children: stationSwitchManList
},
{
labelName: '车站引导员',
id: 'stationFacilitator',
children: stationFacilitatorList
},
{
labelName: '车站工务工',
id: 'stationWorker',
children: stationWorkerList
},
{
labelName: '设备管理员',
id: 'deviceManager',
children: deviceManagerList
},
{
labelName: '车务段段长 ',
id: 'trainMaster',
children: trainMasterList
},
{
labelName: '电力工务 ',
id: 'stationElectricWorker',
children: stationElectricWorkerList
}
];
this.$nextTick(() => {
if (this.$refs.tree) {
this.$refs.tree.filter(this.queryMember);
}
});
}
},
getMessageStatus(val) { getMessageStatus(val) {
const find = this.groupList.find(item => { const find = this.groupList.find(item => {
return item.id == val.id; return item.id == val.id;