剧本 添加设备管理员
This commit is contained in:
parent
636819e9a5
commit
922d4641b7
@ -174,7 +174,8 @@ export const SimulationType = {
|
||||
STATION_PASSENGER:'车站客运员',
|
||||
STATION_SWITCH_MAN:'车站扳道员',
|
||||
STATION_FACILITATOR:'车站引导员',
|
||||
STATION_WORKER:'车站工务工'
|
||||
STATION_WORKER:'车站工务工',
|
||||
DEVICE_MANAGER:'设备管理员'
|
||||
|
||||
};
|
||||
export const UrlConfig = {
|
||||
|
@ -395,6 +395,7 @@ export default {
|
||||
const stationSwitchMan = {};
|
||||
const stationFacilitator = {};
|
||||
const stationWorker = {};
|
||||
const deviceManager = {};
|
||||
val.forEach(item => {
|
||||
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
|
||||
this.memberData[item.id]['active'] = false;
|
||||
@ -478,6 +479,11 @@ export default {
|
||||
this.memberData[item.id].labelName = '车站工务工' + (item.name || '');
|
||||
stationWorker[item.id] = this.memberData[item.id];
|
||||
break;
|
||||
case 'DEVICE_MANAGER':
|
||||
this.memberData[item.id].label = '设备管理员' + (item.name || '');
|
||||
this.memberData[item.id].labelName = '设备管理员' + (item.name || '');
|
||||
deviceManager[item.id] = this.memberData[item.id];
|
||||
break;
|
||||
}
|
||||
});
|
||||
// { label: '全部集中站', value: 'allConcentrateStation', active: false, sign: 'DEVICE_STATION' },
|
||||
@ -567,6 +573,12 @@ export default {
|
||||
id: 'stationWorker',
|
||||
type: 'role',
|
||||
children: stationWorker
|
||||
},
|
||||
{
|
||||
label: '车站工务工',
|
||||
id: 'deviceManager',
|
||||
type: 'role',
|
||||
children: deviceManager
|
||||
}
|
||||
];
|
||||
this.initCommonMemberList();
|
||||
|
@ -300,6 +300,12 @@ export default {
|
||||
id: 'stationWorker',
|
||||
type: 'role',
|
||||
children: result.deviceListData[14]
|
||||
},
|
||||
{
|
||||
label: '设备管理员',
|
||||
id: 'deviceManager',
|
||||
type: 'role',
|
||||
children: result.deviceListData[15]
|
||||
}
|
||||
];
|
||||
/**
|
||||
|
@ -15,7 +15,7 @@ export function covertMemberData (activeTrainList, resp) {
|
||||
lastData = JSON.parse(lastData);
|
||||
const lastMemberList = [];
|
||||
// const electricDispatcherList = [];
|
||||
const deviceListData = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
|
||||
const deviceListData = [[], [], [], [], [], [], [], [], [], [], [], [], [], [], [], []];
|
||||
const driverList = [];
|
||||
lastData.forEach((member, index)=>{
|
||||
if (member.userId && member.userId == store.state.user.id) {
|
||||
@ -37,7 +37,7 @@ export function covertMemberData (activeTrainList, resp) {
|
||||
member.label = member.type + name + userName;
|
||||
member.normalName = member.type + name;
|
||||
}
|
||||
const deviceType = ['行调', '通号', '行值', '司机', '车辆段信号楼', '上级部门', '电力调度', '停车场信号楼', '车站助理', '车站站长', '车站信号员', '车站客运员', '车站扳道员', '车站引导员', '车站工务工'];
|
||||
const deviceType = ['行调', '通号', '行值', '司机', '车辆段信号楼', '上级部门', '电力调度', '停车场信号楼', '车站助理', '车站站长', '车站信号员', '车站客运员', '车站扳道员', '车站引导员', '设备管理员'];
|
||||
|
||||
/**
|
||||
* 车站助理
|
||||
@ -55,6 +55,7 @@ export function covertMemberData (activeTrainList, resp) {
|
||||
// stationSwitchMan
|
||||
// stationFacilitator
|
||||
// stationWorker
|
||||
// 设备管理员 deviceManager DEVICE_MANAGER
|
||||
|
||||
const deviceTypeIndex = deviceType.indexOf(member.type);
|
||||
if (deviceTypeIndex >= 0) {
|
||||
|
@ -77,7 +77,8 @@ export default {
|
||||
{label: '车站客运员', value: 'STATION_PASSENGER'},
|
||||
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'},
|
||||
{label: '车站引导员', value: 'STATION_FACILITATOR'},
|
||||
{label: '车站工务工', value: 'STATION_WORKER'}
|
||||
{label: '车站工务工', value: 'STATION_WORKER'},
|
||||
{label: '设备管理员', value: 'DEVICE_MANAGER'}
|
||||
]
|
||||
};
|
||||
},
|
||||
|
@ -144,6 +144,10 @@ export default {
|
||||
{
|
||||
labelName: '车站工务工',
|
||||
children: []
|
||||
},
|
||||
{
|
||||
labelName: '设备管理员',
|
||||
children: []
|
||||
}
|
||||
]
|
||||
};
|
||||
@ -186,6 +190,7 @@ export default {
|
||||
const stationSwitchManList = [];
|
||||
const stationFacilitatorList = [];
|
||||
const stationWorkerList = [];
|
||||
const deviceManagerList = [];
|
||||
val.forEach(item => {
|
||||
const device = this.$store.getters['map/getDeviceByCode'](item.deviceCode);
|
||||
switch (item.type) {
|
||||
@ -245,7 +250,11 @@ export default {
|
||||
this.memberData[item.id].labelName = '车站工务工-' + device.name + (item.name ? `-${item.name }` : '');
|
||||
stationWorkerList.push(this.memberData[item.id]);
|
||||
break;
|
||||
|
||||
case 'DEVICE_MANAGER':
|
||||
this.memberData[item.id].labelName = '设备管理员-' + device.name + (item.name ? `-${item.name }` : '');
|
||||
deviceManagerList.push(this.memberData[item.id]);
|
||||
break;
|
||||
// DEVICE_MANAGER:'设备管理员' deviceManager
|
||||
}
|
||||
});
|
||||
this.treeData = [{
|
||||
@ -310,6 +319,11 @@ export default {
|
||||
labelName: '车站工务工',
|
||||
id: 'stationWorker',
|
||||
children: stationWorkerList
|
||||
},
|
||||
{
|
||||
labelName: '设备管理员',
|
||||
id: 'deviceManager',
|
||||
children: deviceManagerList
|
||||
}
|
||||
];
|
||||
EventBus.$emit('trainTicketMember', [...stationSupervisorList, ...stationAssistantList]);
|
||||
|
@ -79,7 +79,8 @@ export default {
|
||||
{label: '车站客运员', value: 'STATION_PASSENGER'},
|
||||
{label: '车站扳道员', value: 'STATION_SWITCH_MAN'},
|
||||
{label: '车站引导员', value: 'STATION_FACILITATOR'},
|
||||
{label: '车站工务工', value: 'STATION_WORKER'}
|
||||
{label: '车站工务工', value: 'STATION_WORKER'},
|
||||
{label: '设备管理员', value: 'DEVICE_MANAGER'}
|
||||
]
|
||||
};
|
||||
},
|
||||
|
@ -270,6 +270,12 @@ export default {
|
||||
id: 'stationWorker',
|
||||
type: 'role',
|
||||
children: result.deviceListData[14]
|
||||
},
|
||||
{
|
||||
label: '设备管理员',
|
||||
id: 'deviceManager',
|
||||
type: 'role',
|
||||
children: result.deviceListData[15]
|
||||
}
|
||||
];
|
||||
this.memberList = result.lastMemberList;
|
||||
|
Loading…
Reference in New Issue
Block a user