hoeditor-web 2.0.53 → 2.0.55
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.common.js +243 -144
- package/lib/hoeditor.css +853 -2
- package/lib/hoeditor.umd.js +243 -144
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -11518,7 +11518,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11518
11518
|
key: "printToPDF",
|
|
11519
11519
|
value: function () {
|
|
11520
11520
|
var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
|
|
11521
|
-
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, name;
|
|
11521
|
+
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, name;
|
|
11522
11522
|
|
|
11523
11523
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
11524
11524
|
while (1) {
|
|
@@ -11581,7 +11581,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11581
11581
|
|
|
11582
11582
|
case 17:
|
|
11583
11583
|
if ((_step = _iterator.n()).done) {
|
|
11584
|
-
_context3.next =
|
|
11584
|
+
_context3.next = 58;
|
|
11585
11585
|
break;
|
|
11586
11586
|
}
|
|
11587
11587
|
|
|
@@ -11599,7 +11599,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11599
11599
|
});
|
|
11600
11600
|
|
|
11601
11601
|
case 22:
|
|
11602
|
-
return _context3.abrupt("continue",
|
|
11602
|
+
return _context3.abrupt("continue", 56);
|
|
11603
11603
|
|
|
11604
11604
|
case 23:
|
|
11605
11605
|
last = index;
|
|
@@ -11610,19 +11610,35 @@ var Print = /*#__PURE__*/function () {
|
|
|
11610
11610
|
break;
|
|
11611
11611
|
}
|
|
11612
11612
|
|
|
11613
|
-
return _context3.abrupt("break",
|
|
11613
|
+
return _context3.abrupt("break", 58);
|
|
11614
11614
|
|
|
11615
11615
|
case 27:
|
|
11616
11616
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
11617
11617
|
cpage.drawDomLevel.bindStage();
|
|
11618
11618
|
cpage.needUpdateStage = true;
|
|
11619
|
-
}
|
|
11619
|
+
} // 合并续打: 上一页还有空余时续打起始页隐藏页脚
|
|
11620
|
+
|
|
11620
11621
|
|
|
11621
11622
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
11622
11623
|
dShape = new createjs.Shape();
|
|
11623
11624
|
dShape.graphics.beginFill("#fff").rect(0, 0, width, positionY).endFill();
|
|
11624
11625
|
cpage.drawDocContainer.addChild(dShape);
|
|
11625
11626
|
cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
|
|
11627
|
+
} // 光标处续打
|
|
11628
|
+
|
|
11629
|
+
|
|
11630
|
+
if (hoEditorFactory.printStatus.printRange == PrintRange.prCaret) {
|
|
11631
|
+
posIndex = hoEditorFactory.printStatus.drawPrintCaret.Position[0];
|
|
11632
|
+
posY = hoEditorFactory.printStatus.drawPrintCaret.Position[1];
|
|
11633
|
+
|
|
11634
|
+
if (index === posIndex && posY) {
|
|
11635
|
+
_dShape = new createjs.Shape();
|
|
11636
|
+
|
|
11637
|
+
_dShape.graphics.beginFill("#fff").rect(0, 0, width, posY).endFill();
|
|
11638
|
+
|
|
11639
|
+
cpage.drawDocContainer.addChild(_dShape);
|
|
11640
|
+
cpage.drawFooter.alpha = 0;
|
|
11641
|
+
}
|
|
11626
11642
|
}
|
|
11627
11643
|
|
|
11628
11644
|
if (cpage.drawDomLevel && cpage.needUpdateStage && cpage.drawDomLevel.stage) {
|
|
@@ -11645,7 +11661,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11645
11661
|
}
|
|
11646
11662
|
|
|
11647
11663
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11648
|
-
_context3.next =
|
|
11664
|
+
_context3.next = 42;
|
|
11649
11665
|
break;
|
|
11650
11666
|
}
|
|
11651
11667
|
|
|
@@ -11655,10 +11671,10 @@ var Print = /*#__PURE__*/function () {
|
|
|
11655
11671
|
ctx.posY = svg2pdfOptions.y;
|
|
11656
11672
|
ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
|
|
11657
11673
|
ctx = null;
|
|
11658
|
-
_context3.next =
|
|
11674
|
+
_context3.next = 55;
|
|
11659
11675
|
break;
|
|
11660
11676
|
|
|
11661
|
-
case
|
|
11677
|
+
case 42:
|
|
11662
11678
|
_ctx = new canvas2svg({
|
|
11663
11679
|
width: width,
|
|
11664
11680
|
height: height,
|
|
@@ -11667,68 +11683,68 @@ var Print = /*#__PURE__*/function () {
|
|
|
11667
11683
|
_ctx && ((_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(_ctx));
|
|
11668
11684
|
|
|
11669
11685
|
if (!(type === "html")) {
|
|
11670
|
-
_context3.next =
|
|
11686
|
+
_context3.next = 49;
|
|
11671
11687
|
break;
|
|
11672
11688
|
}
|
|
11673
11689
|
|
|
11674
11690
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
11675
11691
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
11676
|
-
_context3.next =
|
|
11692
|
+
_context3.next = 54;
|
|
11677
11693
|
break;
|
|
11678
11694
|
|
|
11679
|
-
case
|
|
11695
|
+
case 49:
|
|
11680
11696
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11681
11697
|
_context3.t0 = PDF;
|
|
11682
11698
|
|
|
11683
11699
|
if (!_context3.t0) {
|
|
11684
|
-
_context3.next =
|
|
11700
|
+
_context3.next = 54;
|
|
11685
11701
|
break;
|
|
11686
11702
|
}
|
|
11687
11703
|
|
|
11688
|
-
_context3.next =
|
|
11704
|
+
_context3.next = 54;
|
|
11689
11705
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
11690
11706
|
|
|
11691
|
-
case
|
|
11707
|
+
case 54:
|
|
11692
11708
|
_ctx = null;
|
|
11693
11709
|
|
|
11694
|
-
case
|
|
11710
|
+
case 55:
|
|
11695
11711
|
index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
|
|
11696
11712
|
|
|
11697
|
-
case
|
|
11713
|
+
case 56:
|
|
11698
11714
|
_context3.next = 17;
|
|
11699
11715
|
break;
|
|
11700
11716
|
|
|
11701
|
-
case
|
|
11702
|
-
_context3.next =
|
|
11717
|
+
case 58:
|
|
11718
|
+
_context3.next = 63;
|
|
11703
11719
|
break;
|
|
11704
11720
|
|
|
11705
|
-
case
|
|
11706
|
-
_context3.prev =
|
|
11721
|
+
case 60:
|
|
11722
|
+
_context3.prev = 60;
|
|
11707
11723
|
_context3.t1 = _context3["catch"](15);
|
|
11708
11724
|
|
|
11709
11725
|
_iterator.e(_context3.t1);
|
|
11710
11726
|
|
|
11711
|
-
case
|
|
11712
|
-
_context3.prev =
|
|
11727
|
+
case 63:
|
|
11728
|
+
_context3.prev = 63;
|
|
11713
11729
|
|
|
11714
11730
|
_iterator.f();
|
|
11715
11731
|
|
|
11716
|
-
return _context3.finish(
|
|
11732
|
+
return _context3.finish(63);
|
|
11717
11733
|
|
|
11718
|
-
case
|
|
11734
|
+
case 66:
|
|
11719
11735
|
console.timeEnd("绘制svg和生成pdf");
|
|
11720
11736
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11721
11737
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11722
11738
|
|
|
11723
11739
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
11724
|
-
_context3.next =
|
|
11740
|
+
_context3.next = 75;
|
|
11725
11741
|
break;
|
|
11726
11742
|
}
|
|
11727
11743
|
|
|
11728
11744
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
11729
11745
|
|
|
11730
11746
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
11731
|
-
_context3.next =
|
|
11747
|
+
_context3.next = 75;
|
|
11732
11748
|
break;
|
|
11733
11749
|
}
|
|
11734
11750
|
|
|
@@ -11740,21 +11756,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
11740
11756
|
reslove && reslove("printend");
|
|
11741
11757
|
return _context3.abrupt("return");
|
|
11742
11758
|
|
|
11743
|
-
case
|
|
11759
|
+
case 75:
|
|
11744
11760
|
if (!(type === "pdf")) {
|
|
11745
|
-
_context3.next =
|
|
11761
|
+
_context3.next = 81;
|
|
11746
11762
|
break;
|
|
11747
11763
|
}
|
|
11748
11764
|
|
|
11749
11765
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11750
11766
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + ".pdf");
|
|
11751
11767
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
11752
|
-
_context3.next =
|
|
11768
|
+
_context3.next = 87;
|
|
11753
11769
|
break;
|
|
11754
11770
|
|
|
11755
|
-
case
|
|
11771
|
+
case 81:
|
|
11756
11772
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
11757
|
-
_context3.next =
|
|
11773
|
+
_context3.next = 85;
|
|
11758
11774
|
break;
|
|
11759
11775
|
}
|
|
11760
11776
|
|
|
@@ -11766,7 +11782,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11766
11782
|
reslove && reslove("printend");
|
|
11767
11783
|
return _context3.abrupt("return");
|
|
11768
11784
|
|
|
11769
|
-
case
|
|
11785
|
+
case 85:
|
|
11770
11786
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
11771
11787
|
|
|
11772
11788
|
if (type === "html") {
|
|
@@ -11789,15 +11805,15 @@ var Print = /*#__PURE__*/function () {
|
|
|
11789
11805
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
11790
11806
|
}
|
|
11791
11807
|
|
|
11792
|
-
case
|
|
11808
|
+
case 87:
|
|
11793
11809
|
reslove && reslove("printend");
|
|
11794
11810
|
|
|
11795
|
-
case
|
|
11811
|
+
case 88:
|
|
11796
11812
|
case "end":
|
|
11797
11813
|
return _context3.stop();
|
|
11798
11814
|
}
|
|
11799
11815
|
}
|
|
11800
|
-
}, _callee2, this, [[15,
|
|
11816
|
+
}, _callee2, this, [[15, 60, 63, 66]]);
|
|
11801
11817
|
}));
|
|
11802
11818
|
|
|
11803
11819
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
@@ -15955,11 +15971,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
15955
15971
|
|
|
15956
15972
|
curArea.areaComments.set(commentID, comment);
|
|
15957
15973
|
hoEditorFactory.drawTree.commentsMap.set(commentID, comment);
|
|
15958
|
-
curArea.drawComments();
|
|
15959
|
-
|
|
15974
|
+
curArea.drawComments(); //const newEndpath = endNode.getNodePath();
|
|
15975
|
+
|
|
15960
15976
|
hoEditorFactory.undoService.begin();
|
|
15961
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath,
|
|
15977
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath, endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p("insertComment", commentID)));
|
|
15962
15978
|
hoEditorFactory.undoService.commit();
|
|
15979
|
+
var newEndpath = endNode.getNodePath();
|
|
15963
15980
|
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, newEndpath, newEndpath);
|
|
15964
15981
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newRange, newRange); //选中范围变化事件
|
|
15965
15982
|
|
|
@@ -16777,9 +16794,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16777
16794
|
node.customProperty = customProperty;
|
|
16778
16795
|
node.imgWidth = imgWidth;
|
|
16779
16796
|
node.imgHeight = imgHeight;
|
|
16780
|
-
node.imgSrc = imgSrc;
|
|
16781
16797
|
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
|
|
16782
16798
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
16799
|
+
node.imgSrc = imgSrc;
|
|
16783
16800
|
|
|
16784
16801
|
if (type == 1 && node.signType == 1) {
|
|
16785
16802
|
node.isFront = true;
|
|
@@ -16829,6 +16846,29 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16829
16846
|
node.imgSrc = signText;
|
|
16830
16847
|
hoEditorFactory.docTree.change(changeEvent);
|
|
16831
16848
|
}
|
|
16849
|
+
/**
|
|
16850
|
+
* 更新签名类型
|
|
16851
|
+
* @param node 签名节点
|
|
16852
|
+
* @param type 签名类型
|
|
16853
|
+
* @param imgSrc 签名内容
|
|
16854
|
+
*/
|
|
16855
|
+
|
|
16856
|
+
}, {
|
|
16857
|
+
key: "updateSignType",
|
|
16858
|
+
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
16859
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16860
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
16861
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
16862
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
16863
|
+
changeEvent.oldEndPath = ePath;
|
|
16864
|
+
changeEvent.afterChangePath = ePath;
|
|
16865
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
16866
|
+
node.type = type;
|
|
16867
|
+
node.imgWidth = imgWidth;
|
|
16868
|
+
node.imgHeight = imgHeight;
|
|
16869
|
+
node.imgSrc = imgSrc;
|
|
16870
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
16871
|
+
}
|
|
16832
16872
|
/**
|
|
16833
16873
|
*
|
|
16834
16874
|
* @returns 返回病历文件变更日志
|
|
@@ -49740,6 +49780,17 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49740
49780
|
|
|
49741
49781
|
if (partCell && aHeight) {
|
|
49742
49782
|
rowHeight = Math.max(aHeight, partCell.docHeight);
|
|
49783
|
+
rowSpan = mainCell.rowSpan;
|
|
49784
|
+
}
|
|
49785
|
+
}
|
|
49786
|
+
|
|
49787
|
+
if (rowSpan > 1) {
|
|
49788
|
+
for (var i = 1; i < rowSpan; i++) {
|
|
49789
|
+
var arowInfos = this._partRowHeights.get(r + i);
|
|
49790
|
+
|
|
49791
|
+
if (arowInfos && arowInfos.rowHeight && aHeight) {
|
|
49792
|
+
aHeight += arowInfos.rowHeight;
|
|
49793
|
+
}
|
|
49743
49794
|
}
|
|
49744
49795
|
} //this._partRowHeights.get(r)?.rowHeight
|
|
49745
49796
|
|
|
@@ -61243,7 +61294,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61243
61294
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86160);
|
|
61244
61295
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39873);
|
|
61245
61296
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35671);
|
|
61246
|
-
/* harmony import */ var
|
|
61297
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(22342);
|
|
61247
61298
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(99640);
|
|
61248
61299
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28214);
|
|
61249
61300
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
@@ -61269,6 +61320,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61269
61320
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(41005);
|
|
61270
61321
|
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(15868);
|
|
61271
61322
|
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(15798);
|
|
61323
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(98199);
|
|
61272
61324
|
|
|
61273
61325
|
|
|
61274
61326
|
|
|
@@ -61283,8 +61335,8 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61283
61335
|
/*
|
|
61284
61336
|
* @Author: your name
|
|
61285
61337
|
* @Date: 2020-09-24 15:56:09
|
|
61286
|
-
* @LastEditTime: 2022-
|
|
61287
|
-
* @LastEditors:
|
|
61338
|
+
* @LastEditTime: 2022-06-07 15:10:10
|
|
61339
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
61288
61340
|
* @Description: In User Settings Edit
|
|
61289
61341
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
61290
61342
|
*/
|
|
@@ -61303,6 +61355,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61303
61355
|
|
|
61304
61356
|
|
|
61305
61357
|
|
|
61358
|
+
|
|
61306
61359
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
61307
61360
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
|
|
61308
61361
|
|
|
@@ -61323,7 +61376,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61323
61376
|
return _this;
|
|
61324
61377
|
}
|
|
61325
61378
|
|
|
61326
|
-
(0,
|
|
61379
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(NodeInsertUndoUnit, [{
|
|
61327
61380
|
key: "undo",
|
|
61328
61381
|
value: function undo() {
|
|
61329
61382
|
this.doUndo();
|
|
@@ -61415,6 +61468,11 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61415
61468
|
} else if (this._pnode && this._pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && this.strBeforePath != hoEditorFactory.docTree.getNodeLastPath(this._pnode)) {
|
|
61416
61469
|
//删除文本域节点的提示文本,并更新重绘整个文本域
|
|
61417
61470
|
var pTiNode = this._pnode;
|
|
61471
|
+
|
|
61472
|
+
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__/* .PaintState.psReview */ .Dh.psReview && this.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j && this.node.MarkNodeType === 2 && this.node.text.startsWith("C") && this._pnode.childNodes.length === 3 && this._pnode.childNodes[1] instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__/* .MarkNode */ .j) {
|
|
61473
|
+
return path;
|
|
61474
|
+
}
|
|
61475
|
+
|
|
61418
61476
|
var res = pTiNode.getReadyToEdit(function (value) {
|
|
61419
61477
|
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
61420
61478
|
_this2._undo.begin();
|
|
@@ -198703,7 +198761,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
198703
198761
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
198704
198762
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
198705
198763
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
198706
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=
|
|
198764
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=3651fabe&
|
|
198707
198765
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e(),_c('ViewContinuousXml',{attrs:{"hoEditorFactoryId":_vm.activeDocId}})],1):_vm._e()}
|
|
198708
198766
|
var staticRenderFns = []
|
|
198709
198767
|
|
|
@@ -199997,7 +200055,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
199997
200055
|
key: "mouseDblClick",
|
|
199998
200056
|
value: function () {
|
|
199999
200057
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
200000
|
-
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2
|
|
200058
|
+
var hoEditorFactory, dPage, oldDPage, oldPageIndex, oldArea, targetArea, isSameArea, cgEvent, startPos, np, _np$node$parentNode, prevNode, oldRange, startPath, endPath, newRange, selectChangeEvent, nodeNeedModifyEvent, cellNode, colInfos, rowInfos, colProperty, _nodeNeedModifyEvent, _nodeNeedModifyEvent2;
|
|
200001
200059
|
|
|
200002
200060
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
200003
200061
|
while (1) {
|
|
@@ -200155,48 +200213,42 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200155
200213
|
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200156
200214
|
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
|
|
200157
200215
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
200158
|
-
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200159
|
-
|
|
200160
|
-
|
|
200161
|
-
|
|
200162
|
-
|
|
200163
|
-
|
|
200164
|
-
|
|
200165
|
-
|
|
200166
|
-
|
|
200167
|
-
|
|
200168
|
-
|
|
200169
|
-
|
|
200170
|
-
|
|
200171
|
-
|
|
200172
|
-
|
|
200173
|
-
|
|
200174
|
-
|
|
200175
|
-
|
|
200176
|
-
|
|
200177
|
-
|
|
200178
|
-
|
|
200179
|
-
|
|
200180
|
-
|
|
200181
|
-
|
|
200182
|
-
|
|
200183
|
-
|
|
200184
|
-
|
|
200185
|
-
|
|
200186
|
-
|
|
200216
|
+
} // else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200217
|
+
// //处理自动换行表格,双击时光标跳到指定双击位置
|
|
200218
|
+
// const dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
|
|
200219
|
+
// if (dPageTable) {
|
|
200220
|
+
// const dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
|
|
200221
|
+
// if (dPageCell) {
|
|
200222
|
+
// const pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
|
|
200223
|
+
// let docHeight = 0;
|
|
200224
|
+
// let dHeight = 0;
|
|
200225
|
+
// const index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
|
|
200226
|
+
// for (let i = 0; i < index; i++) {
|
|
200227
|
+
// docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
|
|
200228
|
+
// dHeight += cellNode.drawCell.drawPageCells[i].dHeight
|
|
200229
|
+
// }
|
|
200230
|
+
// const dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1]
|
|
200231
|
+
// if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
|
|
200232
|
+
// const distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight)
|
|
200233
|
+
// const aHeight = cellNode.table.tableProperty.autoLineHeightPx;
|
|
200234
|
+
// const count = Math.floor(distance / aHeight);
|
|
200235
|
+
// let str = "";
|
|
200236
|
+
// for (let j = 0; j < count; j++) {
|
|
200237
|
+
// str += "\n"
|
|
200238
|
+
// }
|
|
200239
|
+
// if (str != "") {
|
|
200240
|
+
// const oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200241
|
+
// const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200242
|
+
// const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
|
|
200243
|
+
// hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
200244
|
+
// hoEditorFactory.docTree.curDomRange = newRange;
|
|
200245
|
+
// hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
|
|
200246
|
+
// }
|
|
200247
|
+
// }
|
|
200248
|
+
// }
|
|
200249
|
+
// }
|
|
200250
|
+
// }
|
|
200187
200251
|
|
|
200188
|
-
if (str != "") {
|
|
200189
|
-
_oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200190
|
-
_endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200191
|
-
_newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
|
|
200192
|
-
hoEditorFactory.drawTree.moveCaretToPath(_endPath);
|
|
200193
|
-
hoEditorFactory.docTree.curDomRange = _newRange;
|
|
200194
|
-
hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
|
|
200195
|
-
}
|
|
200196
|
-
}
|
|
200197
|
-
}
|
|
200198
|
-
}
|
|
200199
|
-
}
|
|
200200
200252
|
|
|
200201
200253
|
case 45:
|
|
200202
200254
|
return _context.abrupt("return", true);
|
|
@@ -206691,7 +206743,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
206691
206743
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206692
206744
|
var ParagraphNode = __webpack_require__(14208);
|
|
206693
206745
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206694
|
-
/* harmony default export */ var version = ('2.0.
|
|
206746
|
+
/* harmony default export */ var version = ('2.0.55');
|
|
206695
206747
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
206696
206748
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
206697
206749
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -218847,6 +218899,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218847
218899
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218848
218900
|
hoEditorFactory.docController.updateSignTime(node, signText);
|
|
218849
218901
|
}
|
|
218902
|
+
/**
|
|
218903
|
+
* 更新签名类型
|
|
218904
|
+
* @param node 签名节点
|
|
218905
|
+
* @param type 签名类型
|
|
218906
|
+
* @param imgSrc 签名内容
|
|
218907
|
+
*/
|
|
218908
|
+
|
|
218909
|
+
}, {
|
|
218910
|
+
key: "updateSignType",
|
|
218911
|
+
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
218912
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218913
|
+
hoEditorFactory.docController.updateSignType(node, type, imgSrc, imgWidth, imgHeight);
|
|
218914
|
+
}
|
|
218850
218915
|
/**
|
|
218851
218916
|
* 强制删除
|
|
218852
218917
|
*/
|
|
@@ -219138,7 +219203,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219138
219203
|
var _loop2 = function _loop2(i) {
|
|
219139
219204
|
var node = nodes[i];
|
|
219140
219205
|
|
|
219141
|
-
if (node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.childNodes.filter(function (child) {
|
|
219206
|
+
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && !node.canModifyContent && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
|
|
219142
219207
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
219143
219208
|
}).length === 0) {
|
|
219144
219209
|
if (arr.filter(function (v) {
|
|
@@ -220200,6 +220265,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220200
220265
|
});
|
|
220201
220266
|
return ishandle;
|
|
220202
220267
|
}
|
|
220268
|
+
/**
|
|
220269
|
+
* 获取当前病历中所以批注
|
|
220270
|
+
*/
|
|
220271
|
+
|
|
220272
|
+
}, {
|
|
220273
|
+
key: "getDocCommentValue",
|
|
220274
|
+
value: function getDocCommentValue() {
|
|
220275
|
+
return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap;
|
|
220276
|
+
}
|
|
220203
220277
|
/**
|
|
220204
220278
|
* 批量修改当前病历中批注处理状态
|
|
220205
220279
|
* @param status 默认修改为 1==已处理
|
|
@@ -220211,10 +220285,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220211
220285
|
var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree;
|
|
220212
220286
|
var commentsMap = drawTree.commentsMap;
|
|
220213
220287
|
commentsMap.forEach(function (value, key) {
|
|
220214
|
-
if (value.customProperty) {
|
|
220215
|
-
value.customProperty
|
|
220216
|
-
commentsMap.set(key, value);
|
|
220288
|
+
if (!value.customProperty) {
|
|
220289
|
+
value.customProperty = {};
|
|
220217
220290
|
}
|
|
220291
|
+
|
|
220292
|
+
value.customProperty.ishandle = status == undefined ? '1' : status;
|
|
220293
|
+
commentsMap.set(key, value);
|
|
220218
220294
|
});
|
|
220219
220295
|
drawTree.commentsMap = commentsMap;
|
|
220220
220296
|
}
|
|
@@ -224923,9 +224999,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
224923
224999
|
)
|
|
224924
225000
|
|
|
224925
225001
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
224926
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=
|
|
224927
|
-
var
|
|
224928
|
-
var
|
|
225002
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=2efd7672&
|
|
225003
|
+
var ControlModalvue_type_template_id_2efd7672_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
|
|
225004
|
+
var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
|
|
224929
225005
|
|
|
224930
225006
|
|
|
224931
225007
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/selectDialog/SelectDialog.vue?vue&type=template&id=3b6d4c1e&scoped=true&
|
|
@@ -227116,9 +227192,9 @@ var RadioCheckbox_component = normalizeComponent(
|
|
|
227116
227192
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/index.ts
|
|
227117
227193
|
|
|
227118
227194
|
/* harmony default export */ var radioCheckBox = (radioCheckBox_RadioCheckbox);
|
|
227119
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/commentDialog/CommentDialog.vue?vue&type=template&id=
|
|
227120
|
-
var
|
|
227121
|
-
var
|
|
227195
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/commentDialog/CommentDialog.vue?vue&type=template&id=27b7d6e2&
|
|
227196
|
+
var CommentDialogvue_type_template_id_27b7d6e2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents comment-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("批注")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":function($event){return _vm.$emit('closed')}}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("批注内容")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","autosize":{ minRows: 6, maxRows: 6 },"clearable":"","placeholder":"批注内容","maxlength":"256","show-word-limit":""},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_vm._t("hoCommentModal")],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":function($event){return _vm.$emit('closed')}}},[_vm._v("取消")])],1)])}
|
|
227197
|
+
var CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns = []
|
|
227122
227198
|
|
|
227123
227199
|
|
|
227124
227200
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/commentDialog/CommentDialog.vue?vue&type=script&lang=js&
|
|
@@ -227171,15 +227247,27 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
|
|
|
227171
227247
|
mounted: function mounted() {},
|
|
227172
227248
|
methods: {
|
|
227173
227249
|
sure: function sure() {
|
|
227174
|
-
|
|
227175
|
-
if (this.controlStatus === 'update') {
|
|
227176
|
-
this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
|
|
227177
|
-
} else {
|
|
227178
|
-
this.$emit('insertComments', this.textContent);
|
|
227179
|
-
this.vueController.insertComment(this.textContent, this.getCustomProperty());
|
|
227180
|
-
}
|
|
227250
|
+
var _this = this;
|
|
227181
227251
|
|
|
227182
|
-
|
|
227252
|
+
var callback = function callback() {
|
|
227253
|
+
_this.$emit('closed');
|
|
227254
|
+
};
|
|
227255
|
+
|
|
227256
|
+
if (this.controlStatus === 'update') {
|
|
227257
|
+
this.$emit('insertComments', {
|
|
227258
|
+
id: this.commentValue.id,
|
|
227259
|
+
content: this.textContent,
|
|
227260
|
+
customProperty: this.getCustomProperty(),
|
|
227261
|
+
type: 'update',
|
|
227262
|
+
callback: callback
|
|
227263
|
+
}); // this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
|
|
227264
|
+
} else {
|
|
227265
|
+
this.$emit('insertComments', {
|
|
227266
|
+
content: this.textContent,
|
|
227267
|
+
customProperty: this.getCustomProperty(),
|
|
227268
|
+
type: 'add',
|
|
227269
|
+
callback: callback
|
|
227270
|
+
}); // this.vueController.insertComment(this.textContent, this.getCustomProperty());
|
|
227183
227271
|
}
|
|
227184
227272
|
}
|
|
227185
227273
|
}
|
|
@@ -227202,8 +227290,8 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
|
|
|
227202
227290
|
|
|
227203
227291
|
var CommentDialog_component = normalizeComponent(
|
|
227204
227292
|
commentDialog_CommentDialogvue_type_script_lang_js_,
|
|
227205
|
-
|
|
227206
|
-
|
|
227293
|
+
CommentDialogvue_type_template_id_27b7d6e2_render,
|
|
227294
|
+
CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns,
|
|
227207
227295
|
false,
|
|
227208
227296
|
null,
|
|
227209
227297
|
null,
|
|
@@ -230527,8 +230615,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
230527
230615
|
;
|
|
230528
230616
|
var ControlModal_component = normalizeComponent(
|
|
230529
230617
|
controls_ControlModalvue_type_script_lang_ts_,
|
|
230530
|
-
|
|
230531
|
-
|
|
230618
|
+
ControlModalvue_type_template_id_2efd7672_render,
|
|
230619
|
+
ControlModalvue_type_template_id_2efd7672_staticRenderFns,
|
|
230532
230620
|
false,
|
|
230533
230621
|
null,
|
|
230534
230622
|
null,
|
|
@@ -232374,9 +232462,9 @@ var HoDocs_component = normalizeComponent(
|
|
|
232374
232462
|
)
|
|
232375
232463
|
|
|
232376
232464
|
/* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
|
|
232377
|
-
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=
|
|
232378
|
-
var
|
|
232379
|
-
var
|
|
232465
|
+
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=3f61d307&
|
|
232466
|
+
var ToolBarvue_type_template_id_3f61d307_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "返回审阅模式" : "浏览模式"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
|
|
232467
|
+
var ToolBarvue_type_template_id_3f61d307_staticRenderFns = []
|
|
232380
232468
|
|
|
232381
232469
|
|
|
232382
232470
|
;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=7096edd1&scoped=true&
|
|
@@ -237498,27 +237586,32 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
237498
237586
|
}, {
|
|
237499
237587
|
key: "deleteComment",
|
|
237500
237588
|
value: function deleteComment() {
|
|
237501
|
-
|
|
237502
|
-
|
|
237503
|
-
|
|
237504
|
-
|
|
237505
|
-
if (selectedComment) {
|
|
237506
|
-
|
|
237507
|
-
|
|
237508
|
-
|
|
237509
|
-
|
|
237510
|
-
|
|
237511
|
-
|
|
237512
|
-
|
|
237513
|
-
|
|
237514
|
-
|
|
237515
|
-
|
|
237516
|
-
|
|
237517
|
-
|
|
237518
|
-
|
|
237519
|
-
|
|
237520
|
-
|
|
237521
|
-
|
|
237589
|
+
this.$emit("insertComments", {
|
|
237590
|
+
type: 'delete',
|
|
237591
|
+
selectedComment: this.vueController.getOnSelectedComment()
|
|
237592
|
+
}); // const selectedComment = this.vueController.getOnSelectedComment();
|
|
237593
|
+
// if (selectedComment) {
|
|
237594
|
+
// (this as any)
|
|
237595
|
+
// .$elConfirm("确定要删除选中的批注吗", "删除确认", {
|
|
237596
|
+
// cancelButtonText: "取消",
|
|
237597
|
+
// confirmButtonText: "确定",
|
|
237598
|
+
// type: "warning",
|
|
237599
|
+
// })
|
|
237600
|
+
// .then(() => {
|
|
237601
|
+
// this.vueController.deleteComment(1);
|
|
237602
|
+
// })
|
|
237603
|
+
// .catch(() => {
|
|
237604
|
+
// console.log("取消删除");
|
|
237605
|
+
// });
|
|
237606
|
+
// } else {
|
|
237607
|
+
// (this as any).$elMessage.closeAll();
|
|
237608
|
+
// (this as any).$elMessage.warning({
|
|
237609
|
+
// message: "点击选中右侧批注区域内已添加的批注后,进行删除操作",
|
|
237610
|
+
// duration: 3000,
|
|
237611
|
+
// offset: 120,
|
|
237612
|
+
// });
|
|
237613
|
+
// return;
|
|
237614
|
+
// }
|
|
237522
237615
|
}
|
|
237523
237616
|
/**
|
|
237524
237617
|
* 删除全部批注
|
|
@@ -237527,15 +237620,21 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
237527
237620
|
}, {
|
|
237528
237621
|
key: "deleteAllComment",
|
|
237529
237622
|
value: function deleteAllComment() {
|
|
237530
|
-
|
|
237531
|
-
|
|
237532
|
-
|
|
237533
|
-
|
|
237534
|
-
|
|
237535
|
-
|
|
237536
|
-
|
|
237537
|
-
|
|
237538
|
-
})
|
|
237623
|
+
this.$emit("insertComments", {
|
|
237624
|
+
type: 'deleteAll',
|
|
237625
|
+
commentValue: this.vueController.getDocCommentValue()
|
|
237626
|
+
}); // (this as any)
|
|
237627
|
+
// .$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)", "删除确认", {
|
|
237628
|
+
// cancelButtonText: "取消",
|
|
237629
|
+
// confirmButtonText: "确定",
|
|
237630
|
+
// type: "warning",
|
|
237631
|
+
// })
|
|
237632
|
+
// .then(() => {
|
|
237633
|
+
// this.vueController.deleteComment(0);
|
|
237634
|
+
// })
|
|
237635
|
+
// .catch(() => {
|
|
237636
|
+
// console.log("取消删除");
|
|
237637
|
+
// });
|
|
237539
237638
|
}
|
|
237540
237639
|
/**
|
|
237541
237640
|
* 取消删除
|
|
@@ -237663,8 +237762,8 @@ ToolBar = __decorate([vue_class_component_esm({
|
|
|
237663
237762
|
|
|
237664
237763
|
var ToolBar_component = normalizeComponent(
|
|
237665
237764
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
237666
|
-
|
|
237667
|
-
|
|
237765
|
+
ToolBarvue_type_template_id_3f61d307_render,
|
|
237766
|
+
ToolBarvue_type_template_id_3f61d307_staticRenderFns,
|
|
237668
237767
|
false,
|
|
237669
237768
|
null,
|
|
237670
237769
|
null,
|