hoeditor-web 3.1.45 → 3.1.46
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/lib/hoeditor.css +17883 -1
- package/lib/hoeditor.umd.js +167 -114
- package/lib/hoeditor.umd.min.js +12 -12
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9491,7 +9491,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9491
9491
|
|
|
9492
9492
|
/***/ }),
|
|
9493
9493
|
|
|
9494
|
-
/***/
|
|
9494
|
+
/***/ 43284:
|
|
9495
9495
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9496
9496
|
|
|
9497
9497
|
"use strict";
|
|
@@ -9511,7 +9511,7 @@ var es_string_includes = __webpack_require__(32023);
|
|
|
9511
9511
|
var es_regexp_exec = __webpack_require__(74916);
|
|
9512
9512
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
|
|
9513
9513
|
var es_string_replace = __webpack_require__(15306);
|
|
9514
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9514
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=3e8ee4b5&
|
|
9515
9515
|
|
|
9516
9516
|
|
|
9517
9517
|
|
|
@@ -9958,7 +9958,7 @@ var render = function render() {
|
|
|
9958
9958
|
};
|
|
9959
9959
|
var staticRenderFns = [];
|
|
9960
9960
|
|
|
9961
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
9961
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=3e8ee4b5&
|
|
9962
9962
|
|
|
9963
9963
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
|
|
9964
9964
|
var toConsumableArray = __webpack_require__(61748);
|
|
@@ -12393,6 +12393,7 @@ var columns = [{
|
|
|
12393
12393
|
var node = null;
|
|
12394
12394
|
if (this.selectMarkStyle.open && this.selectMarkStyle.dataid) {
|
|
12395
12395
|
node = hoEditorFactory.vueController.getNodeByDataID('main', this.selectMarkStyle.dataid);
|
|
12396
|
+
return node;
|
|
12396
12397
|
} else {
|
|
12397
12398
|
var _hoEditorFactory$vueC;
|
|
12398
12399
|
node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(this.endPath)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
@@ -12400,17 +12401,17 @@ var columns = [{
|
|
|
12400
12401
|
if (node instanceof MarkNode/* MarkNode */.j || node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
12401
12402
|
var parentNode = node.parentNode;
|
|
12402
12403
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
12403
|
-
|
|
12404
|
+
return parentNode;
|
|
12404
12405
|
} else {
|
|
12405
|
-
|
|
12406
|
+
return node;
|
|
12406
12407
|
}
|
|
12407
12408
|
} else if (node instanceof TextNode/* TextNode */.R) {
|
|
12408
12409
|
var _parentNode = node.parentNode;
|
|
12409
12410
|
if (_parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
12410
|
-
|
|
12411
|
+
return _parentNode;
|
|
12411
12412
|
}
|
|
12412
12413
|
} else if (node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof DownListNode/* DownListNode */.yF) {
|
|
12413
|
-
|
|
12414
|
+
return node;
|
|
12414
12415
|
}
|
|
12415
12416
|
return value;
|
|
12416
12417
|
},
|
|
@@ -12856,10 +12857,10 @@ var columns = [{
|
|
|
12856
12857
|
});
|
|
12857
12858
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
12858
12859
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
12859
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12860
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=3e8ee4b5&prod&lang=less&
|
|
12860
12861
|
// extracted by mini-css-extract-plugin
|
|
12861
12862
|
|
|
12862
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
12863
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=3e8ee4b5&prod&lang=less&
|
|
12863
12864
|
|
|
12864
12865
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
12865
12866
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -38965,7 +38966,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
38965
38966
|
}
|
|
38966
38967
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
38967
38968
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
38968
|
-
htmlText.text =
|
|
38969
|
+
htmlText.text = svgBox === null || svgBox === void 0 ? void 0 : svgBox.innerHTML;
|
|
38969
38970
|
reslove && reslove('printend');
|
|
38970
38971
|
case 44:
|
|
38971
38972
|
case "end":
|
|
@@ -178099,7 +178100,7 @@ var map = {
|
|
|
178099
178100
|
"./pageInfoes/PageInfoes.vue": 99749,
|
|
178100
178101
|
"./paragraph/ParagraphDialog.vue": 58874,
|
|
178101
178102
|
"./poperSelect/PoperMark.vue": 20734,
|
|
178102
|
-
"./poperSelect/PoperSelect.vue":
|
|
178103
|
+
"./poperSelect/PoperSelect.vue": 43284,
|
|
178103
178104
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
178104
178105
|
"./popers/Poper.vue": 57937,
|
|
178105
178106
|
"./popers/Title.vue": 85516,
|
|
@@ -215554,8 +215555,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
215554
215555
|
var es_number_constructor = __webpack_require__(9653);
|
|
215555
215556
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
215556
215557
|
var es_json_stringify = __webpack_require__(38862);
|
|
215557
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
215558
|
-
var
|
|
215558
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=e388825c&
|
|
215559
|
+
var HoDocvue_type_template_id_e388825c_render = function render() {
|
|
215559
215560
|
var _vm = this,
|
|
215560
215561
|
_c = _vm._self._c;
|
|
215561
215562
|
return _c('div', {
|
|
@@ -215739,7 +215740,7 @@ var HoDocvue_type_template_id_beccc54c_render = function render() {
|
|
|
215739
215740
|
}
|
|
215740
215741
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
215741
215742
|
};
|
|
215742
|
-
var
|
|
215743
|
+
var HoDocvue_type_template_id_e388825c_staticRenderFns = [];
|
|
215743
215744
|
|
|
215744
215745
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
215745
215746
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -217339,7 +217340,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
|
|
|
217339
217340
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
217340
217341
|
var plugins_util = __webpack_require__(62783);
|
|
217341
217342
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
|
|
217342
|
-
var PoperSelect = __webpack_require__(
|
|
217343
|
+
var PoperSelect = __webpack_require__(43284);
|
|
217343
217344
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
217344
217345
|
var PoperMark = __webpack_require__(20734);
|
|
217345
217346
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218744,7 +218745,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
218744
218745
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218745
218746
|
var ParagraphNode = __webpack_require__(67945);
|
|
218746
218747
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218747
|
-
/* harmony default export */ var version = ('3.1.
|
|
218748
|
+
/* harmony default export */ var version = ('3.1.46');
|
|
218748
218749
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218749
218750
|
var PoperTipText = __webpack_require__(50987);
|
|
218750
218751
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219321,16 +219322,18 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219321
219322
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
219322
219323
|
parentNode = node;
|
|
219323
219324
|
} else {
|
|
219324
|
-
parentNode = node.parentNode;
|
|
219325
|
+
parentNode = node === null || node === void 0 ? void 0 : node.parentNode;
|
|
219325
219326
|
}
|
|
219326
219327
|
var index = 5;
|
|
219327
219328
|
var flag = false;
|
|
219328
219329
|
while (!flag && index >= 0) {
|
|
219329
|
-
index--;
|
|
219330
|
-
flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes("<元素>");
|
|
219331
219330
|
if (!flag) {
|
|
219332
|
-
|
|
219333
|
-
|
|
219331
|
+
index--;
|
|
219332
|
+
flag = parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && parentNode.inputFieldType == 1 && parentNode.downListProperty.listItems.includes("<元素>");
|
|
219333
|
+
if (!flag) {
|
|
219334
|
+
var _parentNode2;
|
|
219335
|
+
parentNode = (_parentNode2 = parentNode) === null || _parentNode2 === void 0 ? void 0 : _parentNode2.parentNode;
|
|
219336
|
+
}
|
|
219334
219337
|
}
|
|
219335
219338
|
}
|
|
219336
219339
|
return parentNode;
|
|
@@ -219636,10 +219639,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219636
219639
|
});
|
|
219637
219640
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
219638
219641
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
219639
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219642
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=e388825c&prod&lang=less&
|
|
219640
219643
|
// extracted by mini-css-extract-plugin
|
|
219641
219644
|
|
|
219642
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
219645
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=e388825c&prod&lang=less&
|
|
219643
219646
|
|
|
219644
219647
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
219645
219648
|
|
|
@@ -219652,8 +219655,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
219652
219655
|
|
|
219653
219656
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219654
219657
|
components_HoDocvue_type_script_lang_js_,
|
|
219655
|
-
|
|
219656
|
-
|
|
219658
|
+
HoDocvue_type_template_id_e388825c_render,
|
|
219659
|
+
HoDocvue_type_template_id_e388825c_staticRenderFns,
|
|
219657
219660
|
false,
|
|
219658
219661
|
null,
|
|
219659
219662
|
null,
|
|
@@ -231392,22 +231395,47 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231392
231395
|
return getBase64;
|
|
231393
231396
|
}()
|
|
231394
231397
|
}, {
|
|
231395
|
-
key: "
|
|
231398
|
+
key: "getSvg",
|
|
231396
231399
|
value: function () {
|
|
231397
|
-
var
|
|
231398
|
-
var hoEditorFactory,
|
|
231400
|
+
var _getSvg = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10() {
|
|
231401
|
+
var hoEditorFactory, text;
|
|
231399
231402
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context11) {
|
|
231400
231403
|
while (1) switch (_context11.prev = _context11.next) {
|
|
231404
|
+
case 0:
|
|
231405
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231406
|
+
_context11.next = 3;
|
|
231407
|
+
return hoEditorFactory.printController.createHtml();
|
|
231408
|
+
case 3:
|
|
231409
|
+
text = _context11.sent;
|
|
231410
|
+
return _context11.abrupt("return", text);
|
|
231411
|
+
case 5:
|
|
231412
|
+
case "end":
|
|
231413
|
+
return _context11.stop();
|
|
231414
|
+
}
|
|
231415
|
+
}, _callee10, this);
|
|
231416
|
+
}));
|
|
231417
|
+
function getSvg() {
|
|
231418
|
+
return _getSvg.apply(this, arguments);
|
|
231419
|
+
}
|
|
231420
|
+
return getSvg;
|
|
231421
|
+
}()
|
|
231422
|
+
}, {
|
|
231423
|
+
key: "isSetFontFamily",
|
|
231424
|
+
value: function () {
|
|
231425
|
+
var _isSetFontFamily = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee11(callback) {
|
|
231426
|
+
var hoEditorFactory, font;
|
|
231427
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context12) {
|
|
231428
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
231401
231429
|
case 0:
|
|
231402
231430
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
231403
231431
|
if (hoEditorFactory.printController.isSetFont) {
|
|
231404
|
-
|
|
231432
|
+
_context12.next = 8;
|
|
231405
231433
|
break;
|
|
231406
231434
|
}
|
|
231407
|
-
|
|
231435
|
+
_context12.next = 4;
|
|
231408
231436
|
return hoEditorFactory.vueController.hoLocalStorage().loadFontString();
|
|
231409
231437
|
case 4:
|
|
231410
|
-
font =
|
|
231438
|
+
font = _context12.sent;
|
|
231411
231439
|
if (font) {
|
|
231412
231440
|
hoEditorFactory.printController.setjsPDFFonts(font);
|
|
231413
231441
|
callback && callback();
|
|
@@ -231415,15 +231443,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
231415
231443
|
font = '';
|
|
231416
231444
|
}, 0);
|
|
231417
231445
|
}
|
|
231418
|
-
|
|
231446
|
+
_context12.next = 9;
|
|
231419
231447
|
break;
|
|
231420
231448
|
case 8:
|
|
231421
231449
|
callback && callback();
|
|
231422
231450
|
case 9:
|
|
231423
231451
|
case "end":
|
|
231424
|
-
return
|
|
231452
|
+
return _context12.stop();
|
|
231425
231453
|
}
|
|
231426
|
-
},
|
|
231454
|
+
}, _callee11, this);
|
|
231427
231455
|
}));
|
|
231428
231456
|
function isSetFontFamily(_x25) {
|
|
231429
231457
|
return _isSetFontFamily.apply(this, arguments);
|
|
@@ -233874,10 +233902,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233874
233902
|
}, {
|
|
233875
233903
|
key: "importWordFile",
|
|
233876
233904
|
value: function () {
|
|
233877
|
-
var _importWordFile = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
233905
|
+
var _importWordFile = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee12(fileStr) {
|
|
233878
233906
|
var hoEditorFactory, _curDomRange, startPath, endPath, changingEvent, nodes;
|
|
233879
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
233880
|
-
while (1) switch (
|
|
233907
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee12$(_context13) {
|
|
233908
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
233881
233909
|
case 0:
|
|
233882
233910
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233883
233911
|
hoEditorFactory.isThrowError = false;
|
|
@@ -233886,10 +233914,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233886
233914
|
endPath = _curDomRange.normalize().endPath;
|
|
233887
233915
|
changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.openLocalFiles);
|
|
233888
233916
|
if (!hoEditorFactory.docTree.changing(changingEvent)) {
|
|
233889
|
-
|
|
233917
|
+
_context13.next = 14;
|
|
233890
233918
|
break;
|
|
233891
233919
|
}
|
|
233892
|
-
|
|
233920
|
+
_context13.next = 9;
|
|
233893
233921
|
return hoEditorFactory.docController.initBlankDoc();
|
|
233894
233922
|
case 9:
|
|
233895
233923
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
@@ -233901,9 +233929,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
233901
233929
|
hoEditorFactory.undoService.stack = [];
|
|
233902
233930
|
case 15:
|
|
233903
233931
|
case "end":
|
|
233904
|
-
return
|
|
233932
|
+
return _context13.stop();
|
|
233905
233933
|
}
|
|
233906
|
-
},
|
|
233934
|
+
}, _callee12, this);
|
|
233907
233935
|
}));
|
|
233908
233936
|
function importWordFile(_x26) {
|
|
233909
233937
|
return _importWordFile.apply(this, arguments);
|
|
@@ -237647,6 +237675,7 @@ var jspdf = __webpack_require__(77937);
|
|
|
237647
237675
|
|
|
237648
237676
|
|
|
237649
237677
|
|
|
237678
|
+
|
|
237650
237679
|
var PrintController = /*#__PURE__*/function () {
|
|
237651
237680
|
function PrintController(hoEditorFactoryID) {
|
|
237652
237681
|
(0,esm_classCallCheck/* default */.Z)(this, PrintController);
|
|
@@ -237675,9 +237704,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
237675
237704
|
* 生成html
|
|
237676
237705
|
*/
|
|
237677
237706
|
}, {
|
|
237678
|
-
key: "
|
|
237707
|
+
key: "createSvg",
|
|
237679
237708
|
value: function () {
|
|
237680
|
-
var
|
|
237709
|
+
var _createSvg = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
|
|
237681
237710
|
var _this = this;
|
|
237682
237711
|
var hoEditorFactory, path, beforePrintStatus, xml, htmlText, hPromise;
|
|
237683
237712
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
@@ -237720,6 +237749,30 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
237720
237749
|
}
|
|
237721
237750
|
}, _callee, this);
|
|
237722
237751
|
}));
|
|
237752
|
+
function createSvg() {
|
|
237753
|
+
return _createSvg.apply(this, arguments);
|
|
237754
|
+
}
|
|
237755
|
+
return createSvg;
|
|
237756
|
+
}()
|
|
237757
|
+
}, {
|
|
237758
|
+
key: "createHtml",
|
|
237759
|
+
value: function () {
|
|
237760
|
+
var _createHtml = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2() {
|
|
237761
|
+
var text, hoEditorFactory, orientation, printStyle;
|
|
237762
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context2) {
|
|
237763
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
237764
|
+
case 0:
|
|
237765
|
+
text = this.createSvg();
|
|
237766
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
237767
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
237768
|
+
printStyle = (0,plugins_util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
237769
|
+
return _context2.abrupt("return", "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat(text, "</body>\n </html>\n "));
|
|
237770
|
+
case 5:
|
|
237771
|
+
case "end":
|
|
237772
|
+
return _context2.stop();
|
|
237773
|
+
}
|
|
237774
|
+
}, _callee2, this);
|
|
237775
|
+
}));
|
|
237723
237776
|
function createHtml() {
|
|
237724
237777
|
return _createHtml.apply(this, arguments);
|
|
237725
237778
|
}
|
|
@@ -237731,18 +237784,18 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
237731
237784
|
}, {
|
|
237732
237785
|
key: "createBase64",
|
|
237733
237786
|
value: function () {
|
|
237734
|
-
var _createBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
237787
|
+
var _createBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee3(callback) {
|
|
237735
237788
|
var _this2 = this;
|
|
237736
237789
|
var hoEditorFactory, path, beforePrintStatus, xml, orientation, format, options, hPromise, base64;
|
|
237737
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
237738
|
-
while (1) switch (
|
|
237790
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee3$(_context3) {
|
|
237791
|
+
while (1) switch (_context3.prev = _context3.next) {
|
|
237739
237792
|
case 0:
|
|
237740
237793
|
if (this._isSetFont) {
|
|
237741
|
-
|
|
237794
|
+
_context3.next = 3;
|
|
237742
237795
|
break;
|
|
237743
237796
|
}
|
|
237744
237797
|
this._waitSavepdf = true;
|
|
237745
|
-
return
|
|
237798
|
+
return _context3.abrupt("return");
|
|
237746
237799
|
case 3:
|
|
237747
237800
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID); // 保存打印前文档状态 和 内容
|
|
237748
237801
|
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
@@ -237772,7 +237825,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
237772
237825
|
PrintStatus/* Print */.Kh.createPDFBase64(_this2._hoEditorFactoryID, resolve, _this2.PDF);
|
|
237773
237826
|
});
|
|
237774
237827
|
});
|
|
237775
|
-
|
|
237828
|
+
_context3.next = 17;
|
|
237776
237829
|
return hPromise.then(function (pageNumber) {
|
|
237777
237830
|
// 恢复文档状态 和 内容;
|
|
237778
237831
|
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
@@ -237801,23 +237854,23 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
237801
237854
|
});
|
|
237802
237855
|
});
|
|
237803
237856
|
case 17:
|
|
237804
|
-
base64 =
|
|
237857
|
+
base64 = _context3.sent;
|
|
237805
237858
|
if (!base64) {
|
|
237806
|
-
|
|
237859
|
+
_context3.next = 21;
|
|
237807
237860
|
break;
|
|
237808
237861
|
}
|
|
237809
237862
|
setTimeout(function () {
|
|
237810
237863
|
hoEditorFactory.vueController.moveCaretToPath(path);
|
|
237811
237864
|
_this2.clearJsPDF();
|
|
237812
237865
|
}, 0);
|
|
237813
|
-
return
|
|
237866
|
+
return _context3.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''));
|
|
237814
237867
|
case 21:
|
|
237815
|
-
return
|
|
237868
|
+
return _context3.abrupt("return", null);
|
|
237816
237869
|
case 22:
|
|
237817
237870
|
case "end":
|
|
237818
|
-
return
|
|
237871
|
+
return _context3.stop();
|
|
237819
237872
|
}
|
|
237820
|
-
},
|
|
237873
|
+
}, _callee3, this);
|
|
237821
237874
|
}));
|
|
237822
237875
|
function createBase64(_x) {
|
|
237823
237876
|
return _createBase.apply(this, arguments);
|
|
@@ -237968,31 +238021,31 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
237968
238021
|
if (error.length > 0) return '指定页输入超出文档页范围';
|
|
237969
238022
|
}
|
|
237970
238023
|
var setStatus = new Promise( /*#__PURE__*/function () {
|
|
237971
|
-
var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
237972
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
237973
|
-
while (1) switch (
|
|
238024
|
+
var _ref = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee4(resolve, reject) {
|
|
238025
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee4$(_context4) {
|
|
238026
|
+
while (1) switch (_context4.prev = _context4.next) {
|
|
237974
238027
|
case 0:
|
|
237975
|
-
|
|
238028
|
+
_context4.prev = 0;
|
|
237976
238029
|
hoEditorFactory.printStatus.printAppoint = '';
|
|
237977
238030
|
hoEditorFactory.printStatus.printMode = printMode ? printMode : 0;
|
|
237978
238031
|
if (printMode === 3 && printAppoint) {
|
|
237979
238032
|
hoEditorFactory.printStatus.printAppoint = printAppoint;
|
|
237980
238033
|
}
|
|
237981
238034
|
hoEditorFactory.drawTree.paintStatus = DrawTree/* PaintState */.Dh.psPreview;
|
|
237982
|
-
|
|
238035
|
+
_context4.next = 7;
|
|
237983
238036
|
return hoEditorFactory.drawTree.rebuildAllDrawLine(false, resolve);
|
|
237984
238037
|
case 7:
|
|
237985
|
-
|
|
238038
|
+
_context4.next = 12;
|
|
237986
238039
|
break;
|
|
237987
238040
|
case 9:
|
|
237988
|
-
|
|
237989
|
-
|
|
238041
|
+
_context4.prev = 9;
|
|
238042
|
+
_context4.t0 = _context4["catch"](0);
|
|
237990
238043
|
reject(false);
|
|
237991
238044
|
case 12:
|
|
237992
238045
|
case "end":
|
|
237993
|
-
return
|
|
238046
|
+
return _context4.stop();
|
|
237994
238047
|
}
|
|
237995
|
-
},
|
|
238048
|
+
}, _callee4, null, [[0, 9]]);
|
|
237996
238049
|
}));
|
|
237997
238050
|
return function (_x2, _x3) {
|
|
237998
238051
|
return _ref.apply(this, arguments);
|
|
@@ -238113,11 +238166,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238113
238166
|
}, {
|
|
238114
238167
|
key: "mergeXmlToPrintPDFNew",
|
|
238115
238168
|
value: function () {
|
|
238116
|
-
var _mergeXmlToPrintPDFNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238169
|
+
var _mergeXmlToPrintPDFNew = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee6(xmlInfoes, callback) {
|
|
238117
238170
|
var _this5 = this;
|
|
238118
238171
|
var list, positionY, hoEditorFactory, beforePrintStatus, xml, hPromise, lastPrintPosition;
|
|
238119
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238120
|
-
while (1) switch (
|
|
238172
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee6$(_context6) {
|
|
238173
|
+
while (1) switch (_context6.prev = _context6.next) {
|
|
238121
238174
|
case 0:
|
|
238122
238175
|
console.time('连续打印总用时');
|
|
238123
238176
|
list = [];
|
|
@@ -238157,10 +238210,10 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238157
238210
|
console.timeEnd('连续查看病历合并总用时');
|
|
238158
238211
|
console.time('生成pdf用时');
|
|
238159
238212
|
return new Promise( /*#__PURE__*/function () {
|
|
238160
|
-
var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238213
|
+
var _ref2 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee5(resolve) {
|
|
238161
238214
|
var orientation, format, pageSize, options;
|
|
238162
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238163
|
-
while (1) switch (
|
|
238215
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee5$(_context5) {
|
|
238216
|
+
while (1) switch (_context5.prev = _context5.next) {
|
|
238164
238217
|
case 0:
|
|
238165
238218
|
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
238166
238219
|
format = [hoEditorFactory.pageProperty.widthPixes, hoEditorFactory.pageProperty.heightPixes];
|
|
@@ -238184,16 +238237,16 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238184
238237
|
PrintStatus/* Print */.Kh.printToPDF(_this5._hoEditorFactoryID, _this5.PDF, undefined, undefined, resolve, positionY, format);
|
|
238185
238238
|
case 9:
|
|
238186
238239
|
case "end":
|
|
238187
|
-
return
|
|
238240
|
+
return _context5.stop();
|
|
238188
238241
|
}
|
|
238189
|
-
},
|
|
238242
|
+
}, _callee5);
|
|
238190
238243
|
}));
|
|
238191
238244
|
return function (_x6) {
|
|
238192
238245
|
return _ref2.apply(this, arguments);
|
|
238193
238246
|
};
|
|
238194
238247
|
}());
|
|
238195
238248
|
});
|
|
238196
|
-
|
|
238249
|
+
_context6.next = 17;
|
|
238197
238250
|
return hPromise.then(function (res) {
|
|
238198
238251
|
if (res) {
|
|
238199
238252
|
console.timeEnd('生成pdf用时');
|
|
@@ -238247,23 +238300,23 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238247
238300
|
}
|
|
238248
238301
|
});
|
|
238249
238302
|
case 17:
|
|
238250
|
-
lastPrintPosition =
|
|
238303
|
+
lastPrintPosition = _context6.sent;
|
|
238251
238304
|
if (!lastPrintPosition) {
|
|
238252
|
-
|
|
238305
|
+
_context6.next = 20;
|
|
238253
238306
|
break;
|
|
238254
238307
|
}
|
|
238255
|
-
return
|
|
238308
|
+
return _context6.abrupt("return", {
|
|
238256
238309
|
startPageNum: lastPrintPosition[0],
|
|
238257
238310
|
pageNum: lastPrintPosition[1],
|
|
238258
238311
|
positionY: lastPrintPosition[2]
|
|
238259
238312
|
});
|
|
238260
238313
|
case 20:
|
|
238261
|
-
return
|
|
238314
|
+
return _context6.abrupt("return", null);
|
|
238262
238315
|
case 21:
|
|
238263
238316
|
case "end":
|
|
238264
|
-
return
|
|
238317
|
+
return _context6.stop();
|
|
238265
238318
|
}
|
|
238266
|
-
},
|
|
238319
|
+
}, _callee6, this);
|
|
238267
238320
|
}));
|
|
238268
238321
|
function mergeXmlToPrintPDFNew(_x4, _x5) {
|
|
238269
238322
|
return _mergeXmlToPrintPDFNew.apply(this, arguments);
|
|
@@ -238278,11 +238331,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238278
238331
|
}, {
|
|
238279
238332
|
key: "pintAllToPDF",
|
|
238280
238333
|
value: function () {
|
|
238281
|
-
var _pintAllToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238334
|
+
var _pintAllToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee9(xmlList, callback, params) {
|
|
238282
238335
|
var _this6 = this;
|
|
238283
238336
|
var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, options, pageNumber, toPrint, createSvg;
|
|
238284
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238285
|
-
while (1) switch (
|
|
238337
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee9$(_context9) {
|
|
238338
|
+
while (1) switch (_context9.prev = _context9.next) {
|
|
238286
238339
|
case 0:
|
|
238287
238340
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238288
238341
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
@@ -238304,9 +238357,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238304
238357
|
value: 0
|
|
238305
238358
|
};
|
|
238306
238359
|
toPrint = /*#__PURE__*/function () {
|
|
238307
|
-
var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238308
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238309
|
-
while (1) switch (
|
|
238360
|
+
var _ref3 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee7() {
|
|
238361
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee7$(_context7) {
|
|
238362
|
+
while (1) switch (_context7.prev = _context7.next) {
|
|
238310
238363
|
case 0:
|
|
238311
238364
|
if (params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid)) {
|
|
238312
238365
|
PrintStatus/* Print */.Kh.printAllNew(_this6._hoEditorFactoryID, createSvg, _this6.PDF, position, true, pageNumber);
|
|
@@ -238315,19 +238368,19 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238315
238368
|
}
|
|
238316
238369
|
case 1:
|
|
238317
238370
|
case "end":
|
|
238318
|
-
return
|
|
238371
|
+
return _context7.stop();
|
|
238319
238372
|
}
|
|
238320
|
-
},
|
|
238373
|
+
}, _callee7);
|
|
238321
238374
|
}));
|
|
238322
238375
|
return function toPrint() {
|
|
238323
238376
|
return _ref3.apply(this, arguments);
|
|
238324
238377
|
};
|
|
238325
238378
|
}();
|
|
238326
238379
|
createSvg = /*#__PURE__*/function () {
|
|
238327
|
-
var _ref4 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238380
|
+
var _ref4 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee8() {
|
|
238328
238381
|
var otherPageNumber, i, _this6$PDF, _this6$PDF2, name;
|
|
238329
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238330
|
-
while (1) switch (
|
|
238382
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee8$(_context8) {
|
|
238383
|
+
while (1) switch (_context8.prev = _context8.next) {
|
|
238331
238384
|
case 0:
|
|
238332
238385
|
xmlIndex++;
|
|
238333
238386
|
if (xmlIndex <= xmlList.length - 1) {
|
|
@@ -238393,9 +238446,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238393
238446
|
}
|
|
238394
238447
|
case 2:
|
|
238395
238448
|
case "end":
|
|
238396
|
-
return
|
|
238449
|
+
return _context8.stop();
|
|
238397
238450
|
}
|
|
238398
|
-
},
|
|
238451
|
+
}, _callee8);
|
|
238399
238452
|
}));
|
|
238400
238453
|
return function createSvg() {
|
|
238401
238454
|
return _ref4.apply(this, arguments);
|
|
@@ -238404,9 +238457,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238404
238457
|
createSvg();
|
|
238405
238458
|
case 16:
|
|
238406
238459
|
case "end":
|
|
238407
|
-
return
|
|
238460
|
+
return _context9.stop();
|
|
238408
238461
|
}
|
|
238409
|
-
},
|
|
238462
|
+
}, _callee9, this);
|
|
238410
238463
|
}));
|
|
238411
238464
|
function pintAllToPDF(_x7, _x8, _x9) {
|
|
238412
238465
|
return _pintAllToPDF.apply(this, arguments);
|
|
@@ -238421,11 +238474,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238421
238474
|
}, {
|
|
238422
238475
|
key: "pintAllToPDFBase64",
|
|
238423
238476
|
value: function () {
|
|
238424
|
-
var _pintAllToPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238477
|
+
var _pintAllToPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee12(xmlList, callback, params) {
|
|
238425
238478
|
var _this7 = this;
|
|
238426
238479
|
var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, currentName, pdfList, options, toPrint, createSvg;
|
|
238427
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238428
|
-
while (1) switch (
|
|
238480
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee12$(_context12) {
|
|
238481
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
238429
238482
|
case 0:
|
|
238430
238483
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
238431
238484
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
@@ -238446,26 +238499,26 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238446
238499
|
this.PDF = null;
|
|
238447
238500
|
this.PDF = new jspdf/* default */.ZP(options);
|
|
238448
238501
|
toPrint = /*#__PURE__*/function () {
|
|
238449
|
-
var _ref5 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238502
|
+
var _ref5 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10() {
|
|
238450
238503
|
var emrOptions, _this7$PDF;
|
|
238451
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238452
|
-
while (1) switch (
|
|
238504
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context10) {
|
|
238505
|
+
while (1) switch (_context10.prev = _context10.next) {
|
|
238453
238506
|
case 0:
|
|
238454
238507
|
emrOptions = {
|
|
238455
238508
|
name: hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档',
|
|
238456
238509
|
continuousid: continuousid
|
|
238457
238510
|
};
|
|
238458
238511
|
if (!(params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid))) {
|
|
238459
|
-
|
|
238512
|
+
_context10.next = 6;
|
|
238460
238513
|
break;
|
|
238461
238514
|
}
|
|
238462
|
-
|
|
238515
|
+
_context10.next = 4;
|
|
238463
238516
|
return PrintStatus/* Print */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position, true);
|
|
238464
238517
|
case 4:
|
|
238465
|
-
|
|
238518
|
+
_context10.next = 8;
|
|
238466
238519
|
break;
|
|
238467
238520
|
case 6:
|
|
238468
|
-
|
|
238521
|
+
_context10.next = 8;
|
|
238469
238522
|
return PrintStatus/* Print */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position);
|
|
238470
238523
|
case 8:
|
|
238471
238524
|
if (!params.mergePDF) {
|
|
@@ -238482,19 +238535,19 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238482
238535
|
}
|
|
238483
238536
|
case 9:
|
|
238484
238537
|
case "end":
|
|
238485
|
-
return
|
|
238538
|
+
return _context10.stop();
|
|
238486
238539
|
}
|
|
238487
|
-
},
|
|
238540
|
+
}, _callee10);
|
|
238488
238541
|
}));
|
|
238489
238542
|
return function toPrint() {
|
|
238490
238543
|
return _ref5.apply(this, arguments);
|
|
238491
238544
|
};
|
|
238492
238545
|
}();
|
|
238493
238546
|
createSvg = /*#__PURE__*/function () {
|
|
238494
|
-
var _ref6 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
238547
|
+
var _ref6 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee11() {
|
|
238495
238548
|
var _this7$PDF2;
|
|
238496
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
238497
|
-
while (1) switch (
|
|
238549
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context11) {
|
|
238550
|
+
while (1) switch (_context11.prev = _context11.next) {
|
|
238498
238551
|
case 0:
|
|
238499
238552
|
xmlIndex++;
|
|
238500
238553
|
currentName = xmlList[xmlIndex - 1] ? xmlList[xmlIndex - 1][5] : '';
|
|
@@ -238562,9 +238615,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238562
238615
|
}
|
|
238563
238616
|
case 3:
|
|
238564
238617
|
case "end":
|
|
238565
|
-
return
|
|
238618
|
+
return _context11.stop();
|
|
238566
238619
|
}
|
|
238567
|
-
},
|
|
238620
|
+
}, _callee11);
|
|
238568
238621
|
}));
|
|
238569
238622
|
return function createSvg() {
|
|
238570
238623
|
return _ref6.apply(this, arguments);
|
|
@@ -238573,9 +238626,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
238573
238626
|
createSvg();
|
|
238574
238627
|
case 17:
|
|
238575
238628
|
case "end":
|
|
238576
|
-
return
|
|
238629
|
+
return _context12.stop();
|
|
238577
238630
|
}
|
|
238578
|
-
},
|
|
238631
|
+
}, _callee12, this);
|
|
238579
238632
|
}));
|
|
238580
238633
|
function pintAllToPDFBase64(_x10, _x11, _x12) {
|
|
238581
238634
|
return _pintAllToPDFBase.apply(this, arguments);
|