-
Notifications
You must be signed in to change notification settings - Fork 67
/
Copy pathfcprint-fcprint-module-es5.js.map
1 lines (1 loc) · 22.6 KB
/
fcprint-fcprint-module-es5.js.map
1
{"version":3,"sources":["webpack:///./src/feature/fc/fcdemo/fcprint/fcprint.component.html","webpack:///./src/assets/plugin/lodop/LodopFuncs.js","webpack:///./src/feature/fc/fcdemo/fcprint/fcprint.component.ts","webpack:///./src/feature/fc/fcdemo/fcprint/fcprint.module.ts","webpack:///./src/feature/fc/fcdemo/fcprint/fcprint.route.ts"],"names":[],"mappings":";;;;;;;;;AAAA,0HAA0H,+FAA+F,uEAAuE,oIAAoI,yFAAyF,+GAA+G,w7GAAw7G,6KAA6K,oQAAoQ,6qBAA6qB,eAAe,SAAS,wUAAwU,2BAA2B,ikC;;;;;;;;;;;;ACA7/K;AAAA;AAAA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,KAAK;AACL;AACA;AACA;;AAEA;AACA;AACA;AACA;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACO;AACP;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA,wJ;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS;AACT;AACA;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA,+DAA+D,SAAS,WAAW,UAAU,WAAW;AACxG;AACA;AACA;AACA;AACA;AACA;AACA,aAAa;AACb;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;;AAIA;A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,CAAC,qBAAqB,CAAC,CAAC;QAC7C,IAAI,CAAC,KAAK,CAAC,aAAa,CAAC,CAAC,EAAC,CAAC,EAAC,MAAM,EAAC,MAAM,EAAC,QAAQ,CAAC,eAAe,CAAC,SAAS,CAAC,CAAC;QAC/E,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;;gBA/D0B,sDAAM;gBAAuB,8DAAc;;IAF3D,gBAAgB;QAN5B,+DAAS,CAAC;YACT,8CAA8C;YAC9C,QAAQ,EAAE,UAAU;YACpB,qKAAuC;;SAExC,CAAC;+EAG2B,sDAAM,EAAuB,8DAAc;OAF3D,gBAAgB,CAkE5B;IAAD,uBAAC;CAAA;AAlE4B;;;;;;;;;;;;;;;;;;;;;;;ACT0B;AACI;AACZ;AACyB;AAC9B;AACA;AAa1C;IAAA;IAA6B,CAAC;IAAjB,aAAa;QAZzB,8DAAQ,CAAC;YACR,OAAO,EAAE;gBACP,uDAAY;gBACZ,4DAAY,CAAC,QAAQ,CAAC,sDAAO,CAAC;gBAC9B,qFAAiB;aAClB;YACD,YAAY,EAAE;gBACZ,mEAAgB;aACjB;YACD,SAAS,EAAE,EAAE;YACb,OAAO,EAAE,CAAC,8DAAgB,CAAC;SAC5B,CAAC;OACW,aAAa,CAAI;IAAD,oBAAC;CAAA;AAAJ;;;;;;;;;;;;;AClB1B;AAAA;AAAA;AAAuD;AAYhD,IAAM,OAAO,GAAW;IAC7B;QACE,IAAI,EAAE,SAAS;QACf,SAAS,EAAE,mEAAgB;KAC5B;CACF,CAAC","file":"fcprint-fcprint-module-es5.js","sourcesContent":["module.exports = \"<div class=\\\"fc-print\\\">\\r\\n <div>\\r\\n <p>\\r\\n 1:若只打印《表单一》,看一下<a\\r\\n href=\\\"javascript:;\\\"\\r\\n (click)=\\\"printPreview()\\\"\\r\\n >打印预览</a\\r\\n >,可<a href=\\\"javascript:;\\\" (click)=\\\"directPrint()\\\">直接打印</a>也可\\r\\n <a href=\\\"javascript:;\\\" (click)=\\\"printerSelect()\\\">选择打印机</a\\r\\n >打印。<br /><br />\\r\\n 2:若《表单一》和《表单二》一起并列输出,看一下<a\\r\\n href=\\\"javascript:;\\\" (click)=\\\"prn2_preview()\\\"\\r\\n >打印预览</a\\r\\n >,其布局风格可<a href=\\\"javascript:;\\\" (click)=\\\"prn2_manage()\\\">打印维护</a>调整。\\r\\n </p>\\r\\n\\r\\n <p>\\r\\n 3:若打印整个页面,看看<a href=\\\"javascript:;\\\" (click)=\\\"prn3_preview()\\\">打印预览</a\\r\\n >。<br /><br />\\r\\n 本例要点是用Document的innerHTML方法把打印目标的超文本送给控件。\\r\\n </p>\\r\\n </div>\\r\\n\\r\\n <div class=\\\"fc-conetent\\\">\\r\\n <!-- 需要打印的内容 -->\\r\\n <form id=\\\"form1\\\">\\r\\n <table border=\\\"1\\\">\\r\\n <tr>\\r\\n <th>Month</th>\\r\\n <th>Savings</th>\\r\\n <th>Month</th>\\r\\n <th>Savings</th>\\r\\n <th>Month</th>\\r\\n <th>Savings</th>\\r\\n <th>Month</th>\\r\\n <th>Savings</th>\\r\\n <th>Month</th>\\r\\n <th>Savings</th>\\r\\n <th>Month</th>\\r\\n <th>Savings</th>\\r\\n <th>Savings</th>\\r\\n <th>Savings</th>\\r\\n </tr>\\r\\n <tr>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n <td>January</td>\\r\\n <td>$100</td>\\r\\n </tr>\\r\\n </table>\\r\\n </form>\\r\\n\\r\\n <div id=\\\"form2\\\">\\r\\n <table\\r\\n border=\\\"1\\\"\\r\\n width=\\\"100%\\\"\\r\\n id=\\\"tb01\\\"\\r\\n bgcolor=\\\"#CCFFCC\\\"\\r\\n style=\\\"border:solid 1px black;border-collapse:collapse\\\"\\r\\n >\\r\\n <tr>\\r\\n <td width=\\\"133\\\" id=\\\"mtb001\\\">\\r\\n <font face=\\\"黑体\\\" color=\\\"#FF0000\\\" size=\\\"3\\\">《表单二》©</font>\\r\\n </td>\\r\\n </tr>\\r\\n </table>\\r\\n\\r\\n <table\\r\\n border=\\\"1\\\"\\r\\n width=\\\"100%\\\"\\r\\n height=\\\"106\\\"\\r\\n cellspacing=\\\"0\\\"\\r\\n bgcolor=\\\"#CCFFFF\\\"\\r\\n style=\\\"border:solid 1px black;border-collapse:collapse\\\"\\r\\n >\\r\\n <tr>\\r\\n <td width=\\\"66\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <font color=\\\"#0000FF\\\">X</font><font color=\\\"#0000FF\\\">等</font>\\r\\n </td>\\r\\n <td width=\\\"51\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <font color=\\\"#0000FF\\\">Y等</font>\\r\\n </td>\\r\\n <td width=\\\"51\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <font color=\\\"#0000FF\\\">Z等</font>\\r\\n </td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td width=\\\"66\\\" height=\\\"12\\\" style=\\\"border:solid 1px black\\\">\\r\\n <span style=\\\"font-family:Wingdings;font-size:25px;\\\">þ</span\\r\\n >X001\\r\\n </td>\\r\\n <td width=\\\"51\\\" height=\\\"12\\\" style=\\\"border:solid 1px black\\\">\\r\\n <strike>Y001</strike>\\r\\n </td>\\r\\n <td width=\\\"51\\\" height=\\\"44\\\" rowspan=\\\"3\\\" style=\\\"border:solid 1px black\\\">\\r\\n <ol style=\\\"list-style-type:upper-alpha;list-style-position:inside;\\\">\\r\\n <li>Z001</li>\\r\\n <li>Z002</li>\\r\\n <li>Z003</li>\\r\\n <li>Z004</li>\\r\\n <li>Z005</li>\\r\\n </ol>\\r\\n </td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td width=\\\"30%\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <strong>X002</strong>\\r\\n </td>\\r\\n <td width=\\\"51\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <u>Y002</u><span style=\\\"visibility: hidden\\\">hidesome</span>\\r\\n </td>\\r\\n </tr>\\r\\n <tr>\\r\\n <td width=\\\"30%\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <span style=\\\"text-decoration: overline\\\">X003</span>\\r\\n </td>\\r\\n <td width=\\\"40%\\\" height=\\\"16\\\" style=\\\"border:solid 1px black\\\">\\r\\n <em>Y003</em><input type=\\\"radio\\\" name=\\\"R1\\\" /><input\\r\\n type=\\\"radio\\\"\\r\\n name=\\\"R1\\\"\\r\\n checked\\r\\n />\\r\\n </td>\\r\\n </tr>\\r\\n </table>\\r\\n </div>\\r\\n </div>\\r\\n</div>\\r\\n\"","var CreatedOKLodop7766 = null, CLodopIsLocal;\r\n\r\n//====判断是否需要 Web打印服务CLodop:===\r\n//===(不支持插件的浏览器版本需要用它)===\r\nfunction needCLodop() {\r\n try {\r\n var ua = navigator.userAgent;\r\n if (ua.match(/Windows\\sPhone/i))\r\n return true;\r\n if (ua.match(/iPhone|iPod|iPad/i))\r\n return true;\r\n if (ua.match(/Android/i))\r\n return true;\r\n if (ua.match(/Edge\\D?\\d+/i))\r\n return true;\r\n\r\n var verTrident = ua.match(/Trident\\D?\\d+/i);\r\n var verIE = ua.match(/MSIE\\D?\\d+/i);\r\n var verOPR = ua.match(/OPR\\D?\\d+/i);\r\n var verFF = ua.match(/Firefox\\D?\\d+/i);\r\n var x64 = ua.match(/x64/i);\r\n if ((!verTrident) && (!verIE) && (x64))\r\n return true;\r\n else if (verFF) {\r\n verFF = verFF[0].match(/\\d+/);\r\n if ((verFF[0] >= 41) || (x64))\r\n return true;\r\n } else if (verOPR) {\r\n verOPR = verOPR[0].match(/\\d+/);\r\n if (verOPR[0] >= 32)\r\n return true;\r\n } else if ((!verTrident) && (!verIE)) {\r\n var verChrome = ua.match(/Chrome\\D?\\d+/i);\r\n if (verChrome) {\r\n verChrome = verChrome[0].match(/\\d+/);\r\n if (verChrome[0] >= 41)\r\n return true;\r\n }\r\n }\r\n return false;\r\n } catch (err) {\r\n return true;\r\n }\r\n}\r\n\r\n//====页面引用CLodop云打印必须的JS文件,用双端口(8000和18000)避免其中某个被占用:====\r\nif (needCLodop()) {\r\n var src1 = \"http://localhost:8000/CLodopfuncs.js?priority=1\";\r\n var src2 = \"http://localhost:18000/CLodopfuncs.js?priority=0\";\r\n\r\n var head = document.head || document.getElementsByTagName(\"head\")[0] || document.documentElement;\r\n var oscript = document.createElement(\"script\");\r\n oscript.src = src1;\r\n head.insertBefore(oscript, head.firstChild);\r\n oscript = document.createElement(\"script\");\r\n oscript.src = src2;\r\n head.insertBefore(oscript, head.firstChild);\r\n CLodopIsLocal = !!((src1 + src2).match(/\\/\\/localho|\\/\\/127.0.0./i));\r\n}\r\n\r\n//====获取LODOP对象的主过程:====\r\nexport function getLodop(oOBJECT, oEMBED) {\r\n var strHtmInstall = \"<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop32.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>\";\r\n var strHtmUpdate = \"<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop32.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>\";\r\n var strHtm64_Install = \"<br><font color='#FF00FF'>打印控件未安装!点击这里<a href='install_lodop64.exe' target='_self'>执行安装</a>,安装后请刷新页面或重新进入。</font>\";\r\n var strHtm64_Update = \"<br><font color='#FF00FF'>打印控件需要升级!点击这里<a href='install_lodop64.exe' target='_self'>执行升级</a>,升级后请重新进入。</font>\";\r\n var strHtmFireFox = \"<br><br><font color='#FF00FF'>(注意:如曾安装过Lodop旧版附件npActiveXPLugin,请在【工具】->【附加组件】->【扩展】中先卸它)</font>\";\r\n var strHtmChrome = \"<br><br><font color='#FF00FF'>(如果此前正常,仅因浏览器升级或重安装而出问题,需重新执行以上安装)</font>\";\r\n var strCLodopInstall_1 = \"<br><font color='#FF00FF'>Web打印服务CLodop未安装启动,点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>下载执行安装</a>\";\r\n var strCLodopInstall_2 = \"<br>(若此前已安装过,可<a href='CLodop.protocol:setup' target='_self'>点这里直接再次启动</a>)\";\r\n var strCLodopInstall_3 = \",成功后请刷新本页面。</font>\";\r\n var strCLodopUpdate = \"<br><font color='#FF00FF'>Web打印服务CLodop需升级!点击这里<a href='CLodop_Setup_for_Win32NT.exe' target='_self'>执行升级</a>,升级后请刷新页面。</font>\";\r\n var LODOP;\r\n try {\r\n var ua = navigator.userAgent;\r\n var isIE = !!(ua.match(/MSIE/i)) || !!(ua.match(/Trident/i));\r\n if (needCLodop()) {\r\n try {\r\n LODOP = getCLodop();\r\n } catch (err) {}\r\n if (!LODOP && document.readyState !== \"complete\") {\r\n alert(\"网页还没下载完毕,请稍等一下再操作.\");\r\n return;\r\n }\r\n if (!LODOP) {\r\n document.body.innerHTML = strCLodopInstall_1 + (CLodopIsLocal ? strCLodopInstall_2 : \"\") + strCLodopInstall_3 + document.body.innerHTML; \r\n return;\r\n } else {\r\n if (CLODOP.CVERSION < \"3.0.9.2\") {\r\n document.body.innerHTML = strCLodopUpdate + document.body.innerHTML;\r\n }\r\n if (oEMBED && oEMBED.parentNode)\r\n oEMBED.parentNode.removeChild(oEMBED);\r\n if (oOBJECT && oOBJECT.parentNode)\r\n oOBJECT.parentNode.removeChild(oOBJECT);\r\n }\r\n } else {\r\n var is64IE = isIE && !!(ua.match(/x64/i));\r\n //=====如果页面有Lodop就直接使用,没有则新建:==========\r\n if (oOBJECT || oEMBED) {\r\n if (isIE)\r\n LODOP = oOBJECT;\r\n else\r\n LODOP = oEMBED;\r\n } else if (!CreatedOKLodop7766) {\r\n LODOP = document.createElement(\"object\");\r\n LODOP.setAttribute(\"width\", 0);\r\n LODOP.setAttribute(\"height\", 0);\r\n LODOP.setAttribute(\"style\", \"position:absolute;left:0px;top:-100px;width:0px;height:0px;\");\r\n if (isIE)\r\n LODOP.setAttribute(\"classid\", \"clsid:2105C259-1E0C-4534-8141-A753534CB4CA\");\r\n else\r\n LODOP.setAttribute(\"type\", \"application/x-print-lodop\");\r\n document.documentElement.appendChild(LODOP);\r\n CreatedOKLodop7766 = LODOP;\r\n } else\r\n LODOP = CreatedOKLodop7766;\r\n //=====Lodop插件未安装时提示下载地址:==========\r\n if ((!LODOP) || (!LODOP.VERSION)) {\r\n if (ua.indexOf('Chrome') >= 0)\r\n document.body.innerHTML = strHtmChrome + document.body.innerHTML;\r\n if (ua.indexOf('Firefox') >= 0)\r\n document.body.innerHTML = strHtmFireFox + document.body.innerHTML;\r\n document.body.innerHTML = (is64IE ? strHtm64_Install : strHtmInstall) + document.body.innerHTML;\r\n return LODOP;\r\n }\r\n }\r\n if (LODOP.VERSION < \"6.2.2.6\") {\r\n if (!needCLodop())\r\n document.body.innerHTML = (is64IE ? strHtm64_Update : strHtmUpdate) + document.body.innerHTML;\r\n }\r\n //===如下空白位置适合调用统一功能(如注册语句、语言选择等):==\r\n\r\n\r\n\r\n //=======================================================\r\n return LODOP;\r\n } catch (err) {\r\n alert(\"getLodop出错:\" + err);\r\n }\r\n}\r\n","import { Component } from '@angular/core';\r\nimport { ActivatedRoute, Router } from '@angular/router';\r\nimport { getLodop } from '../../../../assets/plugin/lodop/LodopFuncs.js';\r\n@Component({\r\n // tslint:disable-next-line:component-selector\r\n selector: 'fc-print',\r\n templateUrl: './fcprint.component.html',\r\n styles: [``]\r\n})\r\nexport class FcprintComponent {\r\n LODOP: any;\r\n constructor(public router: Router, public activedRoute: ActivatedRoute) {}\r\n CreateOneFormPage() {\r\n this.LODOP = getLodop();\r\n this.LODOP.PRINT_INIT('打印控件功能演示_Lodop功能_表单一');\r\n this.LODOP.SET_PRINT_STYLE('FontSize',18);\r\n this.LODOP.SET_PRINT_STYLE('Bold',1);\r\n this.LODOP.ADD_PRINT_TEXT(50,231,260,39, '打印页面部分内容');\r\n this.LODOP.ADD_PRINT_HTM(88,200,350,600, document.getElementById('form1').innerHTML);\r\n }\r\n /**\r\n * 打印预览\r\n */\r\n printPreview() {\r\n this.CreateOneFormPage();\r\n this.LODOP.PREVIEW();\r\n }\r\n /**\r\n * 直接打印\r\n */\r\n directPrint() {\r\n this.CreateOneFormPage();\r\n this.LODOP.PRINT();\r\n }\r\n /**\r\n * 选择打印机\r\n */\r\n printerSelect() {\r\n this.CreateOneFormPage();\r\n this.LODOP.PRINTA();\r\n }\r\n CreateTwoFormPage() {\r\n this.LODOP=getLodop();\r\n this.LODOP.PRINT_INIT('打印控件功能演示_Lodop功能_表单二');\r\n this.LODOP.ADD_PRINT_RECT(70,27,634,242,0,1);\r\n this.LODOP.ADD_PRINT_TEXT(29,236,279,38,'页面内容改变布局打印');\r\n this.LODOP.SET_PRINT_STYLEA(2,'FontSize',18);\r\n this.LODOP.SET_PRINT_STYLEA(2,'Bold',1);\r\n this.LODOP.ADD_PRINT_HTM(88,40,321,185,document.getElementById('form1').innerHTML);\r\n this.LODOP.ADD_PRINT_HTM(87,355,285,187,document.getElementById('form2').innerHTML);\r\n this.LODOP.ADD_PRINT_TEXT(319,58,500,30,'注:其中《表单一》按显示大小,《表单二》在程序控制宽度(285px)内自适应调整');\r\n }\r\n /**\r\n * 《表单一》和《表单二》一起并列输出\r\n */\r\n prn2_preview() {\r\n this.CreateTwoFormPage();\r\n this.LODOP.PREVIEW();\r\n }\r\n /**\r\n * 打印维护\r\n */\r\n prn2_manage() {\r\n this.CreateTwoFormPage();\r\n this.LODOP.PRINT_SETUP();\r\n }\r\n /**\r\n * 打印整个页面 打印预览\r\n */\r\n prn3_preview() {\r\n this.LODOP=getLodop();\r\n this.LODOP.PRINT_INIT('打印控件功能演示_Lodop功能_全页');\r\n this.LODOP.ADD_PRINT_HTM(0,0,'100%','100%',document.documentElement.innerHTML);\r\n this.LODOP.PREVIEW();\r\n }\r\n}\r\n","import { FcprintComponent } from './fcprint.component';\r\nimport { NgModule, NO_ERRORS_SCHEMA } from '@angular/core';\r\nimport { RouterModule } from '@angular/router';\r\nimport { FccomponentModule } from 'src/fccomponents/fccomponent.module';\r\nimport { SharedModule } from 'src/shared';\r\nimport { Routers } from './fcprint.route';\r\n@NgModule({\r\n imports: [\r\n SharedModule,\r\n RouterModule.forChild(Routers),\r\n FccomponentModule\r\n ],\r\n declarations: [\r\n FcprintComponent\r\n ],\r\n providers: [],\r\n schemas: [NO_ERRORS_SCHEMA]\r\n})\r\nexport class FcprintModule { }\r\n","import { FcprintComponent } from './fcprint.component';\r\n/*\r\n * @Author: honghong\r\n * @LastEditors: honghong\r\n * @Description: 示例模块的路由\r\n * @email: 3300536651@qq.com\r\n * @Date: 2019-04-16 15:57:43\r\n * @LastEditTime: 2019-10-16 15:58:10\r\n */\r\nimport { Routes } from '@angular/router';\r\n\r\n\r\nexport const Routers: Routes = [\r\n {\r\n path: 'fcprint',\r\n component: FcprintComponent\r\n }\r\n];\r\n"],"sourceRoot":""}