From b372bb6572f55b9988dfbdefcd69b599eda343b8 Mon Sep 17 00:00:00 2001 From: edgardong <2535615874@qq.com> Date: Thu, 11 Dec 2025 19:04:46 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E4=BC=98=E5=8C=96=E5=8E=9F=E5=9E=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pc/approval-center.html | 4 +- pc/approval-detail.html | 4 +- pc/audit-log.html | 6 +- pc/bidding-detail.html | 6 +- pc/change-password.html | 6 +- pc/common.js | 76 +++------ pc/contract-detail.html | 6 +- pc/dashboard.html | 14 +- pc/file-center.html | 6 +- pc/finance-invoice.html | 72 ++++---- pc/finance-payment.html | 4 +- pc/finance-request.html | 4 +- pc/global-search.html | 6 +- pc/help-center.html | 6 + pc/help-faq.html | 6 + pc/help-formula.html | 6 + pc/help-guide.html | 6 + pc/invoice-detail.html | 6 +- pc/layout.js | 41 ++--- pc/login.html | 83 +++------- pc/message-center.html | 6 +- pc/output-detail.html | 6 +- pc/output-submit.html | 4 +- pc/profile-edit.html | 6 +- pc/profile.html | 6 +- pc/progress-query.html | 6 +- pc/project-approval.html | 4 +- pc/project-bidding.html | 4 +- pc/project-board.html | 6 + pc/project-detail.html | 6 +- pc/project-list.html | 122 +------------- pc/project-start.html | 5 +- pc/report-output-detail.html | 6 +- pc/report-output-summary.html | 6 +- pc/report-payable-detail.html | 6 +- pc/report-payable-summary.html | 6 +- pc/report-project-detail.html | 4 +- pc/report-project-summary.html | 6 +- pc/report-project.html | 6 +- pc/report-receivable-detail.html | 6 +- pc/report-receivable-summary.html | 6 +- pc/request-detail.html | 6 +- pc/settings-dict.html | 7 +- pc/settings-log.html | 7 +- pc/settings-notice.html | 6 +- pc/settings-org.html | 5 +- pc/settings-param.html | 7 +- pc/settings-role.html | 11 +- pc/settings-user.html | 11 +- pc/settings-workflow.html | 7 +- pc/start-detail.html | 6 +- pc/tool-center.html | 6 + pc/tool-fee-calculator.html | 6 + pc/tool-output-calculator.html | 6 + pc/unified-layout.css | 258 +++++++++-------------------- pc/布局修复指南.md | 262 ------------------------------ pc/快速美化指南.md | 213 ------------------------ pc/批量修复说明.md | 111 ------------- pc/美化说明.md | 139 ---------------- 59 files changed, 379 insertions(+), 1296 deletions(-) delete mode 100644 pc/布局修复指南.md delete mode 100644 pc/快速美化指南.md delete mode 100644 pc/批量修复说明.md delete mode 100644 pc/美化说明.md diff --git a/pc/approval-center.html b/pc/approval-center.html index e87780d..776804a 100644 --- a/pc/approval-center.html +++ b/pc/approval-center.html @@ -185,7 +185,7 @@ - + - + diff --git a/pc/audit-log.html b/pc/audit-log.html index 0e9518b..26e266f 100644 --- a/pc/audit-log.html +++ b/pc/audit-log.html @@ -5,6 +5,8 @@ 操作日志与审计 - OA系统 + + diff --git a/pc/file-center.html b/pc/file-center.html index 8b00328..08c5cb5 100644 --- a/pc/file-center.html +++ b/pc/file-center.html @@ -5,6 +5,8 @@ 文件中心 - OA系统 + + diff --git a/pc/message-center.html b/pc/message-center.html index a2ca36f..e14771d 100644 --- a/pc/message-center.html +++ b/pc/message-center.html @@ -5,6 +5,8 @@ 消息中心 - OA系统 + + @@ -119,27 +29,7 @@ -
-
-
-
+
+
+
- + + -
diff --git a/pc/project-start.html b/pc/project-start.html index 89b0691..c6f743a 100644 --- a/pc/project-start.html +++ b/pc/project-start.html @@ -248,8 +248,9 @@
- + diff --git a/pc/report-output-detail.html b/pc/report-output-detail.html index d61aff8..fcc01ce 100644 --- a/pc/report-output-detail.html +++ b/pc/report-output-detail.html @@ -5,6 +5,8 @@ 产值明细表 - OA系统 + + - - -
-
-
- - - -
-
- -
-
-
-
-
- - - - - - -``` - -## 四、模块Key对照表 - -| 模块 | Key值 | 说明 | -|------|-------|------| -| 首页 | `'home'` | dashboard.html | -| 商机管理 | `'project'` | project-*.html | -| 过程管理 | `'process'` | project-start.html, output-*.html | -| 财务管理 | `'finance'` | finance-*.html | -| 报表管理 | `'report'` | report-*.html | -| 审批中心 | `'approval'` | approval-*.html | -| 消息中心 | `'message'` | message-*.html | -| 文件中心 | `'file'` | file-*.html | -| 工具中心 | `'tool'` | tool-*.html | -| 帮助中心 | `'help'` | help-*.html | -| 全局搜索 | `'search'` | global-search.html | -| 操作日志 | `'audit'` | audit-log.html | -| 系统设置 | `'settings'` | settings-*.html | - -## 五、已修复的页面示例 - -✅ **project-contract.html** - 合同管理页面 -- 已添加统一布局样式 -- 已修复布局结构 -- 已统一菜单样式 - -## 六、需要修复的页面清单 - -### 高优先级(核心业务页面) - -#### 商机管理模块 -- [ ] `project-initiation.html` - 立项申请 -- [ ] `project-list.html` - 项目查询(已引入enhanced-styles,需添加unified-layout) -- [ ] `project-detail.html` - 项目详情 -- [ ] `project-approval.html` - 审核管理 -- [ ] `project-bidding.html` - 投标管理 -- [x] `project-contract.html` - 合同管理(已修复) - -#### 过程管理模块 -- [ ] `project-start.html` - 启动申请 -- [ ] `output-submit.html` - 成果提交 -- [ ] `progress-query.html` - 进度查询 - -#### 财务管理模块 -- [ ] `finance-invoice.html` - 开票管理 -- [ ] `finance-payment.html` - 回款管理 -- [ ] `finance-request.html` - 请款管理 - -#### 报表管理模块 -- [ ] `report-project-detail.html` - 项目报表 -- [ ] `report-output-detail.html` - 产值报表 -- [ ] `report-receivable-detail.html` - 应收报表 - -### 中优先级(辅助功能页面) - -- [ ] `approval-center.html` - 审批中心 -- [ ] `approval-detail.html` - 审核详情 -- [ ] `message-center.html` - 消息中心 -- [ ] `file-center.html` - 文件中心 -- [ ] `global-search.html` - 全局搜索 - -### 低优先级(其他页面) - -- [ ] 系统设置相关页面 -- [ ] 个人中心相关页面 -- [ ] 工具页面 -- [ ] 帮助页面 - -## 七、修复步骤 - -### 步骤1:添加样式引用 -在 `` 中添加: -```html - -``` - -### 步骤2:确保HTML结构正确 -确保有以下结构: -```html -
-
- -
-
- -
-
-
-
-``` - -### 步骤3:添加脚本 -在 `` 之前添加: -```html - - -``` - -### 步骤4:清理冗余样式 -删除页面中与统一布局冲突的样式定义。 - -## 八、修复后的效果 - -### 统一的外观 -- ✅ 所有页面使用相同的导航栏样式 -- ✅ 所有页面使用相同的菜单样式 -- ✅ 所有页面使用相同的内容区域样式 - -### 统一的交互 -- ✅ 统一的悬停效果 -- ✅ 统一的点击反馈 -- ✅ 统一的动画效果 - -### 统一的布局 -- ✅ 统一的间距和边距 -- ✅ 统一的圆角和阴影 -- ✅ 统一的响应式布局 - -## 九、注意事项 - -1. **样式优先级**:`unified-layout.css` 应该在其他样式之前引入 -2. **脚本执行**:`unified-layout.js` 应该在页面内容加载后执行 -3. **模块Key**:确保传入正确的模块key,以便导航栏正确高亮 -4. **HTML结构**:确保HTML结构符合模板要求 - -## 十、批量修复建议 - -可以使用编辑器批量替换功能: - -1. **查找**:`` -2. **替换为**: -```html - - - -``` - -3. **查找**:`` -4. **替换为**: -```html - - - -``` - ---- - -**提示**:建议先修复核心业务页面,然后逐步修复其他页面。 - diff --git a/pc/快速美化指南.md b/pc/快速美化指南.md deleted file mode 100644 index dff7c3e..0000000 --- a/pc/快速美化指南.md +++ /dev/null @@ -1,213 +0,0 @@ -# 快速美化指南 - -## 一、已完成的页面 - -✅ **已完成美化的页面:** -- `login.html` - 登录页面 -- `dashboard.html` - 首页 -- `project-list.html` - 项目列表(已引入样式) - -✅ **已更新的公共文件:** -- `common.js` - 消息提示和弹窗美化 -- `layout.js` - 导航栏美化 -- `enhanced-styles.css` - 统一美化样式文件(新建) - -## 二、快速应用到其他页面 - -### 方法1:在HTML头部添加样式引用 - -在每个HTML文件的 `` 部分,在Element UI样式之后添加: - -```html - - -``` - -**完整示例:** -```html - - - - - - 页面标题 - OA系统 - - - - - - - - - -``` - -### 方法2:批量替换(使用编辑器) - -1. 打开编辑器(如VS Code) -2. 使用全局查找替换功能 -3. 查找:`` -4. 替换为: -```html - - - -``` - -### 方法3:使用脚本批量添加(可选) - -如果需要批量处理,可以使用Node.js脚本: - -```javascript -const fs = require('fs'); -const path = require('path'); -const glob = require('glob'); - -// 查找所有HTML文件 -const files = glob.sync('pc/**/*.html'); - -files.forEach(file => { - let content = fs.readFileSync(file, 'utf8'); - - // 检查是否已包含美化样式 - if (!content.includes('enhanced-styles.css')) { - // 在Element UI样式后添加美化样式 - content = content.replace( - /()/, - '$1\n \n ' - ); - - fs.writeFileSync(file, content, 'utf8'); - console.log(`已更新: ${file}`); - } -}); -``` - -## 三、美化效果预览 - -### 导航栏 -- ✨ 紫色渐变背景 -- ✨ 毛玻璃效果 -- ✨ 悬停动画 -- ✨ 精致阴影 - -### 卡片 -- ✨ 圆角优化(12px) -- ✨ 悬停上浮效果 -- ✨ 顶部渐变条 -- ✨ 渐变文字 - -### 按钮 -- ✨ 渐变背景 -- ✨ 涟漪点击效果 -- ✨ 悬停阴影 -- ✨ 平滑动画 - -### 表格 -- ✨ 更好的视觉层次 -- ✨ 悬停高亮 -- ✨ 精致边框 -- ✨ 粘性表头 - -### 表单 -- ✨ 更大圆角 -- ✨ 聚焦阴影 -- ✨ 上浮效果 -- ✨ 视觉反馈 - -## 四、需要更新的页面列表 - -### PC端页面(47个) - -#### 核心业务页面(优先) -- [ ] `project-initiation.html` - 立项申请 -- [ ] `project-detail.html` - 项目详情 -- [ ] `project-approval.html` - 审核管理 -- [ ] `project-bidding.html` - 投标管理 -- [ ] `project-contract.html` - 合同管理 -- [ ] `project-start.html` - 启动申请 -- [ ] `output-submit.html` - 成果提交 -- [ ] `approval-detail.html` - 审核详情 -- [ ] `finance-invoice.html` - 开票管理 -- [ ] `finance-payment.html` - 回款管理 -- [ ] `finance-request.html` - 请款管理 -- [ ] `report-project-detail.html` - 项目报表 -- [ ] `report-output-detail.html` - 产值报表 -- [ ] `report-receivable-detail.html` - 应收报表 - -#### 辅助功能页面 -- [ ] `approval-center.html` - 审批中心 -- [ ] `message-center.html` - 消息中心 -- [ ] `file-center.html` - 文件中心 -- [ ] `global-search.html` - 全局搜索 -- [ ] `tool-center.html` - 工具中心 -- [ ] `tool-fee-calculator.html` - 费用计算器 -- [ ] `tool-output-calculator.html` - 产值计算器 -- [ ] `project-board.html` - 项目看板 -- [ ] `help-center.html` - 帮助中心 -- [ ] `help-guide.html` - 操作指南 -- [ ] `help-faq.html` - 常见问题 -- [ ] `help-formula.html` - 计算公式 - -#### 系统设置页面 -- [ ] `settings-org.html` - 组织架构 -- [ ] `settings-user.html` - 账号管理 -- [ ] `settings-role.html` - 权限配置 -- [ ] `settings-workflow.html` - 流程配置 -- [ ] `settings-notice.html` - 系统公告 -- [ ] `settings-dict.html` - 字典管理 -- [ ] `settings-param.html` - 参数配置 -- [ ] `settings-log.html` - 操作日志 - -#### 个人中心页面 -- [ ] `profile.html` - 个人中心 -- [ ] `profile-edit.html` - 个人信息编辑 -- [ ] `change-password.html` - 修改密码 - -#### 错误页面 -- [ ] `404.html` - 页面不存在 -- [ ] `403.html` - 无权限访问 -- [ ] `500.html` - 服务器错误 - -#### 其他页面 -- [ ] 其他业务详情页面 - -## 五、美化后的效果对比 - -### 之前 -- 基础配色 -- 简单阴影 -- 基础圆角 -- 简单动画 - -### 之后 -- ✨ 渐变配色 -- ✨ 精致阴影 -- ✨ 优化圆角 -- ✨ 流畅动画 -- ✨ 毛玻璃效果 -- ✨ 渐变文字 -- ✨ 悬停效果 -- ✨ 视觉层次 - -## 六、注意事项 - -1. **样式优先级**:`enhanced-styles.css` 中的样式会覆盖部分Element UI默认样式 -2. **兼容性**:使用了CSS变量和现代CSS特性,需要现代浏览器支持 -3. **性能**:动画经过优化,不会影响页面性能 -4. **自定义**:可以通过修改 `enhanced-styles.css` 中的CSS变量来调整整体风格 - -## 七、下一步 - -1. ✅ 已完成:创建统一美化样式文件 -2. ✅ 已完成:更新公共文件(common.js, layout.js) -3. ✅ 已完成:美化示例页面(login, dashboard, project-list) -4. ⏳ 待完成:批量应用到所有页面 -5. ⏳ 待完成:移动端样式优化 - ---- - -**提示**:建议先应用到核心业务页面,然后逐步应用到其他页面。 - diff --git a/pc/批量修复说明.md b/pc/批量修复说明.md deleted file mode 100644 index a22da42..0000000 --- a/pc/批量修复说明.md +++ /dev/null @@ -1,111 +0,0 @@ -# 批量修复布局 - 快速指南 - -## 修复步骤 - -### 步骤1:添加统一布局样式 -在每个HTML文件的 `` 部分,在Element UI样式之后添加: - -```html - - -``` - -### 步骤2:替换布局脚本 -将: -```html - - -``` - -替换为: -```html - - -``` - -### 步骤3:模块Key对照 -- `'project'` - 商机管理(project-*.html) -- `'process'` - 过程管理(project-start.html, output-*.html) -- `'finance'` - 财务管理(finance-*.html) -- `'report'` - 报表管理(report-*.html) -- `'approval'` - 审批中心(approval-*.html) -- `'message'` - 消息中心(message-*.html) -- `'file'` - 文件中心(file-*.html) -- `'tool'` - 工具中心(tool-*.html) -- `'help'` - 帮助中心(help-*.html) -- `'search'` - 全局搜索(global-search.html) -- `'audit'` - 操作日志(audit-log.html) -- `'settings'` - 系统设置(settings-*.html) - -## 已修复的页面 - -✅ project-contract.html -✅ finance-invoice.html -✅ project-initiation.html -✅ project-list.html - -## 待修复的页面清单 - -### 商机管理模块 -- [ ] project-approval.html -- [ ] project-bidding.html -- [ ] bidding-detail.html -- [ ] contract-detail.html -- [ ] project-detail.html - -### 过程管理模块 -- [ ] project-start.html -- [ ] start-detail.html -- [ ] output-submit.html -- [ ] output-detail.html -- [ ] progress-query.html - -### 财务管理模块 -- [ ] finance-payment.html -- [ ] finance-request.html -- [ ] invoice-detail.html -- [ ] request-detail.html - -### 报表管理模块 -- [ ] report-project-detail.html -- [ ] report-project-summary.html -- [ ] report-project.html -- [ ] report-output-detail.html -- [ ] report-output-summary.html -- [ ] report-receivable-detail.html -- [ ] report-receivable-summary.html -- [ ] report-payable-detail.html -- [ ] report-payable-summary.html - -### 辅助功能 -- [ ] approval-center.html -- [ ] approval-detail.html -- [ ] message-center.html -- [ ] file-center.html -- [ ] global-search.html -- [ ] audit-log.html - -### 工具和帮助 -- [ ] tool-center.html -- [ ] tool-fee-calculator.html -- [ ] tool-output-calculator.html -- [ ] project-board.html -- [ ] help-center.html -- [ ] help-guide.html -- [ ] help-faq.html -- [ ] help-formula.html - -### 系统设置 -- [ ] settings-org.html -- [ ] settings-user.html -- [ ] settings-role.html -- [ ] settings-workflow.html -- [ ] settings-notice.html -- [ ] settings-dict.html -- [ ] settings-param.html -- [ ] settings-log.html - diff --git a/pc/美化说明.md b/pc/美化说明.md deleted file mode 100644 index 17104a6..0000000 --- a/pc/美化说明.md +++ /dev/null @@ -1,139 +0,0 @@ -# 页面美化说明 - -## 一、美化内容 - -### 1. 统一设计系统 -创建了 `enhanced-styles.css` 文件,包含: -- CSS变量定义(颜色、阴影、圆角、间距等) -- 统一的组件样式(按钮、卡片、表格、表单等) -- 流畅的动画效果 -- 现代化的视觉设计 - -### 2. 更新的文件 - -#### 公共文件 -- ✅ `common.js` - 消息提示和弹窗样式美化 -- ✅ `layout.js` - 导航栏样式美化(渐变背景、动画效果) -- ✅ `enhanced-styles.css` - 新增统一美化样式文件 - -#### 示例页面 -- ✅ `login.html` - 登录页面美化(渐变背景、毛玻璃效果、动画) -- ✅ `dashboard.html` - 首页美化(卡片悬停效果、渐变文字) - -### 3. 美化特点 - -#### 导航栏 -- 渐变背景(紫色渐变) -- 毛玻璃效果 -- 悬停动画 -- 更精致的阴影 - -#### 卡片 -- 圆角优化(12px) -- 悬停上浮效果 -- 顶部渐变条动画 -- 渐变文字效果 - -#### 按钮 -- 渐变背景 -- 涟漪点击效果 -- 悬停阴影增强 -- 平滑过渡动画 - -#### 表单 -- 更大的圆角 -- 聚焦时的阴影和上浮效果 -- 更好的视觉反馈 - -#### 消息提示 -- 渐变背景 -- 图标显示 -- 滑入滑出动画 -- 毛玻璃效果 - -#### 弹窗 -- 更大的圆角(16px) -- 渐变标题文字 -- 关闭按钮旋转动画 -- 背景模糊效果 - -## 二、使用方法 - -### 在页面中引入美化样式 - -在HTML文件的 `` 部分添加: - -```html - - -``` - -### 示例 - -```html - - - - - 页面标题 - - - - - - - - - -``` - -## 三、需要更新的页面 - -### 高优先级(核心页面) -- [ ] `project-list.html` - 项目列表 -- [ ] `project-initiation.html` - 立项申请 -- [ ] `project-start.html` - 启动申请 -- [ ] `approval-center.html` - 审批中心 -- [ ] `finance-invoice.html` - 开票管理 -- [ ] `report-project-detail.html` - 项目报表 - -### 中优先级(常用页面) -- [ ] `message-center.html` - 消息中心 -- [ ] `file-center.html` - 文件中心 -- [ ] `profile.html` - 个人中心 -- [ ] `settings-*.html` - 系统设置相关页面 - -### 低优先级(其他页面) -- [ ] 其他业务页面 - -## 四、美化效果 - -### 视觉提升 -- ✅ 更现代的配色方案 -- ✅ 更精致的阴影和圆角 -- ✅ 更流畅的动画效果 -- ✅ 更好的视觉层次 - -### 用户体验 -- ✅ 更清晰的交互反馈 -- ✅ 更平滑的过渡动画 -- ✅ 更直观的视觉引导 -- ✅ 更舒适的视觉体验 - -## 五、注意事项 - -1. **兼容性**:美化样式使用了CSS变量和现代CSS特性,需要现代浏览器支持 -2. **性能**:动画效果经过优化,不会影响页面性能 -3. **一致性**:建议所有页面都引入 `enhanced-styles.css` 保持视觉一致性 -4. **自定义**:可以通过CSS变量在 `enhanced-styles.css` 中调整整体风格 - -## 六、后续优化建议 - -1. 为所有页面添加美化样式引入 -2. 优化移动端样式 -3. 添加暗色主题支持 -4. 优化加载动画 -5. 添加骨架屏效果 -