|
@@ -60,6 +60,7 @@ export default {
|
|
|
"isPub",
|
|
|
"categoryId",
|
|
|
"projectId",
|
|
|
+ "version",
|
|
|
]),
|
|
|
},
|
|
|
mounted() {
|
|
@@ -96,6 +97,7 @@ export default {
|
|
|
"SETISPUB",
|
|
|
"ADDEQUIPITEM",
|
|
|
"EDITEQUIPITEM",
|
|
|
+ "SETVERSION",
|
|
|
]),
|
|
|
// 恢复命令状态
|
|
|
clearCmdStatus() {
|
|
@@ -262,7 +264,7 @@ export default {
|
|
|
startAnc.isConnected = true;
|
|
|
startAnc.parent?.connect("changePos", t, t.changePos);
|
|
|
t.startAnchor = startAnc || null;
|
|
|
- console.log('startAnc',startAnc)
|
|
|
+ console.log("startAnc", startAnc);
|
|
|
}
|
|
|
}
|
|
|
if (t.anchor12d) {
|
|
@@ -288,6 +290,8 @@ export default {
|
|
|
const uuid = uuidv1();
|
|
|
return Promise.all([this.generateSnap(uuid), this.saveDraft(uuid)]).then(
|
|
|
(vals) => {
|
|
|
+ // 重设版本号
|
|
|
+ this.SETVERSION(vals[1].version);
|
|
|
this.$message.success(`保存成功${vals[1].version}`);
|
|
|
}
|
|
|
);
|
|
@@ -346,6 +350,7 @@ export default {
|
|
|
pic: `${uuid}.png`,
|
|
|
graphId: this.graphId,
|
|
|
id: this.id,
|
|
|
+ version: this.version,
|
|
|
};
|
|
|
return new Promise((resolve, reject) => {
|
|
|
saveGroup(obj).then((res) => {
|
|
@@ -374,7 +379,6 @@ export default {
|
|
|
},
|
|
|
// 自动保存
|
|
|
autoSaveTopo() {
|
|
|
- console.log(this.scene.undoStack.isChange);
|
|
|
if (this.scene && this.scene.undoStack.isChange) {
|
|
|
this.saveTopoDraft().then(() => {
|
|
|
this.scene.undoStack.isChange = false;
|