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},