From b6d033ce8716e31ff98155a49c6030ecd776f62c Mon Sep 17 00:00:00 2001 From: xiaodi Date: Sun, 19 Jan 2020 15:12:43 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20=E5=B2=97=E4=BD=8D?= =?UTF-8?q?=E5=88=9D=E5=A7=8B=E6=95=B0=E6=8D=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../migrations/20191218051507_create_data.php | 21 ++++++++++++------- 1 file changed, 13 insertions(+), 8 deletions(-) diff --git a/database/migrations/20191218051507_create_data.php b/database/migrations/20191218051507_create_data.php index f3696b8..0cd2c07 100644 --- a/database/migrations/20191218051507_create_data.php +++ b/database/migrations/20191218051507_create_data.php @@ -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 ], @@ -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);