From 35ec6944c7f557227f27682f41e528d6a0baabe9 Mon Sep 17 00:00:00 2001 From: lld <15027638633@163.com> Date: Thu, 12 Feb 2026 00:34:51 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=8F=E5=B7=A5=E5=85=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/router/index.js | 6 + src/views/assets/agri/index.vue | 5 +- src/views/control/controllog/index.vue | 4 +- src/views/tool/whiteboard.vue | 337 +++++++++++++++++++++++++ 4 files changed, 346 insertions(+), 6 deletions(-) create mode 100644 src/views/tool/whiteboard.vue diff --git a/src/router/index.js b/src/router/index.js index 0a3d235..f62176e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -71,6 +71,12 @@ export const constantRoutes = [ component: () => import('@/views/index'), name: 'Index', meta: { title: '首页', icon: 'dashboard', affix: true } + }, + { + path: 'whiteboard', + component: () => import('@/views/tool/whiteboard.vue'), + name: 'Whiteboard', + meta: { title: '实时画板', icon: 'dashboard', affix: true } } ] }, diff --git a/src/views/assets/agri/index.vue b/src/views/assets/agri/index.vue index bcdca82..99fce26 100644 --- a/src/views/assets/agri/index.vue +++ b/src/views/assets/agri/index.vue @@ -486,8 +486,5 @@ export default { } diff --git a/src/views/control/controllog/index.vue b/src/views/control/controllog/index.vue index 632280f..3d791a7 100644 --- a/src/views/control/controllog/index.vue +++ b/src/views/control/controllog/index.vue @@ -191,7 +191,7 @@ - + @@ -201,7 +201,7 @@ - {{ parseTime(scope.row.createTime, '{y}-{m}-{d} {h}:{m}:{s}') }} + {{ scope.row.createTime }} diff --git a/src/views/tool/whiteboard.vue b/src/views/tool/whiteboard.vue new file mode 100644 index 0000000..4f5bae3 --- /dev/null +++ b/src/views/tool/whiteboard.vue @@ -0,0 +1,337 @@ + + + + + + + + + + + + + + + + + + + + + + {{ lineWidth }}px + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 当前工具: {{ currentTool === 'pen' ? '画笔' : '橡皮擦' }} + 历史记录: {{ historyIndex + 1 }}/{{ history.length }} + + + + + + + +