Merge remote-tracking branch 'origin/test'
This commit is contained in:
commit
6eed1b58a9
@ -50,7 +50,7 @@ export default {
|
|||||||
selectMapLineCode:'',
|
selectMapLineCode:'',
|
||||||
mainSceneData: [
|
mainSceneData: [
|
||||||
{type: '车辆故障', scene: '列车救援'},
|
{type: '车辆故障', scene: '列车救援'},
|
||||||
{type: '信号系统故障', scene: '道岔故障'},
|
{type: '信号系统故障', scene: '道岔故障', id: '9'},
|
||||||
{type: '信号系统故障', scene: '区域控制器故障'},
|
{type: '信号系统故障', scene: '区域控制器故障'},
|
||||||
{type: '信号系统故障', scene: '联锁故障'},
|
{type: '信号系统故障', scene: '联锁故障'},
|
||||||
{type: '供电系统故障', scene: '接触轨(网)断电'},
|
{type: '供电系统故障', scene: '接触轨(网)断电'},
|
||||||
|
@ -93,6 +93,7 @@ export default {
|
|||||||
isSavingScript: false,
|
isSavingScript: false,
|
||||||
mapLocation:null,
|
mapLocation:null,
|
||||||
memberId:'',
|
memberId:'',
|
||||||
|
oldMemberId:'',
|
||||||
allMemberList:[],
|
allMemberList:[],
|
||||||
memberList:[],
|
memberList:[],
|
||||||
quickChangeMember:[],
|
quickChangeMember:[],
|
||||||
@ -153,6 +154,7 @@ export default {
|
|||||||
});
|
});
|
||||||
if (member) {
|
if (member) {
|
||||||
this.memberId = member.id;
|
this.memberId = member.id;
|
||||||
|
this.oldMemberId = member.id;
|
||||||
}
|
}
|
||||||
this.$store.dispatch('training/setPrdType', '02');
|
this.$store.dispatch('training/setPrdType', '02');
|
||||||
this.$store.dispatch('training/setRoles', 'DISPATCHER');
|
this.$store.dispatch('training/setRoles', 'DISPATCHER');
|
||||||
@ -337,13 +339,20 @@ export default {
|
|||||||
this.$parent.resetBeginTime();
|
this.$parent.resetBeginTime();
|
||||||
this.$refs['getAction'].loadInitData();
|
this.$refs['getAction'].loadInitData();
|
||||||
this.changeRunPlanStatus();
|
this.changeRunPlanStatus();
|
||||||
// 有问题
|
|
||||||
// this.memberId = '';
|
|
||||||
this.$store.dispatch('training/setPrdType', '02');
|
this.$store.dispatch('training/setPrdType', '02');
|
||||||
this.$store.dispatch('map/resetActiveTrainList');
|
this.$store.dispatch('map/resetActiveTrainList');
|
||||||
|
this.$store.dispatch('training/updateMemberListInScript',
|
||||||
|
{
|
||||||
|
oldMemberId:this.memberId,
|
||||||
|
newMemberId:this.oldMemberId,
|
||||||
|
userId:this.$store.state.user.id,
|
||||||
|
name:this.$store.state.user.nickname
|
||||||
|
}
|
||||||
|
);
|
||||||
// this.initAutoSaveScript();
|
// this.initAutoSaveScript();
|
||||||
this.$store.dispatch('scriptRecord/updateRole', '');
|
this.$store.dispatch('scriptRecord/updateRole', 'DISPATCHER:' + this.oldMemberId);
|
||||||
this.$store.dispatch('scriptRecord/updateBgSet', false);
|
this.$store.dispatch('scriptRecord/updateBgSet', false);
|
||||||
|
this.memberId = this.oldMemberId;
|
||||||
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
|
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
this.$messageBox(this.$t('scriptRecord.resetDataFail'));
|
this.$messageBox(this.$t('scriptRecord.resetDataFail'));
|
||||||
|
Loading…
Reference in New Issue
Block a user