|
@@ -62,7 +62,7 @@
|
|
|
<!-- 底部操作按钮 -->
|
|
|
<el-row class="canvas-actions-box">
|
|
|
<canvasFun @fit="fit" @savePng="savePng" @saveSvg="saveSvg" @divide="divide" @clearDivide="clearDivide" @undo="undo" @redo="redo"
|
|
|
- @changeAbsorb="changeAbsorb" @scale="scale" @groupSelect="groupSelect" :config="config" ref="canvasFun"></canvasFun>
|
|
|
+ @changeAbsorb="changeAbsorb" @scale="scale" @groupSelect="groupSelect" :config="config" ref="canvasFun" @saveJson="saveJson"></canvasFun>
|
|
|
</el-row>
|
|
|
</div>
|
|
|
<!-- -->
|
|
@@ -679,6 +679,14 @@ export default {
|
|
|
saveSvg() {
|
|
|
this.view.saveSceneSvg(`${this.buildFloor[1]}.svg`, 6400, 4800);
|
|
|
},
|
|
|
+ // 保存为svg
|
|
|
+ saveSvg() {
|
|
|
+ this.view.saveSceneSvg(`${this.buildFloor[1]}.svg`, 6400, 4800);
|
|
|
+ },
|
|
|
+ // 保存json
|
|
|
+ saveJson() {
|
|
|
+ this.view.saveFloorJson(`${this.buildFloor[1]}.json`)
|
|
|
+ },
|
|
|
// 切割划分
|
|
|
divide() {
|
|
|
this.scene.isMarking = true;
|