剧本录制代码调整

This commit is contained in:
joylink_cuiweidong 2020-07-03 09:46:26 +08:00
parent e9e5cf4b56
commit 92c10db690

View File

@ -189,10 +189,22 @@ export default {
}, },
saveScenesData() { saveScenesData() {
this.isSavingScript = true; this.isSavingScript = true;
saveScriptDataNew(this.group).then(resp => { const data = Vue.prototype.$jlmap.$options;
this.$message.success(this.$t('scriptRecord.saveDataSucess')); const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY};
this.isSavingScript = false; updateMapLocationNew(this.group, dataZoom).then(response=>{
saveScriptDataNew(this.group).then(resp => {
this.$message.success(this.$t('scriptRecord.saveDataSucess'));
this.isSavingScript = false;
// this.initAutoSaveScript(); // this.initAutoSaveScript();
}).catch(error => {
this.$messageBox(`${this.$t('scriptRecord.saveDataFail')}: ${error.message}`);
this.isSavingScript = false;
if (error.code === 40004 || error.code === 40005 || error.code === 40003) {
// this.clearAutoSave();
} else {
// // this.initAutoSaveScript();
}
});
}).catch(error => { }).catch(error => {
this.$messageBox(`${this.$t('scriptRecord.saveDataFail')}: ${error.message}`); this.$messageBox(`${this.$t('scriptRecord.saveDataFail')}: ${error.message}`);
this.isSavingScript = false; this.isSavingScript = false;
@ -202,13 +214,14 @@ export default {
// // this.initAutoSaveScript(); // // this.initAutoSaveScript();
} }
}); });
}, },
saveScenesStage() { saveScenesStage() {
const data = Vue.prototype.$jlmap.$options; const data = Vue.prototype.$jlmap.$options;
const group = this.$route.query.group; const group = this.$route.query.group;
const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY}; const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY};
saveScriptScenesNew(this.group).then(resp => { updateMapLocationNew(group, dataZoom).then(response=>{
updateMapLocationNew(group, dataZoom).then(response=>{ saveScriptScenesNew(this.group).then(resp => {
this.$store.dispatch('scriptRecord/updateBgSet', true); this.$store.dispatch('scriptRecord/updateBgSet', true);
this.$store.dispatch('training/setPrdType', null); this.$store.dispatch('training/setPrdType', null);
this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess')); this.$message.success(this.$t('scriptRecord.saveBackgroundSuceess'));