Tony Kang 2 år sedan
förälder
incheckning
3be830ef5a
2 ändrade filer med 2 tillägg och 20 borttagningar
  1. 2 0
      app/public/report/js/rpt_main.js
  2. 0 20
      app/view/report/index.ejs

+ 2 - 0
app/public/report/js/rpt_main.js

@@ -836,6 +836,8 @@ let rptControlObj = {
             }
             if (refRptTplIds.length > 0) {
                 let params = rptControlObj.creatCommonExportParam(refRptTplIds);
+                params.option = getExcelOutputOption();
+
                 // params.getPicFlag = true; //专门针对草图项,只有此项为true,才需要把草图信息带过来,预览及打印动态加载草图 // 纠结:但这样还是解决不了效率问题,得另外想交互方式
                 await rptCustomObj.getCustomSelect(params);
                 delete params.orientation; // 打印时有勾选的话,不需要提供方向

+ 0 - 20
app/view/report/index.ejs

@@ -517,26 +517,6 @@
                 topNode.items.splice(rIdx, 1);
             }
         }
-//        for (let rIdx = topNode.items.length - 1; rIdx >= 0; rIdx--) {
-//            if (srcData.indexOf(topNode.items[rIdx].name) < 0) {
-//                //topNode.items.splice(rIdx, 1);
-//                //支持第二层判断
-//                //备注:如果选择了父项,那不用再去判断子项
-//                if (topNode.items[rIdx].items && topNode.items[rIdx].items.length > 0) {
-//                    for (let rIdx2 = topNode.items[rIdx].items.length - 1; rIdx2 >= 0; rIdx2--) {
-//                        let tName = topNode.items[rIdx].name + FOLDER_SEPERATER + topNode.items[rIdx].items[rIdx2].name;
-//                        if (srcData.indexOf(tName) < 0) {
-//                            topNode.items[rIdx].items.splice(rIdx2, 1);
-//                        }
-//                    }
-//                } else {
-//                    topNode.items.splice(rIdx, 1);
-//                }
-//            }
-//            if (!topNode.items[rIdx].hasOwnProperty('items') || topNode.items[rIdx].items.length === 0) {
-//                topNode.items.splice(rIdx, 1);
-//            }
-//        }
     }
 
     function buildTplTree() {