Sfoglia il codice sorgente

普通表,导出excel、pdf报错

MaiXinRong 5 anni fa
parent
commit
35177a8698
1 ha cambiato i file con 2 aggiunte e 0 eliminazioni
  1. 2 0
      app/controller/report_controller.js

+ 2 - 0
app/controller/report_controller.js

@@ -315,7 +315,9 @@ module.exports = app => {
         }
 
         async _saveCustomSelects(params) {
+            console.log(params);
             for (const [i, cs] of params.customSelect.entries()) {
+                if (!cs) continue;
                 cs.tender_id = params.tender_id;
                 cs.stage_id = params.stage_id;
                 cs.rpt_tpl_id = params.rpt_ids[i];