diff --git a/app/views/admin/cancerpredicts/_export_cancer_tool_record.xlsx.axlsx b/app/views/admin/cancerpredicts/_export_cancer_tool_record.xlsx.axlsx index cc17054..2194236 100644 --- a/app/views/admin/cancerpredicts/_export_cancer_tool_record.xlsx.axlsx +++ b/app/views/admin/cancerpredicts/_export_cancer_tool_record.xlsx.axlsx @@ -1,7 +1,8 @@ # encoding: utf-8 wb = xlsx_package.workbook -wb.add_worksheet(name: "school_class") do |sheet| +wb.add_worksheet(name: "cancer_tool") do |sheet| + if !@results[0].nil? row = [] title = sheet.styles.add_style(:bg_color => "FFFF00",:border=>{ :style => :thin, :color => "666666" },:alignment=>{ :horizontal => :center,:vertical => :center ,:wrap_text => true}) column = sheet.styles.add_style(:alignment=>{ :horizontal => :center,:vertical => :center ,:wrap_text => true},:border=>{ :style => :thin, :color => "666666" }) @@ -33,4 +34,5 @@ wb.add_worksheet(name: "school_class") do |sheet| export_data_rows.each do |infos_row| sheet.add_row infos_row , :style=> column end + end end \ No newline at end of file diff --git a/app/views/admin/cancerpredicts/showSubmit.html.erb b/app/views/admin/cancerpredicts/showSubmit.html.erb index 885ec2b..d7dc17b 100644 --- a/app/views/admin/cancerpredicts/showSubmit.html.erb +++ b/app/views/admin/cancerpredicts/showSubmit.html.erb @@ -1,14 +1,13 @@ +<% if !@results[0].nil? %>
<%=((I18n.locale=="en") ? 'submit time' : 'ζδΊ€ζι') %> | <% @results[0].names.each do |key,name|%><%=name[I18n.locale.to_s].to_s.html_safe %> | <%end%> - <%end%>
---|