-
-
-
-
-
-
-
-
-
-
- 暂停
- 恢复并执行
- {{$t('scriptRecord.saveMaplocation')}}
- 重置剧本
- {{$t('scriptRecord.saveBackground')}}
- {{$t('scriptRecord.saveData')}}
-
-
-
+
+
+
+
+ 暂停
+ 恢复并执行
+
+ 重置剧本
+ {{$t('scriptRecord.saveBackground')}}
+ {{$t('scriptRecord.saveData')}}
+
+
@@ -64,7 +50,7 @@
},
mounted(){
this.initAutoSaveScript();
- this.shrink();
+ // this.shrink();
},
beforeDestroy() {
this.clearAutoSave();
@@ -122,12 +108,23 @@
});
},
saveScenesStage() {
+
+ let data=Vue.prototype.$jlmap.$options;
+ let group=this.$route.query.group;
+ let dataZoom={scale:data.scaleRate,x:data.offsetX,y:data.offsetY};
saveScriptScenes(this.group).then(resp => {
+ updateMapLocation(group,dataZoom).then(response=>{
+ // this.$message.success('更新定位成功');
+ this.$message.success('保存背景成功');
+ }).catch(error => {
+ this.$messageBox(`更新定位失败: ${error.message}`);
+ });
// this.isSaveStage = false;
- this.$message.success('保存背景成功');
+ // this.$message.success('保存背景成功');
}).catch(error => {
this.$messageBox('保存背景失败!');
})
+
},
saveScenesData() {
this.isSavingScript=true;
@@ -168,14 +165,7 @@
},
saveMaplocation()
{
- let data=Vue.prototype.$jlmap.$options;
- let group=this.$route.query.group;
- let dataZoom={scale:data.scaleRate,x:data.offsetX,y:data.offsetY};
- updateMapLocation(group,dataZoom).then(response=>{
- this.$message.success('更新定位成功');
- }).catch(error => {
- this.$messageBox(`更新定位失败: ${error.message}`);
- });
+
}
}
}
@@ -183,12 +173,14 @@