11 Star 29 Fork 14

zzx / health_assistant

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
克隆/下载
贡献代码
同步代码
取消
提示: 由于 Git 不支持空文件夾,创建文件夹后会生成空的 .keep 文件
Loading...
README
MulanPSL-1.0

交流QQ群:965617357

健康助手

学生健康报备、员工防疫筛查、个人健康打卡、社区管理、政府汇总等

介绍

这是健康助手的说明文档,适用于任何的团体,如班级、部门、学校、公司、地区政府等,自由创建,自助建立从属关系,对学生、员工、个人进行健康登记、防疫排查等功能。

  • 可以先建立班级,进行统计,之后再建立学校,进行汇总;
  • 可以直接创建公司,再创建所属部门,人员分部门管理;
  • 可以只创建部门,汇总之后再上报公司;
  • 地方政府也可以创建团体,汇总各部门、所管辖地区企业的信息;
  • 社区使用,按楼建立团体(如19栋),再做成社区。

创建好团体之后,开放成员注册,即可以自助录入部门员工信息、班级学生信息、楼层住户信息等,之后可以关闭成员注册,减少管理员的工作量。 管理员也可以录入成员,修改、删除成员。 在填写报备时,输入的个人信息可以和之前注册的信息对比,非团体成员不能提交报备。

项目来源于DCloud的“学生健康报备管理系统”项目,重新设计数据表、页面、云函数,便于扩展和迭代开发。

抗击肺炎,中国加油!

截图

软件架构

网页形式(一期实现)

登录

页面名称:user_login
数据表:ha_user_account
云函数:ha_check_account
END

注册

页面名称:user_register
数据表:ha_user_account
云函数:ha_add_account
END

首页

页面名称:index
数据表:多个数据表
云函数:

链接:个人中心(原个人设置改为个人中心)

分栏:我的团体

我管理的团体列表:团体详情
链接:创建团体

链接:我的模板

END

个人中心

页面名称:user_nest
数据表:ha_user_account
云函数:
修改密码、手机号、Email等功能,为后期找回密码服务

个人设置
修改密码

END

个人设置

页面名称:user_setting
数据表:ha_user_account
云函数:ha_update_account
设置个人手机号、Email等功能

END

修改密码

页面名称:user_chg_password
数据表:ha_user_account
云函数:
修改密码功能

END

创建团体

页面名称:create_group
数据表:ha_group_list
云函数:ha_add_group
参见ha_group_list

END

团体详情

页面名称:group_detail
数据表:ha_group_list、ha_report_list
云函数:ha_get_group、ha_update_report

链接:成员管理
已建报备列表:复制链接查看统计开启/关闭、删除
链接:新建报备
团体操作:修改、删除
修改、删除只能由本团体所有者操作
加入申请

出入管理

分栏:下属团体

下属团体列表:团体详情断开关系(仅对第一层下属有效)
需要记录进入下属团体的层级信息
是否可以点击进入下属团体,受团体作用域影响

END

新建报备

页面名称:create_report
数据表:ha_user_template、ha_template_list、ha_report_list
云函数:ha_add_report

单选框,选择自有的还是公共的模板
下拉菜单选择模板,并预览

根据ha_group_person的人员信息,选择报备首页的验证信息
如勾选名字和身份证号,则在点开报备链接时,首先要输入名字和身份证,确认正确后,进行实际报备的填写

选择是否激活,以及报备间隔时间,参见ha_report_list

同时新建下属团体的报备,参见作用域

END

查看统计

页面名称:report_detail
数据表:ha_report_list、ha_report_record
云函数:

多种方式显示 导出成excel功能

END

成员管理

页面名称:member_manage
数据表:ha_group_person
云函数:ha_add_member、ha_update_member

人员列表:查看修改、删除
链接:新增成员
是否开放成员注册?成员注册

END

新增成员

页面名称:create_member
数据表:ha_group_person
云函数:ha_add_member 参见ha_group_person

END

成员注册

页面名称:member_register
数据表:ha_group_person
云函数:ha_add_member 参见ha_group_person

END

填写报备

页面名称:do_report
数据表:ha_report_record
云函数:ha_check_member、ha_add_record

首先填写成员信息,检查是否是本团体的成员
再填写报备信息,最后提交

END

网页形式(续)

我的模板

页面名称:my_template
数据表:ha_user_template
云函数:ha_get_my_tpl

分栏:模板列表(get_way != 2)
分栏:收到的模板(get_way == 2)
每个项:查看模板、删除

查看公共模板

导入模板按钮(json格式),选择后进入预览模板页面,如格式错要提示并终止

END

预览模板

页面名称:tpl_review
数据表:ha_template_list
云函数:ha_get_tpl
查看现有的模板,则只有返回按钮
由导入按钮进行的预览,有确定导入和返回按钮

END

公共模板列表

页面名称:tpl_pub_list
数据表:ha_template_list
云函数:ha_get_pub_tpl
下拉菜单选择,下面预览
收藏按钮

END

关于有从属关系的团体说明:

  • 下属团体作用域:是往下三级,第四级将不受作用
  • 当前团体->第一级->第二级->第三级,往下不受作用
  • 如碰到下属团体is_split==true时,则往下的团体不受作用
  • 报备与团体有关,参见ha_report_list,当一个团体有下属团体时,新建报备,将在所有作用域中的团体,新建相同的报备。

加入申请

页面名称:join_group
数据表:ha_group_list
云函数:ha_update_group
这个页面包含group的ID
分享这个页面给下属团体
获得已登录用户账号的团体
下拉菜单选择当前用户账号的团体
申请加入

END

出入管理

页面名称:access_manage
数据表:ha_access_list
云函数:

出入登记点列表:查看、删除
创建出入登记点

END

出入详情

页面名称:access_detail
数据表:ha_access_list
云函数:

出入点是否开启

生成管理人员二维码:含出入登记点id的access_admin页面二维码
扫码后需要输入8位校验码进行验证
显示和更新管理人员校验码

生成人员登记二维码:含出入登记点id的access_checkin页面二维码

END

创建出入登记点

页面名称:create_access
数据表:ha_access_list
云函数:
创建出入登记点

END

出入登记管理员页面

页面名称:access_admin
数据表:ha_access_list
云函数:

扫码后,输入校验码check_code,成功后进入本页面

本出入点出入人员列表:同意进入离开
可以按access_state分类显示
可以按时间(天)显示

可以搜索出入人员(含本团体其它出入口的)

END

进入登记页面

页面名称:access_checkin
数据表:ha_access_list
云函数:
进入人员扫码后进入本页面,填写相关内容后,提交登记

END

软件架构说明

  • 注册登录
  • 团体管理
  • 健康上报
  • 数据查看

底部导航形式(二期实现)

- 底部导航
  |__ 主页(home)
  |__ xxx
  |__ xxx
  |__ 个人中心(user_nest)

- 主页(home)
  |__ xxx

- 个人中心(user_nest)
  |__ xxx

Tips:页面可以重建,请保持名称不变

参与贡献

参考DCloud提出的方式,请在文件开始处填写开发者名字、所处城市、邮箱等信息

开发者报名要参与开发哪些文件。具体方式如下:

- 首先要参与哪个项目,就把哪个项目git先fork,然后导入本地开发环境。注意不要fork xinguan2020 这个汇总项目,要fork具体的项目。
- 注意不要直接导入git项目,要先fork,修改自己本地的git,然后提交pr。
- 如果不了解提pr的方法,参考[码云教程](https://gitee.com/help/articles/4128#article-header0)
- 然后打开你要编辑的文件,在开头以注释方式编写你的信息,声明你在做这个文件。比如
```javascript
// 我在做这个文件,我的群昵称是xxx。(如果是vue文件,注释要用<!-- -->)
```
- 然后把这个修改提交pr。意思就是你报名要修改这个文件,且公知给其他人。
- 项目负责人会合并这个报名的pr。
- 等你开发文件完毕后,再把这个文件再次提交pr。项目负责人会合并pr。
- 如果你是参与项目的核心开发者,也可以把你的码云账户发到项目负责人那里,申请直接加为项目组成员,就可以直接提交而不是通过pr方式提交了。
  1. Fork 本仓库
  2. 新建 Feat_xxx 分支
  3. 提交代码
  4. 新建 Pull Request

发布方式

  • Saas方式,不需要另外部署,直接多用户使用
  • 基于uni-app的技术支撑,多端、多形态发布,H5、小程序、app等
  • 所用端口,不同形态的接口,共享数据,同一账号在用不同的方式登录都可以

体验链接

数据库设计

参考 db.md

空间与小程序appID设置

  • main.js中设置空间的spaceIdclientSecret
  • manifest.json中设置微信小程序的appID,否则微信端获取的code为:the code is a mock one
  • cloudfunctions-dev/src/utils/constants.js中设置AppIdAppSecretpassSecret字段,否则不能获取openid;

token获取详情

获取用户信息需要根据token获取,方法如下,成功后,res.data为详细信息,对应信息如下。

validateToken() {
				uni.showLoading({
					title: '加载中...'
				});
				uniCloud.callFunction({
					name: 'validateToken',
					data: {
						token: uni.getStorageSync('token')
					}
				}).then((res) => {
					uni.hideLoading()
					uni.showModal({
						content: res.result.msg,
						showCancel: false
					})
				}).catch((err) => {
					uni.hideLoading()
					uni.showModal({
						content: '请求云函数发生错误,' + err.message,
						showCancel: false
					})
				})
			},

码云特技

  1. 使用 Readme_XXX.md 来支持不同的语言,例如 Readme_en.md, Readme_zh.md
  2. 码云官方博客 blog.gitee.com
  3. 你可以 https://gitee.com/explore 这个地址来了解码云上的优秀开源项目
  4. GVP 全称是码云最有价值开源项目,是码云综合评定出的优秀开源项目
  5. 码云官方提供的使用手册 https://gitee.com/help
  6. 码云封面人物是一档用来展示码云会员风采的栏目 https://gitee.com/gitee-stars/

捐赠说明

捐赠将用于加快项目开发、优化项目,以及其他开源公益项目。 桌面版可进行捐赠。

木兰宽松许可证, 第1版 木兰宽松许可证, 第1版 2019年8月 http://license.coscl.org.cn/MulanPSL 您对“软件”的复制、使用、修改及分发受木兰宽松许可证,第1版(“本许可证”)的如下条款的约束: 0. 定义 “软件”是指由“贡献”构成的许可在“本许可证”下的程序和相关文档的集合。 “贡献者”是指将受版权法保护的作品许可在“本许可证”下的自然人或“法人实体”。 “法人实体”是指提交贡献的机构及其“关联实体”。 “关联实体”是指,对“本许可证”下的一方而言,控制、受控制或与其共同受控制的机构,此处的控制是指有受控方或共同受控方至少50%直接或间接的投票权、资金或其他有价证券。 “贡献”是指由任一“贡献者”许可在“本许可证”下的受版权法保护的作品。 1. 授予版权许可 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的版权许可,您可以复制、使用、修改、分发其“贡献”,不论修改与否。 2. 授予专利许可 每个“贡献者”根据“本许可证”授予您永久性的、全球性的、免费的、非独占的、不可撤销的(根据本条规定撤销除外)专利许可,供您制造、委托制造、使用、许诺销售、销售、进口其“贡献”或以其他方式转移其“贡献”。前述专利许可仅限于“贡献者”现在或将来拥有或控制的其“贡献”本身或其“贡献”与许可“贡献”时的“软件”结合而将必然会侵犯的专利权利要求,不包括仅因您或他人修改“贡献”或其他结合而将必然会侵犯到的专利权利要求。如您或您的“关联实体”直接或间接地(包括通过代理、专利被许可人或受让人),就“软件”或其中的“贡献”对任何人发起专利侵权诉讼(包括反诉或交叉诉讼)或其他专利维权行动,指控其侵犯专利权,则“本许可证”授予您对“软件”的专利许可自您提起诉讼或发起维权行动之日终止。 3. 无商标许可 “本许可证”不提供对“贡献者”的商品名称、商标、服务标志或产品名称的商标许可,但您为满足第4条规定的声明义务而必须使用除外。 4. 分发限制 您可以在任何媒介中将“软件”以源程序形式或可执行形式重新分发,不论修改与否,但您必须向接收者提供“本许可证”的副本,并保留“软件”中的版权、商标、专利及免责声明。 5. 免责声明与责任限制 “软件”及其中的“贡献”在提供时不带任何明示或默示的担保。在任何情况下,“贡献者”或版权所有者不对任何人因使用“软件”或其中的“贡献”而引发的任何直接或间接损失承担责任,不论因何种原因导致或者基于何种法律理论,即使其曾被建议有此种损失的可能性。 条款结束。 如何将木兰宽松许可证,第1版,应用到您的软件 如果您希望将木兰宽松许可证,第1版,应用到您的新软件,为了方便接收者查阅,建议您完成如下三步: 1, 请您补充如下声明中的空白,包括软件名、软件的首次发表年份以及您作为版权人的名字; 2, 请您在软件包的一级目录下创建以“LICENSE”为名的文件,将整个许可证文本放入该文件中; 3, 请将如下声明文本放入每个源文件的头部注释中。 Copyright (c) [2019] [name of copyright holder] [Software Name] is licensed under the Mulan PSL v1. You can use this software according to the terms and conditions of the Mulan PSL v1. You may obtain a copy of Mulan PSL v1 at: http://license.coscl.org.cn/MulanPSL THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v1 for more details. Mulan Permissive Software License,Version 1 Mulan Permissive Software License,Version 1 (Mulan PSL v1) August 2019 http://license.coscl.org.cn/MulanPSL Your reproduction, use, modification and distribution of the Software shall be subject to Mulan PSL v1 (this License) with following terms and conditions: 0. Definition Software means the program and related documents which are comprised of those Contribution and licensed under this License. Contributor means the Individual or Legal Entity who licenses its copyrightable work under this License. Legal Entity means the entity making a Contribution and all its Affiliates. Affiliates means entities that control, or are controlled by, or are under common control with a party to this License, ‘control’ means direct or indirect ownership of at least fifty percent (50%) of the voting power, capital or other securities of controlled or commonly controlled entity. Contribution means the copyrightable work licensed by a particular Contributor under this License. 1. Grant of Copyright License Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable copyright license to reproduce, use, modify, or distribute its Contribution, with modification or not. 2. Grant of Patent License Subject to the terms and conditions of this License, each Contributor hereby grants to you a perpetual, worldwide, royalty-free, non-exclusive, irrevocable (except for revocation under this Section) patent license to make, have made, use, offer for sale, sell, import or otherwise transfer its Contribution where such patent license is only limited to the patent claims owned or controlled by such Contributor now or in future which will be necessarily infringed by its Contribution alone, or by combination of the Contribution with the Software to which the Contribution was contributed, excluding of any patent claims solely be infringed by your or others’ modification or other combinations. If you or your Affiliates directly or indirectly (including through an agent, patent licensee or assignee), institute patent litigation (including a cross claim or counterclaim in a litigation) or other patent enforcement activities against any individual or entity by alleging that the Software or any Contribution in it infringes patents, then any patent license granted to you under this License for the Software shall terminate as of the date such litigation or activity is filed or taken. 3. No Trademark License No trademark license is granted to use the trade names, trademarks, service marks, or product names of Contributor, except as required to fulfill notice requirements in section 4. 4. Distribution Restriction You may distribute the Software in any medium with or without modification, whether in source or executable forms, provided that you provide recipients with a copy of this License and retain copyright, patent, trademark and disclaimer statements in the Software. 5. Disclaimer of Warranty and Limitation of Liability The Software and Contribution in it are provided without warranties of any kind, either express or implied. In no event shall any Contributor or copyright holder be liable to you for any damages, including, but not limited to any direct, or indirect, special or consequential damages arising from your use or inability to use the Software or the Contribution in it, no matter how it’s caused or based on which legal theory, even if advised of the possibility of such damages. End of the Terms and Conditions How to apply the Mulan Permissive Software License,Version 1 (Mulan PSL v1) to your software To apply the Mulan PSL v1 to your work, for easy identification by recipients, you are suggested to complete following three steps: i. Fill in the blanks in following statement, including insert your software name, the year of the first publication of your software, and your name identified as the copyright owner; ii. Create a file named “LICENSE” which contains the whole context of this License in the first directory of your software package; iii. Attach the statement to the appropriate annotated syntax at the beginning of each source file. Copyright (c) [2019] [name of copyright holder] [Software Name] is licensed under the Mulan PSL v1. You can use this software according to the terms and conditions of the Mulan PSL v1. You may obtain a copy of Mulan PSL v1 at: http://license.coscl.org.cn/MulanPSL THIS SOFTWARE IS PROVIDED ON AN "AS IS" BASIS, WITHOUT WARRANTIES OF ANY KIND, EITHER EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO NON-INFRINGEMENT, MERCHANTABILITY OR FIT FOR A PARTICULAR PURPOSE. See the Mulan PSL v1 for more details.

简介

防疫战公益项目 展开 收起
JavaScript 等 4 种语言
MulanPSL-1.0
取消

发行版

暂无发行版

贡献者

全部

近期动态

加载更多
不能加载更多了
JavaScript
1
https://gitee.com/zzxnj/health_assistant.git
git@gitee.com:zzxnj/health_assistant.git
zzxnj
health_assistant
health_assistant
master

搜索帮助