Skip to content

Commit 72ffbec

Browse files
committed
更新sql脚本
1 parent 1e076d3 commit 72ffbec

3 files changed

Lines changed: 12 additions & 22 deletions

File tree

publish/admin.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,6 @@
4747
[
4848
'href' => 'https://github.com/hyperf-plus/admin',
4949
'title' => 'hyperf版官网',
50-
], [
51-
'href' => 'https://github.com/SmallRuralDog/laravel-vue-admin',
52-
'title' => 'laravel版官网',
5350
],
5451
[
5552
'href' => 'https://www.yuque.com/hyperf-plus/ui/hplus-ui',

src/Controller/Permissions.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ protected function form($isEdit = false)
7777
{
7878
$permissionModel = config('admin.database.permissions_model');
7979
$form = new Form(new $permissionModel());
80+
$form->setEdit($isEdit);
8081
$form->className('m-15');
8182
$form->item('parent_id', '上级目录')->component(Select::make(0)->options(function () use ($permissionModel) {
8283
return $permissionModel::selectOptions(function ($permission) {
@@ -90,7 +91,7 @@ protected function form($isEdit = false)
9091
$form->item('path', '授权节点')
9192
->help('可以输入搜索')
9293
->component(Select::make()->filterable()
93-
->remote(route('permissions/route'))->multiple())->inputWidth(450);
94+
->remote(route('permissions/route'))->multiple())->inputWidth(450);
9495
return $form;
9596
}
9697

src/Install/install.sql

Lines changed: 10 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,5 @@
11
SET SQL_MODE = "NO_AUTO_VALUE_ON_ZERO";
22
SET time_zone = "+00:00";
3-
4-
--
5-
-- Database: `hyperf`
6-
--
7-
83
-- --------------------------------------------------------
94

105
--
@@ -29,22 +24,21 @@ CREATE TABLE `admin_menu` (
2924
--
3025

3126
INSERT INTO `admin_menu` (`id`, `parent_id`, `is_menu`, `order`, `title`, `icon`, `uri`, `permission`, `created_at`, `updated_at`) VALUES
32-
(1, 0, 1, 1, '首页', 'el-icon-monitor', '/auth/main', NULL, NULL, '2020-09-19 08:35:36'),
33-
(2, 0, 1, 10, '系统', 'el-icon-setting', 'system', NULL, NULL, '2020-09-19 08:54:51'),
34-
(3, 2, 1, 3, '管理员', 'fa-ban', '/admin/users/list', '[1]', NULL, '2020-09-19 08:01:49'),
35-
(4, 2, 1, 4, '角色', 'fa-ban', '/admin/roles/list', NULL, NULL, '2020-09-19 08:01:42'),
36-
(5, 2, 1, 5, '权限', 'fa-ban', '/admin/permissions/list', NULL, NULL, '2020-09-19 07:59:33'),
37-
(6, 2, 1, 6, '菜单', 'fa-bars', '/admin/menu/list', NULL, NULL, '2020-09-19 08:55:40'),
38-
(7, 2, 1, 7, '操作日志', 'fa-ban', '/admin/logs/list', NULL, NULL, '2020-09-19 08:34:12');
39-
27+
(1, 0, 1, 1, '首页', 'shouye_o', '/auth/main', NULL, NULL, '2021-01-11 06:55:36'),
28+
(2, 0, 1, 10, '系统', 'quanjushezhi_o', 'system', NULL, NULL, '2021-01-11 06:56:10'),
29+
(3, 2, 1, 3, '管理员', 'guanliyuanrenzheng_o', '/admin/users/list', '[1]', NULL, '2021-01-11 06:56:24'),
30+
(4, 2, 1, 4, '角色', 'qunzu_o', '/admin/roles/list', NULL, NULL, '2021-01-11 06:57:51'),
31+
(5, 2, 1, 5, '权限', 'saomafuquan_o', '/admin/permissions/list', NULL, NULL, '2021-01-11 06:56:42'),
32+
(6, 2, 1, 6, '菜单', 'caidan_o', '/admin/menu/list', NULL, NULL, '2021-01-11 06:56:49'),
33+
(7, 2, 1, 7, '操作日志', 'bianji_o', '/admin/logs/list', NULL, NULL, '2021-01-11 06:57:09');
4034
-- --------------------------------------------------------
4135

4236
--
4337
-- Table structure for table `admin_operation_log`
4438
--
4539

4640
CREATE TABLE `admin_operation_log` (
47-
`id` int(10) unsigned NOT NULL AUTO_INCREMENT,
41+
`id` int(10) UNSIGNED NOT NULL,
4842
`user_id` int(11) NOT NULL,
4943
`path` varchar(255) COLLATE utf8mb4_unicode_ci NOT NULL,
5044
`method` varchar(10) COLLATE utf8mb4_unicode_ci NOT NULL,
@@ -54,10 +48,8 @@ CREATE TABLE `admin_operation_log` (
5448
`header` json NOT NULL,
5549
`runtime` varchar(50) COLLATE utf8mb4_unicode_ci NOT NULL DEFAULT '',
5650
`created_at` timestamp NULL DEFAULT NULL,
57-
`updated_at` timestamp NULL DEFAULT NULL,
58-
PRIMARY KEY (`id`) USING BTREE,
59-
KEY `admin_operation_log_user_id_index` (`user_id`)
60-
) ENGINE=InnoDB AUTO_INCREMENT=160 DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
51+
`updated_at` timestamp NULL DEFAULT NULL
52+
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb4 COLLATE=utf8mb4_unicode_ci;
6153
-- --------------------------------------------------------
6254
--
6355
-- Table structure for table `admin_permissions`

0 commit comments

Comments
 (0)