From 82642db70ffe599bf1682e642fdca0b13bfac4ce Mon Sep 17 00:00:00 2001 From: lixiaolong <702156524@qq.com> Date: Wed, 12 Aug 2026 14:39:36 +0800 Subject: [PATCH] =?UTF-8?q?refactor(log):=20=E6=9B=BF=E6=8D=A2=E4=BB=BB?= =?UTF-8?q?=E5=8A=A1=E6=97=A5=E5=BF=97=E7=BB=84=E4=BB=B6=E4=B8=BA=E9=80=9A?= =?UTF-8?q?=E7=94=A8=E6=89=A7=E8=A1=8C=E6=97=A5=E5=BF=97=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 移除 inspection 和 intelligenceTest 模块中的重复日志显示代码 - 引入统一的 TaskExecutionLog 组件处理日志渲染逻辑 - 新组件支持多媒体内容展示包括图片、视频和音频 - 实现媒体资源自动解析和预览功能 - 优化滚动到底部逻辑确保日志实时显示 - 采用响应式布局适配不同屏幕尺寸 --- .../flow/components/TaskExecutionLog.vue | 162 ++++++++++++++++++ src/views/inspection/runTask/task-log.vue | 75 +------- .../intelligenceTest/runningTask/task-log.vue | 73 +------- 3 files changed, 176 insertions(+), 134 deletions(-) create mode 100644 src/views/flow/components/TaskExecutionLog.vue diff --git a/src/views/flow/components/TaskExecutionLog.vue b/src/views/flow/components/TaskExecutionLog.vue new file mode 100644 index 0000000..f48ead2 --- /dev/null +++ b/src/views/flow/components/TaskExecutionLog.vue @@ -0,0 +1,162 @@ + + + + {{ formatDate(log.logTime) }} + + {{ log.logContent }} + + + + + + + + + + + + + + + diff --git a/src/views/inspection/runTask/task-log.vue b/src/views/inspection/runTask/task-log.vue index 97553d1..9156739 100644 --- a/src/views/inspection/runTask/task-log.vue +++ b/src/views/inspection/runTask/task-log.vue @@ -1,73 +1,12 @@ - - - {{ formatDate(log.logTime) }} - {{ log.logContent }} - - + + - \ No newline at end of file diff --git a/src/views/intelligenceTest/runningTask/task-log.vue b/src/views/intelligenceTest/runningTask/task-log.vue index 28b562b..9156739 100644 --- a/src/views/intelligenceTest/runningTask/task-log.vue +++ b/src/views/intelligenceTest/runningTask/task-log.vue @@ -1,71 +1,12 @@ - - - {{ formatDate(log.logTime) }} - {{ log.logContent }} - - + + - \ No newline at end of file