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
a4f9f03f
Commit
a4f9f03f
authored
Apr 06, 2021
by
杨昕
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
批处理页面,添加注意事项
parent
3c70e44d
Pipeline
#14112
passed with stages
in 3 minutes 10 seconds
Changes
2
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
21 additions
and
8 deletions
+21
-8
MubanExport.php
app/Exports/MubanExport.php
+6
-7
batch_media.blade.php
resources/views/admin/media/batch_media.blade.php
+15
-1
No files found.
app/Exports/MubanExport.php
View file @
a4f9f03f
...
...
@@ -18,7 +18,6 @@ class MubanExport implements WithColumnWidths,WithHeadings,FromArray,WithStyles
public
function
headings
()
:
array
{
return
[
'#'
,
'名称'
,
'媒资编号'
,
];
...
...
@@ -31,25 +30,25 @@ class MubanExport implements WithColumnWidths,WithHeadings,FromArray,WithStyles
public
function
columnWidths
()
:
array
{
return
[
'
B
'
=>
55
,
'
C
'
=>
45
,
'
A
'
=>
55
,
'
B
'
=>
45
,
];
}
public
function
array
()
:
array
{
return
[
[
""
,
"【第一章马克思主义哲学是科学的世界观和方法论第一节哲学及其基本问题】.mp4"
,
"mda-250f994a93f2688ba225532c641b2a34"
],
[
""
,
"【19课堂】2021.03.02-月半时政-脱贫攻坚-公基-李浩祥】.mp4"
,
"mda-a4c0ad458d3592ff798277a42cb57be6"
],
[
"
"
,
"
视频名称是必填项"
,
"媒资编号为必填项"
]
[
"【第一章马克思主义哲学是科学的世界观和方法论第一节哲学及其基本问题】.mp4"
,
"mda-250f994a93f2688ba225532c641b2a34"
],
[
"【19课堂】2021.03.02-月半时政-脱贫攻坚-公基-李浩祥】.mp4"
,
"mda-a4c0ad458d3592ff798277a42cb57be6"
],
[
"视频名称是必填项"
,
"媒资编号为必填项"
]
];
}
public
function
styles
(
Worksheet
$sheet
)
{
return
[
'A4'
=>
[
'font'
=>
[
'bold'
=>
true
]],
'B4'
=>
[
'font'
=>
[
'bold'
=>
true
]],
'C4'
=>
[
'font'
=>
[
'bold'
=>
true
]],
];
}
...
...
resources/views/admin/media/batch_media.blade.php
View file @
a4f9f03f
...
...
@@ -40,12 +40,21 @@
<div
class=
"form-group"
>
<input
type=
"file"
class=
"btn btn-info"
id=
"uploadFile"
name=
"uploadFile"
accept=
".xls,.xlsx"
>
</div>
<button
class=
"btn btn-info batch-media"
type=
"submit"
id=
"batch-media"
disabled
onclick=
"test()"
>
导
入
</button>
<button
class=
"btn btn-info batch-media"
type=
"submit"
id=
"batch-media"
disabled
onclick=
"test()"
>
导
出
</button>
</form>
<div
class=
"muban"
>
<span
class=
"btn btn-info btn-small"
><a
href=
"{{asset('/web/media_manager/export_batch_media?type=muban')}}"
>
模板文件
</a></span>
</div>
<div
class=
"notice"
>
注意事项:
<ul>
<li>
导入数据最多不超过200条,超出部分自动被过滤掉!
</li>
</ul>
</div>
</div>
...
...
@@ -80,6 +89,11 @@
.muban
a
{
color
:
#eee
;
}
.notice
{
padding-left
:
20%
;
color
:
#ff5f75
;
font-size
:
14px
;
}
</style>
<script>
/**
...
...
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