|
@@ -14,6 +14,7 @@ const rptDataExtractor = require('../reports/util/rpt_calculation_data_util');
|
|
|
const fsUtil = require('../public/js/fsUtil');
|
|
|
const fs = require('fs');
|
|
|
const rptCronJob = require('../reports/util/rpt_tmp_file_sweep');
|
|
|
+const RPT_DEF_PROPERTIES = require('../const/report_defined_properties');
|
|
|
|
|
|
module.exports = app => {
|
|
|
class ReportController extends app.BaseController {
|
|
@@ -415,10 +416,11 @@ async function getAllPagesCommon(ctx, rptTpl, params, option, outputType, baseDi
|
|
|
const printCom = JpcEx.createNew();
|
|
|
if (params.pageSize) rptTpl[JV.NODE_MAIN_INFO][JV.NODE_PAGE_INFO][JV.PROP_PAGE_SIZE] = params.pageSize;
|
|
|
if (params.orientation && (params.orientation !== 'null')) rptTpl[JV.NODE_MAIN_INFO][JV.NODE_PAGE_INFO][JV.PROP_ORIENTATION] = params.orientation;
|
|
|
- let defProperties = await ctx.service.rptPreDefineCfg.getCfgById('Administrator');
|
|
|
+ // let defProperties = await ctx.service.rptPreDefineCfg.getCfgById('Administrator');
|
|
|
// console.log('defProperties: ');
|
|
|
// console.log(defProperties[0].defined_content);
|
|
|
- defProperties = JSON.parse(defProperties[0].defined_content);
|
|
|
+ // defProperties = JSON.parse(defProperties[0].defined_content);
|
|
|
+ const defProperties = RPT_DEF_PROPERTIES;
|
|
|
if (params.custCfg) {
|
|
|
setupCustomizeCfg(params.custCfg, rptTpl, defProperties);
|
|
|
} else {
|