diff --git a/pom.xml b/pom.xml index b65724fc..eae29ae2 100644 --- a/pom.xml +++ b/pom.xml @@ -10,7 +10,7 @@ ry-xinli http://www.ddnai.com - DDNAI心理健康测评系统 + DDNAIAI心理健康测评系统 1.0.0 diff --git a/ry-xinli-admin/src/main/java/com/ddnai/XinliApplication.java b/ry-xinli-admin/src/main/java/com/ddnai/XinliApplication.java index 0720dd55..e63376f9 100644 --- a/ry-xinli-admin/src/main/java/com/ddnai/XinliApplication.java +++ b/ry-xinli-admin/src/main/java/com/ddnai/XinliApplication.java @@ -31,7 +31,7 @@ public class XinliApplication public ApplicationRunner applicationRunner() { return args -> { - System.out.println("\n(♥◠‿◠)ノ゙ 心理健康测评系统启动成功 ლ(´ڡ`ლ)゙ \n" + + System.out.println("\n(♥◠‿◠)ノ゙ AI心理健康测评系统启动成功 ლ(´ڡ`ლ)゙ \n" + " .-------. ____ __ \n" + " | _ _ \\ \\ \\ / / \n" + " | ( ' ) | \\ _. / ' \n" + diff --git a/ry-xinli-admin/src/main/resources/application.yml b/ry-xinli-admin/src/main/resources/application.yml index 323bfcd7..de099ae3 100644 --- a/ry-xinli-admin/src/main/resources/application.yml +++ b/ry-xinli-admin/src/main/resources/application.yml @@ -1,7 +1,7 @@ # 项目相关配置 ruoyi: # 名称 - name: 心理健康测评系统 + name: AI心理健康测评系统 # 版本 version: 1.0.0 # 版权年份 diff --git a/ry-xinli-admin/src/main/resources/banner.txt b/ry-xinli-admin/src/main/resources/banner.txt index 4e5ab664..36cee63d 100644 --- a/ry-xinli-admin/src/main/resources/banner.txt +++ b/ry-xinli-admin/src/main/resources/banner.txt @@ -20,5 +20,5 @@ Spring Boot Version: ${spring-boot.version} // ========`-.____`-.___\_____/___.-`____.-'======== // // `=---=' // // ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ // -// 心理健康测评系统 永不宕机 永无BUG // +// AI心理健康测评系统 永不宕机 永无BUG // //////////////////////////////////////////////////////////////////// diff --git a/ry-xinli-system/src/main/java/com/ddnai/system/domain/psychology/PsyUserProfile.java b/ry-xinli-system/src/main/java/com/ddnai/system/domain/psychology/PsyUserProfile.java index 41a00404..6e05ae4f 100644 --- a/ry-xinli-system/src/main/java/com/ddnai/system/domain/psychology/PsyUserProfile.java +++ b/ry-xinli-system/src/main/java/com/ddnai/system/domain/psychology/PsyUserProfile.java @@ -22,76 +22,73 @@ public class PsyUserProfile extends BaseEntity private Long userId; /** 档案类型(如:standard标准 child儿童 adult成人 senior老年) */ - @Excel(name = "档案类型", readConverterExp = "standard=标准,child=儿童,adult=成人,senior=老年") private String profileType; /** 头像 */ private String avatar; /** 身份证号 */ - @Excel(name = "身份证号") private String idCard; /** 档案数据(JSON格式) */ private String profileData; /** 姓名 */ - @Excel(name = "姓名") + @Excel(name = "罪犯姓名", sort = 2) private String userName; /** 电话 */ - @Excel(name = "电话") private String phone; /** 生日 */ @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "生日", width = 30, dateFormat = "yyyy-MM-dd") private java.util.Date birthday; /** 监狱 */ - @Excel(name = "监狱") + @Excel(name = "监狱", sort = 3) private String prison; /** 监区 */ - @Excel(name = "监区") + @Excel(name = "监区", sort = 4) private String prisonArea; /** 性别 */ - @Excel(name = "性别", readConverterExp = "0=男,1=女,2=未知") + @Excel(name = "性别", sort = 5, readConverterExp = "0=男,1=女,2=未知") private String gender; /** 民族 */ - @Excel(name = "民族") + @Excel(name = "民族", sort = 6) private String nation; /** 文化程度 */ - @Excel(name = "文化程度") + @Excel(name = "文化程度", sort = 7) private String educationLevel; /** 罪名 */ - @Excel(name = "罪名") + @Excel(name = "罪名", sort = 8) private String crimeName; /** 刑期 */ - @Excel(name = "刑期") + @Excel(name = "刑期", sort = 9) private String sentenceTerm; /** 刑期起日 */ @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "刑期起日", width = 30, dateFormat = "yyyy-MM-dd") + @Excel(name = "刑期起日", sort = 10, width = 30, dateFormat = "yyyy-MM-dd") private java.util.Date sentenceStartDate; /** 刑期止日 */ @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "刑期止日", width = 30, dateFormat = "yyyy-MM-dd") + @Excel(name = "刑期止日", sort = 11, width = 30, dateFormat = "yyyy-MM-dd") private java.util.Date sentenceEndDate; /** 入监时间 */ @JsonFormat(pattern = "yyyy-MM-dd") - @Excel(name = "入监时间", width = 30, dateFormat = "yyyy-MM-dd") + @Excel(name = "入监时间", sort = 12, width = 30, dateFormat = "yyyy-MM-dd") private java.util.Date entryDate; - /** 用户状态(0正常 1停用) */ + /** 用户状态(0在押 1释放 2外出 3假释) */ + @Excel(name = "状态", sort = 13, readConverterExp = "0=在押,1=释放,2=外出,3=假释") private String status; /** 部门ID */ @@ -101,7 +98,7 @@ public class PsyUserProfile extends BaseEntity private String deptName; /** 信息编号 */ - @Excel(name = "信息编号") + @Excel(name = "信息编号", sort = 1) private String infoNumber; public Long getProfileId() diff --git a/ry-xinli-system/src/main/resources/mapper/system/psychology/PsyUserProfileMapper.xml b/ry-xinli-system/src/main/resources/mapper/system/psychology/PsyUserProfileMapper.xml index bea2b240..94c0c941 100644 --- a/ry-xinli-system/src/main/resources/mapper/system/psychology/PsyUserProfileMapper.xml +++ b/ry-xinli-system/src/main/resources/mapper/system/psychology/PsyUserProfileMapper.xml @@ -176,6 +176,7 @@ PUBLIC "-//mybatis.org//DTD Mapper 3.0//EN" sentence_end_date = #{sentenceEndDate}, entry_date = #{entryDate}, info_number = #{infoNumber}, + status = #{status}, update_by = #{updateBy}, remark = #{remark}, update_time = sysdate() diff --git a/ry_xinli_2025-11-18_06-13-25_mysql_data_zwPIk.sql.zip b/ry_xinli_2025-11-18_06-13-25_mysql_data_zwPIk.sql.zip deleted file mode 100644 index c890c36e..00000000 Binary files a/ry_xinli_2025-11-18_06-13-25_mysql_data_zwPIk.sql.zip and /dev/null differ diff --git a/xinli-ui/.env.development b/xinli-ui/.env.development index a7c2d461..04e61cac 100644 --- a/xinli-ui/.env.development +++ b/xinli-ui/.env.development @@ -1,2 +1,2 @@ VUE_APP_BASE_API=/dev-api -VUE_APP_TITLE=心理健康测评系统 +VUE_APP_TITLE=AI心理健康测评系统 diff --git a/xinli-ui/.env.production b/xinli-ui/.env.production index ce264c13..12e325ab 100644 --- a/xinli-ui/.env.production +++ b/xinli-ui/.env.production @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 心理健康测评系统 +VUE_APP_TITLE = AI心理健康测评系统 # 生产环境配置 ENV = 'production' diff --git a/xinli-ui/.env.staging b/xinli-ui/.env.staging index 081fe58d..8acc2753 100644 --- a/xinli-ui/.env.staging +++ b/xinli-ui/.env.staging @@ -1,5 +1,5 @@ # 页面标题 -VUE_APP_TITLE = 心理健康测评系统 +VUE_APP_TITLE = AI心理健康测评系统 BABEL_ENV = production diff --git a/xinli-ui/README.md b/xinli-ui/README.md index fbe3c2ff..6398ee21 100644 --- a/xinli-ui/README.md +++ b/xinli-ui/README.md @@ -34,4 +34,4 @@ npm run build:prod 本项目基于-Vue框架定制开发,已进行以下定制化改造: - 项目包名:com.ruoyi.* → com.ddnai.* - 模块命名:ruoyi-* → ry-xinli-* -- 品牌标识:全面更换为"心理健康测评系统" \ No newline at end of file +- 品牌标识:全面更换为"AI心理健康测评系统" \ No newline at end of file diff --git a/xinli-ui/package.json b/xinli-ui/package.json index f97b9c8b..56864915 100644 --- a/xinli-ui/package.json +++ b/xinli-ui/package.json @@ -1,7 +1,7 @@ { "name": "ry-xinli", "version": "1.0.0", - "description": "心理健康测评系统", + "description": "AI心理健康测评系统", "author": "wanxiubin", "license": "MIT", "scripts": { diff --git a/xinli-ui/src/assets/styles/ruoyi.scss b/xinli-ui/src/assets/styles/ruoyi.scss index 53bd4e59..0be80cab 100644 --- a/xinli-ui/src/assets/styles/ruoyi.scss +++ b/xinli-ui/src/assets/styles/ruoyi.scss @@ -1,6 +1,6 @@ /** * 通用css样式布局处理 -* 心理健康测评系统 +* AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/directive/dialog/drag.js b/xinli-ui/src/directive/dialog/drag.js index 96c7daab..ab204588 100644 --- a/xinli-ui/src/directive/dialog/drag.js +++ b/xinli-ui/src/directive/dialog/drag.js @@ -1,6 +1,6 @@ /** * v-dialogDrag 弹窗拖拽 -* 心理健康测评系统 +* AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/directive/dialog/dragHeight.js b/xinli-ui/src/directive/dialog/dragHeight.js index ee2751e9..1c230b0e 100644 --- a/xinli-ui/src/directive/dialog/dragHeight.js +++ b/xinli-ui/src/directive/dialog/dragHeight.js @@ -1,6 +1,6 @@ /** * v-dialogDragWidth 可拖动弹窗高度(右下角) - * 心理健康测评系统 + * AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/directive/dialog/dragWidth.js b/xinli-ui/src/directive/dialog/dragWidth.js index 6b7d421a..d8f2623a 100644 --- a/xinli-ui/src/directive/dialog/dragWidth.js +++ b/xinli-ui/src/directive/dialog/dragWidth.js @@ -1,6 +1,6 @@ /** * v-dialogDragWidth 可拖动弹窗宽度(右侧边) - * 心理健康测评系统 + * AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/directive/module/clipboard.js b/xinli-ui/src/directive/module/clipboard.js index 232b717c..12247673 100644 --- a/xinli-ui/src/directive/module/clipboard.js +++ b/xinli-ui/src/directive/module/clipboard.js @@ -1,6 +1,6 @@ /** * v-clipboard 文字复制剪贴 -* 心理健康测评系统 +* AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/directive/permission/hasPermi.js b/xinli-ui/src/directive/permission/hasPermi.js index 30625b9c..1ea4efef 100644 --- a/xinli-ui/src/directive/permission/hasPermi.js +++ b/xinli-ui/src/directive/permission/hasPermi.js @@ -1,6 +1,6 @@ /** * v-hasPermi 操作权限处理 - * 心理健康测评系统 + * AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/directive/permission/hasRole.js b/xinli-ui/src/directive/permission/hasRole.js index 850065ca..8b6bf158 100644 --- a/xinli-ui/src/directive/permission/hasRole.js +++ b/xinli-ui/src/directive/permission/hasRole.js @@ -1,6 +1,6 @@ /** * v-hasRole 角色权限处理 - * 心理健康测评系统 + * AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/settings.js b/xinli-ui/src/settings.js index f4b306a8..5f1a6a22 100644 --- a/xinli-ui/src/settings.js +++ b/xinli-ui/src/settings.js @@ -52,5 +52,5 @@ module.exports = { /** * 底部版权文本内容 */ - footerContent: 'Copyright © 2025 心理健康测评系统. All Rights Reserved.' + footerContent: 'Copyright © 2025 AI心理健康测评系统. All Rights Reserved.' } diff --git a/xinli-ui/src/utils/ruoyi.js b/xinli-ui/src/utils/ruoyi.js index 15b6a01e..61b6f4f4 100644 --- a/xinli-ui/src/utils/ruoyi.js +++ b/xinli-ui/src/utils/ruoyi.js @@ -1,6 +1,6 @@ /** * 通用js方法封装处理 - * 心理健康测评系统 + * AI心理健康测评系统 * Copyright (c) 2025 */ diff --git a/xinli-ui/src/views/admin-login.vue b/xinli-ui/src/views/admin-login.vue index 1359eeca..453bbc8d 100644 --- a/xinli-ui/src/views/admin-login.vue +++ b/xinli-ui/src/views/admin-login.vue @@ -61,7 +61,7 @@ diff --git a/xinli-ui/src/views/index.vue b/xinli-ui/src/views/index.vue index 33ce71e6..40679a26 100644 --- a/xinli-ui/src/views/index.vue +++ b/xinli-ui/src/views/index.vue @@ -2,7 +2,7 @@
-

心理健康测评系统

+

AI心理健康测评系统

欢迎来到心理网站内容中心。这里展示了管理员在「心理网站管理」中发布的公告、文章与资讯,您可以随时查看并留下宝贵评论。

diff --git a/xinli-ui/src/views/login.vue b/xinli-ui/src/views/login.vue index d9b0a832..080f74b0 100644 --- a/xinli-ui/src/views/login.vue +++ b/xinli-ui/src/views/login.vue @@ -1,7 +1,7 @@ @@ -122,12 +122,12 @@ export default { // 确保默认是学员登录模式 this.isAdminMode = false // 设置浏览器标题 - document.title = '学员登录 - 心理健康测评系统' + document.title = '学员登录 - AI心理健康测评系统' }, watch: { // 监听登录模式变化,更新浏览器标题 isAdminMode(newVal) { - document.title = newVal ? '管理员登录 - 心理健康测评系统' : '学员登录 - 心理健康测评系统' + document.title = newVal ? '管理员登录 - AI心理健康测评系统' : '学员登录 - AI心理健康测评系统' } }, computed: { diff --git a/xinli-ui/src/views/psychology/profile/index.vue b/xinli-ui/src/views/psychology/profile/index.vue index 3e22f3ea..b01300a1 100644 --- a/xinli-ui/src/views/psychology/profile/index.vue +++ b/xinli-ui/src/views/psychology/profile/index.vue @@ -19,9 +19,11 @@ /> - - - + + + + + @@ -103,58 +105,82 @@ - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -177,68 +217,28 @@ - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - @@ -331,12 +331,6 @@ - - - - - -

diff --git a/xinli-ui/src/views/system/user/index.vue b/xinli-ui/src/views/system/user/index.vue index 62cda7c9..15aa22a3 100644 --- a/xinli-ui/src/views/system/user/index.vue +++ b/xinli-ui/src/views/system/user/index.vue @@ -384,8 +384,7 @@ export default { ], phonenumber: [ { - pattern: /^1[3|4|5|6|7|8|9][0-9]\d{8}$/, - message: "请输入正确的手机号码", + validator: this.validatePhonenumber, trigger: "blur" } ] @@ -676,6 +675,18 @@ export default { return } this.$refs.upload.submit() + }, + validatePhonenumber(rule, value, callback) { + if (!value || !String(value).trim()) { + callback() + return + } + const phonePattern = /^1[3-9]\d{9}$/ + if (!phonePattern.test(value)) { + callback(new Error("请输入正确的手机号码")) + } else { + callback() + } } } } diff --git a/xinli-ui/vue.config.js b/xinli-ui/vue.config.js index b102de86..dca9b5a5 100644 --- a/xinli-ui/vue.config.js +++ b/xinli-ui/vue.config.js @@ -7,7 +7,7 @@ function resolve(dir) { const CompressionPlugin = require('compression-webpack-plugin') -const name = process.env.VUE_APP_TITLE || '心理健康测评系统' // 网页标题 +const name = process.env.VUE_APP_TITLE || 'AI心理健康测评系统' // 网页标题 // 后端接口地址配置 // 本地开发环境:使用 localhost:30081 diff --git a/使用指南-总览.md b/使用指南-总览.md index e13b46e3..793eaf75 100644 --- a/使用指南-总览.md +++ b/使用指南-总览.md @@ -1,4 +1,4 @@ -# 心理健康测评系统 - 使用指南总览 +# AI心理健康测评系统 - 使用指南总览 ## 📚 文档导航 @@ -221,7 +221,7 @@ - **最后更新**:2025-01-XX - **文档版本**:v1.0 -- **适用系统版本**:心理健康测评系统 v1.0 +- **适用系统版本**:AI心理健康测评系统 v1.0 --- diff --git a/使用指南-普通用户.md b/使用指南-普通用户.md index 2e13f2c7..0ae8be67 100644 --- a/使用指南-普通用户.md +++ b/使用指南-普通用户.md @@ -1,4 +1,4 @@ -# 心理健康测评系统 - 普通用户使用指南 +# AI心理健康测评系统 - 普通用户使用指南 ## 📋 目录 @@ -17,7 +17,7 @@ ## 系统概述 -心理健康测评系统是一个专业的心理测评平台,您可以通过该系统进行各种心理量表测评,查看测评报告,了解自己的心理健康状况。 +AI心理健康测评系统是一个专业的心理测评平台,您可以通过该系统进行各种心理量表测评,查看测评报告,了解自己的心理健康状况。 ### 主要功能 diff --git a/使用指南-注册用户.md b/使用指南-注册用户.md index 242318c4..e0354c8a 100644 --- a/使用指南-注册用户.md +++ b/使用指南-注册用户.md @@ -1,4 +1,4 @@ -# 心理健康测评系统 - 注册用户使用指南 +# AI心理健康测评系统 - 注册用户使用指南 ## 📋 目录 diff --git a/使用指南-系统管理员.md b/使用指南-系统管理员.md index 92e8a860..f88b0c67 100644 --- a/使用指南-系统管理员.md +++ b/使用指南-系统管理员.md @@ -1,4 +1,4 @@ -# 心理健康测评系统 - 系统管理员使用指南 +# AI心理健康测评系统 - 系统管理员使用指南 ## 📋 目录 @@ -22,7 +22,7 @@ ## 系统概述 -心理健康测评系统是一个基于Web的心理测评管理平台,支持量表测评、自定义问卷、用户档案管理、预警管理等功能。 +AI心理健康测评系统是一个基于Web的心理测评管理平台,支持量表测评、自定义问卷、用户档案管理、预警管理等功能。 ### 主要功能模块