重置剧本代码调整

This commit is contained in:
joylink_cuiweidong 2020-08-31 16:51:36 +08:00
parent 9ef2ac1287
commit 83a2cb21de

View File

@ -93,6 +93,7 @@ export default {
isSavingScript: false,
mapLocation:null,
memberId:'',
oldMemberId:'',
allMemberList:[],
memberList:[],
quickChangeMember:[],
@ -153,6 +154,7 @@ export default {
});
if (member) {
this.memberId = member.id;
this.oldMemberId = member.id;
}
this.$store.dispatch('training/setPrdType', '02');
this.$store.dispatch('training/setRoles', 'DISPATCHER');
@ -337,13 +339,20 @@ export default {
this.$parent.resetBeginTime();
this.$refs['getAction'].loadInitData();
this.changeRunPlanStatus();
//
// this.memberId = '';
this.$store.dispatch('training/setPrdType', '02');
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.$store.dispatch('scriptRecord/updateRole', '');
this.$store.dispatch('scriptRecord/updateRole', 'DISPATCHER:' + this.oldMemberId);
this.$store.dispatch('scriptRecord/updateBgSet', false);
this.memberId = this.oldMemberId;
this.$message.success(this.$t('scriptRecord.resetDataSuccess'));
}).catch(() => {
this.$messageBox(this.$t('scriptRecord.resetDataFail'));