瀏覽代碼

U 前端 更新仪表盘权限描述

张玉坡 7 年之前
父節點
當前提交
f4e81f84eb
共有 3 個文件被更改,包括 5 次插入5 次删除
  1. 1 1
      docs/Dockerfile/Dockerfile
  2. 2 2
      spug_api/libs/sql/permissions.sql
  3. 2 2
      spug_web/src/components/account/Permission.vue

+ 1 - 1
docs/Dockerfile/Dockerfile

@@ -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 

+ 2 - 2
spug_api/libs/sql/permissions.sql

@@ -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', '获取用户列表');

+ 2 - 2
spug_web/src/components/account/Permission.vue

@@ -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>