|
@@ -26,7 +26,7 @@ import { addRoad } from "../Controls/AddRoad";
|
|
|
import { addLine } from "./AddLine.js";
|
|
|
import VectorCategory from "../enum/VectorCategory.js";
|
|
|
// import { floorplanData } from "../VectorData.js";
|
|
|
-import Message from "@/components/base/components/message/message.vue";
|
|
|
+
|
|
|
import { pointService } from "../Service/PointService.js";
|
|
|
import Settings from "../Settings.js";
|
|
|
import { addPoint } from "./AddPoint.js";
|
|
@@ -133,7 +133,7 @@ export default class UIControl {
|
|
|
uiService.setSelectLocationMode(Constant.angleLocationMode);
|
|
|
let msg = locationModeControl.setAngle();
|
|
|
if (msg != Msg.OK) {
|
|
|
- this.prompt({ msg: msg, time: 1000 });
|
|
|
+ uiService.prompt({ msg: msg, time: 1000 });
|
|
|
} else {
|
|
|
this.layer.history.save();
|
|
|
this.layer.renderer.autoRedraw();
|
|
@@ -647,13 +647,6 @@ export default class UIControl {
|
|
|
}
|
|
|
|
|
|
/******************************************************************************************************************************************************************/
|
|
|
-
|
|
|
- prompt(msg) {
|
|
|
- this._prompts.push(
|
|
|
- Message.success(typeof msg === "string" ? { msg } : msg)
|
|
|
- );
|
|
|
- }
|
|
|
-
|
|
|
// 进入持续添加出确认与取消框
|
|
|
showConfirm() {
|
|
|
this.graphicStateUI.continuedMode = true;
|
|
@@ -711,10 +704,4 @@ export default class UIControl {
|
|
|
lineWidth: lineWidth,
|
|
|
};
|
|
|
}
|
|
|
-
|
|
|
- hidePrompt() {
|
|
|
- for (let prompt of this._prompts) {
|
|
|
- prompt();
|
|
|
- }
|
|
|
- }
|
|
|
}
|