diff --git a/beike/Admin/Http/Controllers/AdminRoleController.php b/beike/Admin/Http/Controllers/AdminRoleController.php index b265e055..948e0ad3 100644 --- a/beike/Admin/Http/Controllers/AdminRoleController.php +++ b/beike/Admin/Http/Controllers/AdminRoleController.php @@ -25,6 +25,13 @@ class AdminRoleController extends Controller return view('admin::pages.admin_roles.index', $data); } + public function edit(Request $request) + { + $data = []; + + return view('admin::pages.admin_roles.edit', $data); + } + public function store(Request $request) { return json_success('保存成功'); diff --git a/public/build/beike/admin/css/bootstrap.css b/public/build/beike/admin/css/bootstrap.css index 6647dc8f..ddc07692 100644 --- a/public/build/beike/admin/css/bootstrap.css +++ b/public/build/beike/admin/css/bootstrap.css @@ -12054,7 +12054,7 @@ textarea.form-control-lg { align-items: center; justify-content: space-between; padding: 1rem 1rem; - border-bottom: 1px solid #f4f4f4; + border-bottom: 1px solid #f1f1f1; border-top-left-radius: calc(0.3rem - 1px); border-top-right-radius: calc(0.3rem - 1px); } @@ -12081,7 +12081,7 @@ textarea.form-control-lg { align-items: center; justify-content: flex-end; padding: 0.75rem; - border-top: 1px solid #f4f4f4; + border-top: 1px solid #f1f1f1; border-bottom-right-radius: calc(0.3rem - 1px); border-bottom-left-radius: calc(0.3rem - 1px); } @@ -13336,7 +13336,7 @@ textarea.form-control-lg { } .border { - border: 1px solid #f4f4f4 !important; + border: 1px solid #f1f1f1 !important; } .border-0 { @@ -13344,7 +13344,7 @@ textarea.form-control-lg { } .border-top { - border-top: 1px solid #f4f4f4 !important; + border-top: 1px solid #f1f1f1 !important; } .border-top-0 { @@ -13352,7 +13352,7 @@ textarea.form-control-lg { } .border-end { - border-right: 1px solid #f4f4f4 !important; + border-right: 1px solid #f1f1f1 !important; } .border-end-0 { @@ -13360,7 +13360,7 @@ textarea.form-control-lg { } .border-bottom { - border-bottom: 1px solid #f4f4f4 !important; + border-bottom: 1px solid #f1f1f1 !important; } .border-bottom-0 { @@ -13368,7 +13368,7 @@ textarea.form-control-lg { } .border-start { - border-left: 1px solid #f4f4f4 !important; + border-left: 1px solid #f1f1f1 !important; } .border-start-0 { diff --git a/resources/beike/admin/css/bootstrap/bootstrap.scss b/resources/beike/admin/css/bootstrap/bootstrap.scss index 39d66eb6..843a9ea7 100644 --- a/resources/beike/admin/css/bootstrap/bootstrap.scss +++ b/resources/beike/admin/css/bootstrap/bootstrap.scss @@ -21,7 +21,7 @@ $form-floating-padding-y: .9rem; $form-floating-height: 50px; $btn-focus-width: 0; $table-border-color: #e9ecef; -$border-color: #f4f4f4; +$border-color: #f1f1f1; $input-border-color: #e2e2e2; $badge-border-radius: 2px; $text-muted: #95aac9; diff --git a/resources/beike/admin/views/pages/admin_roles/edit.blade.php b/resources/beike/admin/views/pages/admin_roles/edit.blade.php new file mode 100644 index 00000000..1394dc7f --- /dev/null +++ b/resources/beike/admin/views/pages/admin_roles/edit.blade.php @@ -0,0 +1,139 @@ +@extends('admin::layouts.master') + +@section('title', '角色管理') + +@section('content') +
+
+ + + + + + + + + + +
+
+ + +
+
+
+ @{{ role.title }} +
[全选/取消]
+
+
+
+
+ @{{ method.name }} +
+
+
+
+
+
+ + + 保存 + 取消 + +
+
+
+@endsection + +@push('footer') + + + +@endpush diff --git a/resources/beike/admin/views/pages/admin_roles/index.blade.php b/resources/beike/admin/views/pages/admin_roles/index.blade.php index a496cf2d..f3fc8c03 100644 --- a/resources/beike/admin/views/pages/admin_roles/index.blade.php +++ b/resources/beike/admin/views/pages/admin_roles/index.blade.php @@ -22,28 +22,26 @@ # 名称 - 描述 创建时间 修改时间 操作 - + @{{ tax.id }} @{{ tax.name }} - @{{ tax.email }} @{{ tax.created_at }} @{{ tax.updated_at }} - + 编辑 - {{-- {{ $admin_users->links('admin::vendor/pagination/bootstrap-4') }} --}} + {{-- {{ $roles->links('admin::vendor/pagination/bootstrap-4') }} --}} { if (!valid) { @@ -179,9 +177,9 @@ $http[type](url, this.dialog.form).then((res) => { this.$message.success(res.message); if (this.dialog.type == 'add') { - this.admin_users.push(res.data) + this.roles.push(res.data) } else { - this.admin_users[this.dialog.index] = res.data + this.roles[this.dialog.index] = res.data } this.dialog.show = false @@ -196,9 +194,9 @@ cancelButtonText: '取消', type: 'warning' }).then(() => { - $http.delete('admin_users/' + id).then((res) => { + $http.delete('roles/' + id).then((res) => { this.$message.success(res.message); - self.admin_users.splice(index, 1) + self.roles.splice(index, 1) }) }).catch(()=>{}) },