Commit 298595d5 by 周业恒

media_list

parent c9c72a28
Pipeline #20528 passed with stages
in 58 seconds
......@@ -168,7 +168,7 @@
<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(){
//alert(media_export_name)
const uri = 'data:text/csv;charset=utf-8,\ufeff' + encodeURIComponent(media_export_name);
......@@ -176,7 +176,7 @@
const link = document.createElement("a");
link.href = uri;
// 对下载的文件命名
link.download = "json数据表.csv";
link.download = "中公云媒资ID.csv";
link.click();
......
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