|
@@ -8,8 +8,8 @@ import async from "async";
|
|
|
import JV from "../rpt_component/jpc_value_define";
|
|
|
|
|
|
let Template = mongoose.model('rpt_templates');
|
|
|
-let rptTplDataFacade = require("../facade/rpt_tpl_data_facade");
|
|
|
-//let fsUtil = require("../../../public/fsUtil");
|
|
|
+// let rptTplDataFacade = require("../facade/rpt_tpl_data_facade");
|
|
|
+// let fsUtil = require("../../../public/fsUtil");
|
|
|
|
|
|
import rptTplFacade from "../facade/rpt_template_facade";
|
|
|
import demoTemplateFacade from "../facade/rpt_tpl_data_demo_facade";
|
|
@@ -20,7 +20,7 @@ import rpt_xl_util from "../util/rpt_excel_util";
|
|
|
import rpt_pdf_util from "../util/rpt_pdf_util";
|
|
|
import fs from "fs";
|
|
|
import strUtil from "../../../public/stringUtil";
|
|
|
-import rptDataExtractor from "../util/rpt_construct_data_util";
|
|
|
+// import rptDataExtractor from "../util/rpt_construct_data_util";
|
|
|
|
|
|
//统一回调函数
|
|
|
let callback = function(req, res, err, data){
|
|
@@ -72,6 +72,7 @@ function getAllPagesCommonOrg(rpt_id, pageSize, option, cb) {
|
|
|
);
|
|
|
}
|
|
|
|
|
|
+/*
|
|
|
function getAllPagesCommon(user_id, prj_id, rpt_id, pageSize, option, cb) {
|
|
|
let rptTpl = null;
|
|
|
rptTplFacade.getRptTemplate(rpt_id).then(function(rst) {
|
|
@@ -107,14 +108,18 @@ function getAllPagesCommon(user_id, prj_id, rpt_id, pageSize, option, cb) {
|
|
|
}
|
|
|
})
|
|
|
}
|
|
|
-
|
|
|
+//*/
|
|
|
module.exports = {
|
|
|
+ // getReportAllPages: function (req, res) {
|
|
|
+ // let rpt_id = req.body.rpt_tpl_id, prj_id = req.body.prj_id,
|
|
|
+ // user_id = req.body.user_id, pageSize = req.body.pageSize;
|
|
|
+ // getAllPagesCommon(rpt_id, prj_id, user_id, pageSize, function (err, pageRst) {
|
|
|
+ // callback(req, res, err, pageRst);
|
|
|
+ // });
|
|
|
+ // },
|
|
|
+
|
|
|
getReportAllPages: function (req, res) {
|
|
|
- let rpt_id = req.body.rpt_tpl_id, prj_id = req.body.prj_id,
|
|
|
- user_id = req.body.user_id, pageSize = req.body.pageSize;
|
|
|
- getAllPagesCommon(rpt_id, prj_id, user_id, pageSize, function (err, pageRst) {
|
|
|
- callback(req, res, err, pageRst);
|
|
|
- });
|
|
|
+ callback(req, res, 'default none!', null);
|
|
|
},
|
|
|
|
|
|
getTestReportAllPages: function(req, res){
|