From ca58dee1c5df6e020ff950fc85c704593fdff1be Mon Sep 17 00:00:00 2001 From: zhangtao <9480807882@qq.com> Date: Mon, 6 Oct 2025 01:37:27 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E7=B3=BB=E7=BB=9F=E5=8F=82=E6=95=B0):=20?= =?UTF-8?q?=E6=96=B0=E5=A2=9E=E7=B3=BB=E7=BB=9F=E5=8F=82=E6=95=B0=E7=AE=A1?= =?UTF-8?q?=E7=90=86=E6=A8=A1=E5=9D=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit refactor(前端): 统一按钮权限属性顺序 style(前端): 格式化代码缩进和换行 --- backend/app/scripts/data/system_menu.json | 6 +-- frontend/src/views/application/ai/index.vue | 49 ++----------------- frontend/src/views/application/job/index.vue | 11 +---- frontend/src/views/current/profile.vue | 12 ++--- frontend/src/views/monitor/cache/index.vue | 15 +++--- frontend/src/views/monitor/resource/index.vue | 18 +++---- frontend/src/views/system/dept/index.vue | 14 +++--- frontend/src/views/system/dict/index.vue | 16 +++--- frontend/src/views/system/log/index.vue | 10 ++-- frontend/src/views/system/menu/index.vue | 16 +++--- frontend/src/views/system/notice/index.vue | 23 ++++----- .../components/ConfigInfoDrawer.vue | 2 +- .../views/system/{config => param}/index.vue | 16 +++--- frontend/src/views/system/position/index.vue | 18 +++---- .../role/components/PermissonDrawer.vue | 11 +++-- frontend/src/views/system/role/index.vue | 12 ++--- .../views/system/user/components/DeptTree.vue | 5 +- frontend/src/views/system/user/index.vue | 14 +++--- 18 files changed, 113 insertions(+), 155 deletions(-) rename frontend/src/views/system/{config => param}/components/ConfigInfoDrawer.vue (98%) rename frontend/src/views/system/{config => param}/index.vue (94%) diff --git a/backend/app/scripts/data/system_menu.json b/backend/app/scripts/data/system_menu.json index 18d3b5f6..939820bd 100644 --- a/backend/app/scripts/data/system_menu.json +++ b/backend/app/scripts/data/system_menu.json @@ -838,9 +838,9 @@ "icon": "setting", "order": 8, "permission": "system:param:query", - "route_name": "Config", - "route_path": "/system/config", - "component_path": "system/config/index", + "route_name": "Params", + "route_path": "/system/param", + "component_path": "system/param/index", "status": true, "keep_alive": true, "hidden": false, diff --git a/frontend/src/views/application/ai/index.vue b/frontend/src/views/application/ai/index.vue index 511afa33..9f77eab6 100644 --- a/frontend/src/views/application/ai/index.vue +++ b/frontend/src/views/application/ai/index.vue @@ -16,23 +16,8 @@ {{ connectionStatusText }} - - - 清空对话 - - - - {{ isConnected ? '断开连接' : '重新连接' }} - + 清空对话 + {{ isConnected ? '断开连接' : '重新连接' }} @@ -100,12 +85,8 @@
- - - - - - + +
@@ -324,7 +305,7 @@ const sendMessage = async () => { // 发送消息到 WebSocket if (ws?.readyState === WebSocket.OPEN) { const payload = { - message: message, + message, timestamp: Date.now() } ws.send(JSON.stringify(payload)) @@ -405,26 +386,6 @@ const scrollToBottom = () => { }) } -// 格式化时间 -const formatTime = (timestamp: number) => { - const date = new Date(timestamp) - const now = new Date() - - if (date.toDateString() === now.toDateString()) { - return date.toLocaleTimeString('zh-CN', { - hour: '2-digit', - minute: '2-digit' - }) - } else { - return date.toLocaleString('zh-CN', { - month: '2-digit', - day: '2-digit', - hour: '2-digit', - minute: '2-digit' - }) - } -} - // 格式化消息内容 const formatMessage = (content: string) => { if (!content) return '' diff --git a/frontend/src/views/application/job/index.vue b/frontend/src/views/application/job/index.vue index 79a954ed..b89d5c23 100644 --- a/frontend/src/views/application/job/index.vue +++ b/frontend/src/views/application/job/index.vue @@ -570,15 +570,8 @@ diff --git a/frontend/src/views/current/profile.vue b/frontend/src/views/current/profile.vue index 6a085e0f..3ef21ec6 100644 --- a/frontend/src/views/current/profile.vue +++ b/frontend/src/views/current/profile.vue @@ -24,8 +24,8 @@ @@ -145,7 +145,7 @@ - 保存更改 + 保存更改 @@ -185,7 +185,7 @@ - 更新密码 + 更新密码 @@ -198,12 +198,12 @@