|
|
@@ -13,7 +13,7 @@ const report = { |
|
|
|
|
|
|
|
let nowDate = new Date() |
|
|
|
let nowTime = new Date(nowDate).getTime() / 1000 |
|
|
|
debugger |
|
|
|
let PUBLICPATH = process.env.VUE_APP_PUBLICPATH |
|
|
|
|
|
|
|
if (window.Stimulsoft) { |
|
|
|
resolve(true); |
|
|
@@ -25,11 +25,11 @@ const report = { |
|
|
|
text: "报表组件加载中...", |
|
|
|
background: "rgba(0, 0, 0, 0.3)" |
|
|
|
}); |
|
|
|
$LAB.script("/OA/Manhour2/static/plug/zip/zip.js").wait(() => { |
|
|
|
zip.installJS("/OA/Manhour2/static/plug/report/src/report.zip", ["stimulsoft.reports.js", "stimulsoft.viewer.js", "stimulsoft.designer.js"], () => { |
|
|
|
report.loadCss(["/OA/Manhour2/static/plug/report/css/stimulsoft.viewer.office2013.whiteteal.css", "/OA/Manhour2/static/plug/report/css/stimulsoft.designer.office2013.whiteteal.css", "/OA/Manhour2/static/plug/report/css/stimulsoft.run.css"]); |
|
|
|
$LAB.script(PUBLICPATH+ "/static/plug/zip/zip.js").wait(() => { |
|
|
|
zip.installJS(PUBLICPATH+"/static/plug/report/src/report.zip", ["stimulsoft.reports.js", "stimulsoft.viewer.js", "stimulsoft.designer.js"], () => { |
|
|
|
report.loadCss([PUBLICPATH+"/static/plug/report/css/stimulsoft.viewer.office2013.whiteteal.css", PUBLICPATH+"/static/plug/report/css/stimulsoft.designer.office2013.whiteteal.css", PUBLICPATH+"/static/plug/report/css/stimulsoft.run.css"]); |
|
|
|
Stimulsoft.Base.StiLicense.key = "6vJhGtLLLz2GNviWmUTrhSqnOItdDwjBylQzQcAOiHkcgIvwL0jnpsDqRpWg5FI5kt2G7A0tYIcUygBh1sPs7plofUOqPB1a4HBIXJB621mau2oiAIj+ysU7gKUXfjn/D5BocmduNB+ZMiDGPxFrAp3PoD0nYNkkWh8r7gBZ1v/JZSXGE3bQDrCQCNSy6mgby+iFAMV8/PuZ1z77U+Xz3fkpbm6MYQXYp3cQooLGLUti7k1TFWrnawT0iEEDJ2iRcU9wLqn2g9UiWesEZtKwI/UmEI2T7nv5NbgV+CHguu6QU4WWzFpIgW+3LUnKCT/vCDY+ymzgycw9A9+HFSzARiPzgOaAuQYrFDpzhXV+ZeX31AxWlnzjDWqpfluygSNPtGul5gyNt2CEoJD1Yom0VN9fvRonYsMsimkFFx2AwyVpPcs+JfVBtpPbTcZscnzUdmiIvxv8Gcin6sNSibM6in/uUKFt3bVgW/XeMYa7MLGF53kvBSwi78poUDigA2n12SmghLR0AHxyEDIgZGOTbNI33GWu7ZsPBeUdGu55R8w="; |
|
|
|
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile("/OA/Manhour2/static/plug/report/lang/zh-CHS.xml", false, "zh-CHS"); |
|
|
|
Stimulsoft.Base.Localization.StiLocalization.addLocalizationFile(PUBLICPATH+"/static/plug/report/lang/zh-CHS.xml", false, "zh-CHS"); |
|
|
|
Stimulsoft.Base.Localization.StiLocalization.cultureName = "zh-CHS"; |
|
|
|
Stimulsoft.Report.Dictionary.StiFunctions.addFunction("custom", "", "search", "Find field contents based on index in specified data source", "", "", "Return to specified content", [Object, String, String, String], ["this", "source", "index", "field"], ["Reference this object", "Data source name", "Specify index fields", "Field information"], |
|
|
|
(that, source, index, field) => { |