Commit d0599606 by liyijie

feat: 文件导出的处理

parent c76810ff
...@@ -236,9 +236,11 @@ module TalltyImportExport ...@@ -236,9 +236,11 @@ module TalltyImportExport
'否' '否'
elsif data.is_a?(Array) && data.first&.dig('url').present? elsif data.is_a?(Array) && data.first&.dig('url').present?
# 文件array # 文件array
rt = Axlsx::RichText.new
data.map do |item| data.map do |item|
item.dig('url') rt.add_run item.dig('url')
end.compact.join('\n') rt.add_run('\n')
end
else else
data data
end end
......
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