Commit 2115f851 by lujunyi

备份菜单权限

parent 1631cbd5
......@@ -287,73 +287,37 @@ public function run()
'id' => 23,
'parent_id' => 0,
'order' => 21,
'title' => '药品',
'icon' => 'fa-book',
'uri' => null,
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 23:38:11',
'updated_at' => '2024-11-10 23:38:06',
],
[
'id' => 24,
'parent_id' => 23,
'order' => 22,
'title' => '药品管理',
'icon' => null,
'icon' => 'fa-book',
'uri' => 'pharmacy-drug',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 23:38:19',
'updated_at' => '2024-11-10 23:38:06',
'created_at' => '2024-11-03 23:38:11',
'updated_at' => '2024-11-11 00:37:44',
],
[
'id' => 25,
'parent_id' => 0,
'order' => 23,
'title' => '用法',
'icon' => 'fa-briefcase',
'uri' => null,
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 23:38:57',
'updated_at' => '2024-11-10 23:38:06',
],
[
'id' => 26,
'parent_id' => 25,
'order' => 24,
'title' => '用法用量',
'icon' => null,
'icon' => 'fa-briefcase',
'uri' => 'dosage',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 23:39:10',
'updated_at' => '2024-11-10 23:38:06',
'created_at' => '2024-11-03 23:38:57',
'updated_at' => '2024-11-11 00:38:00',
],
[
'id' => 27,
'parent_id' => 0,
'order' => 25,
'title' => '处方',
'title' => '处方打印',
'icon' => 'fa-print',
'uri' => null,
'uri' => 'pharmacy-print',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 23:39:30',
'updated_at' => '2024-11-10 23:38:06',
],
[
'id' => 28,
'parent_id' => 27,
'order' => 26,
'title' => '处方列表',
'icon' => null,
'uri' => 'pharmacy-prescription',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-03 23:39:39',
'updated_at' => '2024-11-10 23:38:06',
'updated_at' => '2024-11-11 00:38:47',
],
[
'id' => 29,
......@@ -404,18 +368,6 @@ public function run()
'updated_at' => '2024-11-06 16:23:42',
],
[
'id' => 33,
'parent_id' => 27,
'order' => 27,
'title' => '处方日志',
'icon' => null,
'uri' => 'pharmacy-prescription-log',
'extension' => '',
'show' => 1,
'created_at' => '2024-11-06 16:23:22',
'updated_at' => '2024-11-10 23:38:06',
],
[
'id' => 34,
'parent_id' => 32,
'order' => 20,
......@@ -523,6 +475,13 @@ public function run()
'created_at' => '2024-11-03 02:13:11',
'updated_at' => '2024-11-03 02:13:11',
],
[
'id' => 2,
'name' => '药店管理员',
'slug' => 'pharmacy',
'created_at' => '2024-11-11 00:40:57',
'updated_at' => '2024-11-11 00:40:57',
],
]
);
......@@ -1128,7 +1087,24 @@ public function run()
DB::table('admin_role_menu')->truncate();
DB::table('admin_role_menu')->insert(
[
[
'role_id' => 2,
'menu_id' => 23,
'created_at' => '2024-11-11 00:40:57',
'updated_at' => '2024-11-11 00:40:57',
],
[
'role_id' => 2,
'menu_id' => 25,
'created_at' => '2024-11-11 00:40:57',
'updated_at' => '2024-11-11 00:40:57',
],
[
'role_id' => 2,
'menu_id' => 27,
'created_at' => '2024-11-11 00:40:57',
'updated_at' => '2024-11-11 00:40:57',
],
]
);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment