提交 2fb24839 authored 作者: jianglw's avatar jianglw

修改数据

上级 d4ffe4da
......@@ -235,8 +235,7 @@ import { register as registerActivity } from "@topology/activity-diagram";
import { register as registerClass } from "@topology/class-diagram";
import { register as registerSequence } from "@topology/sequence-diagram";
import {
register as registerChart,
echartsObjs,
register as registerChart
} from "@topology/chart-diagram";
import { layout, alignNodes, spaceBetween } from "@topology/layout";
import {
......@@ -250,11 +249,8 @@ import SpaceView from "@/components/topology/SpaceView.vue";
import NodeView from "@/components/topology/NodeView.vue";
import LineView from "@/components/topology/LineView.vue";
import PensView from "@/components/topology/PensView.vue";
import { assemble, assembleSvg } from "@/utils/topology/setting.js";
import { registerIcons, registerSvgs } from "@/utils/topology/customgraph.js";
import { assemble } from "@/utils/topology/setting.js";
import { getTopologyId, save } from "@/api/topology.js";
registerIcons();
registerSvgs();
export default {
name: "TopologyWorkspace",
components: {
......@@ -337,7 +333,7 @@ export default {
},
set(val) {
this.lineWidth = val;
this.canvas.pureData().lineWidth = val;
this.canvas.data.lineWidth = val;
},
},
},
......@@ -370,13 +366,13 @@ export default {
}
},
handlLineName(val) {
this.canvas.pureData().lineName = val;
this.canvas.data.lineName = val;
},
handleFromArrowType(val) {
this.canvas.pureData().fromArrow = val;
this.canvas.data.fromArrow = val;
},
handleToArrowType(val) {
this.canvas.pureData().toArrow = val;
this.canvas.data.toArrow = val;
},
lockClick() {
if (this.locked > 0) {
......@@ -462,9 +458,9 @@ export default {
if (this.topologyData) {
this.canvas.open(this.topologyData);
this.canvas.render();
this.toArrow = this.canvas.pureData().toArrow;
this.fromArrow = this.canvas.pureData().fromArrow;
this.lineName = this.canvas.pureData().lineName;
this.toArrow = this.canvas.data.toArrow;
this.fromArrow = this.canvas.data.fromArrow;
this.lineName = this.canvas.data.lineName;
this.canvas.lock(0);
this.canvas.closeSocket();
this.canvas.closeMqtt();
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论