From 98777f50d8e95c9af1e63163c932854f4a91bb06 Mon Sep 17 00:00:00 2001 From: danial Date: Sat, 6 Dec 2025 00:33:29 +0800 Subject: [PATCH] =?UTF-8?q?refactor(prefetch):=20=E6=8B=86=E5=88=86?= =?UTF-8?q?=E9=A2=84=E6=8B=89=E5=8F=96=E8=AE=A2=E5=8D=95=E6=97=A5=E5=BF=97?= =?UTF-8?q?=E5=92=8C=E5=88=97=E8=A1=A8=E4=B8=BA=E7=8B=AC=E7=AB=8B=E7=BB=84?= =?UTF-8?q?=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将预拉取订单日志相关代码拆分到 prefetch-logs 组件中 - 将预拉取订单列表相关代码拆分到 prefetch-orders 组件中 - 在主页面使用 prefetch-logs 和 prefetch-orders 组件替代原内嵌实现 - 优化主页面代码结构,移除重复和冗余的代码 - 保持功能与交互不变,方便后续维护与扩展 --- .../prefetch/components/prefetch-logs.vue | 284 ++++++++ .../prefetch/components/prefetch-orders.vue | 356 ++++++++++ src/views/camel-oil-info/prefetch/index.vue | 664 +----------------- 3 files changed, 650 insertions(+), 654 deletions(-) create mode 100644 src/views/camel-oil-info/prefetch/components/prefetch-logs.vue create mode 100644 src/views/camel-oil-info/prefetch/components/prefetch-orders.vue diff --git a/src/views/camel-oil-info/prefetch/components/prefetch-logs.vue b/src/views/camel-oil-info/prefetch/components/prefetch-logs.vue new file mode 100644 index 0000000..df0a3a8 --- /dev/null +++ b/src/views/camel-oil-info/prefetch/components/prefetch-logs.vue @@ -0,0 +1,284 @@ + + + + + diff --git a/src/views/camel-oil-info/prefetch/components/prefetch-orders.vue b/src/views/camel-oil-info/prefetch/components/prefetch-orders.vue new file mode 100644 index 0000000..9321f78 --- /dev/null +++ b/src/views/camel-oil-info/prefetch/components/prefetch-orders.vue @@ -0,0 +1,356 @@ + + + + + diff --git a/src/views/camel-oil-info/prefetch/index.vue b/src/views/camel-oil-info/prefetch/index.vue index ae4dea8..d71facd 100644 --- a/src/views/camel-oil-info/prefetch/index.vue +++ b/src/views/camel-oil-info/prefetch/index.vue @@ -10,269 +10,14 @@ - -
- - - - - - - - - - - - - - - - - - - - - - - - 搜索 - - - - 重置 - - - - - + + - -
- - - 设置 - -
- - -
-
- - - - 复制日志 - - - - 清空日志 - - -
-
-
- - 加载日志中... -
-
- 暂无日志数据 -
-
-
-
- {{ formatDateTime(log.timestamp) }} -
-
-
- 响应数据: -
-
- {{ log.responseData || '无响应数据' }} -
-
-
-
-
-
-
- - -
- - - - - - - - - - - - - - - - - - - - - - - - 待匹配 - 已匹配 - 已过期 - 已失效 - - - - - - - - - - - - - - - - - - - 搜索 - - - - 重置 - - - - - - - - - - - - - - - - - - - - - - - -
+ + @@ -289,17 +34,10 @@