@newview/report-tools 1.0.12 → 1.0.13
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.
- package/dist/report-tools.js +187 -188
- package/dist/report-tools.umd.cjs +1 -1
- package/package.json +1 -1
- package/readme.md +3 -0
- package/types/ReportTool.d.ts +7 -2
- package/types/index.d.ts +5 -0
package/dist/report-tools.js
CHANGED
|
@@ -68747,6 +68747,143 @@ class LoaderManageInstance2 extends BaseInstance {
|
|
|
68747
68747
|
}
|
|
68748
68748
|
//#endregion 加载器 END
|
|
68749
68749
|
}
|
|
68750
|
+
const propDefine$z = {
|
|
68751
|
+
linkParam: {
|
|
68752
|
+
// 带入的参数
|
|
68753
|
+
type: String,
|
|
68754
|
+
default: ""
|
|
68755
|
+
},
|
|
68756
|
+
pageInfo: {
|
|
68757
|
+
type: Array,
|
|
68758
|
+
default: () => {
|
|
68759
|
+
}
|
|
68760
|
+
},
|
|
68761
|
+
isHorizontal: {
|
|
68762
|
+
type: Object,
|
|
68763
|
+
default: () => {
|
|
68764
|
+
}
|
|
68765
|
+
}
|
|
68766
|
+
};
|
|
68767
|
+
const _sfc_main$t = defineComponent({
|
|
68768
|
+
name: "reportView",
|
|
68769
|
+
components: {},
|
|
68770
|
+
emits: [""],
|
|
68771
|
+
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
68772
|
+
props: propDefine$z,
|
|
68773
|
+
setup(props, ctx) {
|
|
68774
|
+
return new SendDocMgmtTmplInstance(props, ctx);
|
|
68775
|
+
}
|
|
68776
|
+
});
|
|
68777
|
+
class SendDocMgmtTmplInstance extends BaseInstance {
|
|
68778
|
+
constructor(props, ctx) {
|
|
68779
|
+
super();
|
|
68780
|
+
__publicField3(this, "props");
|
|
68781
|
+
__publicField3(this, "ctx");
|
|
68782
|
+
__publicField3(this, "reportshow", ref$1(true));
|
|
68783
|
+
__publicField3(this, "pageInfo", ref$1([]));
|
|
68784
|
+
__publicField3(this, "isHorizontal", ref$1({}));
|
|
68785
|
+
__publicField3(this, "getPicStyle", (item2) => {
|
|
68786
|
+
return {
|
|
68787
|
+
"width": item2.width + "px",
|
|
68788
|
+
"height": item2.height + "px",
|
|
68789
|
+
"left": item2.left + "px",
|
|
68790
|
+
"top": item2.top + "px"
|
|
68791
|
+
};
|
|
68792
|
+
});
|
|
68793
|
+
this.props = props;
|
|
68794
|
+
this.ctx = ctx;
|
|
68795
|
+
this.pageInfo.value = this.props.pageInfo || [];
|
|
68796
|
+
this.isHorizontal.value = this.props.isHorizontal || [];
|
|
68797
|
+
console.log(this.props);
|
|
68798
|
+
this.init();
|
|
68799
|
+
}
|
|
68800
|
+
async init() {
|
|
68801
|
+
onMounted(async () => {
|
|
68802
|
+
});
|
|
68803
|
+
}
|
|
68804
|
+
}
|
|
68805
|
+
const ReportView_vue_vue_type_style_index_0_scoped_e572bde8_lang = "";
|
|
68806
|
+
const _export_sfc$1 = (sfc, props) => {
|
|
68807
|
+
const target = sfc.__vccOpts || sfc;
|
|
68808
|
+
for (const [key2, val] of props) {
|
|
68809
|
+
target[key2] = val;
|
|
68810
|
+
}
|
|
68811
|
+
return target;
|
|
68812
|
+
};
|
|
68813
|
+
const _hoisted_1$m = { id: "reportPrintContainer" };
|
|
68814
|
+
const _hoisted_2$i = ["id"];
|
|
68815
|
+
const _hoisted_3$d = { key: 0 };
|
|
68816
|
+
const _hoisted_4$a = ["tr-idx-loop", "td-idx-loop", "tr-index", "td-index", "colspan", "rowspan", "hidden"];
|
|
68817
|
+
const _hoisted_5$8 = ["innerHTML"];
|
|
68818
|
+
const _hoisted_6$6 = ["innerHTML"];
|
|
68819
|
+
function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
68820
|
+
return openBlock(), createElementBlock("div", _hoisted_1$m, [
|
|
68821
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pageInfo.sheets, (page) => {
|
|
68822
|
+
var _a2, _b;
|
|
68823
|
+
return openBlock(), createElementBlock("div", {
|
|
68824
|
+
class: "reportPrintContainer-box",
|
|
68825
|
+
style: normalizeStyle([{ "background": "#fff", "margin": "20px auto", "border": "1px dashed rgb(204, 204, 204)", "display": "flex", "justify-content": "flex-end", "box-sizing": "border-box" }, _ctx.isHorizontal]),
|
|
68826
|
+
key: page.name
|
|
68827
|
+
}, [
|
|
68828
|
+
createBaseVNode("div", {
|
|
68829
|
+
id: "table_container",
|
|
68830
|
+
style: normalizeStyle([{ "position": "relative" }, { width: Number((_a2 = page.width) == null ? void 0 : _a2.replace("px", "")) + 0 + "px", backgroundColor: "white" }])
|
|
68831
|
+
}, [
|
|
68832
|
+
createBaseVNode("table", {
|
|
68833
|
+
id: "table_" + page.order,
|
|
68834
|
+
style: { borderCollapse: "collapse", margin: "auto", tableLayout: "fixed" }
|
|
68835
|
+
}, [
|
|
68836
|
+
createBaseVNode("tbody", null, [
|
|
68837
|
+
((_b = page.rows) == null ? void 0 : _b.length) > 0 ? (openBlock(), createElementBlock("tr", _hoisted_3$d, [
|
|
68838
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(page.rows[0].cols, (tdItem, tdIndex) => {
|
|
68839
|
+
return openBlock(), createElementBlock("td", {
|
|
68840
|
+
key: tdIndex,
|
|
68841
|
+
style: normalizeStyle({ width: tdItem.style.width, height: 0 })
|
|
68842
|
+
}, null, 4);
|
|
68843
|
+
}), 128))
|
|
68844
|
+
])) : createCommentVNode("", true),
|
|
68845
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(page.rows, (trItem, trIndex) => {
|
|
68846
|
+
return openBlock(), createElementBlock(Fragment, null, [
|
|
68847
|
+
!trItem.hidden ? (openBlock(), createElementBlock("tr", {
|
|
68848
|
+
style: normalizeStyle({ height: trItem.rowHeight + "px" }),
|
|
68849
|
+
key: trIndex
|
|
68850
|
+
}, [
|
|
68851
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(trItem.cols, (tdItem, tdIndex) => {
|
|
68852
|
+
return openBlock(), createElementBlock("td", {
|
|
68853
|
+
key: tdIndex + 1,
|
|
68854
|
+
"tr-idx-loop": trIndex,
|
|
68855
|
+
"td-idx-loop": tdIndex,
|
|
68856
|
+
"tr-index": tdItem.rowIndex,
|
|
68857
|
+
"td-index": tdItem.colIndex,
|
|
68858
|
+
colspan: tdItem.attribute.colSpan,
|
|
68859
|
+
rowspan: tdItem.attribute.rowSpan,
|
|
68860
|
+
hidden: tdItem.attribute.hidden,
|
|
68861
|
+
style: normalizeStyle(tdItem.style)
|
|
68862
|
+
}, [
|
|
68863
|
+
createBaseVNode("span", {
|
|
68864
|
+
innerHTML: tdItem.colVal,
|
|
68865
|
+
style: { "height": "100%" }
|
|
68866
|
+
}, null, 8, _hoisted_5$8)
|
|
68867
|
+
], 12, _hoisted_4$a);
|
|
68868
|
+
}), 128))
|
|
68869
|
+
], 4)) : createCommentVNode("", true)
|
|
68870
|
+
], 64);
|
|
68871
|
+
}), 256))
|
|
68872
|
+
])
|
|
68873
|
+
], 8, _hoisted_2$i),
|
|
68874
|
+
(openBlock(true), createElementBlock(Fragment, null, renderList(page.textBox, (item2, index2) => {
|
|
68875
|
+
return openBlock(), createElementBlock("div", {
|
|
68876
|
+
innerHTML: item2.innerHtml,
|
|
68877
|
+
key: index2,
|
|
68878
|
+
style: normalizeStyle([{ "position": "absolute" }, _ctx.getPicStyle(item2)])
|
|
68879
|
+
}, null, 12, _hoisted_6$6);
|
|
68880
|
+
}), 128))
|
|
68881
|
+
], 4)
|
|
68882
|
+
], 4);
|
|
68883
|
+
}), 128))
|
|
68884
|
+
]);
|
|
68885
|
+
}
|
|
68886
|
+
const ReportView = /* @__PURE__ */ _export_sfc$1(_sfc_main$t, [["render", _sfc_render$t], ["__scopeId", "data-v-e572bde8"]]);
|
|
68750
68887
|
var dayjs_min$1 = { exports: {} };
|
|
68751
68888
|
(function(module2, exports) {
|
|
68752
68889
|
!function(t2, e2) {
|
|
@@ -152028,7 +152165,7 @@ ace.define("ace/ace", ["require", "exports", "module", "ace/lib/fixoldbrowsers",
|
|
|
152028
152165
|
});
|
|
152029
152166
|
})();
|
|
152030
152167
|
var brace = window.ace.acequire("ace/ace");
|
|
152031
|
-
const _export_sfc
|
|
152168
|
+
const _export_sfc = (sfc, props) => {
|
|
152032
152169
|
const target = sfc.__vccOpts || sfc;
|
|
152033
152170
|
for (const [key2, val] of props) {
|
|
152034
152171
|
target[key2] = val;
|
|
@@ -152180,7 +152317,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
152180
152317
|
style: normalizeStyle($options.wrapStyles)
|
|
152181
152318
|
}, null, 4);
|
|
152182
152319
|
}
|
|
152183
|
-
const BinEditor = /* @__PURE__ */ _export_sfc
|
|
152320
|
+
const BinEditor = /* @__PURE__ */ _export_sfc(_sfc_main$s, [["render", _sfc_render$s]]);
|
|
152184
152321
|
var ace$1 = { exports: {} };
|
|
152185
152322
|
(function(module2, exports) {
|
|
152186
152323
|
(function() {
|
|
@@ -164316,7 +164453,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
164316
164453
|
}, null, 8, ["modelValue", "lang", "readonly", "font-size", "wrap", "snippets", "options", "styles"])
|
|
164317
164454
|
]);
|
|
164318
164455
|
}
|
|
164319
|
-
const Editor = /* @__PURE__ */ _export_sfc
|
|
164456
|
+
const Editor = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r], ["__scopeId", "data-v-cf6872cf"]]);
|
|
164320
164457
|
const propDefine$x = {
|
|
164321
164458
|
placeholder: {
|
|
164322
164459
|
// 占位文本
|
|
@@ -165326,7 +165463,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165326
165463
|
}, 8, ["modelValue"]))
|
|
165327
165464
|
]);
|
|
165328
165465
|
}
|
|
165329
|
-
const NvIconSelect = /* @__PURE__ */ _export_sfc
|
|
165466
|
+
const NvIconSelect = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q]]);
|
|
165330
165467
|
const propDefine$w = {
|
|
165331
165468
|
onlyView: {
|
|
165332
165469
|
// 是否只读
|
|
@@ -165999,7 +166136,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
165999
166136
|
], 2)
|
|
166000
166137
|
]);
|
|
166001
166138
|
}
|
|
166002
|
-
const ComForm = /* @__PURE__ */ _export_sfc
|
|
166139
|
+
const ComForm = /* @__PURE__ */ _export_sfc(_sfc_main$p, [["render", _sfc_render$p], ["__scopeId", "data-v-be8021fc"]]);
|
|
166003
166140
|
const propDefine$v = {
|
|
166004
166141
|
options: {
|
|
166005
166142
|
// SearchCom 配置项
|
|
@@ -166299,7 +166436,7 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166299
166436
|
_: 1
|
|
166300
166437
|
}, 8, ["model", "label-width"]);
|
|
166301
166438
|
}
|
|
166302
|
-
const SearchCom = /* @__PURE__ */ _export_sfc
|
|
166439
|
+
const SearchCom = /* @__PURE__ */ _export_sfc(_sfc_main$o, [["render", _sfc_render$o], ["__scopeId", "data-v-cda08489"]]);
|
|
166303
166440
|
const propDefine$u = {
|
|
166304
166441
|
options: {
|
|
166305
166442
|
// 配置项
|
|
@@ -166551,7 +166688,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
166551
166688
|
}))
|
|
166552
166689
|
]);
|
|
166553
166690
|
}
|
|
166554
|
-
const Toolbar = /* @__PURE__ */ _export_sfc
|
|
166691
|
+
const Toolbar = /* @__PURE__ */ _export_sfc(_sfc_main$n, [["render", _sfc_render$n], ["__scopeId", "data-v-69337cbe"]]);
|
|
166555
166692
|
const GridCellContent$1 = defineComponent({
|
|
166556
166693
|
name: "GridCellContent",
|
|
166557
166694
|
props: {
|
|
@@ -167381,7 +167518,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167381
167518
|
}), 256))
|
|
167382
167519
|
]);
|
|
167383
167520
|
}
|
|
167384
|
-
const GridColumn$1 = /* @__PURE__ */ _export_sfc
|
|
167521
|
+
const GridColumn$1 = /* @__PURE__ */ _export_sfc(_sfc_main$m, [["render", _sfc_render$m], ["__scopeId", "data-v-4f9996c6"]]);
|
|
167385
167522
|
const _sfc_main$l = defineComponent({
|
|
167386
167523
|
name: "FilterDaterange",
|
|
167387
167524
|
props: {
|
|
@@ -167444,7 +167581,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167444
167581
|
_ctx.warningMsg.isShow ? (openBlock(), createElementBlock("div", _hoisted_2$d, "起始时间不能大于结束时间")) : createCommentVNode("", true)
|
|
167445
167582
|
]);
|
|
167446
167583
|
}
|
|
167447
|
-
const FilterDaterange$1 = /* @__PURE__ */ _export_sfc
|
|
167584
|
+
const FilterDaterange$1 = /* @__PURE__ */ _export_sfc(_sfc_main$l, [["render", _sfc_render$l]]);
|
|
167448
167585
|
const _sfc_main$k = defineComponent({
|
|
167449
167586
|
name: "FilterDaterange",
|
|
167450
167587
|
props: {
|
|
@@ -167520,7 +167657,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
167520
167657
|
_ctx.warningMsg.isShow ? (openBlock(), createElementBlock("div", _hoisted_3$9, "起始值不能大于结束值")) : createCommentVNode("", true)
|
|
167521
167658
|
]);
|
|
167522
167659
|
}
|
|
167523
|
-
const FilterNumberrange$1 = /* @__PURE__ */ _export_sfc
|
|
167660
|
+
const FilterNumberrange$1 = /* @__PURE__ */ _export_sfc(_sfc_main$k, [["render", _sfc_render$k]]);
|
|
167524
167661
|
const CreatGridRenderer$1 = () => {
|
|
167525
167662
|
if (!VXETable.renderer.get("filterDaterange")) {
|
|
167526
167663
|
VXETable.renderer.add("filterDaterange", {
|
|
@@ -168817,7 +168954,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
168817
168954
|
])) : createCommentVNode("", true)
|
|
168818
168955
|
]);
|
|
168819
168956
|
}
|
|
168820
|
-
const Grid = /* @__PURE__ */ _export_sfc
|
|
168957
|
+
const Grid = /* @__PURE__ */ _export_sfc(_sfc_main$j, [["render", _sfc_render$j], ["__scopeId", "data-v-feb345e7"]]);
|
|
168821
168958
|
const GridCellContent = defineComponent({
|
|
168822
168959
|
name: "GridCellContent",
|
|
168823
168960
|
props: {
|
|
@@ -169647,7 +169784,7 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169647
169784
|
}), 256))
|
|
169648
169785
|
]);
|
|
169649
169786
|
}
|
|
169650
|
-
const GridColumn = /* @__PURE__ */ _export_sfc
|
|
169787
|
+
const GridColumn = /* @__PURE__ */ _export_sfc(_sfc_main$i, [["render", _sfc_render$i], ["__scopeId", "data-v-576c5d28"]]);
|
|
169651
169788
|
const _sfc_main$h = defineComponent({
|
|
169652
169789
|
name: "FilterDaterange",
|
|
169653
169790
|
props: {
|
|
@@ -169710,7 +169847,7 @@ function _sfc_render$h(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169710
169847
|
_ctx.warningMsg.isShow ? (openBlock(), createElementBlock("div", _hoisted_2$9, "起始时间不能大于结束时间")) : createCommentVNode("", true)
|
|
169711
169848
|
]);
|
|
169712
169849
|
}
|
|
169713
|
-
const FilterDaterange = /* @__PURE__ */ _export_sfc
|
|
169850
|
+
const FilterDaterange = /* @__PURE__ */ _export_sfc(_sfc_main$h, [["render", _sfc_render$h]]);
|
|
169714
169851
|
const _sfc_main$g = defineComponent({
|
|
169715
169852
|
name: "FilterDaterange",
|
|
169716
169853
|
props: {
|
|
@@ -169786,7 +169923,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
169786
169923
|
_ctx.warningMsg.isShow ? (openBlock(), createElementBlock("div", _hoisted_3$7, "起始值不能大于结束值")) : createCommentVNode("", true)
|
|
169787
169924
|
]);
|
|
169788
169925
|
}
|
|
169789
|
-
const FilterNumberrange = /* @__PURE__ */ _export_sfc
|
|
169926
|
+
const FilterNumberrange = /* @__PURE__ */ _export_sfc(_sfc_main$g, [["render", _sfc_render$g]]);
|
|
169790
169927
|
const CreatGridRenderer = () => {
|
|
169791
169928
|
if (!VXETable.renderer.get("filterDaterange")) {
|
|
169792
169929
|
VXETable.renderer.add("filterDaterange", {
|
|
@@ -171083,7 +171220,7 @@ function _sfc_render$f(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171083
171220
|
])) : createCommentVNode("", true)
|
|
171084
171221
|
]);
|
|
171085
171222
|
}
|
|
171086
|
-
const GridJava = /* @__PURE__ */ _export_sfc
|
|
171223
|
+
const GridJava = /* @__PURE__ */ _export_sfc(_sfc_main$f, [["render", _sfc_render$f], ["__scopeId", "data-v-60a03b77"]]);
|
|
171087
171224
|
const propDefine$p = {
|
|
171088
171225
|
width: {
|
|
171089
171226
|
// Box 宽度
|
|
@@ -171275,7 +171412,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171275
171412
|
_: 3
|
|
171276
171413
|
}, 8, ["style"]);
|
|
171277
171414
|
}
|
|
171278
|
-
const Box = /* @__PURE__ */ _export_sfc
|
|
171415
|
+
const Box = /* @__PURE__ */ _export_sfc(_sfc_main$e, [["render", _sfc_render$e], ["__scopeId", "data-v-1277c62b"]]);
|
|
171279
171416
|
const propDefine$o = {
|
|
171280
171417
|
gutter: {
|
|
171281
171418
|
// 栅格间的间距
|
|
@@ -171315,7 +171452,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171315
171452
|
_: 3
|
|
171316
171453
|
}, 8, ["gutter"]);
|
|
171317
171454
|
}
|
|
171318
|
-
const Page$1 = /* @__PURE__ */ _export_sfc
|
|
171455
|
+
const Page$1 = /* @__PURE__ */ _export_sfc(_sfc_main$d, [["render", _sfc_render$d], ["__scopeId", "data-v-22d5952e"]]);
|
|
171319
171456
|
const propDefine$n = {
|
|
171320
171457
|
splitValue: {
|
|
171321
171458
|
// 分割值大小
|
|
@@ -171395,7 +171532,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171395
171532
|
])
|
|
171396
171533
|
]);
|
|
171397
171534
|
}
|
|
171398
|
-
const Page2L = /* @__PURE__ */ _export_sfc
|
|
171535
|
+
const Page2L = /* @__PURE__ */ _export_sfc(_sfc_main$c, [["render", _sfc_render$c], ["__scopeId", "data-v-92af6688"]]);
|
|
171399
171536
|
const ListContent = defineComponent({
|
|
171400
171537
|
name: "ListContent",
|
|
171401
171538
|
props: {
|
|
@@ -171589,7 +171726,7 @@ function _sfc_render$b(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
171589
171726
|
}, 8, ["onOnClick"])
|
|
171590
171727
|
]);
|
|
171591
171728
|
}
|
|
171592
|
-
const List = /* @__PURE__ */ _export_sfc
|
|
171729
|
+
const List = /* @__PURE__ */ _export_sfc(_sfc_main$b, [["render", _sfc_render$b], ["__scopeId", "data-v-9d6c9980"]]);
|
|
171593
171730
|
/*! @preserve
|
|
171594
171731
|
* luckysheet
|
|
171595
171732
|
* version: 2.1.13
|
|
@@ -325714,7 +325851,7 @@ function _sfc_render$a(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325714
325851
|
}, null, 8, ["icon", "onClick"])) : createCommentVNode("", true)
|
|
325715
325852
|
], 4);
|
|
325716
325853
|
}
|
|
325717
|
-
const ControlGroup = /* @__PURE__ */ _export_sfc
|
|
325854
|
+
const ControlGroup = /* @__PURE__ */ _export_sfc(_sfc_main$a, [["render", _sfc_render$a], ["__scopeId", "data-v-fd687636"]]);
|
|
325718
325855
|
const propDefine$k = {
|
|
325719
325856
|
linkParam: {
|
|
325720
325857
|
// 带入的参数
|
|
@@ -325873,7 +326010,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
325873
326010
|
])
|
|
325874
326011
|
]);
|
|
325875
326012
|
}
|
|
325876
|
-
const LogPanel = /* @__PURE__ */ _export_sfc
|
|
326013
|
+
const LogPanel = /* @__PURE__ */ _export_sfc(_sfc_main$9, [["render", _sfc_render$9], ["__scopeId", "data-v-0df58132"]]);
|
|
325877
326014
|
const propDefine$j = {
|
|
325878
326015
|
isSheetGroup: {
|
|
325879
326016
|
// 是否按sheet页分组返回导入数据
|
|
@@ -326124,7 +326261,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
326124
326261
|
])
|
|
326125
326262
|
]);
|
|
326126
326263
|
}
|
|
326127
|
-
const ExcelImport = /* @__PURE__ */ _export_sfc
|
|
326264
|
+
const ExcelImport = /* @__PURE__ */ _export_sfc(_sfc_main$8, [["render", _sfc_render$8], ["__scopeId", "data-v-8f25f8b7"]]);
|
|
326128
326265
|
class HtmlBase {
|
|
326129
326266
|
constructor() {
|
|
326130
326267
|
__publicField2(this, "textAlign", {
|
|
@@ -327365,7 +327502,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327365
327502
|
_: 3
|
|
327366
327503
|
}, 8, ["type", "ghost", "size", "shape", "disabled", "loading", "icon", "onClick"]);
|
|
327367
327504
|
}
|
|
327368
|
-
const NvButton = /* @__PURE__ */ _export_sfc
|
|
327505
|
+
const NvButton = /* @__PURE__ */ _export_sfc(_sfc_main$7, [["render", _sfc_render$7]]);
|
|
327369
327506
|
const propDefine$h = {
|
|
327370
327507
|
content: {
|
|
327371
327508
|
// 加载中文本
|
|
@@ -327421,7 +327558,7 @@ function _sfc_render$6(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327421
327558
|
})
|
|
327422
327559
|
], 2);
|
|
327423
327560
|
}
|
|
327424
|
-
const Loading = /* @__PURE__ */ _export_sfc
|
|
327561
|
+
const Loading = /* @__PURE__ */ _export_sfc(_sfc_main$6, [["render", _sfc_render$6], ["__scopeId", "data-v-509b33c4"]]);
|
|
327425
327562
|
const propDefine$g = {
|
|
327426
327563
|
width: {
|
|
327427
327564
|
type: Number,
|
|
@@ -327568,7 +327705,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
327568
327705
|
})
|
|
327569
327706
|
]), 1040, ["id", "width"]);
|
|
327570
327707
|
}
|
|
327571
|
-
const NvModal = /* @__PURE__ */ _export_sfc
|
|
327708
|
+
const NvModal = /* @__PURE__ */ _export_sfc(_sfc_main$5, [["render", _sfc_render$5]]);
|
|
327572
327709
|
var __defProp = Object.defineProperty;
|
|
327573
327710
|
var __defNormalProp = (obj, key2, value) => key2 in obj ? __defProp(obj, key2, { enumerable: true, configurable: true, writable: true, value }) : obj[key2] = value;
|
|
327574
327711
|
var __publicField = (obj, key2, value) => {
|
|
@@ -347516,7 +347653,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
347516
347653
|
}, 8, ["modelValue"])
|
|
347517
347654
|
], 64);
|
|
347518
347655
|
}
|
|
347519
|
-
const ContentTreeView = /* @__PURE__ */ _export_sfc
|
|
347656
|
+
const ContentTreeView = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["render", _sfc_render$4]]);
|
|
347520
347657
|
const propDefine$e = {};
|
|
347521
347658
|
const _sfc_main$3 = defineComponent({
|
|
347522
347659
|
name: "ContentTree",
|
|
@@ -347851,7 +347988,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
347851
347988
|
])
|
|
347852
347989
|
]);
|
|
347853
347990
|
}
|
|
347854
|
-
const ContentTree = /* @__PURE__ */ _export_sfc
|
|
347991
|
+
const ContentTree = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-d63251e3"]]);
|
|
347855
347992
|
const propDefine$d = {};
|
|
347856
347993
|
const _sfc_main$2 = defineComponent({
|
|
347857
347994
|
name: "NvDocxDesigner",
|
|
@@ -347948,7 +348085,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
347948
348085
|
])
|
|
347949
348086
|
]);
|
|
347950
348087
|
}
|
|
347951
|
-
const DocxDesigner = /* @__PURE__ */ _export_sfc
|
|
348088
|
+
const DocxDesigner = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-49ce00d3"]]);
|
|
347952
348089
|
const propDefine$c = {
|
|
347953
348090
|
configData: {
|
|
347954
348091
|
// 配置参数
|
|
@@ -348272,7 +348409,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
348272
348409
|
id: _ctx.hkvideoEleId
|
|
348273
348410
|
}, null, 8, _hoisted_1$1);
|
|
348274
348411
|
}
|
|
348275
|
-
const NvAFCaream = /* @__PURE__ */ _export_sfc
|
|
348412
|
+
const NvAFCaream = /* @__PURE__ */ _export_sfc(_sfc_main$1, [["render", _sfc_render$1]]);
|
|
348276
348413
|
const propDefine$b = {
|
|
348277
348414
|
configData: {
|
|
348278
348415
|
// 配置参数
|
|
@@ -348291,7 +348428,7 @@ const propDefine$b = {
|
|
|
348291
348428
|
default: []
|
|
348292
348429
|
}
|
|
348293
348430
|
};
|
|
348294
|
-
const _sfc_main
|
|
348431
|
+
const _sfc_main = defineComponent({
|
|
348295
348432
|
name: "",
|
|
348296
348433
|
components: {},
|
|
348297
348434
|
emits: ["ReturnPlay"],
|
|
@@ -348558,15 +348695,15 @@ class Instance extends BaseInstance {
|
|
|
348558
348695
|
//#endregion 业务逻辑 - xxx END
|
|
348559
348696
|
}
|
|
348560
348697
|
const _withScopeId = (n2) => (pushScopeId("data-v-67c2b782"), n2 = n2(), popScopeId(), n2);
|
|
348561
|
-
const _hoisted_1
|
|
348562
|
-
const _hoisted_2
|
|
348698
|
+
const _hoisted_1 = { style: { "height": "100%", "display": "flex" } };
|
|
348699
|
+
const _hoisted_2 = {
|
|
348563
348700
|
key: 0,
|
|
348564
348701
|
style: { "width": "40%" }
|
|
348565
348702
|
};
|
|
348566
|
-
const _hoisted_3
|
|
348567
|
-
const _hoisted_4
|
|
348568
|
-
const _hoisted_5
|
|
348569
|
-
const _hoisted_6
|
|
348703
|
+
const _hoisted_3 = { style: { "margin-top": "20px", "margin-left": "20px" } };
|
|
348704
|
+
const _hoisted_4 = { class: "item" };
|
|
348705
|
+
const _hoisted_5 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "label" }, "回放开始时间:", -1));
|
|
348706
|
+
const _hoisted_6 = { class: "item" };
|
|
348570
348707
|
const _hoisted_7 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createBaseVNode("span", { class: "label" }, "回放结束时间:", -1));
|
|
348571
348708
|
const _hoisted_8 = {
|
|
348572
348709
|
class: "item",
|
|
@@ -348574,14 +348711,14 @@ const _hoisted_8 = {
|
|
|
348574
348711
|
};
|
|
348575
348712
|
const _hoisted_9 = { class: "bg" };
|
|
348576
348713
|
const _hoisted_10 = ["id"];
|
|
348577
|
-
function _sfc_render
|
|
348714
|
+
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
348578
348715
|
const _component_DatePicker = resolveComponent("DatePicker");
|
|
348579
348716
|
const _component_Button = resolveComponent("Button");
|
|
348580
|
-
return openBlock(), createElementBlock("div", _hoisted_1
|
|
348581
|
-
_ctx.isBack ? (openBlock(), createElementBlock("div", _hoisted_2
|
|
348582
|
-
createBaseVNode("div", _hoisted_3
|
|
348583
|
-
createBaseVNode("div", _hoisted_4
|
|
348584
|
-
_hoisted_5
|
|
348717
|
+
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
348718
|
+
_ctx.isBack ? (openBlock(), createElementBlock("div", _hoisted_2, [
|
|
348719
|
+
createBaseVNode("div", _hoisted_3, [
|
|
348720
|
+
createBaseVNode("div", _hoisted_4, [
|
|
348721
|
+
_hoisted_5,
|
|
348585
348722
|
createVNode(_component_DatePicker, {
|
|
348586
348723
|
modelValue: _ctx.Time1,
|
|
348587
348724
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => _ctx.Time1 = $event),
|
|
@@ -348591,7 +348728,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
348591
348728
|
style: { "width": "260px" }
|
|
348592
348729
|
}, null, 8, ["modelValue"])
|
|
348593
348730
|
]),
|
|
348594
|
-
createBaseVNode("div", _hoisted_6
|
|
348731
|
+
createBaseVNode("div", _hoisted_6, [
|
|
348595
348732
|
_hoisted_7,
|
|
348596
348733
|
createVNode(_component_DatePicker, {
|
|
348597
348734
|
modelValue: _ctx.Time2,
|
|
@@ -348645,7 +348782,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
348645
348782
|
])
|
|
348646
348783
|
]);
|
|
348647
348784
|
}
|
|
348648
|
-
const NvAFCareamBack = /* @__PURE__ */ _export_sfc
|
|
348785
|
+
const NvAFCareamBack = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-67c2b782"]]);
|
|
348649
348786
|
const components = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
348650
348787
|
__proto__: null,
|
|
348651
348788
|
DocxTemplat: index$1,
|
|
@@ -351466,7 +351603,7 @@ class ListInstance extends BaseInstance {
|
|
|
351466
351603
|
}
|
|
351467
351604
|
//#endregion Cell 操作 END
|
|
351468
351605
|
}
|
|
351469
|
-
const propDefine
|
|
351606
|
+
const propDefine = {
|
|
351470
351607
|
isSheetGroup: {
|
|
351471
351608
|
// 是否按sheet页分组返回导入数据
|
|
351472
351609
|
// 传入true时则不提供选择sheet页下拉列表,会将所有sheet页数据全部返回
|
|
@@ -351499,7 +351636,7 @@ defineComponent({
|
|
|
351499
351636
|
components: { LogPanel },
|
|
351500
351637
|
emits: ["import"],
|
|
351501
351638
|
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
351502
|
-
props: propDefine
|
|
351639
|
+
props: propDefine,
|
|
351503
351640
|
setup(props, ctx) {
|
|
351504
351641
|
return new ExcelImportInstance(props, ctx);
|
|
351505
351642
|
}
|
|
@@ -351633,143 +351770,6 @@ const install = function(app, opts = {}) {
|
|
|
351633
351770
|
install,
|
|
351634
351771
|
...components
|
|
351635
351772
|
});
|
|
351636
|
-
const propDefine = {
|
|
351637
|
-
linkParam: {
|
|
351638
|
-
// 带入的参数
|
|
351639
|
-
type: String,
|
|
351640
|
-
default: ""
|
|
351641
|
-
},
|
|
351642
|
-
pageInfo: {
|
|
351643
|
-
type: Array,
|
|
351644
|
-
default: () => {
|
|
351645
|
-
}
|
|
351646
|
-
},
|
|
351647
|
-
isHorizontal: {
|
|
351648
|
-
type: Object,
|
|
351649
|
-
default: () => {
|
|
351650
|
-
}
|
|
351651
|
-
}
|
|
351652
|
-
};
|
|
351653
|
-
const _sfc_main = defineComponent({
|
|
351654
|
-
name: "reportView",
|
|
351655
|
-
components: {},
|
|
351656
|
-
emits: [""],
|
|
351657
|
-
// 例如: ['clearRadioRow', 'change', 'delete', 'addchild']
|
|
351658
|
-
props: propDefine,
|
|
351659
|
-
setup(props, ctx) {
|
|
351660
|
-
return new SendDocMgmtTmplInstance(props, ctx);
|
|
351661
|
-
}
|
|
351662
|
-
});
|
|
351663
|
-
class SendDocMgmtTmplInstance extends BaseInstance {
|
|
351664
|
-
constructor(props, ctx) {
|
|
351665
|
-
super();
|
|
351666
|
-
__publicField3(this, "props");
|
|
351667
|
-
__publicField3(this, "ctx");
|
|
351668
|
-
__publicField3(this, "reportshow", ref$1(true));
|
|
351669
|
-
__publicField3(this, "pageInfo", ref$1([]));
|
|
351670
|
-
__publicField3(this, "isHorizontal", ref$1({}));
|
|
351671
|
-
__publicField3(this, "getPicStyle", (item2) => {
|
|
351672
|
-
return {
|
|
351673
|
-
"width": item2.width + "px",
|
|
351674
|
-
"height": item2.height + "px",
|
|
351675
|
-
"left": item2.left + "px",
|
|
351676
|
-
"top": item2.top + "px"
|
|
351677
|
-
};
|
|
351678
|
-
});
|
|
351679
|
-
this.props = props;
|
|
351680
|
-
this.ctx = ctx;
|
|
351681
|
-
this.pageInfo.value = this.props.pageInfo || [];
|
|
351682
|
-
this.isHorizontal.value = this.props.isHorizontal || [];
|
|
351683
|
-
console.log(this.props);
|
|
351684
|
-
this.init();
|
|
351685
|
-
}
|
|
351686
|
-
async init() {
|
|
351687
|
-
onMounted(async () => {
|
|
351688
|
-
});
|
|
351689
|
-
}
|
|
351690
|
-
}
|
|
351691
|
-
const ReportView_vue_vue_type_style_index_0_scoped_e572bde8_lang = "";
|
|
351692
|
-
const _export_sfc = (sfc, props) => {
|
|
351693
|
-
const target = sfc.__vccOpts || sfc;
|
|
351694
|
-
for (const [key2, val] of props) {
|
|
351695
|
-
target[key2] = val;
|
|
351696
|
-
}
|
|
351697
|
-
return target;
|
|
351698
|
-
};
|
|
351699
|
-
const _hoisted_1 = { id: "reportPrintContainer" };
|
|
351700
|
-
const _hoisted_2 = ["id"];
|
|
351701
|
-
const _hoisted_3 = { key: 0 };
|
|
351702
|
-
const _hoisted_4 = ["tr-idx-loop", "td-idx-loop", "tr-index", "td-index", "colspan", "rowspan", "hidden"];
|
|
351703
|
-
const _hoisted_5 = ["innerHTML"];
|
|
351704
|
-
const _hoisted_6 = ["innerHTML"];
|
|
351705
|
-
function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
351706
|
-
return openBlock(), createElementBlock("div", _hoisted_1, [
|
|
351707
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.pageInfo.sheets, (page) => {
|
|
351708
|
-
var _a2, _b;
|
|
351709
|
-
return openBlock(), createElementBlock("div", {
|
|
351710
|
-
class: "reportPrintContainer-box",
|
|
351711
|
-
style: normalizeStyle([{ "background": "#fff", "margin": "20px auto", "border": "1px dashed rgb(204, 204, 204)", "display": "flex", "justify-content": "flex-end", "box-sizing": "border-box" }, _ctx.isHorizontal]),
|
|
351712
|
-
key: page.name
|
|
351713
|
-
}, [
|
|
351714
|
-
createBaseVNode("div", {
|
|
351715
|
-
id: "table_container",
|
|
351716
|
-
style: normalizeStyle([{ "position": "relative" }, { width: Number((_a2 = page.width) == null ? void 0 : _a2.replace("px", "")) + 0 + "px", backgroundColor: "white" }])
|
|
351717
|
-
}, [
|
|
351718
|
-
createBaseVNode("table", {
|
|
351719
|
-
id: "table_" + page.order,
|
|
351720
|
-
style: { borderCollapse: "collapse", margin: "auto", tableLayout: "fixed" }
|
|
351721
|
-
}, [
|
|
351722
|
-
createBaseVNode("tbody", null, [
|
|
351723
|
-
((_b = page.rows) == null ? void 0 : _b.length) > 0 ? (openBlock(), createElementBlock("tr", _hoisted_3, [
|
|
351724
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(page.rows[0].cols, (tdItem, tdIndex) => {
|
|
351725
|
-
return openBlock(), createElementBlock("td", {
|
|
351726
|
-
key: tdIndex,
|
|
351727
|
-
style: normalizeStyle({ width: tdItem.style.width, height: 0 })
|
|
351728
|
-
}, null, 4);
|
|
351729
|
-
}), 128))
|
|
351730
|
-
])) : createCommentVNode("", true),
|
|
351731
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(page.rows, (trItem, trIndex) => {
|
|
351732
|
-
return openBlock(), createElementBlock(Fragment, null, [
|
|
351733
|
-
!trItem.hidden ? (openBlock(), createElementBlock("tr", {
|
|
351734
|
-
style: normalizeStyle({ height: trItem.rowHeight + "px" }),
|
|
351735
|
-
key: trIndex
|
|
351736
|
-
}, [
|
|
351737
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(trItem.cols, (tdItem, tdIndex) => {
|
|
351738
|
-
return openBlock(), createElementBlock("td", {
|
|
351739
|
-
key: tdIndex + 1,
|
|
351740
|
-
"tr-idx-loop": trIndex,
|
|
351741
|
-
"td-idx-loop": tdIndex,
|
|
351742
|
-
"tr-index": tdItem.rowIndex,
|
|
351743
|
-
"td-index": tdItem.colIndex,
|
|
351744
|
-
colspan: tdItem.attribute.colSpan,
|
|
351745
|
-
rowspan: tdItem.attribute.rowSpan,
|
|
351746
|
-
hidden: tdItem.attribute.hidden,
|
|
351747
|
-
style: normalizeStyle(tdItem.style)
|
|
351748
|
-
}, [
|
|
351749
|
-
createBaseVNode("span", {
|
|
351750
|
-
innerHTML: tdItem.colVal,
|
|
351751
|
-
style: { "height": "100%" }
|
|
351752
|
-
}, null, 8, _hoisted_5)
|
|
351753
|
-
], 12, _hoisted_4);
|
|
351754
|
-
}), 128))
|
|
351755
|
-
], 4)) : createCommentVNode("", true)
|
|
351756
|
-
], 64);
|
|
351757
|
-
}), 256))
|
|
351758
|
-
])
|
|
351759
|
-
], 8, _hoisted_2),
|
|
351760
|
-
(openBlock(true), createElementBlock(Fragment, null, renderList(page.textBox, (item2, index2) => {
|
|
351761
|
-
return openBlock(), createElementBlock("div", {
|
|
351762
|
-
innerHTML: item2.innerHtml,
|
|
351763
|
-
key: index2,
|
|
351764
|
-
style: normalizeStyle([{ "position": "absolute" }, _ctx.getPicStyle(item2)])
|
|
351765
|
-
}, null, 12, _hoisted_6);
|
|
351766
|
-
}), 128))
|
|
351767
|
-
], 4)
|
|
351768
|
-
], 4);
|
|
351769
|
-
}), 128))
|
|
351770
|
-
]);
|
|
351771
|
-
}
|
|
351772
|
-
const ReportView = /* @__PURE__ */ _export_sfc(_sfc_main, [["render", _sfc_render], ["__scopeId", "data-v-e572bde8"]]);
|
|
351773
351773
|
class reportTool extends BaseInstance {
|
|
351774
351774
|
constructor(direction, pageSize) {
|
|
351775
351775
|
super();
|
|
@@ -351991,7 +351991,6 @@ class reportTool extends BaseInstance {
|
|
|
351991
351991
|
page.data.forEach((row, rowIndex) => {
|
|
351992
351992
|
let cols = [];
|
|
351993
351993
|
row.forEach((tdObj, colIndex) => {
|
|
351994
|
-
var _a3;
|
|
351995
351994
|
if (this.utilities.isNull(tdObj)) {
|
|
351996
351995
|
tdObj = {
|
|
351997
351996
|
ff: "宋体",
|
|
@@ -352015,8 +352014,7 @@ class reportTool extends BaseInstance {
|
|
|
352015
352014
|
}
|
|
352016
352015
|
this.formatProp(tdObj);
|
|
352017
352016
|
let tag = tdObj.flag.tag;
|
|
352018
|
-
let
|
|
352019
|
-
let fieldName = parm ? (_a3 = JSON.parse(parm)) == null ? void 0 : _a3.FieldCode : "";
|
|
352017
|
+
let fieldName = tag ? tag == null ? void 0 : tag.FieldCode : "";
|
|
352020
352018
|
const currentTDMergeInfo = this.getMergeInfo(page, rowIndex, colIndex);
|
|
352021
352019
|
const colWidth = this.getLen(colIndex, currentTDMergeInfo.colSpan, layoutData.columnWidths);
|
|
352022
352020
|
const colHeight = this.getLen(rowIndex, currentTDMergeInfo.rowSpan, layoutData.rowHeights);
|
|
@@ -352427,7 +352425,7 @@ class reportTool extends BaseInstance {
|
|
|
352427
352425
|
}
|
|
352428
352426
|
/**
|
|
352429
352427
|
* 根据字段赋值
|
|
352430
|
-
* @param fieldName
|
|
352428
|
+
* @param fieldName 字段名
|
|
352431
352429
|
* @param value 数据
|
|
352432
352430
|
* @param sheetHandle 页码-从0开始
|
|
352433
352431
|
* @returns
|
|
@@ -352464,7 +352462,7 @@ class reportTool extends BaseInstance {
|
|
|
352464
352462
|
}
|
|
352465
352463
|
/**
|
|
352466
352464
|
* 根据字段名添加图片
|
|
352467
|
-
* @param
|
|
352465
|
+
* @param fieldName 字段名
|
|
352468
352466
|
* @param base64 图片base64码
|
|
352469
352467
|
* @param sheetHandle 页码-从0开始
|
|
352470
352468
|
* @returns
|
|
@@ -352600,5 +352598,6 @@ class reportTool extends BaseInstance {
|
|
|
352600
352598
|
}
|
|
352601
352599
|
}
|
|
352602
352600
|
export {
|
|
352601
|
+
ReportView,
|
|
352603
352602
|
reportTool
|
|
352604
352603
|
};
|