Skip to content

Commit

Permalink
update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Heeexy committed Jan 8, 2019
1 parent cb33ec3 commit b485984
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions README.md
Expand Up @@ -67,8 +67,8 @@ admin/123456 管理员身份登录,可以新增用户,角色.

### 数据库
最主要的是要有一张本系统内的全部权限明细表,比如下面这样
![权限表](http://ots7yt7am.bkt.clouddn.com/blog/permissionDatabase.png)
![权限数据](http://ots7yt7am.bkt.clouddn.com/blog/permissionData.png)
![权限表](http://img.heeexy.com/permissionDatabase.png)
![权限数据](http://img.heeexy.com/permissionData.png)

如果某用户拥有表格中前五条权限,就可以查出他就拥有article和user两个菜单,至于页面内是否显示(新增)(修改)按钮,就根据他的permissionList来判断.

Expand All @@ -82,4 +82,4 @@ npm run dev
后端就是常规的shiro配置,前端代码如果看不明白,可以参考[前端权限代码说明](./explain-frontend.md)

## 分配权限页面效果
![分配权限页面](http://ots7yt7am.bkt.clouddn.com/blog/role_permission.png)
![分配权限页面](http://img.heeexy.com/role_permission.png)
2 changes: 1 addition & 1 deletion vue/src/views/user/role.vue
Expand Up @@ -52,7 +52,7 @@
</el-table>
<el-dialog :title="textMap[dialogStatus]" :visible.sync="dialogFormVisible">
<el-form class="small-space" :model="tempRole" label-position="left" label-width="100px"
style='width: 500px; margin-left:50px;'>
style='width: 600px; margin-left:50px;'>
<el-form-item label="角色名称" required>
<el-input type="text" v-model="tempRole.roleName" style="width: 250px;">
</el-input>
Expand Down

3 comments on commit b485984

@jianglinrong
Copy link

@jianglinrong jianglinrong commented on b485984 Jan 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

请问一下你代码里面没有配置数据库和shiro的xml文件吗?

@Heeexy
Copy link
Owner Author

@Heeexy Heeexy commented on b485984 Jan 9, 2019

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

application.yml 里配数据库
config.shiro包里配shiro

@HJDarkersLong
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

为啥我npm install 的时候显示node-sass错误,唉~

Please sign in to comment.