Skip to content

Commit

Permalink
U 前端 更新仪表盘权限描述
Browse files Browse the repository at this point in the history
  • Loading branch information
张玉坡 committed Mar 9, 2018
1 parent 7ff4f78 commit f4e81f8
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/Dockerfile/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ RUN echo -e "http://mirrors.aliyun.com/alpine/v3.6/main\nhttp://mirrors.aliyun.c
RUN apk update && apk add --no-cache ca-certificates python3 nginx mariadb nodejs-npm git
RUN apk add --no-cache --virtual .build-deps python3-dev gcc musl-dev libffi-dev openssl-dev make \
&& git clone https://github.com/openspug/spug.git /spug \
&& git pull \
&& cd /spug && git pull \
&& pip3 install --no-cache-dir -r /spug/spug_api/requirements.txt \
&& pip3 install --no-cache-dir gunicorn \
&& apk del .build-deps
Expand Down
4 changes: 2 additions & 2 deletions spug_api/libs/sql/permissions.sql
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
-- 首页查看
INSERT INTO account_permissions (id, name, `desc`) VALUES (100, 'home_view', '首页查看');
-- Dashboard
INSERT INTO account_permissions (id, name, `desc`) VALUES (100, 'home_view', 'Dashboard');

-- 用户管理 -> 用户列表
INSERT INTO account_permissions (id, name, `desc`) VALUES (101, 'account_user_view', '获取用户列表');
Expand Down
4 changes: 2 additions & 2 deletions spug_web/src/components/account/Permission.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
:close-on-click-modal="false">
<table v-if="codes !== undefined" class="role_table">
<tr class="el-table__row">
<td rowspan="1">首页</td>
<td rowspan="1">首页</td>
<td rowspan="1">Dashboard</td>
<td rowspan="1">Dashboard</td>
<tag-td :item="codes['home_view']"></tag-td>
<td></td>
<td></td>
Expand Down

0 comments on commit f4e81f8

Please sign in to comment.