From 108516e0599fc14ba44389b2891a9a896c08ad6d Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 7 Jun 2023 15:20:34 +0800 Subject: [PATCH 1/9] =?UTF-8?q?=E5=8A=9F=E8=83=BD=E8=8F=9C=E5=8D=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/DrawLayout.vue | 22 +++++++++++++++++++++- 1 file changed, 21 insertions(+), 1 deletion(-) diff --git a/src/layouts/DrawLayout.vue b/src/layouts/DrawLayout.vue index f18354f..eb3619d 100644 --- a/src/layouts/DrawLayout.vue +++ b/src/layouts/DrawLayout.vue @@ -5,6 +5,21 @@ + + + + + 保存并校验 + + + + 一键关联 + + + + import DrawProperties from 'src/components/draw-app/DrawProperties.vue'; -import { getDrawApp, loadDrawDatas } from 'src/drawApp'; +import { getDrawApp, loadDrawDatas, saveDrawDatas } from 'src/drawApp'; +import { JlDrawApp } from 'src/jl-graphic'; import { useDrawStore } from 'src/stores/draw-store'; import { onMounted, onUnmounted, reactive, ref } from 'vue'; import { useRoute } from 'vue-router'; @@ -229,6 +245,10 @@ function onResize() { drawApp.onDomResize(canvasWidth.value, canvasHeight.value); } } +function saveAllDrawDatas() { + const drawApp = getDrawApp(); + saveDrawDatas(drawApp as JlDrawApp); +} onUnmounted(() => { drawStore.destroy(); From 3fff97ae87dd9c488d2e531d905d2331248d2c9b Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 7 Jun 2023 15:39:25 +0800 Subject: [PATCH 2/9] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/drawApp/index.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/drawApp/index.ts b/src/drawApp/index.ts index adf91fd..a466d0b 100644 --- a/src/drawApp/index.ts +++ b/src/drawApp/index.ts @@ -146,7 +146,7 @@ export function initDrawApp(dom: HTMLElement): JlDrawApp { ); app.addKeyboardListener( new KeyListener({ - value: 'KeyS', + value: 'KeyO', onPress: () => { app.interactionPlugin(Station.Type).resume(); }, From 067afc4ddde1ccfb5b1a876d0f31fd6d7e3fc1c3 Mon Sep 17 00:00:00 2001 From: joylink_zhaoerwei Date: Wed, 7 Jun 2023 15:44:30 +0800 Subject: [PATCH 3/9] =?UTF-8?q?=E5=BE=AE=E8=B0=83?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/DrawLayout.vue | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/src/layouts/DrawLayout.vue b/src/layouts/DrawLayout.vue index eb3619d..685ffe0 100644 --- a/src/layouts/DrawLayout.vue +++ b/src/layouts/DrawLayout.vue @@ -2,9 +2,7 @@ - - - + @@ -143,20 +141,11 @@ import { onMounted, onUnmounted, reactive, ref } from 'vue'; import { useRoute } from 'vue-router'; const route = useRoute(); -const selectUtil = ref(); -const utilsOption: ControlItem[] = reactive([]); -const drawSelect = (item: string) => { - getDrawApp()?.interactionPlugin(item).resume(); -}; const drawStore = useDrawStore(); const leftDrawerOpen = ref(false); const rightDrawerOpen = ref(false); -function toggleLeftDrawer() { - leftDrawerOpen.value = !leftDrawerOpen.value; - onResize(); -} function toggleRightDrawer() { rightDrawerOpen.value = !rightDrawerOpen.value; onResize(); @@ -164,6 +153,12 @@ function toggleRightDrawer() { const link = ref('outbox'); +//工具栏所用 +const selectUtil = ref(); +const utilsOption: ControlItem[] = reactive([]); +const drawSelect = (item: string) => { + getDrawApp()?.interactionPlugin(item).resume(); +}; class ControlItem { value: string; slot: string; From 77d5a07672bfd27ddb06f61191b05c2a7066d3a6 Mon Sep 17 00:00:00 2001 From: dong <58670809@qq.com> Date: Wed, 7 Jun 2023 16:04:40 +0800 Subject: [PATCH 4/9] =?UTF-8?q?table=E9=AB=98=E5=BA=A6=E8=87=AA=E9=80=82?= =?UTF-8?q?=E5=BA=94?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/layouts/MainLayout.vue | 17 +++++++++++++++-- src/pages/DraftManage.vue | 14 +++++++++++++- 2 files changed, 28 insertions(+), 3 deletions(-) diff --git a/src/layouts/MainLayout.vue b/src/layouts/MainLayout.vue index de522e3..75c26d8 100644 --- a/src/layouts/MainLayout.vue +++ b/src/layouts/MainLayout.vue @@ -1,6 +1,7 @@ diff --git a/src/pages/DraftManage.vue b/src/pages/DraftManage.vue index dfd91e5..9849e66 100644 --- a/src/pages/DraftManage.vue +++ b/src/pages/DraftManage.vue @@ -3,6 +3,7 @@