Skip to content

Commit

Permalink
feat: 新增访问策略管理页面,修复访问规则添加和删除的bug;
Browse files Browse the repository at this point in the history
  • Loading branch information
maslow committed Aug 3, 2021
1 parent edfcdac commit 06f0a2a
Show file tree
Hide file tree
Showing 4 changed files with 432 additions and 38 deletions.
7 changes: 1 addition & 6 deletions packages/devops-admin/plopfile.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
const viewGenerator = require('./plop-templates/view/prompt')

const tablePageGenerator = require('./plop-templates/crud-page/prompt')
const componentGenerator = require('./plop-templates/component/prompt')
const storeGenerator = require('./plop-templates/store/prompt.js')

module.exports = function(plop) {
plop.setGenerator('table-page', tablePageGenerator)
plop.setGenerator('view', viewGenerator)
plop.setGenerator('component', componentGenerator)
plop.setGenerator('store', storeGenerator)
}
17 changes: 14 additions & 3 deletions packages/devops-admin/src/router/async.js
Original file line number Diff line number Diff line change
Expand Up @@ -82,14 +82,25 @@ export const asyncRoutes = [
},
children: [
{
path: 'policy',
component: () => import('@/views/database/policy'),
path: 'policies',
component: () => import('@/views/database/policies'),
name: 'RuleManagement',
meta: {
title: '访问策略',
icon: 'lock',
noCache: true,
permissions: ['rule.read', 'rule.edit', 'rule.delete']
permissions: ['policy.read']
}
},
{
path: 'policy',
component: () => import('@/views/database/policy'),
name: 'RuleManagement',
hidden: true,
meta: {
title: '访问规则编辑',
icon: 'lock',
noCache: true
}
},
{
Expand Down
Loading

0 comments on commit 06f0a2a

Please sign in to comment.