导出调整

dev_static
cxt 5 years ago
parent 51bef08ac6
commit b594e4b509

@ -101,6 +101,7 @@
</table>
</div>
<% if @work.myshixun.present? %>
<div class="bor-grey-e mt20">
<p class="pt10 pb10 pl15 pr15 clearfix bor-bottom-greyE">
<span class="fl font-bd">图形统计</span>
@ -224,6 +225,7 @@
</div>
<% end %>
</div>
<% end %>
</div>
</body>
@ -261,6 +263,7 @@
// 基于准备好的dom初始化echarts实例
if(document.getElementById('shixun_skill_chart')){
var effChart = echarts.init(document.getElementById('shixun_skill_chart'));
// 指定图表的配置项和数据
var option = {
@ -357,6 +360,9 @@
// 使用刚指定的配置项和数据显示图表
effChart.setOption(option);
console.debug(<%= @myself_consume %>);
}
if(document.getElementById('shixun_skill_chart')) {
var ablChart = echarts.init(document.getElementById('shixun_overall_ablility_chart'));
var dataBJ = <%= @echart_data[:consume_list] %>;
var schema = [
@ -471,5 +477,6 @@
// 使用刚指定的配置项和数据显示图表。
ablChart.setOption(option1);
}
}
</script>
</html>

@ -1,7 +1,7 @@
# 执行示例 bundle exec rake zip_pack:shixun_pack args=123,2323
namespace :zip_pack do
desc "手工打包作品"
OUTPUT_FOLDER = "#{Rails.root}/files/archiveZip"
OUTPUT_FOLDER = "/tmp"
task :shixun_pack => :environment do
@ -23,7 +23,7 @@ namespace :zip_pack do
student_works.find_each.map do |student_work|
export = ExportShixunReportService.new(homework, student_work)
pdf = export.to_pdf
# pdfs << pdf
pdfs << pdf
begin
zip.add(export.filename, pdf.path)
rescue => ex

Loading…
Cancel
Save