From 2b8470cd069ebf63d6ced1da8562dc2dc793b345 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=BB=95=E5=B5=A9?= <17854119262@163.com> Date: Tue, 8 Jul 2025 10:58:34 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AA=92=E4=BD=93=E5=BA=93-=E5=8E=86=E5=8F=B2?= =?UTF-8?q?=E8=B7=AF=E5=BE=84=E5=B1=95=E7=A4=BA-=E7=AC=AC=E4=BA=8C?= =?UTF-8?q?=E7=89=88?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/demo/system/mediaLibrary/index.vue | 5 +- .../demo/system/mediaLibrary/path/index.vue | 213 ++++- .../system/mediaLibrary/path/json/area.json | 302 +++++++ .../path/{data.json => json/image.json} | 0 .../system/mediaLibrary/path/json/mark.json | 348 ++++++++ .../demo/system/mediaLibrary/path/path.ts | 4 +- .../system/mediaLibrary/path/pathAreaInfo.vue | 437 ++++++++++ .../{pathImageShow.vue => pathImageInfo.vue} | 80 +- .../system/mediaLibrary/path/pathLeftMenu.vue | 806 +++++++++++++++++- .../demo/system/mediaLibrary/path/pathMap.vue | 368 ++++++-- .../system/mediaLibrary/path/pathMarkInfo.vue | 650 ++++++++++++++ .../demo/system/mediaLibrary/path/svg.ts | 234 +++++ 12 files changed, 3316 insertions(+), 131 deletions(-) create mode 100644 src/views/demo/system/mediaLibrary/path/json/area.json rename src/views/demo/system/mediaLibrary/path/{data.json => json/image.json} (100%) create mode 100644 src/views/demo/system/mediaLibrary/path/json/mark.json create mode 100644 src/views/demo/system/mediaLibrary/path/pathAreaInfo.vue rename src/views/demo/system/mediaLibrary/path/{pathImageShow.vue => pathImageInfo.vue} (96%) create mode 100644 src/views/demo/system/mediaLibrary/path/pathMarkInfo.vue create mode 100644 src/views/demo/system/mediaLibrary/path/svg.ts diff --git a/src/views/demo/system/mediaLibrary/index.vue b/src/views/demo/system/mediaLibrary/index.vue index 80382b5..7f8975f 100644 --- a/src/views/demo/system/mediaLibrary/index.vue +++ b/src/views/demo/system/mediaLibrary/index.vue @@ -244,7 +244,7 @@ :mask="false" :maskClosable="false" > - + @@ -820,11 +820,14 @@ // 路径地图弹窗---------------------------------------------------------------------- const pathOpen = ref(false); // 打开变化检测弹窗 + const pathRecord = ref({}); function openPathModal(record) { + pathRecord.value = record; pathOpen.value = true; } // 关闭变化检测弹窗 function closePathModal() { + pathRecord.value = {}; pathOpen.value = false; } diff --git a/src/views/demo/system/mediaLibrary/path/index.vue b/src/views/demo/system/mediaLibrary/path/index.vue index 46a483c..86becd0 100644 --- a/src/views/demo/system/mediaLibrary/path/index.vue +++ b/src/views/demo/system/mediaLibrary/path/index.vue @@ -1,88 +1,230 @@ diff --git a/src/views/demo/system/mediaLibrary/path/pathImageShow.vue b/src/views/demo/system/mediaLibrary/path/pathImageInfo.vue similarity index 96% rename from src/views/demo/system/mediaLibrary/path/pathImageShow.vue rename to src/views/demo/system/mediaLibrary/path/pathImageInfo.vue index abf72fb..0000da0 100644 --- a/src/views/demo/system/mediaLibrary/path/pathImageShow.vue +++ b/src/views/demo/system/mediaLibrary/path/pathImageInfo.vue @@ -1,5 +1,5 @@ diff --git a/src/views/demo/system/mediaLibrary/path/svg.ts b/src/views/demo/system/mediaLibrary/path/svg.ts new file mode 100644 index 0000000..20443e9 --- /dev/null +++ b/src/views/demo/system/mediaLibrary/path/svg.ts @@ -0,0 +1,234 @@ +export const line_start_cap_0 = ` + + + + + +`; + +export const line_start_cap_1 = ` + + + + + +`; + +export const line_start_cap_2 = ` + + + + + + + + + + +`; + +export const line_start_cap_3 = ` + + + + + + + + + + +`; + +export const line_end_cap_0 = ` + + + + + +`; + +export const line_end_cap_1 = ` + + + + + +`; + +export const line_end_cap_2 = ` + + + + + + + + + + +`; + +export const line_end_cap_3 = ` + + + + + + + + + + +`; + +export const circle = ` + + +`; + +export const rect = ` + + +`; + +export const triangle = ` + + +`;