|
@@ -359,6 +359,8 @@ func (this *ReportApproveController) List() {
|
|
|
// 审批通过的报告显示下载按钮
|
|
|
reportImg := make(map[string]string)
|
|
|
reportPdf := make(map[string]string)
|
|
|
+ reportImgMobile := make(map[string]string)
|
|
|
+ reportPdfMobile := make(map[string]string)
|
|
|
{
|
|
|
var reportIds, enReportIds []int
|
|
|
for _, v := range ormList {
|
|
@@ -373,7 +375,7 @@ func (this *ReportApproveController) List() {
|
|
|
}
|
|
|
}
|
|
|
if len(reportIds) > 0 {
|
|
|
- reports, e := models.GetReportFieldsByIds(reportIds, []string{"id", "detail_img_url", "detail_pdf_url"})
|
|
|
+ reports, e := models.GetReportFieldsByIds(reportIds, []string{"id", "detail_img_url", "detail_pdf_url", "detail_img_url_mobile", "detail_pdf_url_mobile"})
|
|
|
if e != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = fmt.Sprintf("GetReportFieldsByIds, %v", e)
|
|
@@ -383,10 +385,12 @@ func (this *ReportApproveController) List() {
|
|
|
k := fmt.Sprintf("%d-%d", report_approve.FlowReportTypeChinese, r.Id)
|
|
|
reportImg[k] = r.DetailImgUrl
|
|
|
reportPdf[k] = r.DetailPdfUrl
|
|
|
+ reportImgMobile[k] = r.DetailImgUrlMobile
|
|
|
+ reportPdfMobile[k] = r.DetailPdfUrlMobile
|
|
|
}
|
|
|
}
|
|
|
if len(enReportIds) > 0 {
|
|
|
- enReports, e := models.GetEnglishReportFieldsByIds(enReportIds, []string{"id", "detail_img_url", "detail_pdf_url"})
|
|
|
+ enReports, e := models.GetEnglishReportFieldsByIds(enReportIds, []string{"id", "detail_img_url", "detail_pdf_url", "detail_img_url_mobile", "detail_pdf_url_mobile"})
|
|
|
if e != nil {
|
|
|
br.Msg = "获取失败"
|
|
|
br.ErrMsg = fmt.Sprintf("GetEnglishReportFieldsByIds, %v", e)
|
|
@@ -396,6 +400,8 @@ func (this *ReportApproveController) List() {
|
|
|
k := fmt.Sprintf("%d-%d", report_approve.FlowReportTypeEnglish, r.Id)
|
|
|
reportImg[k] = r.DetailImgUrl
|
|
|
reportPdf[k] = r.DetailPdfUrl
|
|
|
+ reportImgMobile[k] = r.DetailImgUrlMobile
|
|
|
+ reportPdfMobile[k] = r.DetailPdfUrlMobile
|
|
|
}
|
|
|
}
|
|
|
}
|
|
@@ -439,6 +445,8 @@ func (this *ReportApproveController) List() {
|
|
|
k := fmt.Sprintf("%d-%d", t.ReportType, t.ReportId)
|
|
|
t.DetailImgUrl = reportImg[k]
|
|
|
t.DetailPdfUrl = reportPdf[k]
|
|
|
+ t.DetailImgUrlMobile = reportImgMobile[k]
|
|
|
+ t.DetailPdfUrlMobile = reportPdfMobile[k]
|
|
|
|
|
|
respList = append(respList, t)
|
|
|
}
|