From 12e57bbb26d622077f6d858b1710a4a24d4bfa95 Mon Sep 17 00:00:00 2001 From: zyupo Date: Wed, 28 Apr 2021 15:38:29 +0800 Subject: [PATCH] =?UTF-8?q?U=20=E5=A2=9E=E5=8A=A0=E6=9E=84=E5=BB=BA?= =?UTF-8?q?=E6=9D=83=E9=99=90=E7=AE=A1=E7=90=86?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- spug_web/src/pages/deploy/repository/Table.js | 8 ++++---- spug_web/src/pages/deploy/repository/index.js | 2 +- spug_web/src/pages/system/role/codes.js | 9 +++++++++ spug_web/src/routes.js | 2 +- 4 files changed, 15 insertions(+), 6 deletions(-) diff --git a/spug_web/src/pages/deploy/repository/Table.js b/spug_web/src/pages/deploy/repository/Table.js index 88488ac..e274b15 100644 --- a/spug_web/src/pages/deploy/repository/Table.js +++ b/spug_web/src/pages/deploy/repository/Table.js @@ -65,15 +65,15 @@ function ComTable() { {info.status_alias}}/> - {hasPermission('config.env.edit|config.env.del') && ( + {hasPermission('deploy.repository.detail|deploy.repository.build|deploy.repository.log') && ( ( - store.showDetail(info)}>详情 + store.showDetail(info)}>详情 handleRebuild(info)}>构建 - store.showConsole(info)}>日志 + store.showConsole(info)}>日志 )}/> )} diff --git a/spug_web/src/pages/deploy/repository/index.js b/spug_web/src/pages/deploy/repository/index.js index ee9edb1..7a601e0 100644 --- a/spug_web/src/pages/deploy/repository/index.js +++ b/spug_web/src/pages/deploy/repository/index.js @@ -22,7 +22,7 @@ export default observer(function () { if (!appStore.records.length) appStore.fetchRecords() }, []) return ( - + 首页 应用发布 diff --git a/spug_web/src/pages/system/role/codes.js b/spug_web/src/pages/system/role/codes.js index dd9892d..ee6d46c 100644 --- a/spug_web/src/pages/system/role/codes.js +++ b/spug_web/src/pages/system/role/codes.js @@ -66,6 +66,15 @@ export default [{ {key: 'config', label: '查看配置'}, ] }, { + key: 'repository', + label: '构建仓库', + perms: [ + {key: 'view', label: '查看构建'}, + {key: 'detail', label: '构建详情'}, + {key: 'build', label: '构建仓库'}, + {key: 'log', label: '构建日志'}, + ] + },{ key: 'request', label: '发布申请', perms: [ diff --git a/spug_web/src/routes.js b/spug_web/src/routes.js index 8bee9a7..ff0cddf 100644 --- a/spug_web/src/routes.js +++ b/spug_web/src/routes.js @@ -59,7 +59,7 @@ export default [ ] }, { - icon: , title: '应用发布', auth: 'deploy.app.view|deploy.request.view', child: [ + icon: , title: '应用发布', auth: 'deploy.app.view|deploy.repository.view|deploy.request.view', child: [ {title: '应用管理', auth: 'deploy.app.view', path: '/deploy/app', component: DeployApp}, {title: '构建仓库', auth: 'deploy.repository.view', path: '/deploy/repository', component: DeployRepository}, {title: '发布申请', auth: 'deploy.request.view', path: '/deploy/request', component: DeployRequest},