|
@@ -1,4 +1,9 @@
|
|
|
-import { findMenuByKey, menuEnum, MenuRaw } from "@/views/scene/menus/menus";
|
|
|
+import {
|
|
|
+ findMenuByKey,
|
|
|
+ menuEnum,
|
|
|
+ MenuRaw,
|
|
|
+ showMenus,
|
|
|
+} from "@/views/scene/menus/menus";
|
|
|
import {
|
|
|
continuedMeasure,
|
|
|
startMeasure,
|
|
@@ -7,7 +12,7 @@ import {
|
|
|
import { list, MeasureAtom, MeasureType } from "@/store/measure";
|
|
|
import { baseLines } from "@/store/baseLine";
|
|
|
import { basePoints } from "@/store/basePoint";
|
|
|
-import { nextTick, reactive, Ref, watch } from "vue";
|
|
|
+import { nextTick, reactive, ref, Ref, watch } from "vue";
|
|
|
import {
|
|
|
activeBasePointStack,
|
|
|
activeFixPointStack,
|
|
@@ -194,6 +199,7 @@ const menuActions = {
|
|
|
let hide;
|
|
|
const add = () => {
|
|
|
hide = Message.success({ msg: "请单击绘制固定点形状" });
|
|
|
+ showMenus.value = false;
|
|
|
const data: FixPoint = reactive({
|
|
|
id: getId(),
|
|
|
pos: { x: 0, y: 0, z: 0 },
|
|
@@ -206,6 +212,8 @@ const menuActions = {
|
|
|
drawstatus.value = DrawStatus.ing;
|
|
|
const fix3d = getFix3d(data);
|
|
|
fix3d.bus.on("graphDrawComplete", (complete) => {
|
|
|
+ console.error("????");
|
|
|
+ showMenus.value = true;
|
|
|
trackBaseIng.value = false;
|
|
|
if (complete) {
|
|
|
const len = fixPoints.value.push(data);
|
|
@@ -237,6 +245,7 @@ const menuActions = {
|
|
|
});
|
|
|
}
|
|
|
return () => {
|
|
|
+ showMenus.value = true;
|
|
|
drawstatus.value = DrawStatus.quit;
|
|
|
trackBaseIng.value = false;
|
|
|
hide && hide();
|
|
@@ -305,7 +314,9 @@ const menuActions = {
|
|
|
list.value = [];
|
|
|
baseLines.value = [];
|
|
|
basePoints.value = [];
|
|
|
- fixPoints.value.forEach((fix) => delFix3d(fix));
|
|
|
+ while (fixPoints.value.length) {
|
|
|
+ delFix3d(fixPoints.value[0]);
|
|
|
+ }
|
|
|
fixPoints.value = [];
|
|
|
}
|
|
|
onComplete();
|