# tp5 **Repository Path**: ave40/tp5 ## Basic Information - **Project Name**: tp5 - **Description**: thinkPHP 5.1 基本的权限管理系统,实现了菜单管理、角色管理、用户管理和权限管理的功能,项目比较简洁。 - **Primary Language**: PHP - **License**: Apache-2.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 8 - **Created**: 2021-08-07 - **Last Updated**: 2024-05-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # mp #### 项目介绍 基本的权限管理系统,实现了菜单管理、角色管理、用户管理和权限管理的功能,项目比较简洁。 #### 软件架构 该系统使用的后端技术: ThinkPHP5.1 、 MySQL等 该系统使用的前端技术: jQuery、 bootstrap、 bootstrap-table、 bootstrap-tree-table、 ztree、 bootstrapvalidator、 layer、 animate 等 参考的开源项目: [guns](https://gitee.com/stylefeng/guns)、 [ACI](https://github.com/hubinjie/ACI) #### 安装教程 1. 所需要的PHP版本和mysql数据库版本参考thinkPHP5.1([文档](https://www.kancloud.cn/manual/thinkphp5_1/353946)) 2. 将Apache服务器的工作目录指向项目的html目录(我觉得配置虚拟主机太麻烦了,好吧,我承认我不会) 3. 在mysql数据库中运行项目中的【tp.sql】文件,即可将项目用到的数据库安装好 4. 同时修改thinkPHP中的数据库连接信息 5. 在html目录下运行 1. npm install bootstrap@3.3.7 2. npm install jquery@1.9.1 3. npm install bootstrap-table 4. npm install bootstrapvalidator 5. npm install jquery-treegrid 6. npm install ztree 6. 访问 [你的域名或ip]:[端口号]/sys/index/index #### 使用说明 1. 该项目作为一个基础权限管理Web系统,可以在该项目的基础之上开发你想要的功能 2. 登陆用户/密码:admin/admin 3. 该项目的权限控制是根据请求的URL来判断的,当用户登录时,会把登录用户所属角色所对应的菜单保存到session数组中,当用户访问某个控制器中的方法时,会首先判断该url是否在session数组中 4. 建议使用phpStorm来进行项目开发 ### 功能演示 ![登录界面](https://images.gitee.com/uploads/images/2018/1001/213721_d215a0fa_360937.png "登陆界面") ![后台首页](https://images.gitee.com/uploads/images/2018/1001/213754_0b674565_360937.png "后台首页") ![菜单列表页](https://images.gitee.com/uploads/images/2018/1001/213950_d41ba5cf_360937.png "菜单界面") ![角色列表页](https://images.gitee.com/uploads/images/2018/1001/214024_4cd9825a_360937.png "角色界面") ![角色权限设置页](https://images.gitee.com/uploads/images/2018/1001/214048_b09c78dd_360937.png "权限设置界面") ![用户管理列表页面](https://images.gitee.com/uploads/images/2018/1001/214123_acdfeda2_360937.png "用户管理界面") ![用户添加](https://images.gitee.com/uploads/images/2018/1001/214253_54820d40_360937.png "表单示例节目")