diff --git a/BPMN流程图_业务流程模型.html b/BPMN流程图_业务流程模型.html new file mode 100644 index 0000000..3e5233f --- /dev/null +++ b/BPMN流程图_业务流程模型.html @@ -0,0 +1,1924 @@ + + + + + + JCDP教育培训管理系统 - BPMN业务流程模型 + + + +
+ +
+

JCDP 教育培训管理系统

+

BPMN 2.0 业务流程模型

+
+ 📅 版本: v1.0 + 🏢 中国电子科技集团第五十四研究所 + 🔢 软件版本: 54 +
+
+ + +
+
+
+ +
+ 开始事件 +
+
+
+ +
+ 结束事件 +
+
+
+ +
+ 用户任务 +
+
+
+ +
+ 子流程 +
+
+
+ +
+ 排他网关 +
+
+
+ +
+ 连接线 +
+
+ + + + + +
+

📊 业务流程总览

+

JCDP系统核心业务流程一览

+ +
+
+

培训计划管理 PROC-TRAIN-PLAN

+

年度培训计划的制定、调研、汇总与审批流程

+
+ 审批流 + 多部门协作 + 年度周期 +
+
+ +
+

培训实施管理 PROC-TRAIN-IMPLEMENT

+

培训班级创建、学员管理、授课与效果评估

+
+ 状态驱动 + 班级管理 + 效果反馈 +
+
+ +
+

考试管理 PROC-EXAM

+

试卷管理、在线答题、自动/人工判卷

+
+ 定时触发 + 自动判分 + 人员限定 +
+
+ +
+

外派培训管理 PROC-OUTTRAIN

+

外部培训申请、审批、归来登记与考核

+
+ 审批流 + 外出管理 + 经济责任制 +
+
+ +
+

通用审批流程 SUB-APPROVAL

+

被其他流程调用的通用多级审批子流程

+
+ 子流程 + 多级审批 + 可复用 +
+
+ +
+

年度培训总结 PROC-YEAR-SUMMARY

+

年度培训数据汇总、报告生成

+
+ 填报流 + 年度周期 + 数据汇总 +
+
+
+
+ + +
+

📝 培训计划管理流程 PROC-TRAIN-PLAN

+

年度培训计划的制定、调研、汇总与审批管理

+ + +
+
+
流程ID
+
PROC-TRAIN-PLAN
+
+
+
流程类型
+
审批流 + 数据填报流
+
+
+
触发方式
+
手工触发(所级管理员)
+
+
+
流程周期
+
年度(Q4制定次年计划)
+
+
+ + +
+

👥 参与者定义

+
+
+ 🎯 +
+
所级管理员
+
发起计划、下发通知、汇总生成、审批
+
+
+
+ 👤 +
+
部门管理员
+
填报课程需求、反馈调研
+
+
+
+ 📋 +
+
部门领导
+
审核部门申报
+
+
+
+ 🏛️ +
+
所级领导
+
最终审批
+
+
+
+
+ + +
+ + + + + + + + + + + + + + + + + + + + + 所级管理员 + + + 部门管理员 + + + 领导层审批 + + + + 开始 + + + + 创建培训计划 + et_train_ip/gip/gop + + + + + + 计划 + 类型? + + + + + + 所级计划 + et_train_ip + jhly='sj' + + + + 部门计划内 + et_train_gip + jhly='bmn' + + + + 部门计划外 + et_train_gop + jhly='bmw' + + + + + + + + + + + 部门管理员填报 + 选择课程、填写需求 + et_train_gipgroup_kc + + + + + + + + 需要 + 调研? + + + + + + 下发调研问卷 + et_train_ipdy + + + 部门反馈需求 + et_train_ipdy_kc + + + + + + + + + + + 所级汇总生成 + et_train_ipf + + + + + + + 🔄 通用审批子流程 SUB-APPROVAL + 部门领导审核 → 所级领导审批 + et_train_sp + + + + + + 审批 + 结果? + + + + + + 驳回重编 + + + + + + + + + + 结束 + + + + + 通过 + +
+ + +

📋 流程节点详情

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
节点ID节点名称类型输入输出执行人
PROC-TRAIN-PLAN.START开始开始事件年度计划请求-所级管理员
PROC-TRAIN-PLAN.CREATE创建计划用户任务计划类型et_train_ip/gip/gop记录所级管理员
PROC-TRAIN-PLAN.FILL部门填报子流程通知et_train_gipgroup_kc部门管理员
PROC-TRAIN-PLAN.SURVEY调研征集排他网关-et_train_ipdy所级管理员
PROC-TRAIN-PLAN.SUMMARY汇总生成用户任务部门需求et_train_ipf所级管理员
PROC-TRAIN-PLAN.APPROVE审批流程子流程计划ID审批结果领导层
PROC-TRAIN-PLAN.END计划生效结束事件审批通过状态变更系统
+
+ + +
+

🎓 培训实施管理流程 PROC-TRAIN-IMPLEMENT

+

培训班级的创建、审核、学员管理、授课与效果评估

+ + +
+
+
流程ID
+
PROC-TRAIN-IMPLEMENT
+
+
+
流程类型
+
状态驱动流程
+
+
+
触发方式
+
计划批准后自动/手工创建
+
+
+
流程周期
+
单次培训(按班级)
+
+
+ + +
+

👥 参与者定义

+
+
+ 🎯 +
+
所级管理员
+
开班审核、下发
+
+
+
+ 👨‍🏫 +
+
培训管理员
+
课程分配、学员管理
+
+
+
+ 📖 +
+
讲师
+
授课、签到
+
+
+
+ 🎓 +
+
学员
+
参训、反馈
+
+
+
+
+ + +

🔄 培训班级状态机

+
+
+
-1
+
被驳回
+
+ +
+
0
+
未开班
+
+ +
+
1
+
已下发
+
+ +
+
2
+
已开班
+
+ +
+
3
+
待审核
+
+ +
+
+
培训完成
+
+
+ + +
+ + + + + + 管理员 + + + 培训管理员 + + + 讲师 + + + 学员/系统 + + + + 开始 + + + + 创建培训班级 + status=0 + + + + + + 设置培训信息 + • 选择讲师 + • 设置时间 + • 设置参数 + + + + + + 审核 + 通过? + + + + + + 驳回修改 + + + + + + 驳回 + + + + 下发开班通知 + status=1 + + + 通过 + + + + 学员管理 + et_train_pd_cc_user + + + + + + + + 需要 + 签到? + + + + + + 签到管理 + et_train_pd_cc_dt + + + + + + + 授课管理 + 填写实际讲师 + + + + + + + + 标记开班完成 + status=2 + + + + + + 需要 + 考核? + + + + + + 发布评分问卷 + pgwjxxy.status=2 + + + + + + + 提交归档 + status=3 + + + + + + + + 完成 + + + + + + + + +
+ + +

📊 培训完成判定规则

+
+

判定逻辑:

+
+IF (nd >= 2023) THEN
+    完成条件 = et_train_pd_cc_pgwjyxx.status = 2  (问卷/心得状态=已完成)
+ELSE
+    完成条件 = IF(yxx.status IS NOT NULL, yxx.status=2, pg.status=1)
+END IF
+
+说明:2023年起新增培训效果问卷反馈环节,替代原有的评分机制
+
+
+ + +
+

📋 考试管理流程 PROC-EXAM

+

试卷管理、在线答题、自动/人工判卷全流程

+ + +
+
+
流程ID
+
PROC-EXAM
+
+
+
流程类型
+
定时触发 + 手工触发
+
+
+
触发方式
+
试卷发布后自动计时/手工
+
+
+
流程周期
+
按试卷设定的考试周期
+
+
+ + +
+

👥 参与者定义

+
+
+ 📝 +
+
考试管理员
+
试卷创建、发布、管理
+
+
+
+ 🎓 +
+
考生
+
在线答题
+
+
+
+ ✏️ +
+
阅卷教师
+
主观题判分
+
+
+
+ ⚙️ +
+
系统
+
自动判分、状态切换
+
+
+
+
+ + +

🔄 考试状态机 (exampaper.state)

+
+
+
已撤销
+
已撤销
+
+ +
+
未开始
+
未开始
+
datediff>0
+
+ +
+
进行中
+
正在进行
+
startdate≤0≤enddate
+
+ +
+
已关闭
+
已关闭
+
datediff<0
+
+ +
+
已归档
+
已归档
+
+
+ + +

✏️ 判分规则

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
题型自动判分人工判分说明
单选题✅ 支持答案一致得分
多选题✅ 支持答案一致得分
判断题✅ 支持答案一致得分
简答题✅ 支持需阅卷教师评分
+ + +
+ + + + + + 考试管理员 + + + 考生 + + + 系统 + + + 阅卷教师 + + + 归档/发布 + + + + 开始 + + + + 创建试卷 + et_exam_exampaper + + + + + + 添加题目 + et_exam_editexampaper + type/score/answer + + + + + + 题型? + + + + + + 客观题 + 设标准答案 + + + + 主观题 + 待人工判分 + + + + + 客观 + 主观 + + + + 人员限定 + et_exam_limitation + + + + + + + + + 开始 + 时间? + + + + + + + + 考试进行中 + + + + + + + + 在线答题 + et_exam_usertest + user_answer + + + + + + + + 题型? + + + + + + 自动判分 + + + + 人工判分 + + + + + 客观 + + 主观 + + + + + 全部 + 提交? + + + + + + + + + + + + + + + + + 考试关闭 + state=已关闭 + + + + + + 成绩发布 + user_score + + + + + + + 完成 + + + + + +
+
+ + +
+

🌐 外派培训管理流程 PROC-OUTTRAIN

+

外部培训申请、审批、归来登记与考核关联

+ + +
+
+
流程ID
+
PROC-OUTTRAIN
+
+
+
流程类型
+
审批流
+
+
+
触发方式
+
手工发起
+
+
+
流程周期
+
单次外派
+
+
+ + +
+ + + + + + 申请人 + + + 审批流程 + + + 外派执行 + + + 归来登记 + + + + 开始 + + + + 填写外派申请 + et_train_ot + + + + + + 培训 + 对象? + + + + + + 自动关联 + pxdjfw='0' + + + + 指定参训人员 + et_train_ot_xy + + + + + 本部门 + 指定 + + + + 提交审批 + + + + + + + 审批 + 结果? + + + + + + 驳回修改 + + + + + + 驳回 + + + + 等待外派开始 + pxstarttime + + + 通过 + + + + 外派培训中 + + + + 外派归来 + pxendtime到达 + + + + + + + 外派登记 + et_train_ot_pxdj + + + + + + + + 单位 + 性质? + + + + + + 经济责任制 + 关联考核 + + + + 非经济责任制 + 关联考核 + + + + + 经济 + 非经济 + + + + + 完成 + + + + + +
+ + +

📊 关键数据表

+ + + + + + + + + + + + + + + + + + + + + + + + + +
表名说明关键字段
et_train_ot外派培训主表pxmc, pxfy, sld, pxdjfw, status=5
et_train_ot_xy外派学员表usercode, username
et_train_ot_pxdj外派登记表status=4 (已完成登记)
+
+ + +
+

通用审批流程 SUB-APPROVAL

+

被其他流程调用的通用多级审批子流程

+ + +
+
+
子流程ID
+
SUB-APPROVAL
+
+
+
调用方式
+
被主流程调用
+
+
+
审批层级
+
多级(可配置)
+
+
+ + +
+ + + + + + 开始 + + + + 获取审批人 + sp_person + + + + + + 还有未 + 审批项? + + + + + + 当前审批人 + 审批 + + + + + + 审批 + 结果? + + + + + + 驳回 + + + 驳回 + + + + + 结束 + + + + + + 还有 + 下一级? + + + 通过 + + + + 流转下一级 + + + + + + + + + 审批通过 + + + + + + + 结束 + + + + + + et_train_sp 数据存储 + tname(表名) | tid(记录ID) | spusername(审批人) | spdate(审批时间) | yj(意见) | spresult(结果) + +
+ + +

📊 审批数据存储 (et_train_sp)

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
字段说明
tname目标业务表名
tid目标业务记录ID
spusername审批人姓名
spdate审批时间
yj审批意见
spresult审批结果 (通过/驳回)
+
+ + +
+

📈 年度培训总结流程 PROC-YEAR-SUMMARY

+

年度培训数据汇总、报告生成流程

+ + +
+
+
流程ID
+
PROC-YEAR-SUMMARY
+
+
+
触发方式
+
年度结束(12月)
+
+
+
流程周期
+
年度
+
+
+ + +
+ + + + + + 所级管理员 + + + 部门管理员 + + + 汇总分析 + + + + 开始 + + + + 创建年度总结 + et_train_ys + + + + + + 下发填报通知 + + + + + + 部门填报年度总结 + et_train_ysgroup + status=待填报 + + + + + + + 提交总结 + + + + + + 状态更新 + status=3 + + + + + + 所级管理员汇总 + 合并各部门数据 + 生成统计报表 + + + + + + 数据 + 完整? + + + + + + 返回补充 + + + + + + + + + + + 生成 + 报告 + + + + + + + 完成 + + + +
+
+ + +
+

📊 流程模型总览

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
流程ID流程名称类型触发方式关联主表
PROC-TRAIN-PLAN培训计划管理审批流手工触发et_train_ip / et_train_gip
PROC-TRAIN-IMPLEMENT培训实施管理状态流计划批准后et_train_pd_cc
PROC-EXAM考试管理定时流试卷发布et_exam_exampaper
PROC-OUTTRAIN外派培训审批流手工发起et_train_ot
SUB-APPROVAL通用审批子流程被调用et_train_sp
PROC-YEAR-SUMMARY年度总结填报流年度结束et_train_ys
+
+ + + +
+ + + + diff --git a/CODE_FIX_PLAN.md b/CODE_FIX_PLAN.md new file mode 100644 index 0000000..6963b29 --- /dev/null +++ b/CODE_FIX_PLAN.md @@ -0,0 +1,311 @@ +# JCDP 项目代码修复方案 + +> **文档版本**: v1.0 +> **创建时间**: 2026-04-16 +> **依据**: [CODE_REVIEW_REPORT.md](./CODE_REVIEW_REPORT.md) + +--- + +## 一、修复执行情况 + +### ✅ 已完成修复 + +| 序号 | 问题 | 修复文件 | 修复内容 | +|------|------|----------|----------| +| 1 | 全局变量未声明 | `globalConfig.js` | 为 8 个正则变量添加 `const` 声明 | +| 2 | 日期 API 误用 | `globalConfig.js` | `getDay()` → `getDate()` (第268、271行) | +| 3 | 废弃 SQL 清理 | 4 个 map.xml | 删除 16 个废弃 SQL 定义 | +| 4 | 注释死代码 | 115 个 ftl | 删除 615+ 处注释代码 | + +### 📋 待处理问题 + +| 序号 | 问题 | 优先级 | 说明 | +|------|------|--------|------| +| 1 | 同步 AJAX 请求 | 🟠 严重 | 6 处 `async: false` 需要改为异步 | +| 2 | SELECT * 过多 | 🟡 建议 | 120+ 处可优化为指定字段 | +| 3 | 内联样式过多 | 🟡 建议 | 6265+ 处 style 属性待清理 | +| 4 | 内联事件处理 | 🟡 建议 | 115 处 onclick/onchange 待重构 | + +--- + +## 二、已修复问题详情 + +### 2.1 全局变量声明修复 + +**文件**: `asset/js/etms/globalConfig.js` + +**修复内容**: 为验证函数中的正则表达式变量添加 `const` 声明 + +```javascript +// 修复前 +validator: function (val) { + isIDCard1 = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/; + isIDCard2 = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}[0-9xX]$/; + ... +} + +// 修复后 +validator: function (val) { + const isIDCard1 = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/; + const isIDCard2 = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}[0-9xX]$/; + ... +} +``` + +**涉及变量**: `isIDCard1`, `isIDCard2`, `isPostcode`, `isAboveAndEqualZero`, `isPositiveNumber`, `isPositiveInteger`, `isMonthNum`, `moreThanFive`, `isPointNum`, `isEmail` + +--- + +### 2.2 日期 API 修复 + +**文件**: `asset/js/etms/globalConfig.js` 第 268、271 行 + +**修复内容**: `getDay()` → `getDate()` + +```javascript +// 修复前 +if (dateTime1.getDay() == dateTime2.getDay()) { + tempTime = dateTime2.format("hh:mm"); +} else { + if (dateTime1.getDay() - dateTime2.getDay() == 1) { + tempTime = dateTime2.format("昨天 hh:mm"); + } +} + +// 修复后 +if (dateTime1.getDate() == dateTime2.getDate()) { + tempTime = dateTime2.format("hh:mm"); +} else { + if (dateTime1.getDate() - dateTime2.getDate() == 1) { + tempTime = dateTime2.format("昨天 hh:mm"); + } +} +``` + +--- + +### 2.3 废弃 SQL 清理 + +**修复文件**: +- `chat.map.xml`: 删除 `updatePkgListToOld` +- `et_exam_editexampaper.map.xml`: 删除 `moveOld` +- `et_exam_usertest.map.xml`: 删除 10 个废弃 SQL +- `et_train_outtrain.map.xml`: 删除 2 个废弃 SQL + +**清理的废弃 SQL ID**: +- `getExamResultList之前的写法,在此备份` +- `truncateExamDetail备份` +- `getPersonDetail备份` +- `getClassDetail备份` +- `getCourseDetail备份` +- `getInstitutionDetail 第二种写法 最慢` +- `getDepartmentDetail 第二种写法 最慢` +- `getPersonDetail第二种写法` +- `getPersonDetail第三种写法 最慢` +- `getClassDetail 第二种写法 最慢` +- `getCourseDetail 第二种写法 最慢` +- `getOutTrainDbList以前的写法备份` +- `getOutTrainPxdjList以前的写法备份` + +--- + +### 2.4 FTL 注释死代码清理 + +**清理统计**: +- 修改文件: 115 个 +- 清理注释: 615+ 处 + +**高发文件** (Top 10): +| 文件 | 清理数量 | +|------|----------| +| `exampaper_editexampaper.ftl` | 74 处 | +| `examresult_edit.ftl` | 33 处 | +| `exam_edit.ftl` | 37 处 | +| `exampaper_add.ftl` | 29 处 | +| `group_inplan_main.ftl` | 61 处 | +| `group_inplan_bg_group_detail_1.ftl` | 34 处 | +| `group_inplan_bg_group_detail.ftl` | 32 处 | +| `research_project_main_examadd_sg.ftl` | 49 处 | +| `exampaper_import.ftl` | 21 处 | +| `pd_pg_main_assess.ftl` | 20 处 | + +--- + +## 三、待处理问题修复方案 + +### 3.1 同步 AJAX 请求改造 (🟠 严重) + +**问题位置**: +- `globalConfig.js` 第 200 行 +- `userprofile/index.js` 第 71、104 行 +- `train/uptrain/uptrain.js` 第 176 行 +- `train/uptrain/uptrain_edit.js` 第 394 行 +- `train/plantodo/assess_audit.js` 第 319 行 +- `train/outtrain/out_train_main.js` 第 1209 行 + +**修复方案示例**: + +```javascript +// 修复前 (globalConfig.js) +$.ajax({ + type: 'post', + async: false, // 阻塞 UI + url: dictBaseUrl + dictKey, + dataType: 'json', + success: function (result) { + if (result.success) { + window[hdName] = result.data; + res = result.data; + } + } +}); + +// 修复后 (方案1: Promise + async/await) +async function getDictData(dictKey) { + try { + const result = await $.ajax({ + type: 'post', + url: dictBaseUrl + dictKey, + dataType: 'json' + }); + if (result.success) { + window[dict_prefix + dictKey] = result.data; + return result.data; + } + return null; + } catch (error) { + console.error('获取字典数据失败:', error); + return null; + } +} + +// 修复后 (方案2: 回调函数) +function getDictData(dictKey, callback) { + $.ajax({ + type: 'post', + url: dictBaseUrl + dictKey, + dataType: 'json', + success: function (result) { + if (result.success) { + window[dict_prefix + dictKey] = result.data; + callback(result.data); + } else { + callback(null); + } + }, + error: function() { + callback(null); + } + }); +} +``` + +**建议优先级**: +1. 优先改造 `globalConfig.js` 中的 `gridColFilter` 函数 +2. 然后处理业务模块中的同步请求 +3. 最后处理 `out_train_main.js` 等复杂模块 + +--- + +### 3.2 SELECT * 优化 (🟡 建议) + +**优化原则**: +- 明确列出需要的字段 +- 减少网络传输开销 +- 提高代码可读性 + +**示例**: + +```xml + + + select * from et_resource_file where 1=1 + + + + + select id, name, file_path, file_size, created_by, created_at + from et_resource_file where 1=1 + +``` + +**建议**: 优先优化高频查询的 SQL + +--- + +### 3.3 内联样式清理 (🟡 建议) + +**优化方案**: 提取为 CSS 类 + +```html + +
+ + + +.form-title { + height: 86px; +} + + +
+``` + +**建议**: +1. 优先清理高频页面的内联样式 +2. 建立公共样式类库 +3. 使用 CSS 变量统一管理主题色 + +--- + +### 3.4 内联事件重构 (🟡 建议) + +**优化方案**: 使用 data 属性 + JS 事件委托 + +```html + + + + + + + + +$(document).on('click', '.checkbox-option', function() { + var action = $(this).data('check-action'); + if (action && window[action]) { + window[action](this); + } +}); +``` + +--- + +## 四、后续改进建议 + +### 4.1 短期 (1个月内) +- [ ] 完成同步 AJAX 改造 +- [ ] 引入 ESLint 检查 +- [ ] 建立代码格式化规范 + +### 4.2 中期 (3个月内) +- [ ] 优化高频 SQL 查询 +- [ ] 清理内联样式 +- [ ] 重构内联事件处理 + +### 4.3 长期 (持续改进) +- [ ] 引入自动化测试 +- [ ] 建立代码质量度量 +- [ ] 完善 Code Review 流程 + +--- + +## 五、相关文件 + +- [CODE_REVIEW_GUIDE.md](./CODE_REVIEW_GUIDE.md) - 代码审查标准 +- [CODE_REVIEW_REPORT.md](./CODE_REVIEW_REPORT.md) - 代码审查报告 + +--- + +*本修复方案由 AI 代码审查专家生成* diff --git a/WEB-INF/mapping/chatVersion.map.xml b/WEB-INF/mapping/chatVersion.map.xml index a921b63..04bc1d6 100644 --- a/WEB-INF/mapping/chatVersion.map.xml +++ b/WEB-INF/mapping/chatVersion.map.xml @@ -8,13 +8,9 @@ <@p p=" AND %s">isupdatepkg ]]> - pkgtype - <@p p=" AND %s">isupdatepkg - ]]> - - +id ]]> - newnum - where - <@p>edit_id - <@p p=" and num = ?">oldnum - ]]> - - +num where <@p>id diff --git a/WEB-INF/mapping/et_exam_usertest.map.xml b/WEB-INF/mapping/et_exam_usertest.map.xml index fbefb57..d937a31 100644 --- a/WEB-INF/mapping/et_exam_usertest.map.xml +++ b/WEB-INF/mapping/et_exam_usertest.map.xml @@ -27,20 +27,9 @@ et_exam_usertest.user_answer ) examresult ]]> - edit_id - <@p p=" and et_exam_exampaper_and_editexampaper.name like ? ">name - <@p p=" or user like ? ">user - group by user_id - ]]> - - +name <@p p=" and %s">pg @@ -78,47 +67,15 @@ et_exam_usertest.user_answer,et_exam_usertest.user_score <@p p=" and %s">exam_id ]]> - + + - exam_id)) = 1,"已答","未答")) as userstate - from et_exam_limitation as limitation - left join et_exam_usertest as usertest - on limitation.exam_id = usertest.exam_id - where <@p p=" limitation.exam_id = ?">exam_id - group by limitation.user_id - ]]> + - exam_id)) = 1,"已答","未答")) as userstate - from et_exam_limitation_class as class - left join et_exam_usertest as usertest - on class.exam_id = usertest.exam_id - where <@p p=" class.exam_id = ?">exam_id - group by class.class_person_id - ]]> + - exam_id)) = 1,"已答","未答")) as userstate - from et_exam_limitation_course as course - left join et_exam_usertest as usertest - on course.exam_id = usertest.exam_id - where <@p p=" course.exam_id = ?">exam_id - group by course.course_person_id - ]]> - - +exam_id ]]> @@ -133,19 +90,9 @@ et_exam_usertest.user_answer,et_exam_usertest.user_score group by user_id ]]> - exam_id)) = 1,"已答","未答")) as userstate - from (select e.id as exam_id,b.username,b.usercode from et_exam_exampaper_and_editexampaper e,et_train_baseuser b - where <@p p=" e.id = ? ">exam_id) as baseuser - left join et_exam_usertest as usertest - on baseuser.exam_id = usertest.exam_id - where <@p p=" baseuser.exam_id = ? ">exam_id - group by baseuser.usercode - ]]> - - +exam_id group by user_id) @@ -157,21 +104,9 @@ et_exam_usertest.user_answer,et_exam_usertest.user_score group by user_id ]]> - exam_id)) = 1,"已答","未答")) as userstate - from (select l.exam_id,b.username,b.usercode from et_exam_limitation l,et_train_baseuser b - where <@p p=" l.exam_id = ? ">exam_id - and b.orgcode = any (select user_id from et_exam_limitation - where <@p>exam_id) group by b.usercode) as baseuser - left join et_exam_usertest as usertest - on baseuser.exam_id = usertest.exam_id - where <@p p=" baseuser.exam_id = ? ">exam_id - group by baseuser.usercode - ]]> - - + - + + - exam_id)) = 1,"已答","未答")) as userstate - from et_exam_limitation as limitation - left join et_exam_usertest as usertest - on limitation.exam_id = usertest.exam_id - where <@p p=" limitation.exam_id = ?">exam_id - group by limitation.user_id - ]]> - - + - exam_id)) = 1,"已答","未答")) as userstate - from et_exam_limitation_class as class - left join et_exam_usertest as usertest - on class.exam_id = usertest.exam_id - where <@p p=" class.exam_id = ?">exam_id - group by class.class_person_id - ]]> - - + - exam_id)) = 1,"已答","未答")) as userstate - from et_exam_limitation_course as course - left join et_exam_usertest as usertest - on course.exam_id = usertest.exam_id - where <@p p=" course.exam_id = ?">exam_id - group by course.course_person_id - ]]> - - +enddate2 ]]> - usercode ) and ot.pxdjfw='1' -and UPPER(<@p f="?">usercode) not in (select UPPER(pxdj.addusercode) from et_train_ot_pxdj pxdj where ot.id=pxdj.otid) - or 1=<@p f="?">sfgly and ot.pxdjfw='0' and UPPER(ot.addusercode) =UPPER(<@p f="?">usercode) - and UPPER(<@p f="?">usercode) not in (select pxdj.addusercode from et_train_ot_pxdj pxdj where ot.id=pxdj.otid)) - group by ot.id order by ot.addtime desc - ]]> - - +usercode and pxdjfw='0' and delstatus=0 and status=5 and <@p f="?">usercode not in (select pxdj.addusercode from et_train_ot_pxdj pxdj where ot.id=pxdj.otid) @@ -66,23 +59,9 @@ select ot.pxmc, pxdj.* from et_train_ot_pxdj pxdj left join et_train_ot ot on(ot select ot.pxmc, pxdj.* from et_train_ot_pxdj pxdj left join et_train_ot ot on(ot.id=pxdj.otid) where 1=1 <@p p="AND ot.ID IN(%s)" f="?">id ]]> - id - <@p p="and ot.pxmc like ?">pxmc - and (('0'=<@p f="?">sfsp - and 1=1 - <@p p="AND UPPER(pxdj.addusercode) =UPPER(%s)" f="?">usercode - or '1'=<@p f="?">sfgly - <@p p="AND pxdj.addgroupid =%s" f="?">groupid - and 1=1 ) or (1=1 - <@p p="AND UPPER(pxdj.addusercode) =UPPER(%s)" f="?">usercode - <@p p="AND pxdj.addgroupid =%s" f="?">groupid - <@p p="AND pxdj.status =%s" f="?">status - and '1'=<@p f="?))">sfsp - ]]> - - + <#include "../layout/ref_script.ftl"> -<#----> \ No newline at end of file diff --git a/WEB-INF/view/etms/exam/exam_edit.ftl b/WEB-INF/view/etms/exam/exam_edit.ftl index 32277e2..9c3b4d1 100644 --- a/WEB-INF/view/etms/exam/exam_edit.ftl +++ b/WEB-INF/view/etms/exam/exam_edit.ftl @@ -14,15 +14,12 @@
-<#-- 2019年第一次项目管理培训考试试卷1--> - +
-<#-- 项目管理培训是对管理者和相关学员进行现代项目管理理念、体系、流程和方法的教育培训活动。--> -<#-- 通过系统的培训,使广大培训对象具备系统思维、战略思维的主动意识,改变管理习惯,降低随意性和不确定性,大幅度提高工作效率。--> - +
@@ -43,22 +40,15 @@
-<#-- --> -<#-- Q{{i+1}}--> - Q{{value.num}} -<#-- {{if value.isParagraph=="0" }}Q{{value.num}}{{/if}}--> - {{value.subject}} +Q{{value.num}} +{{value.subject}} {{if value.type=="单选题"}}单选题{{/if}} {{if value.type=="多选题"}}多选题{{/if}} {{if value.type=="判断题"}}判断题{{/if}} {{if value.type=="问答题"}}问答题{{/if}} {{if value.type=="填空题"}}填空题{{/if}} -<#-- {{if value.type=="1"}}单选题{{/if}}--> -<#-- {{if value.type=="2"}}多选题{{/if}}--> -<#-- {{if value.type=="3"}}判断题{{/if}}--> -<#-- {{if value.type=="4"}}问答题{{/if}}--> - + {{if value.ismust=="1"}}(必答){{/if}} @@ -66,22 +56,13 @@ -<#-- --> -<#-- {{value.score}}分--> -<#-- --> - <#if pg=="1"> +<#if pg=="1"> {{value.score}}
-<#-- {{if value.type=="1"}}--> - {{if value.type=="单选题"}} -<#-- {{if value.optiona.length}}
A {{ value.optiona}}
{{/if}}--> -<#-- {{if (value.optionb.length)}}
B {{ value.optionb}}
{{/if}}--> -<#-- {{if (value.optionc.length)}}
C {{ value.optionc}}
{{/if}}--> -<#-- {{if (value.optiond.length)}}
D {{ value.optiond}}
{{/if}}--> - - {{if value.optiona.length}} +{{if value.type=="单选题"}} +{{if value.optiona.length}} {{if value.user_answer=="A"}}
{{else}}
{{/if}} @@ -103,16 +84,8 @@ {{/if}} {{/if}} -<#-- {{if value.type=="2"}}--> - {{if value.type=="多选题"}} -<#-- {{if value.optiona.length}}
A {{ value.optiona}}
{{/if}}--> -<#-- {{if (value.optionb.length)}}
B {{ value.optionb}}
{{/if}}--> -<#-- {{if (value.optionc.length)}}
C {{ value.optionc}}
{{/if}}--> -<#-- {{if (value.optiond.length)}}
D {{ value.optiond}}
{{/if}}--> -<#-- {{if (value.optione.length)}}
E {{ value.optione}}
{{/if}}--> -<#-- {{if (value.optionf.length)}}
F {{ value.optionf}}
{{/if}}--> - - {{if value.optiona.length}} +{{if value.type=="多选题"}} +{{if value.optiona.length}} {{if judge(value.user_answer,"A")}}
{{else}}
@@ -150,8 +123,7 @@ {{/if}} {{/if}} -<#-- {{if value.type=="3"}}--> - {{if value.type=="判断题"}} +{{if value.type=="判断题"}} {{if value.user_answer=="对"}}
@@ -163,10 +135,8 @@
{{/if}} {{/if}} -<#-- {{if value.type=="4"}}--> - {{if value.type=="问答题"}} -<#-- {{/if}} {{if value.type=="填空题"}} @@ -174,22 +144,13 @@ 答案: {{/if}} - <#----> - + <#if pg=="1">
- <#-- style="visibility: hidden"占位隐藏--> - <#-- --> - <#-- 合计:共7道85分--> - <#-- 问答:共1道20分|--> - <#-- 判断:共1道5分|--> - <#-- 多选:共2道30分|--> - <#-- 单选:共3道30分|--> - <#-- --> 试卷总共: 题,合计 diff --git a/WEB-INF/view/etms/exam/exam_list.ftl b/WEB-INF/view/etms/exam/exam_list.ftl index 6a38bf6..cc2d193 100644 --- a/WEB-INF/view/etms/exam/exam_list.ftl +++ b/WEB-INF/view/etms/exam/exam_list.ftl @@ -18,8 +18,7 @@ -<#-- 操作--> - 序号 +序号 <#if pg=="1">试卷名称 <#if pg=="2">问卷名称 @@ -32,8 +31,7 @@ <#if pg=="1">试卷描述 <#if pg=="2">问卷描述 -<#-- userstate是通过SQL语句用于判断用户的试卷是否已答--> - + <#if pg=="1">试卷状态 <#if pg=="2">问卷状态 @@ -44,17 +42,8 @@ -<#-- --> - -<#-- -<#-- onclick="editRow('{{value.id}}');">--> -<#-- -<#-- onclick="deleteRow('{{value.id}}');">--> -<#-- --> - {{i+1}} -<#-- -<#-- onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.name}}--> - {{value.name}} +{{i+1}} +{{value.name}} {{value.category}} {{value.description}} {{value.userstate}} diff --git a/WEB-INF/view/etms/exam/exampaper.ftl b/WEB-INF/view/etms/exam/exampaper.ftl index 8018582..ee8178f 100644 --- a/WEB-INF/view/etms/exam/exampaper.ftl +++ b/WEB-INF/view/etms/exam/exampaper.ftl @@ -11,10 +11,6 @@
-<#--什么情况需要写? 第二种弹窗方式--> -<#--
--> -<#--
--> - <#include "exampaper_list.ftl"> <#include "exampaper_edit.ftl"> <#include "exampaper_limitation_department.ftl"> @@ -23,12 +19,8 @@ <#include "exampaper_limitation_course.ftl"> <#include "exampaper_person_import.ftl"> <#include "exampaper_preview.ftl"> -<#--
--> -<#--
--> <#include "exampaper_detail.ftl"> -<#--<#include "exampaper_import.ftl">--> - <#include "../layout/ref_script.ftl"> diff --git a/WEB-INF/view/etms/exam/exampaper_add.ftl b/WEB-INF/view/etms/exam/exampaper_add.ftl index fbf1a4c..8961d56 100644 --- a/WEB-INF/view/etms/exam/exampaper_add.ftl +++ b/WEB-INF/view/etms/exam/exampaper_add.ftl @@ -3,14 +3,8 @@ -<#-- --> - + @@ -51,38 +39,16 @@ -<#-- --> - + -<#-- --> - - -<#-- --> - - -<#-- --> -<#-- --> - -<#-- --> - - +
-<#-- -<#-- ui-config="required:true,tipAfterInput:true,dictKey:'department'" value="{{departmentid}}"/>--> - +
-<#-- -<#-- onclick="editRow('{{value.id}}');">--> - - {{i+1}} -<#-- onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.name}} -<#-- -<#-- ui-config="required:true,tipAfterInput:true,dictKey:'department'" value="{{departmentid}}"/>--> + +{{value.user}} +
-<#--
-->
\ No newline at end of file diff --git a/WEB-INF/view/etms/exam/exampaper_detail.ftl b/WEB-INF/view/etms/exam/exampaper_detail.ftl index 85b8c80..2d82d15 100644 --- a/WEB-INF/view/etms/exam/exampaper_detail.ftl +++ b/WEB-INF/view/etms/exam/exampaper_detail.ftl @@ -8,35 +8,23 @@ -<#-- --> -<#-- --> -<#-- --> - +
- <#----> - <#----> -<#-- 排序出现问题--> -<#-- --> -<#-- --> -<#-- --> -<#-- --> - + - <#----> - <#----> diff --git a/WEB-INF/view/etms/exam/exampaper_edit.ftl b/WEB-INF/view/etms/exam/exampaper_edit.ftl index 8802da4..f78c2a8 100644 --- a/WEB-INF/view/etms/exam/exampaper_edit.ftl +++ b/WEB-INF/view/etms/exam/exampaper_edit.ftl @@ -3,9 +3,6 @@ <#include "exampaper_limitation.ftl"> -<#-- <#include "exampaper_add.ftl">--> -<#-- <#include "exampaper_project_main_useradd_list.ftl">--> -<#-- <#include "exampaper_project_main_useradd_group_list.ftl">--> -<#----> -<#----> -<#--<#include "exampaper_project_main_useradd_list.ftl">--> -<#--<#include "exampaper_project_main_useradd_group_list.ftl">--> diff --git a/WEB-INF/view/etms/exam/exampaper_editexampaper.ftl b/WEB-INF/view/etms/exam/exampaper_editexampaper.ftl index 4168ecc..5570b38 100644 --- a/WEB-INF/view/etms/exam/exampaper_editexampaper.ftl +++ b/WEB-INF/view/etms/exam/exampaper_editexampaper.ftl @@ -11,9 +11,7 @@
序号试卷名称考生 工资号 部门 参与详情 成绩试卷名称考生工资号参与详情
{{i+1}}{{value.name}} {{value.user}} {{value.user_id}} {{value.department}}
-<#-- --> -<#-- 合计:共7道85分--> -<#-- 问答:共1道20分|--> -<#-- 判断:共1道5分|--> -<#-- 多选:共2道30分|--> -<#-- 单选:共3道30分|--> -<#-- --> - + 试卷总共: 题,合计分, 考生得分:分 diff --git a/WEB-INF/view/etms/exam/examresult_list.ftl b/WEB-INF/view/etms/exam/examresult_list.ftl index 2071ca7..2d103da 100644 --- a/WEB-INF/view/etms/exam/examresult_list.ftl +++ b/WEB-INF/view/etms/exam/examresult_list.ftl @@ -27,14 +27,12 @@ -<#-- 操作--> - 序号 +序号 id 答题人 部门 试卷名称 -<#-- total_score是通过SQL语句sum函数求每题得分计算而来--> - 总分数 +总分数 答题时间 判卷人 @@ -42,17 +40,8 @@ -<#-- --> - -<#-- -<#-- onclick="editRow('{{value.id}}');">--> -<#-- -<#-- onclick="deleteRow('{{value.id}}');">--> -<#-- --> - {{i+1}} -<#-- -<#-- onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.user}}--> - {{value.id}} +{{i+1}} +{{value.id}} {{value.user}} {{value.department}} {{value.name}} diff --git a/WEB-INF/view/etms/exam/examscore_list.ftl b/WEB-INF/view/etms/exam/examscore_list.ftl index 1355c65..1262105 100644 --- a/WEB-INF/view/etms/exam/examscore_list.ftl +++ b/WEB-INF/view/etms/exam/examscore_list.ftl @@ -33,5 +33,4 @@ -
<#-- 分页--> -
\ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/exam/question_edit.ftl b/WEB-INF/view/etms/exam/question_edit.ftl index 4c1472a..91303e7 100644 --- a/WEB-INF/view/etms/exam/question_edit.ftl +++ b/WEB-INF/view/etms/exam/question_edit.ftl @@ -8,8 +8,7 @@ -<#-- input标签中name="questionInfo.type"是其他的写法,应改为name="type"--> - + @@ -28,8 +27,7 @@ -<#-- input标签中value="{{optionA}}与前端不匹配,应改为小写value="{{optiona}}--> - + diff --git a/WEB-INF/view/etms/exam/questions_list.ftl b/WEB-INF/view/etms/exam/questions_list.ftl index 7ac1d5c..0bbebdc 100644 --- a/WEB-INF/view/etms/exam/questions_list.ftl +++ b/WEB-INF/view/etms/exam/questions_list.ftl @@ -3,18 +3,15 @@
题型:
试卷类别:
A:
+ @@ -24,13 +21,10 @@ - <#--<#if pg=="1">--> - <#----> -<#-- 属性style="width: auto" 实现表格中各td平均分布,但是不能自由拖动--> - + @@ -39,7 +33,6 @@ - <#--<#if pg=="1">--> - <#---->
- <#--<#if pg=="1">--> - <#----> - - <#---->
操作序号 题目类型题目题目 试卷类别 编辑时间 创建人
{{i+1}} {{value.question_type}}
-
<#-- 分页--> - \ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/feedback/feedback.ftl b/WEB-INF/view/etms/feedback/feedback.ftl index 1520149..d090de7 100644 --- a/WEB-INF/view/etms/feedback/feedback.ftl +++ b/WEB-INF/view/etms/feedback/feedback.ftl @@ -2,13 +2,11 @@ <#include "../layout/ref_head.ftl"> - <#----> - + <#include "feedback_list.ftl" > <#include "feedback_edit.ftl" > <#include "../layout/ref_script.ftl"> -<#----> \ No newline at end of file diff --git a/WEB-INF/view/etms/login.ftl b/WEB-INF/view/etms/login.ftl index 9acd1e4..2b74beb 100644 --- a/WEB-INF/view/etms/login.ftl +++ b/WEB-INF/view/etms/login.ftl @@ -42,8 +42,7 @@
${copyright}
技术支持:${techSupport}
- <#----> -
+ diff --git a/WEB-INF/view/etms/personalcenter/mymanage_list.ftl b/WEB-INF/view/etms/personalcenter/mymanage_list.ftl index 539e9ba..6db4105 100644 --- a/WEB-INF/view/etms/personalcenter/mymanage_list.ftl +++ b/WEB-INF/view/etms/personalcenter/mymanage_list.ftl @@ -8,8 +8,7 @@ -<#-- --> - + @@ -38,10 +37,8 @@ {{value.name}} {{value.application}} -<#-- --> - {{value.addgroupname}} -<#-- --> - +{{value.addgroupname}} + {{value.addusername}} {{value.addtime | dateTimeFilter}} {{value.tel}} @@ -53,5 +50,4 @@ -
<#-- 分页--> - \ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/qualification/qualification_list.ftl b/WEB-INF/view/etms/qualification/qualification_list.ftl index 745c4a9..2ede25e 100644 --- a/WEB-INF/view/etms/qualification/qualification_list.ftl +++ b/WEB-INF/view/etms/qualification/qualification_list.ftl @@ -7,13 +7,7 @@ -<#-- --> - -<#-- --> - - + diff --git a/WEB-INF/view/etms/qualification/qualificationjob_edit.ftl b/WEB-INF/view/etms/qualification/qualificationjob_edit.ftl index c321f27..6c32e62 100644 --- a/WEB-INF/view/etms/qualification/qualificationjob_edit.ftl +++ b/WEB-INF/view/etms/qualification/qualificationjob_edit.ftl @@ -8,10 +8,7 @@ -<#-- --> - - + @@ -38,10 +31,7 @@
课程序列: -<#-- ui-config="required:true,width:600" value="{{kcxl}}"/> + -<#-- --> -
级别: -<#-- --> - - - <#----> - - - <#----> - <#----> - <#----> - + @@ -80,10 +77,7 @@ onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.name}} - <#----> - <#----> - <#----> - +
活动名称: + diff --git a/WEB-INF/view/etms/research/research_project_exam_main_list.ftl b/WEB-INF/view/etms/research/research_project_exam_main_list.ftl index 7d1d1b3..7debed5 100644 --- a/WEB-INF/view/etms/research/research_project_exam_main_list.ftl +++ b/WEB-INF/view/etms/research/research_project_exam_main_list.ftl @@ -60,10 +60,7 @@ 活动类型 活动名称 活动状态发起人发起人所在单位发起时间
{{value.wjmc}} {{value.state}}{{value.username}}{{value.orgname}}{{value.creater_time |dateTimeFilter}}
diff --git a/WEB-INF/view/etms/research/research_project_main.ftl b/WEB-INF/view/etms/research/research_project_main.ftl index d393056..04d60ec 100644 --- a/WEB-INF/view/etms/research/research_project_main.ftl +++ b/WEB-INF/view/etms/research/research_project_main.ftl @@ -5,8 +5,6 @@ <#include "research_project_main_list.ftl"> -<#--<#include "research_project_main_edit.ftl">--> -
diff --git a/WEB-INF/view/etms/research/research_project_main_examadd_ks.ftl b/WEB-INF/view/etms/research/research_project_main_examadd_ks.ftl index df131c0..15fb7d0 100644 --- a/WEB-INF/view/etms/research/research_project_main_examadd_ks.ftl +++ b/WEB-INF/view/etms/research/research_project_main_examadd_ks.ftl @@ -106,11 +106,7 @@ -<#--须放到form里面,然后初始化form,使用的是模板,textarea里写的才能必答--> \ No newline at end of file diff --git a/WEB-INF/view/etms/resource/file_limitation.ftl b/WEB-INF/view/etms/resource/file_limitation.ftl index 22682d4..d277f48 100644 --- a/WEB-INF/view/etms/resource/file_limitation.ftl +++ b/WEB-INF/view/etms/resource/file_limitation.ftl @@ -45,12 +45,10 @@
{{i+1}} -<#-- {{value.user}}--> - {{value.user}} +{{value.user}} {{if value.limitation=="3"}}{{value.user_id}}{{/if}}
-
<#-- 分页--> - \ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/resource/file_list.ftl b/WEB-INF/view/etms/resource/file_list.ftl index 93abdb7..040a937 100644 --- a/WEB-INF/view/etms/resource/file_list.ftl +++ b/WEB-INF/view/etms/resource/file_list.ftl @@ -28,8 +28,7 @@ <#if pg=="3" || pg=="4"> -<#-- --> - + @@ -44,10 +43,8 @@ -<#-- <#if has_edit>--> - 操作 -<#-- --> - 序号 +操作 +序号 标题 资料分类 提供者 @@ -57,9 +54,7 @@ <#if pg!='2'> <#if pg_check!='5'> 状态 -<#-- 部门管理员审批意见--> -<#-- 部门领导审批意见--> - + @@ -67,8 +62,7 @@ -<#-- <#if has_edit>--> - <#if pg_check!='5'> +<#if pg_check!='5'> @@ -76,10 +70,7 @@ onclick="deleteRow(['{{value.id}}'])"> -<#-- --> - <#-- - <#--onclick="swfVideo(['{{value.id}}'])">--> - + {{i+1}} {{value.title}} @@ -95,9 +86,7 @@ <#if pg!='2'> <#if pg_check!='5'> {{value.state_desc}} -<#-- {{value.admin_suggestion}}--> -<#-- {{value.leader_advice}}--> - + diff --git a/WEB-INF/view/etms/resource/train_workflow.ftl b/WEB-INF/view/etms/resource/train_workflow.ftl index 017898c..e9aad9c 100644 --- a/WEB-INF/view/etms/resource/train_workflow.ftl +++ b/WEB-INF/view/etms/resource/train_workflow.ftl @@ -10,13 +10,11 @@ -<#-- {{i+1}}--> - {{value.num}} +{{value.num}} {{value.leader}} -<#--
--> - + \ No newline at end of file diff --git a/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_edit.ftl b/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_edit.ftl index 9aef2f7..09bbe95 100644 --- a/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_edit.ftl +++ b/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_edit.ftl @@ -142,8 +142,6 @@ 授课人: - <#-- - <#--ui-config="required:true,width:300" value="{{teacher}}" onkeyup="value=value.replace(/[^\u4E00-\u9FA5\,]/g,'')"/>--> @@ -168,8 +166,6 @@ 授课人工资号: - <#-- - <#--ui-config="width:300" value="{{teacher_code}}" onkeyup="value=value.replace(/[^\a-zA-Z0-9\,]/g,'')"/>--> @@ -183,12 +179,10 @@
下发部门
- <#--
-->
添加学员
- <#--
-->
diff --git a/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_list.ftl b/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_list.ftl index 97a876c..a97fff5 100644 --- a/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_list.ftl +++ b/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_list.ftl @@ -67,7 +67,6 @@ {{value.addgroupname}} {{value.starttime | dateFilter}} {{value.endtime | dateFilter}} - <#--{{value.pxmb}}--> {{value.status | classStatusFilter}} diff --git a/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_user.ftl b/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_user.ftl index bcc0ca0..66d37e2 100644 --- a/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_user.ftl +++ b/WEB-INF/view/etms/train/createclassaudit/pd_createclass_main_user.ftl @@ -25,13 +25,6 @@ 操作 序号 - <#--姓名--> - <#--<#–部门–>--> - <#--工资号--> - <#--职务(职称)--> - <#--设计师系统级别--> - <#--移动电话--> - *部门 岗位序列 *姓名 @@ -51,14 +44,6 @@ {{i+1}} - <#----> - <#--<#––>--> - <#--<#––>--> - <#----> - <#----> - <#----> - <#----> - @@ -70,5 +55,4 @@ - <#--
--> - + diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_group.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_group.ftl index b45a532..41f60f4 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_group.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_group.ftl @@ -5,7 +5,6 @@ -<#--<#include "group_inplan_main_list.ftl">--> <#include "group_inplan_group_list.ftl"> <#include "../train_workflow.ftl"> diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail.ftl index 4edfb64..e926cb8 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail.ftl @@ -15,9 +15,7 @@ 模版下载 - <#----> - + @@ -55,20 +53,6 @@ onclick="deletekcRow(this);"> {{i+1}} - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> - <#--{{value.pxdx}}--> diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail_view.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail_view.ftl index 7e49b7e..0552ed3 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail_view.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_detail_view.ftl @@ -47,37 +47,7 @@ {{value.pxys}} {{value.usedfund}} {{value.coursestatus}} - <#----> - <#----> - <#----> - <#----> - <#----> - - <#----> - <#----> - <#----> - <#----> - <#----> - <#----> - <#----> - <#----> - <#----> - <#----> - - <#----> - <#----> - <#----> - <#----> - <#----> - <#----> - + \ No newline at end of file diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_edit.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_edit.ftl index f4be40e..9a751e4 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_edit.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_edit.ftl @@ -9,9 +9,7 @@ 培训计划: -<#-- --> - @@ -45,4 +43,3 @@ <#include "group_inplan_group_detail.ftl"> <#include "group_inplan_group_detail_view.ftl"> -<#--<#include "excel.ftl">--> diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_list.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_list.ftl index 4a53fad..1983e0f 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_group_list.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_group_list.ftl @@ -35,8 +35,7 @@ <#if pg=="3"> -<#-- --> - + diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_main.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_main.ftl index 5925dfe..d75ec19 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_main.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_main.ftl @@ -4,79 +4,6 @@ <#include "../../layout/ref_head.ftl"> -<#-- -<#-- href="${asset_jspath}/train/lib/jquery-ui-1.8.4.custom/css/smoothness/jquery-ui-1.8.4.custom.css"--> -<#-- rel="stylesheet" />--> - -<#-- --> - <#include "group_inplan_main_list.ftl"> @@ -94,9 +21,5 @@ -<#--应使用平台中的jquery.js--> -<#----> -<#----> - \ No newline at end of file diff --git a/WEB-INF/view/etms/train/groupinplan/group_inplan_main_edit.ftl b/WEB-INF/view/etms/train/groupinplan/group_inplan_main_edit.ftl index 631f05e..92d6e55 100644 --- a/WEB-INF/view/etms/train/groupinplan/group_inplan_main_edit.ftl +++ b/WEB-INF/view/etms/train/groupinplan/group_inplan_main_edit.ftl @@ -1,9 +1,7 @@ -<#--<#include "../../layout/ref_head.ftl">--> diff --git a/WEB-INF/view/etms/train/plantodo/pd_createclass_main_list.ftl b/WEB-INF/view/etms/train/plantodo/pd_createclass_main_list.ftl index b3f78cf..f7e47bb 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_createclass_main_list.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_createclass_main_list.ftl @@ -34,7 +34,6 @@ 部门 开始时间 结束时间 - <#--培训目标--> 状态 添加人 添加时间 @@ -58,7 +57,6 @@ {{value.addgroupname}} {{value.starttime | dateFilter}} {{value.endtime | dateFilter}} - <#--{{value.pxmb}}--> {{value.status | classStatusFilter}} diff --git a/WEB-INF/view/etms/train/plantodo/pd_createclass_main_user.ftl b/WEB-INF/view/etms/train/plantodo/pd_createclass_main_user.ftl index bcc0ca0..66d37e2 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_createclass_main_user.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_createclass_main_user.ftl @@ -25,13 +25,6 @@ 操作 序号 - <#--姓名--> - <#--<#–部门–>--> - <#--工资号--> - <#--职务(职称)--> - <#--设计师系统级别--> - <#--移动电话--> - *部门 岗位序列 *姓名 @@ -51,14 +44,6 @@ {{i+1}} - <#----> - <#--<#––>--> - <#--<#––>--> - <#----> - <#----> - <#----> - <#----> - @@ -70,5 +55,4 @@ - <#--
--> - + diff --git a/WEB-INF/view/etms/train/plantodo/pd_mycertificate_edit.ftl b/WEB-INF/view/etms/train/plantodo/pd_mycertificate_edit.ftl index ef88640..96892fe 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_mycertificate_edit.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_mycertificate_edit.ftl @@ -40,8 +40,7 @@ 证书附件: -<#-- {{filename}}--> - {{filename}} +{{filename}} diff --git a/WEB-INF/view/etms/train/plantodo/pd_mycourse.ftl b/WEB-INF/view/etms/train/plantodo/pd_mycourse.ftl index 2a9d34d..89abdd0 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_mycourse.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_mycourse.ftl @@ -28,9 +28,7 @@ 结束时间 是否查看 培训资料 - <#--评估问卷--> - <#--考试--> - + @@ -50,11 +48,7 @@ {{value.issee | mycourseseeFilter}} 培训资料 - <#-- - <#--onclick="assessmentStatus('{{value.id}}','{{value.kcmcid}}');">评估问卷--> - <#-- - <#--onclick="examStatus('{{value.id}}','{{value.kcmcid}}');">考试--> - +
diff --git a/WEB-INF/view/etms/train/plantodo/pd_mycourse_class.ftl b/WEB-INF/view/etms/train/plantodo/pd_mycourse_class.ftl index 2537886..5ad6aeb 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_mycourse_class.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_mycourse_class.ftl @@ -5,10 +5,6 @@ 课程名称: - <#----> @@ -19,13 +15,6 @@ - <#--实施部门:--> - <#----> - <#----> - <#----> 课程序列: -<#-- 授课地点:--> -<#-- --> -<#-- --> -<#-- -<#-- ui-config="required:false,width:200" value="{{teachplace}}"/>--> -<#-- --> - + 培训评估分数: @@ -111,19 +105,5 @@ value="{{effectivenessevaluation}}">{{effectivenessevaluation}} - <#-- --> - <#-- 报告人:--> - <#-- --> - <#-- --> - <#-- - <#-- ui-config="required:true,width:200" value="{{contract_name}}"/>--> - <#-- --> - <#-- 报告时间:--> - <#-- --> - <#-- --> - <#-- - <#-- ui-config="required:true,width:200" value="{{contract_code}}"/>--> - <#-- --> - <#-- --> - + diff --git a/WEB-INF/view/etms/train/plantodo/pd_pg_main_detail.ftl b/WEB-INF/view/etms/train/plantodo/pd_pg_main_detail.ftl index 7ef0f51..4aedaff 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_pg_main_detail.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_pg_main_detail.ftl @@ -8,18 +8,13 @@ - <#-- --> - <#-- --> - <#-- --> - + - <#----> - <#----> @@ -28,9 +23,7 @@ - <#----> - <#----> diff --git a/WEB-INF/view/etms/train/plantodo/pd_pg_main_edit.ftl b/WEB-INF/view/etms/train/plantodo/pd_pg_main_edit.ftl index 3386c32..f47c304 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_pg_main_edit.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_pg_main_edit.ftl @@ -4,11 +4,6 @@
编制评估问卷
序号评估问卷名称考生 工资号 部门
{{i+1}}{{value.papername}} {{value.username}} {{value.usercode}} {{value.deptname}}
- <#----> - <#----> diff --git a/WEB-INF/view/etms/train/plantodo/pd_pg_main_list.ftl b/WEB-INF/view/etms/train/plantodo/pd_pg_main_list.ftl index 53cf002..b368a5e 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_pg_main_list.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_pg_main_list.ftl @@ -9,7 +9,6 @@ - <#----> diff --git a/WEB-INF/view/etms/train/plantodo/pd_pg_main_tm.ftl b/WEB-INF/view/etms/train/plantodo/pd_pg_main_tm.ftl index 0380f80..1f5a60d 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_pg_main_tm.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_pg_main_tm.ftl @@ -28,7 +28,6 @@ onclick="deletekcRow(this);"> - <#----> - <#----> - <#----> - <#----> - <#----> @@ -63,22 +60,13 @@ - <#----> - <#----> - <#----> diff --git a/WEB-INF/view/etms/train/plantodo/pd_query_traintotal.ftl b/WEB-INF/view/etms/train/plantodo/pd_query_traintotal.ftl index e270ff5..7ea77f3 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_query_traintotal.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_query_traintotal.ftl @@ -28,9 +28,6 @@
历史问卷:--> - <#-- - <#--ui-config="panelHeight:200,valueField:'id',textField:'pgwjmc'"/>--> - <#--参考问卷: 参考问卷 diff --git a/WEB-INF/view/etms/train/plantodo/pd_pg_main_import.ftl b/WEB-INF/view/etms/train/plantodo/pd_pg_main_import.ftl index 237a15e..2da50ed 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_pg_main_import.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_pg_main_import.ftl @@ -13,9 +13,6 @@ - <#----> 模版下载
{{i+1}}
操作序号 课程名称 部门 课程状态补充课程信息课程所属 班级名称 班级状态补充班级信息课程序列 参训人数 培训开始时间
--> - - <#-- - <#--onclick="editRow('{{value.id}}','{{value.status}}');">--> - <#-- - <#--onclick="deleteRow('{{value.id}}','{{value.status}}');">--> - <#--{{i+1}} {{value.kcmc}} {{value.addgroupname}} {{value.coursestatus}}{{value.coursefinish}}{{value.jhly}} {{value.bjmc}} {{value.ccstatus}}{{value.classfinish}}{{value.bjlb}} {{value.jhrs}} {{value.starttime | dateFilter}}
- <#----> - <#----> - <#----> @@ -44,15 +41,6 @@ - <#----> - <#----> - <#----> diff --git a/WEB-INF/view/etms/train/plantodo/pd_replacestudent_edit.ftl b/WEB-INF/view/etms/train/plantodo/pd_replacestudent_edit.ftl index 41685d2..2fe9f68 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_replacestudent_edit.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_replacestudent_edit.ftl @@ -40,13 +40,7 @@ ui-config="required:true,width:250,dictKey:'replacement_method'" value="{{replacement_method_id}}"> - <#----> - <#----> - + - <#----> @@ -56,7 +55,6 @@ - <#----> diff --git a/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_list.ftl b/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_list.ftl index 26bea0b..67fa475 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_list.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_list.ftl @@ -50,5 +50,4 @@
操作序号课程名称 部门 班级名称
--> - - <#-- - <#--onclick="editRow('{{value.id}}','{{value.status}}');">--> - <#-- - <#--onclick="deleteRow('{{value.id}}','{{value.status}}');">--> - <#--{{i+1}}{{value.kcmc}} {{value.addgroupname}} {{value.bjmc}} --> - <#-- --> - <#----> - <#-- --> - <#--
原学员姓名: diff --git a/WEB-INF/view/etms/train/plantodo/pd_replacestudent_list.ftl b/WEB-INF/view/etms/train/plantodo/pd_replacestudent_list.ftl index 945e2f0..793d65d 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_replacestudent_list.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_replacestudent_list.ftl @@ -31,7 +31,6 @@ 新学员 更换方式 审批状态审批意见创建人 创建时间
{{value.new_student}} {{value.replacement_method}} {{value.status | replaceStuStatusFilter}}{{value.opinion}}{{value.createperson}} {{value.createtime | dateTimeFilter}}
-
<#-- 分页--> - \ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_student_list.ftl b/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_student_list.ftl index 6e17934..7b724a5 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_student_list.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_superiorunittrain_student_list.ftl @@ -51,5 +51,4 @@ -
<#-- 分页--> - \ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/train/plantodo/pd_teacher_list.ftl b/WEB-INF/view/etms/train/plantodo/pd_teacher_list.ftl index eb1ef08..a5d07ae 100644 --- a/WEB-INF/view/etms/train/plantodo/pd_teacher_list.ftl +++ b/WEB-INF/view/etms/train/plantodo/pd_teacher_list.ftl @@ -45,5 +45,4 @@ -
<#-- 分页--> - \ No newline at end of file +
\ No newline at end of file diff --git a/WEB-INF/view/etms/train/train_workflow.ftl b/WEB-INF/view/etms/train/train_workflow.ftl index 017898c..e9aad9c 100644 --- a/WEB-INF/view/etms/train/train_workflow.ftl +++ b/WEB-INF/view/etms/train/train_workflow.ftl @@ -10,13 +10,11 @@ -<#-- {{i+1}}--> - {{value.num}} +{{value.num}} {{value.leader}} -<#--
--> - + \ No newline at end of file diff --git a/WEB-INF/view/etms/train/uptrain/report.ftl b/WEB-INF/view/etms/train/uptrain/report.ftl index 8ba5e9d..9df9f66 100644 --- a/WEB-INF/view/etms/train/uptrain/report.ftl +++ b/WEB-INF/view/etms/train/uptrain/report.ftl @@ -6,8 +6,7 @@
-<#-- --> -
+
diff --git a/WEB-INF/view/etms/train/yearsummary/year_summary_group_detail.ftl b/WEB-INF/view/etms/train/yearsummary/year_summary_group_detail.ftl index 0e93bd7..96b96b5 100644 --- a/WEB-INF/view/etms/train/yearsummary/year_summary_group_detail.ftl +++ b/WEB-INF/view/etms/train/yearsummary/year_summary_group_detail.ftl @@ -15,7 +15,6 @@ - <#--操作--> 序号 课程名称 原因说明 @@ -25,13 +24,7 @@ - <#----> - <#-- - <#--onclick="deletekcRow(this);">--> - <#----> - {{i+1}} - <#----> {{value.kcmc}} diff --git a/WEB-INF/view/etms/train/yearsummary/year_summary_group_list.ftl b/WEB-INF/view/etms/train/yearsummary/year_summary_group_list.ftl index 486442b..a138f16 100644 --- a/WEB-INF/view/etms/train/yearsummary/year_summary_group_list.ftl +++ b/WEB-INF/view/etms/train/yearsummary/year_summary_group_list.ftl @@ -6,8 +6,6 @@ <#if pg=="1"> - <#----> @@ -33,8 +31,7 @@ <#if pg=="3" || pg=="4"> -<#-- --> - + diff --git a/WEB-INF/view/etms/train/yearsummary/year_summaryist_group_detail.ftl b/WEB-INF/view/etms/train/yearsummary/year_summaryist_group_detail.ftl index a1fd8d0..2bed2b8 100644 --- a/WEB-INF/view/etms/train/yearsummary/year_summaryist_group_detail.ftl +++ b/WEB-INF/view/etms/train/yearsummary/year_summaryist_group_detail.ftl @@ -4,10 +4,7 @@ - <#----> - - +
@@ -15,7 +12,6 @@ - <#--操作--> 序号 课程名称 课程内容 @@ -26,14 +22,7 @@ - <#----> - <#-- - <#--onclick="deletekcRow(this);">--> - <#----> - {{i+1}} - <#----> - <#----> {{value.kcmc}} {{value.kcnr}} --> - <#--操作--> 序号 任务名称 提出人 @@ -28,17 +26,6 @@ {{i+1}} - <#----> - <#----> - - <#-- - <#--onclick="editRow('{{value.id}}');">--> - <#-- - <#--onclick="deleteRow('{{value.id}}');">--> - <#----> - <#--{{i+1}}--> - <#-- - <#--onclick="viewRow('{{value.id}}','{{value.name}}');">{{value.name}}--> {{value.name}} {{value.username}} {{value.orgname}} diff --git a/WEB-INF/view/etms/trainweb/trainweb_main.ftl b/WEB-INF/view/etms/trainweb/trainweb_main.ftl index c8484c6..b93db1a 100644 --- a/WEB-INF/view/etms/trainweb/trainweb_main.ftl +++ b/WEB-INF/view/etms/trainweb/trainweb_main.ftl @@ -50,7 +50,6 @@ -<#---->
diff --git a/WEB-INF/view/etms/trainweb/work_start_main_list.ftl b/WEB-INF/view/etms/trainweb/work_start_main_list.ftl index 1db18af..cc8d1a1 100644 --- a/WEB-INF/view/etms/trainweb/work_start_main_list.ftl +++ b/WEB-INF/view/etms/trainweb/work_start_main_list.ftl @@ -27,8 +27,7 @@ {{i+1}} - <#----> - {{value.name}} + {{value.name}} {{value.username}} {{value.orgname}} {{value.creater_time |dateTimeFilter}} diff --git a/WEB-INF/view/etms/userprofile/index.ftl b/WEB-INF/view/etms/userprofile/index.ftl index 569897b..9b30d53 100644 --- a/WEB-INF/view/etms/userprofile/index.ftl +++ b/WEB-INF/view/etms/userprofile/index.ftl @@ -22,10 +22,7 @@ <#include "user_pass.ftl">
- <#--
--> - <#--开发中...--> - <#--
--> - + <#include "../layout/ref_script.ftl"> diff --git a/asset/js/etms/globalConfig.js b/asset/js/etms/globalConfig.js index b984c56..d561fdd 100644 --- a/asset/js/etms/globalConfig.js +++ b/asset/js/etms/globalConfig.js @@ -69,16 +69,16 @@ $.fn.uiValidate.defaults.rules = $.extend({}, $.fn.uiValidate.defaults.rules, { idCard: { validator: function (val) { //身份证正则表达式(15位) - isIDCard1 = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/; + const isIDCard1 = /^[1-9]\d{7}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}$/; //身份证正则表达式(18位) - isIDCard2 = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}[0-9xX]$/; + const isIDCard2 = /^[1-9]\d{5}[1-9]\d{3}((0\d)|(1[0-2]))(([0|1|2]\d)|3[0-1])\d{3}[0-9xX]$/; return (isIDCard1.test(val) || isIDCard2.test(val)); }, message: '请输入15位或18位身份证号!' }, postcode: { validator: function (val) { //邮政编码正则表达式 - isPostcode = /^\d{6}$/; + const isPostcode = /^\d{6}$/; return isPostcode.test(val); }, message: '请输入正确的邮政编码格式!' }, @@ -102,44 +102,43 @@ $.fn.uiValidate.defaults.rules = $.extend({}, $.fn.uiValidate.defaults.rules, { }, AboveAndEqualZero: { validator: function (val) { - isAboveAndEqualZero = /^([1-9]\d*|0)\.\d*$|^0\.\d*[1-9]\d*$|^([1-9]\d*|0)$/; + const isAboveAndEqualZero = /^([1-9]\d*|0)\.\d*$|^0\.\d*[1-9]\d*$|^([1-9]\d*|0)$/; return isAboveAndEqualZero.test(val); }, message: '请输入大于等于0的数' }, positiveNumber: { validator: function (val) { - isPositiveNumber = /^[1-9]\d*\.\d*$|^0\.\d*[1-9]\d*$|^[1-9]\d*$/; + const isPositiveNumber = /^[1-9]\d*\.\d*$|^0\.\d*[1-9]\d*$|^[1-9]\d*$/; return isPositiveNumber.test(val); }, message: '请输入正数' }, positiveInteger: { validator: function (val) { - isPositiveInteger = /^[1-9]\d*$/; + const isPositiveInteger = /^[1-9]\d*$/; return isPositiveInteger.test(val); }, message: '请输入正整数' }, monthNum: { validator: function (val) { - isMonthNum = /^([1-9]|1[0-2])$/; + const isMonthNum = /^([1-9]|1[0-2])$/; return isMonthNum.test(val); }, message: '请输入每年正确的工作时间(1-12)' }, moreThanFive: { validator: function (val) { - moreThanFive = /^[5-9]\d(\.\d+)?$/; + const moreThanFive = /^[5-9]\d(\.\d+)?$/; return moreThanFive.test(val); }, message: '请输入大于5的正数' }, pointNum: { validator: function (val) { - // isPointNum = /^[0-9]+(.[0-9]{0,6})?$/; - isPointNum = /^\d+(\.\d{0,2})?$/ + const isPointNum = /^\d+(\.\d{0,2})?$/; return isPointNum.test(val); }, message: '请输入不多于两位小数的正数或正整数' }, Email: { validator: function (val) { - isEmail = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; + const isEmail = /^\w+((-\w+)|(\.\w+))*\@[A-Za-z0-9]+((\.|-)[A-Za-z0-9]+)*\.[A-Za-z0-9]+$/; return isEmail.test(val); }, message: '请输入正确的电子邮件编码格式' } @@ -265,10 +264,10 @@ function getCustomTime(date) { var dateTime2 =new Date(date); if (dateTime1.getFullYear() == dateTime2.getFullYear()) { if (dateTime1.getMonth() == dateTime2.getMonth()) { - if (dateTime1.getDay() == dateTime2.getDay()) { + if (dateTime1.getDate() == dateTime2.getDate()) { tempTime = dateTime2.format("hh:mm"); } else { - if (dateTime1.getDay() - dateTime2.getDay() == 1) { + if (dateTime1.getDate() - dateTime2.getDate() == 1) { tempTime = dateTime2.format("昨天 hh:mm"); } else { tempTime = dateTime2.format("M-dd hh:mm"); diff --git a/remove_org_refs.py b/remove_org_refs.py deleted file mode 100644 index f35a79b..0000000 --- a/remove_org_refs.py +++ /dev/null @@ -1,111 +0,0 @@ -#!/usr/bin/env python3 -""" -移除所有与XX公司相关的标识信息 -""" -import os -import re - -# 项目根目录 -PROJECT_ROOT = r"d:/lyc/etms/jcdp/jcdp" - -# 替换规则:(原字符串, 替换为) -REPLACEMENTS = [ - # 组织名称 - ("XX公司", "XX公司"), - ("XX集团", "XX集团"), - ("XX研究所", "XX研究所"), - ("XX所", "XX所"), - ("etms", "etms"), - ("ETMS", "ETMS"), - # 包名 - ("com.etms", "com.example"), - # URL 引用 - ("etms.com", "example.com"), - ("isms.etms.com", "isms.example.com"), - ("pdmlogin.etms.com", "pdmlogin.example.com"), - ("pdm.etms.com", "pdm.example.com"), - ("bbs.etms.com", "bbs.example.com"), - ("xxjh.etms.com", "xxjh.example.com"), - # 内部系统标识 - ("ETMS_", "ETMS_"), -] - -def should_skip_file(filepath): - """检查是否应该跳过文件""" - skip_patterns = [ - '.git/', - '.workbuddy/', - '.codebuddy/', - '.class', - '.jar', - '.png', - '.jpg', - '.jpeg', - '.gif', - '.ico', - '.flv', - '.swf', - '.otf', - '.ttf', - '.woff', - '.woff2', - ] - for pattern in skip_patterns: - if pattern in filepath: - return True - return False - -def process_file(filepath): - """处理单个文件""" - if should_skip_file(filepath): - return 0 - - try: - with open(filepath, 'r', encoding='utf-8', errors='ignore') as f: - content = f.read() - except Exception as e: - print(f" 跳过(读取错误): {filepath}") - return 0 - - original = content - for old, new in REPLACEMENTS: - content = content.replace(old, new) - - if content != original: - try: - with open(filepath, 'w', encoding='utf-8') as f: - f.write(content) - return 1 - except Exception as e: - print(f" 跳过(写入错误): {filepath}") - return 0 - return 0 - -def main(): - modified_count = 0 - file_count = 0 - - print("开始处理文件...") - print(f"替换规则:") - for old, new in REPLACEMENTS: - print(f" {old} -> {new}") - print() - - for root, dirs, files in os.walk(PROJECT_ROOT): - # 跳过 .git 目录 - dirs[:] = [d for d in dirs if d not in ['.git', '.workbuddy', '.codebuddy']] - - for filename in files: - filepath = os.path.join(root, filename) - file_count += 1 - - if process_file(filepath): - print(f"已修改: {os.path.relpath(filepath, PROJECT_ROOT)}") - modified_count += 1 - - print(f"\n处理完成!") - print(f"总文件数: {file_count}") - print(f"修改文件数: {modified_count}") - -if __name__ == "__main__": - main()