|
@@ -19,7 +19,7 @@
|
|
|
</el-button>
|
|
|
<el-button
|
|
|
type="primary"
|
|
|
- @click="sortType = !sortType"
|
|
|
+ @click="handleSwitchGrid"
|
|
|
:icon="sortType ? FullScreen : Menu"
|
|
|
>{{ sortType ? "横排" : "竖排" }}</el-button
|
|
|
>
|
|
@@ -185,7 +185,6 @@ const renderCanvas = () => {
|
|
|
});
|
|
|
if (res) {
|
|
|
window.scene.deleteItemById(id, type);
|
|
|
-
|
|
|
}
|
|
|
});
|
|
|
scene.on("data", (data) => {
|
|
@@ -238,6 +237,17 @@ const handleDetele = async (item) => {
|
|
|
refresh();
|
|
|
}
|
|
|
};
|
|
|
+const handleSwitchGrid = async () => {
|
|
|
+ const res = await ElMessageBox.confirm("切换模版不包括标注内容,确定要切换吗?", "温馨提示", {
|
|
|
+ confirmButtonText: "确定",
|
|
|
+ cancelButtonText: "取消",
|
|
|
+ type: "default",
|
|
|
+ });
|
|
|
+ if (res) {
|
|
|
+ sortType.value = !sortType.value
|
|
|
+ }
|
|
|
+};
|
|
|
+
|
|
|
const handleLine = () => {
|
|
|
if (window.scene) {
|
|
|
window.scene.setMode(1);
|