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
bb2f471b
Commit
bb2f471b
authored
May 20, 2021
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优化媒资类别列表
parent
2a5f8419
Pipeline
#14730
failed with stages
in 51 seconds
Changes
2
Pipelines
3
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
55 deletions
+4
-55
MediaCategoryController.php
app/Http/Controllers/Web/MediaCategoryController.php
+2
-1
list.blade.php
resources/views/admin/media_category/list.blade.php
+2
-54
No files found.
app/Http/Controllers/Web/MediaCategoryController.php
View file @
bb2f471b
...
...
@@ -110,7 +110,8 @@ class MediaCategoryController extends Controller
$id
=
$request
->
id
;
SrsHookValidate
::
srsHookCallback
(
$request
,[
'status'
=>
''
,
'status'
=>
''
,
'id'
=>
''
]);
MediaCategoryModel
::
disable
(
$request
,
$id
);
...
...
resources/views/admin/media_category/list.blade.php
View file @
bb2f471b
...
...
@@ -73,13 +73,9 @@
<a
title=
"编辑"
href=
"/web/media_category/{{$media_category['_id']}}/edit"
>
<i
class=
"iconfont"
>

</i>
</a>
{{--
<a
onclick=
"x_admin_show('修改密码','/web/password/{{$user->id}}',500,300)"
title=
"修改密码"
--
}}
{{
--href=
"javascript:;"
>
--}}
{{--
<i
class=
"iconfont"
>

</i>
--}}
{{--
<a
title=
"删除"
onclick=
"member_del(this,'{{$media_category["
_id
"]}}')"
href=
"javascript:;"
>
--}}
{{--
<i
class=
"iconfont"
>

</i>
--}}
{{--
</a>
--}}
<a
title=
"删除"
onclick=
"member_del(this,'{{$media_category["
_id
"]}}')"
href=
"javascript:;"
>
<i
class=
"iconfont"
>

</i>
</a>
</td>
</tr>
@endforeach
...
...
@@ -121,54 +117,6 @@
window
.
location
.
href
=
url
;
}
function
member_del
(
row
,
id
){
$
.
confirm
({
// confirmButtonClass: 'btn-info',
// cancelButtonClass: 'btn-info',
cancelButtonClass
:
'btn-info'
,
confirmButtonClass
:
'btn-danger'
,
content
:
'确认要刪除吗?'
,
confirmButton
:
'确认'
,
cancelButton
:
'取消'
,
confirm
:
function
()
{
fetch_response
(
'DELETE'
,
"/web/media_category/"
+
id
).
then
(
function
(
res
)
{
if
(
res
.
code
==
200
)
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
res
.
msg
,
duration
:
1000
,
top
:
'50%'
});
setTimeout
(
function
()
{
window
.
location
.
href
=
'/web/media_category'
;
},
2000
)
}
else
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
res
.
msg
,
duration
:
1000
,
top
:
'50%'
});
}
})
},
cancel
:
function
()
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
'已取消'
,
duration
:
1000
,
top
:
'50%'
});
}
});
}
function
member_stop
(
obj
,
id
){
var
status
=
$
(
obj
).
attr
(
'status'
);
...
...
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