剧本录制代码调整

退出剧本代码调整
This commit is contained in:
joylink_cuiweidong 2020-05-18 15:18:57 +08:00
parent f0d51a2771
commit cc8b700328
4 changed files with 18 additions and 5 deletions

View File

@ -81,7 +81,7 @@ export default {
language:'zh',
sex:'1'
},
headerTitle:'所有人'
headerTitle:''
};
},
watch: {
@ -134,6 +134,9 @@ export default {
},
setCurrentCoversition(coversition) {
this.currentCoversition = coversition;
if (coversition.group) {
this.headerTitle = coversition.name;
}
if (this.recordSending) {
this.cancleRecording();
}

View File

@ -338,7 +338,6 @@ export default {
}
if (this.drawWay) {
scriptExecuteNew(this.group).then(data=>{
this.$refs.menuDemon.clearAllData();
}).catch(error=>{
console.log(error);
});

View File

@ -233,6 +233,7 @@ export default {
getSimulationInfoNew(this.group).then(()=>{
this.$emit('quitQuest');
this.initLoadPage();
this.clearAllData();
}).catch(()=>{
this.$messageBox(this.$t('display.demon.exitTaskFail'));
});
@ -247,6 +248,7 @@ export default {
getSimulationInfoNew(this.group).then(()=>{
this.$emit('quitQuest');
this.initLoadPage();
this.clearAllData();
}).catch(()=>{
this.$messageBox(this.$t('display.demon.exitTaskFail'));
});

View File

@ -201,7 +201,7 @@ export default {
this.$refs['commandDataNew'].clearValidate();
if (!val) {
this.initActionData();
this.initCommandActionData();
this.clearCommand();
}
} else {
this.$refs['commandData'].clearValidate();
@ -236,7 +236,7 @@ export default {
const lastData = JSON.stringify(resp.data);
this.memberList = this.covert(lastData, ConstConfig.ConstSelect.roleTypeNew);
this.resetDisabled();
this.initCommandActionData();
this.clearCommand();
}).catch(error => {
this.$message(error.message);
});
@ -363,6 +363,9 @@ export default {
changeMember(member) {
if (member) {
this.messageTips1 = '';
this.executeCommandName = '';
this.commandDataNew.action.operationType = '';
this.commandDataNew.action.operationParamMap = {};
}
},
addCommandActionNew() {
@ -376,12 +379,12 @@ export default {
this.messageTips2 = '请在右侧的地图中选择操作';
return false;
} else {
debugger;
const group = this.group;
const data = this.commandDataNew.action;
this.adding = true;
addScriptActionNew(group, data).then(response=>{
this.adding = false;
this.clearCommand();
this.$message.success(this.$t('scriptRecord.addCommandSucess'));
this.$emit('create');
}).catch(error => {
@ -390,6 +393,12 @@ export default {
});
}
},
clearCommand() {
this.commandDataNew.action.memberId = '';
this.executeCommandName = '';
this.commandDataNew.action.operationType = '';
this.commandDataNew.action.operationParamMap = {};
},
addScriptActionInfo(formName) {
this.$refs[formName].validate((valid) => {
if (valid) {