1
0
Code Issues Pull Requests Packages Projects Releases Wiki Activity GitHub Gitee

更新文档内容

This commit is contained in:
2022-11-23 20:55:50 +08:00
parent 912cee22ae
commit 30a4046f3d
7 changed files with 160 additions and 127 deletions

7
docs/Others.md Normal file
View File

@@ -0,0 +1,7 @@
## 其他的一些技术无关内容
系统图标,系统名称
系统登录界面可以展示的一些口号:
数据日更新,问题不过夜

143
docs/Solutions.md Normal file
View File

@@ -0,0 +1,143 @@
# 遇到的问题及对应的解决方案
### 2022.11
#### 2022.11.05 nacos启动报错Fail to init node, please see the logs to find the reason.
Nacos启动程序路径不能有中文名
### 2022.10
#### 2022.10.22 CRLF换行替换为LF
VSCode安装 `EditorConfig for VS Code` 插件,然后添加 `.editorconfig` 文件:
```ini
# http://editorconfig.org
root = true
[*]
end_of_line = lf
[*.md]
insert_final_newline = false
trim_trailing_whitespace = false
```
IDEAFile → File Properties → Line Separators → LF - Unix and macOS (\n)
参考:
https://juejin.cn/post/6860322397447258119
https://blog.csdn.net/Li_haiyu/article/details/123852105
#### 2022.10.21 前端 npm run serve 时报错提示Module not found: Error: Can't resolve 'element-plus/lib/locale'
```bash
ERROR Failed to compile with 1 error
error in ./src/plugins/element.js
Module not found: Error: Can't resolve 'element-plus/lib/locale' in 'xxxxxxxx\src\plugins'
ERROR in ./src/plugins/element.js 3:0-45
Module not found: Error: Can't resolve 'element-plus/lib/locale' in 'xxxxxxxx\src\plugins'
@ ./src/main.js 4:0-51 6:0-18
webpack compiled with 1 error
```
解决方案:
安装`unplugin-vue-components``unplugin-auto-import`这两款插件
```bash
npm install -D unplugin-vue-components unplugin-auto-import
```
注意:安装时可能还会遇到下面一个错误,可以添加 `--legacy-peer-deps` 参数解决
参考https://element-plus.gitee.io/zh-CN/guide/quickstart.html#%E6%8C%89%E9%9C%80%E5%AF%BC%E5%85%A5
#### 2022.10.21 前端 npm install 时报错提示Conflicting peer dependency: eslint-plugin-vue@7.20.0
```bash
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: @vue/eslint-config-standard@6.1.0
npm ERR! Found: eslint-plugin-vue@8.7.1
npm ERR! node_modules/eslint-plugin-vue
npm ERR! dev eslint-plugin-vue@"^8.0.3" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: eslint-plugin-vue@7.20.0
npm ERR! node_modules/eslint-plugin-vue
npm ERR! peer eslint-plugin-vue@"^7.0.0" from @vue/eslint-config-standard@6.1.0
npm ERR! node_modules/@vue/eslint-config-standard
npm ERR! dev @vue/eslint-config-standard@"^6.1.0" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See C:\Users\Coz\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Coz\AppData\Local\npm-cache\_logs\2022-10-21T07_12_41_027Z-debug-0.log
```
解决方案:
在安装命令后加 `--legacy-peer-deps`
例如:`npm i --legacy-peer-deps`
参考https://blog.csdn.net/lanmy_dl/article/details/126346812
#### 2022.10.21 后端 项目创建后启动失败提示Failed to configure a DataSource: url attribute is not specified and no embedded datasource could be configured.
```bash
***************************
APPLICATION FAILED TO START
***************************
Description:
Failed to configure a DataSource: url attribute is not specified and no embedded datasource could be configured.
Reason: Failed to determine a suitable driver class
Action:
Consider the following:
If you want an embedded database (H2, HSQL or Derby), please put it on the classpath.
If you have database settings to be loaded from a particular profile you may need to activate it (no profiles are currently active).
```
解决方案:
application.properties 配置文件中添加数据库配置
```bash
# MySQL配置
spring.datasource.driver-class-name=com.mysql.cj.jdbc.Driver
spring.datasource.url=jdbc:mysql://127.0.0.1:3306/epp?useUnicode=true&characterEncoding=utf8&useSSL=false
spring.datasource.username=root
spring.datasource.password=root
```

34
docs/reference.md Normal file
View File

@@ -0,0 +1,34 @@
小程序https://github.com/HolyShiftt/school
可以参考的一些:
附源码springboot社区疫情防控管理系统 毕业设计 164621https://blog.csdn.net/WeiXin_DZbishe/article/details/127091024 https://blog.csdn.net/Q_3461074420/article/details/127100890
【原创】基于JavaWeb的社区疫情防控管理系统疫情防控管理系统毕业设计https://blog.csdn.net/qq_59059632/article/details/127080812
基于springboot社区疫情防控管理系统https://blog.csdn.net/weixin_46437112/article/details/121885311
疫情防控系统http://chisc.net/CIOjulebu/dianxinganli/2020-01-31/3883.html
科技防疫——社区疫情防控平台https://zhuanlan.zhihu.com/p/108992875
【附源码】计算机毕业设计SSM社区疫情防控监管系统https://blog.csdn.net/bishe409/article/details/127413536
智慧社区防疫管理信息化系统功能清单及价格https://www.deerpu.cn/soft-1860.html https://www.deerpu.cn/softPrice-1860.html
网格化社区疫情防控系统建设方案全国版云端接入http://www.egova.com.cn/web/pdf/%E7%BD%91%E6%A0%BC%E5%8C%96%E7%96%AB%E6%83%85%E9%98%B2%E6%8E%A7%E7%B3%BB%E7%BB%9F%E6%96%B9%E6%A1%88(%E5%85%A8%E5%9B%BD%E7%89%88)-0207.pdf
基于Java+SpringBoot+vue+elementui社区疫情防控系统详细设计实现https://blog.51cto.com/u_14304894/5578744
【计算机毕业设计】java ssm社区小区疫情防控系统https://blog.csdn.net/qq_15801219/article/details/124359029
【计算机毕业设计】疫情社区管理系统的设计与实现 (新增-健康打卡https://blog.csdn.net/newuserphb/article/details/124490818
基于社区的疫情防控系统的设计与实现https://wenku.baidu.com/view/e9d96532874769eae009581b6bd97f192279bf18.html

75
docs/功能拆分.md Normal file
View File

@@ -0,0 +1,75 @@
## 功能拆分
| 功能 | 功能描述 | 居民端 | 门禁端 | 志愿者端 | 管理员端 |
| ---------------------------------------- | ------------------------------------------------------------ | ------ | ------ | -------- | -------- |
| 社区人员进出入 | 临时访客的进出申请、放行逻辑(待定)。<br />外出返回居民的进社区提前报备;去外地出行前的提前申请。<br />扩展:<br />1. 二维码状态颜色(要和政府健康码颜色保持基本一致)<br />2. 刷脸、刷卡出入<br /><br />**居民**:进出入<br />1. 居民端展示动态二维码,门禁端识别放行<br />2. 门禁端展示动态二维码,居民端识别放行<br />(对于行动不便人群提供固定二维码)<br />**管理员**:查看、管理居民进出入<br />1. 查看人员进出记录<br />2. 设置指定居民进出权限 | √ | √ | | √ |
| 体温上报 | 体温/健康信息上报;健康码收集<br /><br />**居民**:每日上报体温<br />(每天上报时相同信息默认自动填充,不需要重复填写)<br />**管理员**<br />1. 查看居民体温上报记录<br />2. 异常记录推送提醒 | √ | | | √ |
| 日常生活物资的调控(买菜团购、药品购置) | 三种策略:团购、正常购买&秒杀(防超买)、预定<br />物资有限,分配策略很重要(保证每个用户不会总抢不到,也尽量避免总分配给)。<br />扩展:居民互助交流,物资交换(待定)<br /><br />**居民端**<br />查看生活物资<br />下单<br />取消订单<br />发布求助信息(比如缺少什么物资)<br />**管理员**<br />发布/修改/删除物资信息,设置每人/每户最多买多少<br />查看当前物资订单状态<br />查看居民需要的物资求助信息,针对性处理(增补物资等),然后将其标记为已处理/已忽略等 | √ | | √ | √ |
用户账户创建逻辑:
1. 社区预先导入 (1)社区门牌号信息,以及门牌号对应的户主身份信息;(2)临时租户信息;(3)社区流动人员登记信息
2. 用户注册账号,注册后绑定系统中已有户主信息(必要信息:用户的电话号码(方便发送短信以及社区联系),微信号)
系统保证:
1. 某一功能出现问题不影响其他功能
2. 核心功能出现问题要有降级策略,不能完全不可用
3. 用户信息的安全性
更多可以拓展的功能:
1. 大屏展示
2. 与政府健康码信息同步
3. 系统建设后的平滑过渡(从不使用这个系统到推广这个系统)
4. 社区通知模块(管理员可以发布公告,社区居民点开居民端后可以浏览公告信息),也可以定向发布消息(即方便管理员联系社区居民;进一步扩展可以发送短信等)
5. 部分部署(可以只部署需要用到的模块)
## 需要确定的细节
用户是自己注册还是社区提供账号或者是社区提供token用户刷卡实现身份验证
## 一些需要细想的想法
用户和身份分离:一个用户账号可以绑定多个身份,比如一个社区人员同时可以是志愿者
## 前端系统设计
### 管理员端
### 社区人员端
### 志愿者端
### 门禁端
## 后端模块设计
用户认证模块(用户登录、注册、三方授权登录等)
用户信息模块(用户基本信息<住址联系方式>
用户健康状态模块(维护用户的健康状态,与外部系统同步信息)
生活物资模块(维护生活物资商品信息<菜品药品>
订单模块(社区人员下单,涉及到秒杀相关,可指定上门派送、自取或者由用户自主选择)
派送模块()
消息推送模块(系统中出现异常信息,例如系统崩溃,出现体温异常居民等,及时推送管理员)
验证码发送模块(用户注册账户,账号信息变更等)