暂提
This commit is contained in:
parent
91c04e97b1
commit
198c8fb170
@ -202,6 +202,9 @@ const training = {
|
|||||||
memberList.forEach(item => {
|
memberList.forEach(item => {
|
||||||
state.memberData[item.id] = deepAssign({userId: ''}, item);
|
state.memberData[item.id] = deepAssign({userId: ''}, item);
|
||||||
state.memberData[item.id].disabled = userId == item.userId;
|
state.memberData[item.id].disabled = userId == item.userId;
|
||||||
|
if (userId == item.userId) {
|
||||||
|
state.roles = item.type;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
@ -20,8 +20,7 @@ export default {
|
|||||||
return {
|
return {
|
||||||
terminalList:[],
|
terminalList:[],
|
||||||
active:0,
|
active:0,
|
||||||
terminalMap:{
|
commonTerminal: [
|
||||||
'datie': [
|
|
||||||
{
|
{
|
||||||
name: '现地工作站',
|
name: '现地工作站',
|
||||||
code: 'localWork',
|
code: 'localWork',
|
||||||
@ -29,6 +28,15 @@ export default {
|
|||||||
'STATION_SWITCH_MAN', 'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'TRAIN_MASTER'],
|
'STATION_SWITCH_MAN', 'STATION_FACILITATOR', 'STATION_WORKER', 'DEVICE_MANAGER', 'TRAIN_MASTER'],
|
||||||
click: this.noEvent
|
click: this.noEvent
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
name: '行调工作站',
|
||||||
|
code: 'dispatchWork',
|
||||||
|
roleList: ['DISPATCHER'],
|
||||||
|
click: this.noEvent
|
||||||
|
}
|
||||||
|
],
|
||||||
|
terminalMap:{
|
||||||
|
'datie': [
|
||||||
{
|
{
|
||||||
name: '车务终端',
|
name: '车务终端',
|
||||||
code: 'trafficTerminal',
|
code: 'trafficTerminal',
|
||||||
@ -41,12 +49,7 @@ export default {
|
|||||||
roleList: ['STATION_SUPERVISOR'],
|
roleList: ['STATION_SUPERVISOR'],
|
||||||
click: this.noEvent
|
click: this.noEvent
|
||||||
},
|
},
|
||||||
{
|
|
||||||
name: '行调工作站',
|
|
||||||
code: 'dispatchWork',
|
|
||||||
roleList: ['DISPATCHER'],
|
|
||||||
click: this.noEvent
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
name: '调度计划',
|
name: '调度计划',
|
||||||
code: 'schedulingPlan',
|
code: 'schedulingPlan',
|
||||||
@ -73,6 +76,48 @@ export default {
|
|||||||
code: 'dispatchWork',
|
code: 'dispatchWork',
|
||||||
roleList: ['DISPATCHER'],
|
roleList: ['DISPATCHER'],
|
||||||
click: this.noEvent
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'cctv视图',
|
||||||
|
code: 'cctvView',
|
||||||
|
roleList: ['STATION_SUPERVISOR'],
|
||||||
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '设备视图',
|
||||||
|
code: 'jl3dModle',
|
||||||
|
roleList: ['STATION_SUPERVISOR'],
|
||||||
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '故障设备',
|
||||||
|
code: 'jlmap3dFault',
|
||||||
|
roleList: ['STATION_SUPERVISOR'],
|
||||||
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '司机视角',
|
||||||
|
code: 'drivingPlan',
|
||||||
|
roleList: ['DRIVER'],
|
||||||
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'IBP盘',
|
||||||
|
code: 'ibp',
|
||||||
|
roleList: ['STATION_SUPERVISOR'],
|
||||||
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: '数字沙盘',
|
||||||
|
code: 'digitalStand',
|
||||||
|
roleList: ['STATION_SUPERVISOR'],
|
||||||
|
click: this.noEvent
|
||||||
|
},
|
||||||
|
{ // {label:'留言板', name:'messageBoard', click:this.messageBoard, isShow:false},
|
||||||
|
name: '留言板',
|
||||||
|
code: 'messageBoard',
|
||||||
|
roleList: [''],
|
||||||
|
click: this.noEvent
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
@ -99,7 +144,7 @@ export default {
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
'store.state.training.roles': function (val) {
|
'$store.state.training.roles': function (val) {
|
||||||
this.initTerminalList();
|
this.initTerminalList();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -114,7 +159,7 @@ export default {
|
|||||||
} else {
|
} else {
|
||||||
currentType = 'subway';
|
currentType = 'subway';
|
||||||
}
|
}
|
||||||
console.log(this.roles, '------init');
|
console.log(this.roles, this.$store.state.training.roles, '------init');
|
||||||
this.terminalMap[currentType].forEach(item => {
|
this.terminalMap[currentType].forEach(item => {
|
||||||
if (item.roleList.includes(this.roles)) {
|
if (item.roleList.includes(this.roles)) {
|
||||||
this.terminalList.push(item);
|
this.terminalList.push(item);
|
||||||
|
Loading…
Reference in New Issue
Block a user