@ningboyz/vue 1.0.86 → 1.0.87
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,11 +1,11 @@
|
|
|
1
|
-
import { Stimulsoft as
|
|
1
|
+
import { Stimulsoft as n } from "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.engine.js";
|
|
2
2
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.chart.js";
|
|
3
3
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.export.js";
|
|
4
4
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.import.xlsx.js";
|
|
5
5
|
import "../../node_modules/stimulsoft-reports-js-vuejs/stimulsoft.reports.maps.js";
|
|
6
|
-
import
|
|
7
|
-
import
|
|
8
|
-
class
|
|
6
|
+
import p from "../dataUtils/stimulsoftData.js";
|
|
7
|
+
import o from "lodash";
|
|
8
|
+
class d {
|
|
9
9
|
reports = [];
|
|
10
10
|
report;
|
|
11
11
|
printData;
|
|
@@ -16,13 +16,13 @@ class R {
|
|
|
16
16
|
* @param listData
|
|
17
17
|
*/
|
|
18
18
|
constructor(t) {
|
|
19
|
-
this.printData = t, this.report = new
|
|
19
|
+
this.printData = t, this.report = new n.Report.StiReport();
|
|
20
20
|
}
|
|
21
21
|
/**
|
|
22
22
|
* 初始化license
|
|
23
23
|
* @returns
|
|
24
24
|
*/
|
|
25
|
-
setLicense = () => (
|
|
25
|
+
setLicense = () => (p.initStimulsoft(), this);
|
|
26
26
|
/**
|
|
27
27
|
* 初始化报表
|
|
28
28
|
* @returns
|
|
@@ -31,10 +31,10 @@ class R {
|
|
|
31
31
|
for (let t = 0; t < this.printData.length; t++) {
|
|
32
32
|
const r = this.printData[t];
|
|
33
33
|
for (let e = 0; e < r.jsonTemplates.length; e++) {
|
|
34
|
-
const
|
|
34
|
+
const a = r.jsonTemplates[e];
|
|
35
35
|
for (let i = 0; i < r.listData.length; i++) {
|
|
36
|
-
const l = r.listData[i], s = new
|
|
37
|
-
s.load(
|
|
36
|
+
const l = r.listData[i], s = new n.Report.StiReport();
|
|
37
|
+
s.load(a), p.createDataSet(s, l), this.reports.push(s);
|
|
38
38
|
}
|
|
39
39
|
}
|
|
40
40
|
}
|
|
@@ -54,11 +54,11 @@ class R {
|
|
|
54
54
|
return this;
|
|
55
55
|
};
|
|
56
56
|
print() {
|
|
57
|
-
|
|
58
|
-
|
|
57
|
+
o.isNil(this.printData) || this.printData.length === 0 || (this.printData.forEach((t) => {
|
|
58
|
+
o.isNil(t.jsonTemplates) || t.jsonTemplates.length === 0 || o.isNil(t.listData) || t.listData.length;
|
|
59
59
|
}), this.setLicense(), this.initReport(), this.mergeReport(), this.report.print());
|
|
60
60
|
}
|
|
61
61
|
}
|
|
62
62
|
export {
|
|
63
|
-
|
|
63
|
+
d as default
|
|
64
64
|
};
|