From b67fc03c0177af0618455137b618355d2aac4c0e Mon Sep 17 00:00:00 2001 From: YangQiang Date: Fri, 17 Apr 2026 15:49:45 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=B7=AF=E7=94=B1):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E5=9C=A8=E7=BA=BF=E5=AD=A6=E4=B9=A0=E7=9B=91=E6=8E=A7=E5=92=8C?= =?UTF-8?q?=E5=AD=A6=E4=B9=A0=E6=80=BB=E8=A7=88=E9=A1=B5=E9=9D=A2=E8=B7=AF?= =?UTF-8?q?=E7=94=B1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit feat(首页): 新增学习情况总览表入口和在线学习监控卡片 refactor(班级分配): 重构班级分配页面,增加学习官查询功能 chore: 删除无用的Git清理脚本和文档文件 style: 调整样式和图标,优化用户体验 --- .codebuddy/integration/eop.json | 10 +- GIT_CLEAN_GUIDE.md | 107 - cleanup-temp.bat | 42 - git-clean.ps1 | 60 - git-clean.sh | 47 - src/components/ClassAllocationPage.vue | 769 +++- src/components/HomePage.vue | 10 +- src/components/LearningOverviewPage.vue | 2636 ++++++++++++ src/components/OnlineLearningMonitorPage.vue | 3905 ++++++++++++++++++ src/components/PortalHomePage.vue | 32 + src/router/index.js | 10 + 11 files changed, 7225 insertions(+), 403 deletions(-) delete mode 100644 GIT_CLEAN_GUIDE.md delete mode 100644 cleanup-temp.bat delete mode 100644 git-clean.ps1 delete mode 100644 git-clean.sh create mode 100644 src/components/LearningOverviewPage.vue create mode 100644 src/components/OnlineLearningMonitorPage.vue diff --git a/.codebuddy/integration/eop.json b/.codebuddy/integration/eop.json index 5576e49..7154021 100644 --- a/.codebuddy/integration/eop.json +++ b/.codebuddy/integration/eop.json @@ -2,9 +2,9 @@ "projectName": "aixuediebian-kanban", "projectId": "pages-eip23arpzoar", "deployUrl": "https://aixuediebian-kanban-3fzkam9s.edgeone.cool", - "previewUrl": "https://aixuediebian-kanban-3fzkam9s.edgeone.cool?eo_token=e87d722adbc6936c1429a1f77bba0d71&eo_time=1776139462", + "previewUrl": "https://aixuediebian-kanban-3fzkam9s.edgeone.cool?eo_token=500f76b21d03fd0693ba2f52f2757888&eo_time=1776404056", "consoleUrl": "https://console.cloud.tencent.com/edgeone/pages/project/pages-eip23arpzoar/index", - "deploymentUrl": "https://console.cloud.tencent.com/edgeone/pages/project/pages-eip23arpzoar/deployment/gnpthgy3s1", - "deployId": "gnpthgy3s1", - "lastDeployTime": 1776139462 -} + "deploymentUrl": "https://console.cloud.tencent.com/edgeone/pages/project/pages-eip23arpzoar/deployment/4dxuaw1yre", + "deployId": "4dxuaw1yre", + "lastDeployTime": 1776404056 +} \ No newline at end of file diff --git a/GIT_CLEAN_GUIDE.md b/GIT_CLEAN_GUIDE.md deleted file mode 100644 index 5c4a72d..0000000 --- a/GIT_CLEAN_GUIDE.md +++ /dev/null @@ -1,107 +0,0 @@ -# Git清理命令指南 - -## 📋 查看和验证命令 - -### 1. 查看当前状态 -```bash -git status --short -``` - -### 2. 预览将被.gitignore忽略的文件(仅删除临时文件) -```bash -git clean -d -X -n -``` - -### 3. 预览所有未追踪的文件(包含重要文件) -```bash -git clean -d -n -``` - -### 4. 查看未追踪的文件(排除.gitignore) -```bash -git ls-files --others --exclude-standard -``` - -### 5. 查看已被.gitignore排除的文件 -```bash -git ls-files --others --ignored --exclude-standard -``` - -## 🧹 清理命令 - -### ✅ 推荐:仅删除临时文件(安全) -```bash -# 预览 -git clean -d -X -n - -# 确认无误后执行 -git clean -d -X -f -``` - -### ⚠️ 仅删除未被忽略的未追踪文件(危险!) -```bash -# 这会删除你的源代码!仅用于确认 -git clean -d -n - -# 不要执行这个,除非你确定 -# git clean -d -f -``` - -### ❌ 危险:删除所有未追踪文件 -```bash -# 这会删除所有文件(包括源代码和临时文件) -git clean -d -x -f -``` - -## 🎯 推荐工作流程 - -### 步骤1:添加重要文件到Git -```bash -# 添加所有重要文件(排除.gitignore中的文件) -git add . - -# 查看已暂存的文件 -git status -``` - -### 步骤2:首次提交 -```bash -git commit -m "Initial commit" -``` - -### 步骤3:清理临时文件 -```bash -# 删除临时文件(node_modules, dist等) -git clean -d -X -f -``` - -### 步骤4:验证状态 -```bash -git status -``` - -## 📝 参数说明 - -- `-d`: 删除未追踪的目录 -- `-f`: 强制删除 -- `-n`: 预览模式,不实际删除(dry run) -- `-X`: 仅删除被.gitignore忽略的文件 -- `-x`: 删除所有未追踪文件(忽略.gitignore) - -## ⚠️ 重要提示 - -1. **始终先使用 `-n` 参数预览** -2. **不要运行 `git clean -d -f`**,除非你确定要删除源代码 -3. **推荐使用 `git clean -d -X -f`** 清理临时文件 -4. **建议先提交重要文件**,再清理临时文件 - -## 🔄 恢复误删 - -如果误删了文件,可以使用以下方法恢复: -```bash -# 如果文件已提交过 -git checkout HEAD -- <文件路径> - -# 如果文件未提交,但还在工作区 -# 可以使用系统回收站或备份恢复 -``` diff --git a/cleanup-temp.bat b/cleanup-temp.bat deleted file mode 100644 index a4c00d8..0000000 --- a/cleanup-temp.bat +++ /dev/null @@ -1,42 +0,0 @@ -@echo off -chcp 65001 >nul -echo ========================================== -echo Git临时文件清理脚本 -echo ========================================== -echo. - -echo [1/4] 检查Git状态... -git status --short -echo. - -echo [2/4] 预览将被删除的临时文件... -echo ========================================== -git clean -d -X -n -echo ========================================== -echo. - -set /p confirm="确认删除这些临时文件吗?(Y/N): " -if /i "%confirm%" neq "Y" ( - echo 已取消操作 - pause - exit /b 0 -) - -echo. -echo [3/4] 正在删除临时文件... -git clean -d -X -f -echo. - -echo [4/4] 验证清理结果... -echo ========================================== -echo 当前未追踪的文件(应为核心源代码): -echo ========================================== -git ls-files --others --exclude-standard -echo. - -echo ========================================== -echo 清理完成! -echo ========================================== -echo. -echo 提示:使用 'git add .' 添加源代码到Git -pause diff --git a/git-clean.ps1 b/git-clean.ps1 deleted file mode 100644 index 7b998ff..0000000 --- a/git-clean.ps1 +++ /dev/null @@ -1,60 +0,0 @@ -# Git清理脚本 - PowerShell版本 -# 用于排除未提交且不重要的文件 - -Write-Host "==========================================" -ForegroundColor Cyan -Write-Host " Git清理脚本 - 安全模式" -ForegroundColor Cyan -Write-Host "==========================================" -ForegroundColor Cyan -Write-Host "" - -# 1. 验证当前状态 -Write-Host "📋 当前Git状态:" -ForegroundColor Green -Write-Host "----------------------------------------" -ForegroundColor DarkGray -git status --short -Write-Host "" - -# 2. 预览将被删除的未追踪文件(不遵循.gitignore) -Write-Host "🔍 预览将删除的未追踪文件(不遵循.gitignore):" -ForegroundColor Yellow -Write-Host "----------------------------------------" -ForegroundColor DarkGray -git clean -d -n -Write-Host "" - -# 3. 预览将被删除的未追踪文件(遵循.gitignore) -Write-Host "🔍 预览将被删除的未追踪文件(遵循.gitignore):" -ForegroundColor Yellow -Write-Host "----------------------------------------" -ForegroundColor DarkGray -git clean -d -X -n -Write-Host "" - -# 4. 预览将被删除的所有未追踪文件 -Write-Host "🔍 预览将被删除的所有未追踪文件:" -ForegroundColor Yellow -Write-Host "----------------------------------------" -ForegroundColor DarkGray -git clean -d -x -n -Write-Host "" - -Write-Host "==========================================" -ForegroundColor Cyan -Write-Host " 清理选项:" -ForegroundColor Cyan -Write-Host "==========================================" -ForegroundColor Cyan -Write-Host "" -Write-Host "选项1: 删除未被.gitignore忽略的文件(安全)" -ForegroundColor White -Write-Host " git clean -d -f" -ForegroundColor Gray -Write-Host "" -Write-Host "选项2: 仅删除被.gitignore忽略的文件(清理临时文件)" -ForegroundColor White -Write-Host " git clean -d -X -f" -ForegroundColor Gray -Write-Host "" -Write-Host "选项3: 删除所有未追踪文件(危险)" -ForegroundColor White -Write-Host " git clean -d -x -f" -ForegroundColor Gray -Write-Host "" -Write-Host "建议:先运行预览命令(-n参数),确认无误后再执行实际删除" -ForegroundColor Yellow -Write-Host "" - -# 5. 验证哪些文件已被排除 -Write-Host "==========================================" -ForegroundColor Cyan -Write-Host " 验证排除状态:" -ForegroundColor Cyan -Write-Host "==========================================" -ForegroundColor Cyan -Write-Host "" -Write-Host "查看所有未追踪的文件:" -ForegroundColor Green -git ls-files --others --exclude-standard -Write-Host "" - -Write-Host "查看已被.gitignore排除的文件:" -ForegroundColor Green -git ls-files --others --ignored --exclude-standard -Write-Host "" diff --git a/git-clean.sh b/git-clean.sh deleted file mode 100644 index 17a5a9b..0000000 --- a/git-clean.sh +++ /dev/null @@ -1,47 +0,0 @@ -#!/bin/bash -# Git清理脚本 - 用于排除未提交且不重要的文件 - -echo "==========================================" -echo " Git清理脚本 - 安全模式" -echo "==========================================" -echo "" - -# 1. 验证当前状态 -echo "📋 当前Git状态:" -echo "----------------------------------------" -git status --short -echo "" - -# 2. 预览将被删除的未追踪文件(不遵循.gitignore) -echo "🔍 预览将删除的未追踪文件(不遵循.gitignore):" -echo "----------------------------------------" -git clean -d -n -echo "" - -# 3. 预览将被删除的未追踪文件(遵循.gitignore) -echo "🔍 预览将被删除的未追踪文件(遵循.gitignore):" -echo "----------------------------------------" -git clean -d -X -n -echo "" - -# 4. 预览将被删除的所有未追踪文件 -echo "🔍 预览将被删除的所有未追踪文件:" -echo "----------------------------------------" -git clean -d -x -n -echo "" - -echo "==========================================" -echo " 清理选项:" -echo "==========================================" -echo "" -echo "选项1: 删除未被.gitignore忽略的文件(安全)" -echo " git clean -d -f" -echo "" -echo "选项2: 仅删除被.gitignore忽略的文件(清理临时文件)" -echo " git clean -d -X -f" -echo "" -echo "选项3: 删除所有未追踪文件(危险)" -echo " git clean -d -x -f" -echo "" -echo "建议:先运行预览命令(-n参数),确认无误后再执行实际删除" -echo "" diff --git a/src/components/ClassAllocationPage.vue b/src/components/ClassAllocationPage.vue index 4fe4cde..b8c8005 100644 --- a/src/components/ClassAllocationPage.vue +++ b/src/components/ClassAllocationPage.vue @@ -2,91 +2,242 @@
- -
- - - {{ school.name }} - - -
- - -
- - - + + +
+ +
+
+
+ + + + +
+

请先选择学校

+

选择学校后将加载相关班级数据

+
+ + + +
+
+
+ + + +
+ + + + +
+ +
+ + + +
+ + +
+ +
+ + +
+ + + +

请检查输入的姓名或手机号是否正确

+
+ + +
+
+ 找到 {{ officerQuery.resultCount }} 位学习官 +
+ + + +
+ + +
+ + + + +

请输入学习官姓名或手机号进行查询

+
+
+
+
@@ -283,58 +434,7 @@ class="filter-input" />
-
- 状态 - - 空闲 - 忙碌 - 请假 - -
-
- 区域 - - 东区 - 西区 - 南区 - 北区 - 中心区 - -
- -
-
- 管理班级数 - - 无管理班级 - 1~3个 - 4~6个 - 7个以上 - -
-
- 入职时间 - -
+
+ + diff --git a/src/components/OnlineLearningMonitorPage.vue b/src/components/OnlineLearningMonitorPage.vue new file mode 100644 index 0000000..b9c1275 --- /dev/null +++ b/src/components/OnlineLearningMonitorPage.vue @@ -0,0 +1,3905 @@ + + + + + \ No newline at end of file diff --git a/src/components/PortalHomePage.vue b/src/components/PortalHomePage.vue index fa03cfb..57860dc 100644 --- a/src/components/PortalHomePage.vue +++ b/src/components/PortalHomePage.vue @@ -108,6 +108,20 @@ 笔记评优
+ +
+
+ + + + + + + +
+ 在线学习监控 + +
@@ -180,6 +194,14 @@ const handleCardClick = (cardId) => { router.push('/report-home') return } + if (cardId === 'online-monitor') { + router.push('/online-learning-monitor') + return + } + if (cardId === 'learning-overview') { + router.push('/learning-overview') + return + } emit('card-click', cardId) } @@ -571,6 +593,16 @@ const handleLogout = () => { box-shadow: 0 2px 8px rgba(82, 196, 26, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); } +.card-icon-cyan { + background: linear-gradient(135deg, #e6fffb 0%, #b5f5ec 100%); + box-shadow: 0 2px 8px rgba(19, 194, 194, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); +} + +.card-icon-purple { + background: linear-gradient(135deg, #f9f0ff 0%, #efdbff 100%); + box-shadow: 0 2px 8px rgba(114, 46, 209, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.6); +} + .card-label { font-size: 15px; color: #1a1a2e; diff --git a/src/router/index.js b/src/router/index.js index c533964..48bc602 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -60,6 +60,16 @@ const routes = [ path: '/english-word-report', name: 'EnglishWordReport', component: () => import('../components/EnglishWordReport.vue') + }, + { + path: '/online-learning-monitor', + name: 'OnlineLearningMonitor', + component: () => import('../components/OnlineLearningMonitorPage.vue') + }, + { + path: '/learning-overview', + name: 'LearningOverview', + component: () => import('../components/LearningOverviewPage.vue') } ]