剧本录制代码调整
退出剧本代码调整
This commit is contained in:
parent
f0d51a2771
commit
cc8b700328
@ -81,7 +81,7 @@ export default {
|
|||||||
language:'zh',
|
language:'zh',
|
||||||
sex:'1'
|
sex:'1'
|
||||||
},
|
},
|
||||||
headerTitle:'所有人'
|
headerTitle:''
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
@ -134,6 +134,9 @@ export default {
|
|||||||
},
|
},
|
||||||
setCurrentCoversition(coversition) {
|
setCurrentCoversition(coversition) {
|
||||||
this.currentCoversition = coversition;
|
this.currentCoversition = coversition;
|
||||||
|
if (coversition.group) {
|
||||||
|
this.headerTitle = coversition.name;
|
||||||
|
}
|
||||||
if (this.recordSending) {
|
if (this.recordSending) {
|
||||||
this.cancleRecording();
|
this.cancleRecording();
|
||||||
}
|
}
|
||||||
|
@ -338,7 +338,6 @@ export default {
|
|||||||
}
|
}
|
||||||
if (this.drawWay) {
|
if (this.drawWay) {
|
||||||
scriptExecuteNew(this.group).then(data=>{
|
scriptExecuteNew(this.group).then(data=>{
|
||||||
this.$refs.menuDemon.clearAllData();
|
|
||||||
}).catch(error=>{
|
}).catch(error=>{
|
||||||
console.log(error);
|
console.log(error);
|
||||||
});
|
});
|
||||||
|
@ -233,6 +233,7 @@ export default {
|
|||||||
getSimulationInfoNew(this.group).then(()=>{
|
getSimulationInfoNew(this.group).then(()=>{
|
||||||
this.$emit('quitQuest');
|
this.$emit('quitQuest');
|
||||||
this.initLoadPage();
|
this.initLoadPage();
|
||||||
|
this.clearAllData();
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
this.$messageBox(this.$t('display.demon.exitTaskFail'));
|
this.$messageBox(this.$t('display.demon.exitTaskFail'));
|
||||||
});
|
});
|
||||||
@ -247,6 +248,7 @@ export default {
|
|||||||
getSimulationInfoNew(this.group).then(()=>{
|
getSimulationInfoNew(this.group).then(()=>{
|
||||||
this.$emit('quitQuest');
|
this.$emit('quitQuest');
|
||||||
this.initLoadPage();
|
this.initLoadPage();
|
||||||
|
this.clearAllData();
|
||||||
}).catch(()=>{
|
}).catch(()=>{
|
||||||
this.$messageBox(this.$t('display.demon.exitTaskFail'));
|
this.$messageBox(this.$t('display.demon.exitTaskFail'));
|
||||||
});
|
});
|
||||||
|
@ -201,7 +201,7 @@ export default {
|
|||||||
this.$refs['commandDataNew'].clearValidate();
|
this.$refs['commandDataNew'].clearValidate();
|
||||||
if (!val) {
|
if (!val) {
|
||||||
this.initActionData();
|
this.initActionData();
|
||||||
this.initCommandActionData();
|
this.clearCommand();
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
this.$refs['commandData'].clearValidate();
|
this.$refs['commandData'].clearValidate();
|
||||||
@ -236,7 +236,7 @@ export default {
|
|||||||
const lastData = JSON.stringify(resp.data);
|
const lastData = JSON.stringify(resp.data);
|
||||||
this.memberList = this.covert(lastData, ConstConfig.ConstSelect.roleTypeNew);
|
this.memberList = this.covert(lastData, ConstConfig.ConstSelect.roleTypeNew);
|
||||||
this.resetDisabled();
|
this.resetDisabled();
|
||||||
this.initCommandActionData();
|
this.clearCommand();
|
||||||
}).catch(error => {
|
}).catch(error => {
|
||||||
this.$message(error.message);
|
this.$message(error.message);
|
||||||
});
|
});
|
||||||
@ -363,6 +363,9 @@ export default {
|
|||||||
changeMember(member) {
|
changeMember(member) {
|
||||||
if (member) {
|
if (member) {
|
||||||
this.messageTips1 = '';
|
this.messageTips1 = '';
|
||||||
|
this.executeCommandName = '';
|
||||||
|
this.commandDataNew.action.operationType = '';
|
||||||
|
this.commandDataNew.action.operationParamMap = {};
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
addCommandActionNew() {
|
addCommandActionNew() {
|
||||||
@ -376,12 +379,12 @@ export default {
|
|||||||
this.messageTips2 = '请在右侧的地图中选择操作';
|
this.messageTips2 = '请在右侧的地图中选择操作';
|
||||||
return false;
|
return false;
|
||||||
} else {
|
} else {
|
||||||
debugger;
|
|
||||||
const group = this.group;
|
const group = this.group;
|
||||||
const data = this.commandDataNew.action;
|
const data = this.commandDataNew.action;
|
||||||
this.adding = true;
|
this.adding = true;
|
||||||
addScriptActionNew(group, data).then(response=>{
|
addScriptActionNew(group, data).then(response=>{
|
||||||
this.adding = false;
|
this.adding = false;
|
||||||
|
this.clearCommand();
|
||||||
this.$message.success(this.$t('scriptRecord.addCommandSucess'));
|
this.$message.success(this.$t('scriptRecord.addCommandSucess'));
|
||||||
this.$emit('create');
|
this.$emit('create');
|
||||||
}).catch(error => {
|
}).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) {
|
addScriptActionInfo(formName) {
|
||||||
this.$refs[formName].validate((valid) => {
|
this.$refs[formName].validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
Loading…
Reference in New Issue
Block a user