剧本录制代码调整
This commit is contained in:
parent
e9e5cf4b56
commit
92c10db690
@ -189,6 +189,9 @@ export default {
|
|||||||
},
|
},
|
||||||
saveScenesData() {
|
saveScenesData() {
|
||||||
this.isSavingScript = true;
|
this.isSavingScript = true;
|
||||||
|
const data = Vue.prototype.$jlmap.$options;
|
||||||
|
const dataZoom = {scale: data.scaleRate, x: data.offsetX, y: data.offsetY};
|
||||||
|
updateMapLocationNew(this.group, dataZoom).then(response=>{
|
||||||
saveScriptDataNew(this.group).then(resp => {
|
saveScriptDataNew(this.group).then(resp => {
|
||||||
this.$message.success(this.$t('scriptRecord.saveDataSucess'));
|
this.$message.success(this.$t('scriptRecord.saveDataSucess'));
|
||||||
this.isSavingScript = false;
|
this.isSavingScript = false;
|
||||||
@ -202,13 +205,23 @@ export default {
|
|||||||
// // 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();
|
||||||
|
}
|
||||||
|
});
|
||||||
|
|
||||||
},
|
},
|
||||||
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'));
|
||||||
|
Loading…
Reference in New Issue
Block a user