Skip to content

Commit

Permalink
更新 岗位初始数据
Browse files Browse the repository at this point in the history
  • Loading branch information
edenleung committed Jan 19, 2020
1 parent c6c7697 commit b6d033c
Showing 1 changed file with 13 additions and 8 deletions.
21 changes: 13 additions & 8 deletions database/migrations/20191218051507_create_data.php
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,7 @@ protected function createPermissionData()
['name' => 'Role', 'title' => '角色管理', 'pid' => 3, 'status' => 1, 'type' => 'menu', 'path' => '/system/role', 'redirect' => '', 'component' => 'Role', 'icon' => '', 'permission' => 'Role', 'keepAlive' => 0 ],
['name' => 'Account', 'title' => '管理员管理', 'pid' => 3, 'status' => 1, 'type' => 'menu', 'path' => '/system/user', 'redirect' => '', 'component' => 'Account', 'icon' => '', 'permission' => 'Account', 'keepAlive' => 0 ],
['name' => 'Dept', 'title' => '部门管理', 'pid' => 3, 'status' => 1, 'type' => 'menu', 'path' => '/system/Dept', 'redirect' => '', 'component' => 'Dept', 'icon' => '', 'permission' => 'Dept', 'keepAlive' => 0 ],
['name' => 'Post', 'title' => '岗位管理', 'pid' => 3, 'status' => 1, 'type' => 'menu', 'path' => '/system/post', 'redirect' => '', 'component' => 'Post', 'icon' => '', 'permission' => 'Post', 'keepAlive' => 0 ],
['name' => 'LogAccount', 'title' => '管理员日志', 'pid' => 4, 'status' => 1, 'type' => 'menu', 'path' => '/log/account', 'redirect' => '', 'component' => 'LogAccount', 'icon' => '', 'permission' => 'LogAccount', 'keepAlive' => 0 ],
['name' => 'LogDb', 'title' => '数据库日志', 'pid' => 4, 'status' => 1, 'type' => 'menu', 'path' => '/log/db', 'redirect' => '', 'component' => 'LogDb', 'icon' => '', 'permission' => 'LogDb', 'keepAlive' => 0 ],
['name' => 'ProfileAccount', 'title' => '个人中心', 'pid' => 5, 'status' => 1, 'type' => 'menu', 'path' => '/account/center', 'redirect' => '', 'component' => 'Center', 'icon' => '', 'permission' => 'ProfileAccount', 'keepAlive' => 0 ],
Expand All @@ -127,14 +128,18 @@ protected function createPermissionData()
['name' => 'DeptAdd', 'title' => '添加', 'pid' => 11, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'DeptUpdate', 'title' => '更新', 'pid' => 11, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'DeptDelete', 'title' => '删除', 'pid' => 11, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogAccountView', 'title' => '查看', 'pid' => 12, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogAccountDelete', 'title' => '删除', 'pid' => 12, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogDbView', 'title' => '查看', 'pid' => 13, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogDbDelete', 'title' => '删除', 'pid' => 13, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'ProfileAccountView', 'title' => '查看', 'pid' => 14, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'ProfileSettingView', 'title' => '查看', 'pid' => 15, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'BaseSettings', 'title' => '基本设置', 'pid' => 15, 'status' => 1, 'type' => 'menu', 'path' => '/account/settings/base', 'redirect' => '', 'component' => 'BaseSettings', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'SecuritySettings', 'title' => '安全设置', 'pid' => 15, 'status' => 1, 'type' => 'menu', 'path' => '/account/settings/security', 'redirect' => '', 'component' => 'SecuritySettings', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'PostView', 'title' => '查看', 'pid' => 12, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'PostAdd', 'title' => '添加', 'pid' => 12, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'PostUpdate', 'title' => '更新', 'pid' => 12, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'PostDelete', 'title' => '删除', 'pid' => 12, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogAccountView', 'title' => '查看', 'pid' => 13, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogAccountDelete', 'title' => '删除', 'pid' => 13, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogDbView', 'title' => '查看', 'pid' => 14, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'LogDbDelete', 'title' => '删除', 'pid' => 14, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'ProfileAccountView', 'title' => '查看', 'pid' => 15, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'ProfileSettingView', 'title' => '查看', 'pid' => 16, 'status' => 1, 'type' => 'action', 'path' => '', 'redirect' => '', 'component' => '', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'BaseSettings', 'title' => '基本设置', 'pid' => 16, 'status' => 1, 'type' => 'menu', 'path' => '/account/settings/base', 'redirect' => '', 'component' => 'BaseSettings', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
['name' => 'SecuritySettings', 'title' => '安全设置', 'pid' => 16, 'status' => 1, 'type' => 'menu', 'path' => '/account/settings/security', 'redirect' => '', 'component' => 'SecuritySettings', 'icon' => '', 'permission' => '', 'keepAlive' => 0 ],
];

$this->insert('permission', $rows);
Expand Down

0 comments on commit b6d033c

Please sign in to comment.