|
@@ -386,6 +386,7 @@ export default {
|
|
|
});
|
|
|
} else {
|
|
|
this.INITRULELIST([]);
|
|
|
+ if (this.ruleNum === this.loadedRuleNum) this.loadMarkRelation();
|
|
|
}
|
|
|
},
|
|
|
// 解析设备数据
|
|
@@ -479,7 +480,7 @@ export default {
|
|
|
t.connect("onContextMenu", this, this.scene.getItem);
|
|
|
this.scene.addItem(t);
|
|
|
});
|
|
|
- console.log("加载完成~~~", this.scene);
|
|
|
+ if (this.view?.scene) this.view.fitSceneToView();
|
|
|
},
|
|
|
|
|
|
// 生成快照并保存草稿
|
|
@@ -599,17 +600,19 @@ export default {
|
|
|
graphId: this.graphId,
|
|
|
id: this.id,
|
|
|
};
|
|
|
- planerPublish(pa).then((res) => {
|
|
|
- if(res.result === "success"){
|
|
|
- this.$message.success("发布成功");
|
|
|
- console.log(this.folderId);
|
|
|
- this.$router.push({name: "Home", params: {folderId: this.folderId}});
|
|
|
- } else {
|
|
|
- this.$message.error(`发布失败!失败原因:${res.message}`);
|
|
|
- }
|
|
|
- }).catch((error) =>{
|
|
|
- this.$message.error(`发布失败!失败原因:${error}`);
|
|
|
- });
|
|
|
+ planerPublish(pa)
|
|
|
+ .then((res) => {
|
|
|
+ if (res.result === "success") {
|
|
|
+ this.$message.success("发布成功");
|
|
|
+ console.log(this.folderId);
|
|
|
+ this.$router.push({ name: "Home", params: { folderId: this.folderId } });
|
|
|
+ } else {
|
|
|
+ this.$message.error(`发布失败!失败原因:${res.message}`);
|
|
|
+ }
|
|
|
+ })
|
|
|
+ .catch((error) => {
|
|
|
+ this.$message.error(`发布失败!失败原因:${error}`);
|
|
|
+ });
|
|
|
},
|
|
|
},
|
|
|
watch: {
|