Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
media-resource
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
杨昕
media-resource
Commits
78369c24
Commit
78369c24
authored
Jul 01, 2020
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test
parent
efdf1c21
Pipeline
#9743
passed with stages
in 1 minute 9 seconds
Changes
4
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
22 additions
and
34 deletions
+22
-34
UserModel.php
app/Model/UserModel.php
+0
-2
module.json
public/module.json
+21
-31
member_list.blade.php
resources/views/admin/member/member_list.blade.php
+1
-1
vendor.zip
vendor.zip
+0
-0
No files found.
app/Model/UserModel.php
View file @
78369c24
...
...
@@ -138,11 +138,9 @@ class UserModel extends Eloquent
* @throws \Exception
*/
public
static
function
deleteUserById
(
$id
){
echo
444
;
die
;
try
{
$user
=
UserModel
::
find
(
$id
);
var_dump
(
"sdfsdf"
);
die
;
if
(
empty
(
$user
)){
throw
new
\Exception
(
'用户不存在'
);
}
...
...
public/module.json
View file @
78369c24
...
...
@@ -134,79 +134,68 @@
"son"
:
[{
"id"
:
23
,
"pid"
:
11
,
"name"
:
"
权限
删除"
,
"name"
:
"
媒资
删除"
,
"icon"
:
""
,
"link"
:
""
,
"slug"
:
"
privilege
.destroy"
,
"slug"
:
"
media
.destroy"
,
"description"
:
""
,
"show"
:
0
,
"sort"
:
25
,
"key_name"
:
"
privilege
_destroy"
"key_name"
:
"
media
_destroy"
},
{
"id"
:
22
,
"pid"
:
11
,
"name"
:
"
权限
添加保存"
,
"name"
:
"
媒资
添加保存"
,
"icon"
:
""
,
"link"
:
""
,
"slug"
:
"
privilege
.store"
,
"slug"
:
"
media
.store"
,
"description"
:
""
,
"show"
:
0
,
"sort"
:
25
,
"key_name"
:
"
privilege
_store"
"key_name"
:
"
media
_store"
},
{
"id"
:
21
,
"pid"
:
11
,
"name"
:
"
权限
修改保存"
,
"name"
:
"
媒资
修改保存"
,
"icon"
:
""
,
"link"
:
""
,
"slug"
:
"
privilege
.update"
,
"slug"
:
"
media
.update"
,
"description"
:
""
,
"show"
:
0
,
"sort"
:
25
,
"key_name"
:
"
privilege
_update"
"key_name"
:
"
media
_update"
},
{
"id"
:
18
,
"pid"
:
11
,
"name"
:
"
权限
编辑"
,
"name"
:
"
媒资
编辑"
,
"icon"
:
""
,
"link"
:
""
,
"slug"
:
"
privilege
.edit"
,
"slug"
:
"
media
.edit"
,
"description"
:
""
,
"show"
:
0
,
"sort"
:
25
,
"key_name"
:
"
privilege
_edit"
"key_name"
:
"
media
_edit"
},
{
"id"
:
17
,
"pid"
:
11
,
"name"
:
"
权限
添加"
,
"name"
:
"
媒资
添加"
,
"icon"
:
""
,
"link"
:
"/
privilege
/create"
,
"slug"
:
"
privilege
.create"
,
"link"
:
"/
media
/create"
,
"slug"
:
"
media
.create"
,
"description"
:
""
,
"show"
:
0
,
"sort"
:
25
,
"key_name"
:
"privilege_create"
},
{
"id"
:
16
,
"pid"
:
11
,
"name"
:
"权限规则管理"
,
"icon"
:
""
,
"link"
:
"/rule"
,
"slug"
:
"rule"
,
"description"
:
""
,
"show"
:
0
,
"sort"
:
25
,
"key_name"
:
"rule"
},
{
"key_name"
:
"media_create"
},{
"id"
:
15
,
"pid"
:
11
,
"name"
:
"媒资列表"
,
"icon"
:
""
,
"link"
:
"/
privilege
"
,
"slug"
:
"
privilege
.index"
,
"link"
:
"/
media
"
,
"slug"
:
"
media
.index"
,
"description"
:
""
,
"show"
:
1
,
"sort"
:
25
,
"key_name"
:
"
privilege
_list"
"key_name"
:
"
media
_list"
}]
}]
\ No newline at end of file
resources/views/admin/member/member_list.blade.php
View file @
78369c24
...
...
@@ -86,7 +86,7 @@
{{
--href=
"javascript:;"
>
--}}
{{--
<i
class=
"iconfont"
>

</i>
--}}
{{--
</a>
--}}
<a
title=
"删除"
onclick=
"member_del(this)"
href=
"javascript:;"
>
<a
title=
"删除"
onclick=
"member_del(this
,'{{$user["
_id
"]}}'
)"
href=
"javascript:;"
>
<i
class=
"iconfont"
>

</i>
</a>
</td>
...
...
vendor.zip
View file @
78369c24
No preview for this file type
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment