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
ee0235af
Commit
ee0235af
authored
Apr 06, 2021
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
sdf
parent
4f7dfe40
Pipeline
#14116
passed with stages
in 3 minutes 3 seconds
Changes
2
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
9 deletions
+3
-9
MediaController.php
app/Http/Controllers/Web/MediaController.php
+1
-0
batch_media.blade.php
resources/views/admin/media/batch_media.blade.php
+2
-9
No files found.
app/Http/Controllers/Web/MediaController.php
View file @
ee0235af
...
...
@@ -285,6 +285,7 @@ class MediaController extends Controller
#将文件内容转化为数组
$sheet
=
(
new
MediasImport
())
->
toArray
(
$file
);
$temp
=
[];
foreach
(
$sheet
[
0
]
as
$key
=>
$item
){
...
...
resources/views/admin/media/batch_media.blade.php
View file @
ee0235af
...
...
@@ -132,24 +132,17 @@
duration
:
3000
,
top
:
'50%'
});
$
(
"#batch-media"
).
attr
(
"disabled"
,
true
);
$
(
"#uploadFile"
).
val
(
""
)
window
.
location
.
href
=
"/web/media_manager/download/"
+
res
.
data
}
else
{
$
(
'body'
).
toast
({
position
:
'fixed'
,
content
:
res
.
msg
,
duration
:
3000
,
top
:
'50%'
});
}
$
(
"#batch-media"
).
attr
(
"disabled"
,
true
);
$
(
"#uploadFile"
).
val
(
""
)
}
})
...
...
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