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
298595d5
Commit
298595d5
authored
Mar 22, 2023
by
周业恒
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
media_list
parent
c9c72a28
Pipeline
#20528
passed with stages
in 58 seconds
Changes
1
Pipelines
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
media_list.blade.php
resources/views/admin/media/media_list.blade.php
+2
-2
No files found.
resources/views/admin/media/media_list.blade.php
View file @
298595d5
...
@@ -168,7 +168,7 @@
...
@@ -168,7 +168,7 @@
<script
type=
"text/javascript"
>
<script
type=
"text/javascript"
>
var
media_export_name
=
"
<?php
$export_values
=
'id,名称\n'
;
foreach
(
$medias
as
$key
=>
$media
)
{
$export_values
=
$export_values
.
'${'
.
$media
[
'_id'
]
.
'},'
.
'${'
.
$media
[
'media_name'
]
.
'}
,\n'
;
}
echo
$export_values
;
?>
"
var
media_export_name
=
"
<?php
$export_values
=
'id,名称\n'
;
foreach
(
$medias
as
$key
=>
$media
)
{
$export_values
=
$export_values
.
$media
[
'_id'
]
.
','
.
$media
[
'media_name'
]
.
'
,\n'
;
}
echo
$export_values
;
?>
"
function
export_media_id
(){
function
export_media_id
(){
//alert(media_export_name)
//alert(media_export_name)
const
uri
=
'data:text/csv;charset=utf-8,
\
ufeff'
+
encodeURIComponent
(
media_export_name
);
const
uri
=
'data:text/csv;charset=utf-8,
\
ufeff'
+
encodeURIComponent
(
media_export_name
);
...
@@ -176,7 +176,7 @@
...
@@ -176,7 +176,7 @@
const
link
=
document
.
createElement
(
"a"
);
const
link
=
document
.
createElement
(
"a"
);
link
.
href
=
uri
;
link
.
href
=
uri
;
// 对下载的文件命名
// 对下载的文件命名
link
.
download
=
"
json数据表
.csv"
;
link
.
download
=
"
中公云媒资ID
.csv"
;
link
.
click
();
link
.
click
();
...
...
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