Commit a4f9f03f by 杨昕

批处理页面,添加注意事项

parent 3c70e44d
Pipeline #14112 passed with stages
in 3 minutes 10 seconds
...@@ -18,7 +18,6 @@ class MubanExport implements WithColumnWidths,WithHeadings,FromArray,WithStyles ...@@ -18,7 +18,6 @@ class MubanExport implements WithColumnWidths,WithHeadings,FromArray,WithStyles
public function headings(): array public function headings(): array
{ {
return [ return [
'#',
'名称', '名称',
'媒资编号', '媒资编号',
]; ];
...@@ -31,25 +30,25 @@ class MubanExport implements WithColumnWidths,WithHeadings,FromArray,WithStyles ...@@ -31,25 +30,25 @@ class MubanExport implements WithColumnWidths,WithHeadings,FromArray,WithStyles
public function columnWidths(): array public function columnWidths(): array
{ {
return [ return [
'B' => 55, 'A' => 55,
'C' => 45, 'B' => 45,
]; ];
} }
public function array(): array public function array(): array
{ {
return [ return [
[ "","【第一章马克思主义哲学是科学的世界观和方法论第一节哲学及其基本问题】.mp4", "mda-250f994a93f2688ba225532c641b2a34"], ["【第一章马克思主义哲学是科学的世界观和方法论第一节哲学及其基本问题】.mp4", "mda-250f994a93f2688ba225532c641b2a34"],
[ "","【19课堂】2021.03.02-月半时政-脱贫攻坚-公基-李浩祥】.mp4", "mda-a4c0ad458d3592ff798277a42cb57be6"], ["【19课堂】2021.03.02-月半时政-脱贫攻坚-公基-李浩祥】.mp4", "mda-a4c0ad458d3592ff798277a42cb57be6"],
["","视频名称是必填项","媒资编号为必填项"] ["视频名称是必填项","媒资编号为必填项"]
]; ];
} }
public function styles(Worksheet $sheet) public function styles(Worksheet $sheet)
{ {
return [ return [
'B4' => ['font' => ['bold' => true]], 'A4' => ['font' => ['bold' => true]],
'C4' => ['font' => ['bold' => true]], 'B4' => ['font' => ['bold' => true]],
]; ];
} }
......
...@@ -40,12 +40,21 @@ ...@@ -40,12 +40,21 @@
<div class="form-group"> <div class="form-group">
<input type="file" class="btn btn-info" id="uploadFile" name="uploadFile" accept=".xls,.xlsx"> <input type="file" class="btn btn-info" id="uploadFile" name="uploadFile" accept=".xls,.xlsx">
</div> </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> </form>
<div class="muban"> <div class="muban">
<span class="btn btn-info btn-small"><a href="{{asset('/web/media_manager/export_batch_media?type=muban')}}">模板文件</a></span> <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>
</div> </div>
...@@ -80,6 +89,11 @@ ...@@ -80,6 +89,11 @@
.muban a{ .muban a{
color: #eee; color: #eee;
} }
.notice{
padding-left: 20%;
color: #ff5f75;
font-size: 14px;
}
</style> </style>
<script> <script>
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment