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.umd.js
CHANGED
|
@@ -11528,7 +11528,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11528
11528
|
key: "printToPDF",
|
|
11529
11529
|
value: function () {
|
|
11530
11530
|
var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
|
|
11531
|
-
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;
|
|
11531
|
+
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;
|
|
11532
11532
|
|
|
11533
11533
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
11534
11534
|
while (1) {
|
|
@@ -11591,7 +11591,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11591
11591
|
|
|
11592
11592
|
case 17:
|
|
11593
11593
|
if ((_step = _iterator.n()).done) {
|
|
11594
|
-
_context3.next =
|
|
11594
|
+
_context3.next = 58;
|
|
11595
11595
|
break;
|
|
11596
11596
|
}
|
|
11597
11597
|
|
|
@@ -11609,7 +11609,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11609
11609
|
});
|
|
11610
11610
|
|
|
11611
11611
|
case 22:
|
|
11612
|
-
return _context3.abrupt("continue",
|
|
11612
|
+
return _context3.abrupt("continue", 56);
|
|
11613
11613
|
|
|
11614
11614
|
case 23:
|
|
11615
11615
|
last = index;
|
|
@@ -11620,19 +11620,35 @@ var Print = /*#__PURE__*/function () {
|
|
|
11620
11620
|
break;
|
|
11621
11621
|
}
|
|
11622
11622
|
|
|
11623
|
-
return _context3.abrupt("break",
|
|
11623
|
+
return _context3.abrupt("break", 58);
|
|
11624
11624
|
|
|
11625
11625
|
case 27:
|
|
11626
11626
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
11627
11627
|
cpage.drawDomLevel.bindStage();
|
|
11628
11628
|
cpage.needUpdateStage = true;
|
|
11629
|
-
}
|
|
11629
|
+
} // 合并续打: 上一页还有空余时续打起始页隐藏页脚
|
|
11630
|
+
|
|
11630
11631
|
|
|
11631
11632
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
11632
11633
|
dShape = new createjs.Shape();
|
|
11633
11634
|
dShape.graphics.beginFill("#fff").rect(0, 0, width, positionY).endFill();
|
|
11634
11635
|
cpage.drawDocContainer.addChild(dShape);
|
|
11635
11636
|
cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
|
|
11637
|
+
} // 光标处续打
|
|
11638
|
+
|
|
11639
|
+
|
|
11640
|
+
if (hoEditorFactory.printStatus.printRange == PrintRange.prCaret) {
|
|
11641
|
+
posIndex = hoEditorFactory.printStatus.drawPrintCaret.Position[0];
|
|
11642
|
+
posY = hoEditorFactory.printStatus.drawPrintCaret.Position[1];
|
|
11643
|
+
|
|
11644
|
+
if (index === posIndex && posY) {
|
|
11645
|
+
_dShape = new createjs.Shape();
|
|
11646
|
+
|
|
11647
|
+
_dShape.graphics.beginFill("#fff").rect(0, 0, width, posY).endFill();
|
|
11648
|
+
|
|
11649
|
+
cpage.drawDocContainer.addChild(_dShape);
|
|
11650
|
+
cpage.drawFooter.alpha = 0;
|
|
11651
|
+
}
|
|
11636
11652
|
}
|
|
11637
11653
|
|
|
11638
11654
|
if (cpage.drawDomLevel && cpage.needUpdateStage && cpage.drawDomLevel.stage) {
|
|
@@ -11655,7 +11671,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11655
11671
|
}
|
|
11656
11672
|
|
|
11657
11673
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11658
|
-
_context3.next =
|
|
11674
|
+
_context3.next = 42;
|
|
11659
11675
|
break;
|
|
11660
11676
|
}
|
|
11661
11677
|
|
|
@@ -11665,10 +11681,10 @@ var Print = /*#__PURE__*/function () {
|
|
|
11665
11681
|
ctx.posY = svg2pdfOptions.y;
|
|
11666
11682
|
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));
|
|
11667
11683
|
ctx = null;
|
|
11668
|
-
_context3.next =
|
|
11684
|
+
_context3.next = 55;
|
|
11669
11685
|
break;
|
|
11670
11686
|
|
|
11671
|
-
case
|
|
11687
|
+
case 42:
|
|
11672
11688
|
_ctx = new canvas2svg({
|
|
11673
11689
|
width: width,
|
|
11674
11690
|
height: height,
|
|
@@ -11677,68 +11693,68 @@ var Print = /*#__PURE__*/function () {
|
|
|
11677
11693
|
_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));
|
|
11678
11694
|
|
|
11679
11695
|
if (!(type === "html")) {
|
|
11680
|
-
_context3.next =
|
|
11696
|
+
_context3.next = 49;
|
|
11681
11697
|
break;
|
|
11682
11698
|
}
|
|
11683
11699
|
|
|
11684
11700
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
11685
11701
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
11686
|
-
_context3.next =
|
|
11702
|
+
_context3.next = 54;
|
|
11687
11703
|
break;
|
|
11688
11704
|
|
|
11689
|
-
case
|
|
11705
|
+
case 49:
|
|
11690
11706
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11691
11707
|
_context3.t0 = PDF;
|
|
11692
11708
|
|
|
11693
11709
|
if (!_context3.t0) {
|
|
11694
|
-
_context3.next =
|
|
11710
|
+
_context3.next = 54;
|
|
11695
11711
|
break;
|
|
11696
11712
|
}
|
|
11697
11713
|
|
|
11698
|
-
_context3.next =
|
|
11714
|
+
_context3.next = 54;
|
|
11699
11715
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
11700
11716
|
|
|
11701
|
-
case
|
|
11717
|
+
case 54:
|
|
11702
11718
|
_ctx = null;
|
|
11703
11719
|
|
|
11704
|
-
case
|
|
11720
|
+
case 55:
|
|
11705
11721
|
index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
|
|
11706
11722
|
|
|
11707
|
-
case
|
|
11723
|
+
case 56:
|
|
11708
11724
|
_context3.next = 17;
|
|
11709
11725
|
break;
|
|
11710
11726
|
|
|
11711
|
-
case
|
|
11712
|
-
_context3.next =
|
|
11727
|
+
case 58:
|
|
11728
|
+
_context3.next = 63;
|
|
11713
11729
|
break;
|
|
11714
11730
|
|
|
11715
|
-
case
|
|
11716
|
-
_context3.prev =
|
|
11731
|
+
case 60:
|
|
11732
|
+
_context3.prev = 60;
|
|
11717
11733
|
_context3.t1 = _context3["catch"](15);
|
|
11718
11734
|
|
|
11719
11735
|
_iterator.e(_context3.t1);
|
|
11720
11736
|
|
|
11721
|
-
case
|
|
11722
|
-
_context3.prev =
|
|
11737
|
+
case 63:
|
|
11738
|
+
_context3.prev = 63;
|
|
11723
11739
|
|
|
11724
11740
|
_iterator.f();
|
|
11725
11741
|
|
|
11726
|
-
return _context3.finish(
|
|
11742
|
+
return _context3.finish(63);
|
|
11727
11743
|
|
|
11728
|
-
case
|
|
11744
|
+
case 66:
|
|
11729
11745
|
console.timeEnd("绘制svg和生成pdf");
|
|
11730
11746
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11731
11747
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11732
11748
|
|
|
11733
11749
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
11734
|
-
_context3.next =
|
|
11750
|
+
_context3.next = 75;
|
|
11735
11751
|
break;
|
|
11736
11752
|
}
|
|
11737
11753
|
|
|
11738
11754
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
11739
11755
|
|
|
11740
11756
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
11741
|
-
_context3.next =
|
|
11757
|
+
_context3.next = 75;
|
|
11742
11758
|
break;
|
|
11743
11759
|
}
|
|
11744
11760
|
|
|
@@ -11750,21 +11766,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
11750
11766
|
reslove && reslove("printend");
|
|
11751
11767
|
return _context3.abrupt("return");
|
|
11752
11768
|
|
|
11753
|
-
case
|
|
11769
|
+
case 75:
|
|
11754
11770
|
if (!(type === "pdf")) {
|
|
11755
|
-
_context3.next =
|
|
11771
|
+
_context3.next = 81;
|
|
11756
11772
|
break;
|
|
11757
11773
|
}
|
|
11758
11774
|
|
|
11759
11775
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11760
11776
|
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + ".pdf");
|
|
11761
11777
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
11762
|
-
_context3.next =
|
|
11778
|
+
_context3.next = 87;
|
|
11763
11779
|
break;
|
|
11764
11780
|
|
|
11765
|
-
case
|
|
11781
|
+
case 81:
|
|
11766
11782
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
11767
|
-
_context3.next =
|
|
11783
|
+
_context3.next = 85;
|
|
11768
11784
|
break;
|
|
11769
11785
|
}
|
|
11770
11786
|
|
|
@@ -11776,7 +11792,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11776
11792
|
reslove && reslove("printend");
|
|
11777
11793
|
return _context3.abrupt("return");
|
|
11778
11794
|
|
|
11779
|
-
case
|
|
11795
|
+
case 85:
|
|
11780
11796
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
11781
11797
|
|
|
11782
11798
|
if (type === "html") {
|
|
@@ -11799,15 +11815,15 @@ var Print = /*#__PURE__*/function () {
|
|
|
11799
11815
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
11800
11816
|
}
|
|
11801
11817
|
|
|
11802
|
-
case
|
|
11818
|
+
case 87:
|
|
11803
11819
|
reslove && reslove("printend");
|
|
11804
11820
|
|
|
11805
|
-
case
|
|
11821
|
+
case 88:
|
|
11806
11822
|
case "end":
|
|
11807
11823
|
return _context3.stop();
|
|
11808
11824
|
}
|
|
11809
11825
|
}
|
|
11810
|
-
}, _callee2, this, [[15,
|
|
11826
|
+
}, _callee2, this, [[15, 60, 63, 66]]);
|
|
11811
11827
|
}));
|
|
11812
11828
|
|
|
11813
11829
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
@@ -15965,11 +15981,12 @@ var DocController = /*#__PURE__*/function () {
|
|
|
15965
15981
|
|
|
15966
15982
|
curArea.areaComments.set(commentID, comment);
|
|
15967
15983
|
hoEditorFactory.drawTree.commentsMap.set(commentID, comment);
|
|
15968
|
-
curArea.drawComments();
|
|
15969
|
-
|
|
15984
|
+
curArea.drawComments(); //const newEndpath = endNode.getNodePath();
|
|
15985
|
+
|
|
15970
15986
|
hoEditorFactory.undoService.begin();
|
|
15971
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, startPath,
|
|
15987
|
+
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)));
|
|
15972
15988
|
hoEditorFactory.undoService.commit();
|
|
15989
|
+
var newEndpath = endNode.getNodePath();
|
|
15973
15990
|
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, newEndpath, newEndpath);
|
|
15974
15991
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_35__/* .SelectionChangeEvent */ .r(newRange, newRange); //选中范围变化事件
|
|
15975
15992
|
|
|
@@ -16787,9 +16804,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16787
16804
|
node.customProperty = customProperty;
|
|
16788
16805
|
node.imgWidth = imgWidth;
|
|
16789
16806
|
node.imgHeight = imgHeight;
|
|
16790
|
-
node.imgSrc = imgSrc;
|
|
16791
16807
|
node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
|
|
16792
16808
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
16809
|
+
node.imgSrc = imgSrc;
|
|
16793
16810
|
|
|
16794
16811
|
if (type == 1 && node.signType == 1) {
|
|
16795
16812
|
node.isFront = true;
|
|
@@ -16839,6 +16856,29 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16839
16856
|
node.imgSrc = signText;
|
|
16840
16857
|
hoEditorFactory.docTree.change(changeEvent);
|
|
16841
16858
|
}
|
|
16859
|
+
/**
|
|
16860
|
+
* 更新签名类型
|
|
16861
|
+
* @param node 签名节点
|
|
16862
|
+
* @param type 签名类型
|
|
16863
|
+
* @param imgSrc 签名内容
|
|
16864
|
+
*/
|
|
16865
|
+
|
|
16866
|
+
}, {
|
|
16867
|
+
key: "updateSignType",
|
|
16868
|
+
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
16869
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
16870
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
16871
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
16872
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_75__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _DocTree__WEBPACK_IMPORTED_MODULE_26__/* .DocAction.daModifyStyle */ .gk.daModifyStyle, sPath, ePath);
|
|
16873
|
+
changeEvent.oldEndPath = ePath;
|
|
16874
|
+
changeEvent.afterChangePath = ePath;
|
|
16875
|
+
changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
16876
|
+
node.type = type;
|
|
16877
|
+
node.imgWidth = imgWidth;
|
|
16878
|
+
node.imgHeight = imgHeight;
|
|
16879
|
+
node.imgSrc = imgSrc;
|
|
16880
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
16881
|
+
}
|
|
16842
16882
|
/**
|
|
16843
16883
|
*
|
|
16844
16884
|
* @returns 返回病历文件变更日志
|
|
@@ -49750,6 +49790,17 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
49750
49790
|
|
|
49751
49791
|
if (partCell && aHeight) {
|
|
49752
49792
|
rowHeight = Math.max(aHeight, partCell.docHeight);
|
|
49793
|
+
rowSpan = mainCell.rowSpan;
|
|
49794
|
+
}
|
|
49795
|
+
}
|
|
49796
|
+
|
|
49797
|
+
if (rowSpan > 1) {
|
|
49798
|
+
for (var i = 1; i < rowSpan; i++) {
|
|
49799
|
+
var arowInfos = this._partRowHeights.get(r + i);
|
|
49800
|
+
|
|
49801
|
+
if (arowInfos && arowInfos.rowHeight && aHeight) {
|
|
49802
|
+
aHeight += arowInfos.rowHeight;
|
|
49803
|
+
}
|
|
49753
49804
|
}
|
|
49754
49805
|
} //this._partRowHeights.get(r)?.rowHeight
|
|
49755
49806
|
|
|
@@ -61253,7 +61304,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61253
61304
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(87461);
|
|
61254
61305
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(60199);
|
|
61255
61306
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(42015);
|
|
61256
|
-
/* harmony import */ var
|
|
61307
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(16296);
|
|
61257
61308
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(83964);
|
|
61258
61309
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(46455);
|
|
61259
61310
|
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41539);
|
|
@@ -61279,6 +61330,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61279
61330
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(28831);
|
|
61280
61331
|
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(92730);
|
|
61281
61332
|
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(69088);
|
|
61333
|
+
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(27356);
|
|
61282
61334
|
|
|
61283
61335
|
|
|
61284
61336
|
|
|
@@ -61293,8 +61345,8 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61293
61345
|
/*
|
|
61294
61346
|
* @Author: your name
|
|
61295
61347
|
* @Date: 2020-09-24 15:56:09
|
|
61296
|
-
* @LastEditTime: 2022-
|
|
61297
|
-
* @LastEditors:
|
|
61348
|
+
* @LastEditTime: 2022-06-07 15:10:10
|
|
61349
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
61298
61350
|
* @Description: In User Settings Edit
|
|
61299
61351
|
* @FilePath: \hoeditor-web\src\editor\undoRedo\NodeInsertUndoUnit.ts
|
|
61300
61352
|
*/
|
|
@@ -61313,6 +61365,7 @@ var NodeDeleteUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61313
61365
|
|
|
61314
61366
|
|
|
61315
61367
|
|
|
61368
|
+
|
|
61316
61369
|
var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
61317
61370
|
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(NodeInsertUndoUnit, _UndoInfo);
|
|
61318
61371
|
|
|
@@ -61333,7 +61386,7 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61333
61386
|
return _this;
|
|
61334
61387
|
}
|
|
61335
61388
|
|
|
61336
|
-
(0,
|
|
61389
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_25__/* ["default"] */ .Z)(NodeInsertUndoUnit, [{
|
|
61337
61390
|
key: "undo",
|
|
61338
61391
|
value: function undo() {
|
|
61339
61392
|
this.doUndo();
|
|
@@ -61425,6 +61478,11 @@ var NodeInsertUndoUnit = /*#__PURE__*/function (_UndoInfo) {
|
|
|
61425
61478
|
} else if (this._pnode && this._pnode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && this.strBeforePath != hoEditorFactory.docTree.getNodeLastPath(this._pnode)) {
|
|
61426
61479
|
//删除文本域节点的提示文本,并更新重绘整个文本域
|
|
61427
61480
|
var pTiNode = this._pnode;
|
|
61481
|
+
|
|
61482
|
+
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) {
|
|
61483
|
+
return path;
|
|
61484
|
+
}
|
|
61485
|
+
|
|
61428
61486
|
var res = pTiNode.getReadyToEdit(function (value) {
|
|
61429
61487
|
//NOTE:在redo当中不能使用同一实例UndoRedoService的commit
|
|
61430
61488
|
_this2._undo.begin();
|
|
@@ -198713,7 +198771,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
198713
198771
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
198714
198772
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
198715
198773
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
198716
|
-
;// 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=
|
|
198774
|
+
;// 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&
|
|
198717
198775
|
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()}
|
|
198718
198776
|
var staticRenderFns = []
|
|
198719
198777
|
|
|
@@ -200007,7 +200065,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200007
200065
|
key: "mouseDblClick",
|
|
200008
200066
|
value: function () {
|
|
200009
200067
|
var _mouseDblClick = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee(aevent) {
|
|
200010
|
-
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
|
|
200068
|
+
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;
|
|
200011
200069
|
|
|
200012
200070
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context) {
|
|
200013
200071
|
while (1) {
|
|
@@ -200165,48 +200223,42 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200165
200223
|
} else if (cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DateTime */.YS.DateTime || cellNode.cellProperty.editorProperty === TableProperty/* EditorProperty.DownList */.YS.DownList) {
|
|
200166
200224
|
_nodeNeedModifyEvent2 = new NodeNeedModifyEvent/* NodeNeedModifyEvent */.x(np.node, "dblclick", this._pageIndex);
|
|
200167
200225
|
hoEditorFactory.docTree.nodeNeedModify(_nodeNeedModifyEvent2);
|
|
200168
|
-
} else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200169
|
-
|
|
200170
|
-
|
|
200171
|
-
|
|
200172
|
-
|
|
200173
|
-
|
|
200174
|
-
|
|
200175
|
-
|
|
200176
|
-
|
|
200177
|
-
|
|
200178
|
-
|
|
200179
|
-
|
|
200180
|
-
|
|
200181
|
-
|
|
200182
|
-
|
|
200183
|
-
|
|
200184
|
-
|
|
200185
|
-
|
|
200186
|
-
|
|
200187
|
-
|
|
200188
|
-
|
|
200189
|
-
|
|
200190
|
-
|
|
200191
|
-
|
|
200192
|
-
|
|
200193
|
-
|
|
200194
|
-
|
|
200195
|
-
|
|
200196
|
-
|
|
200226
|
+
} // else if (cellNode.table.tableProperty.isAutoChangeLine) {
|
|
200227
|
+
// //处理自动换行表格,双击时光标跳到指定双击位置
|
|
200228
|
+
// const dPageTable = cellNode.table.drawTable.getDrawTableByPageIndex(dPage.pageIndex);
|
|
200229
|
+
// if (dPageTable) {
|
|
200230
|
+
// const dPageCell = cellNode.drawCell.getDrawPageCell(dPageTable);
|
|
200231
|
+
// if (dPageCell) {
|
|
200232
|
+
// const pos = dPageCell.globalToLocal(aevent.stageX, aevent.stageY);
|
|
200233
|
+
// let docHeight = 0;
|
|
200234
|
+
// let dHeight = 0;
|
|
200235
|
+
// const index = cellNode.drawCell.drawPageCells.indexOf(dPageCell);
|
|
200236
|
+
// for (let i = 0; i < index; i++) {
|
|
200237
|
+
// docHeight += cellNode.drawCell.drawPageCells[i].docHeight;
|
|
200238
|
+
// dHeight += cellNode.drawCell.drawPageCells[i].dHeight
|
|
200239
|
+
// }
|
|
200240
|
+
// const dLastObj = cellNode.drawCell.drawLines[cellNode.drawCell.drawLines.length - 1]
|
|
200241
|
+
// if (dLastObj.dTop + dLastObj.docHeight < dHeight + pos.y) {
|
|
200242
|
+
// const distance = pos.y + dHeight - (dLastObj.dTop + dLastObj.dHeight)
|
|
200243
|
+
// const aHeight = cellNode.table.tableProperty.autoLineHeightPx;
|
|
200244
|
+
// const count = Math.floor(distance / aHeight);
|
|
200245
|
+
// let str = "";
|
|
200246
|
+
// for (let j = 0; j < count; j++) {
|
|
200247
|
+
// str += "\n"
|
|
200248
|
+
// }
|
|
200249
|
+
// if (str != "") {
|
|
200250
|
+
// const oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200251
|
+
// const endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200252
|
+
// const newRange = new DomRange(hoEditorFactory.hoEditorFactoryId, endPath, endPath);
|
|
200253
|
+
// hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
200254
|
+
// hoEditorFactory.docTree.curDomRange = newRange;
|
|
200255
|
+
// hoEditorFactory.docController.insertPlainTextAfterPath(endPath, str);
|
|
200256
|
+
// }
|
|
200257
|
+
// }
|
|
200258
|
+
// }
|
|
200259
|
+
// }
|
|
200260
|
+
// }
|
|
200197
200261
|
|
|
200198
|
-
if (str != "") {
|
|
200199
|
-
_oldRange = hoEditorFactory.docTree.curDomRange.clone();
|
|
200200
|
-
_endPath = hoEditorFactory.docTree.getNodeLastPath(cellNode.childNodes[cellNode.childNodes.length - 1]);
|
|
200201
|
-
_newRange = new DomRange/* DomRange */.a(hoEditorFactory.hoEditorFactoryId, _endPath, _endPath);
|
|
200202
|
-
hoEditorFactory.drawTree.moveCaretToPath(_endPath);
|
|
200203
|
-
hoEditorFactory.docTree.curDomRange = _newRange;
|
|
200204
|
-
hoEditorFactory.docController.insertPlainTextAfterPath(_endPath, str);
|
|
200205
|
-
}
|
|
200206
|
-
}
|
|
200207
|
-
}
|
|
200208
|
-
}
|
|
200209
|
-
}
|
|
200210
200262
|
|
|
200211
200263
|
case 45:
|
|
200212
200264
|
return _context.abrupt("return", true);
|
|
@@ -206701,7 +206753,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
206701
206753
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206702
206754
|
var ParagraphNode = __webpack_require__(13880);
|
|
206703
206755
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206704
|
-
/* harmony default export */ var version = ('2.0.
|
|
206756
|
+
/* harmony default export */ var version = ('2.0.55');
|
|
206705
206757
|
;// 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&
|
|
206706
206758
|
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)}
|
|
206707
206759
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -218857,6 +218909,19 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218857
218909
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218858
218910
|
hoEditorFactory.docController.updateSignTime(node, signText);
|
|
218859
218911
|
}
|
|
218912
|
+
/**
|
|
218913
|
+
* 更新签名类型
|
|
218914
|
+
* @param node 签名节点
|
|
218915
|
+
* @param type 签名类型
|
|
218916
|
+
* @param imgSrc 签名内容
|
|
218917
|
+
*/
|
|
218918
|
+
|
|
218919
|
+
}, {
|
|
218920
|
+
key: "updateSignType",
|
|
218921
|
+
value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
|
|
218922
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218923
|
+
hoEditorFactory.docController.updateSignType(node, type, imgSrc, imgWidth, imgHeight);
|
|
218924
|
+
}
|
|
218860
218925
|
/**
|
|
218861
218926
|
* 强制删除
|
|
218862
218927
|
*/
|
|
@@ -219148,7 +219213,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219148
219213
|
var _loop2 = function _loop2(i) {
|
|
219149
219214
|
var node = nodes[i];
|
|
219150
219215
|
|
|
219151
|
-
if (node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.childNodes.filter(function (child) {
|
|
219216
|
+
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) {
|
|
219152
219217
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
219153
219218
|
}).length === 0) {
|
|
219154
219219
|
if (arr.filter(function (v) {
|
|
@@ -220210,6 +220275,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220210
220275
|
});
|
|
220211
220276
|
return ishandle;
|
|
220212
220277
|
}
|
|
220278
|
+
/**
|
|
220279
|
+
* 获取当前病历中所以批注
|
|
220280
|
+
*/
|
|
220281
|
+
|
|
220282
|
+
}, {
|
|
220283
|
+
key: "getDocCommentValue",
|
|
220284
|
+
value: function getDocCommentValue() {
|
|
220285
|
+
return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap;
|
|
220286
|
+
}
|
|
220213
220287
|
/**
|
|
220214
220288
|
* 批量修改当前病历中批注处理状态
|
|
220215
220289
|
* @param status 默认修改为 1==已处理
|
|
@@ -220221,10 +220295,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220221
220295
|
var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree;
|
|
220222
220296
|
var commentsMap = drawTree.commentsMap;
|
|
220223
220297
|
commentsMap.forEach(function (value, key) {
|
|
220224
|
-
if (value.customProperty) {
|
|
220225
|
-
value.customProperty
|
|
220226
|
-
commentsMap.set(key, value);
|
|
220298
|
+
if (!value.customProperty) {
|
|
220299
|
+
value.customProperty = {};
|
|
220227
220300
|
}
|
|
220301
|
+
|
|
220302
|
+
value.customProperty.ishandle = status == undefined ? '1' : status;
|
|
220303
|
+
commentsMap.set(key, value);
|
|
220228
220304
|
});
|
|
220229
220305
|
drawTree.commentsMap = commentsMap;
|
|
220230
220306
|
}
|
|
@@ -224933,9 +225009,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
224933
225009
|
)
|
|
224934
225010
|
|
|
224935
225011
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
224936
|
-
;// 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=
|
|
224937
|
-
var
|
|
224938
|
-
var
|
|
225012
|
+
;// 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&
|
|
225013
|
+
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)}
|
|
225014
|
+
var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
|
|
224939
225015
|
|
|
224940
225016
|
|
|
224941
225017
|
;// 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&
|
|
@@ -227126,9 +227202,9 @@ var RadioCheckbox_component = normalizeComponent(
|
|
|
227126
227202
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/index.ts
|
|
227127
227203
|
|
|
227128
227204
|
/* harmony default export */ var radioCheckBox = (radioCheckBox_RadioCheckbox);
|
|
227129
|
-
;// 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=
|
|
227130
|
-
var
|
|
227131
|
-
var
|
|
227205
|
+
;// 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&
|
|
227206
|
+
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)])}
|
|
227207
|
+
var CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns = []
|
|
227132
227208
|
|
|
227133
227209
|
|
|
227134
227210
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-83[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&
|
|
@@ -227181,15 +227257,27 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
|
|
|
227181
227257
|
mounted: function mounted() {},
|
|
227182
227258
|
methods: {
|
|
227183
227259
|
sure: function sure() {
|
|
227184
|
-
|
|
227185
|
-
if (this.controlStatus === 'update') {
|
|
227186
|
-
this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
|
|
227187
|
-
} else {
|
|
227188
|
-
this.$emit('insertComments', this.textContent);
|
|
227189
|
-
this.vueController.insertComment(this.textContent, this.getCustomProperty());
|
|
227190
|
-
}
|
|
227260
|
+
var _this = this;
|
|
227191
227261
|
|
|
227192
|
-
|
|
227262
|
+
var callback = function callback() {
|
|
227263
|
+
_this.$emit('closed');
|
|
227264
|
+
};
|
|
227265
|
+
|
|
227266
|
+
if (this.controlStatus === 'update') {
|
|
227267
|
+
this.$emit('insertComments', {
|
|
227268
|
+
id: this.commentValue.id,
|
|
227269
|
+
content: this.textContent,
|
|
227270
|
+
customProperty: this.getCustomProperty(),
|
|
227271
|
+
type: 'update',
|
|
227272
|
+
callback: callback
|
|
227273
|
+
}); // this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
|
|
227274
|
+
} else {
|
|
227275
|
+
this.$emit('insertComments', {
|
|
227276
|
+
content: this.textContent,
|
|
227277
|
+
customProperty: this.getCustomProperty(),
|
|
227278
|
+
type: 'add',
|
|
227279
|
+
callback: callback
|
|
227280
|
+
}); // this.vueController.insertComment(this.textContent, this.getCustomProperty());
|
|
227193
227281
|
}
|
|
227194
227282
|
}
|
|
227195
227283
|
}
|
|
@@ -227212,8 +227300,8 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
|
|
|
227212
227300
|
|
|
227213
227301
|
var CommentDialog_component = normalizeComponent(
|
|
227214
227302
|
commentDialog_CommentDialogvue_type_script_lang_js_,
|
|
227215
|
-
|
|
227216
|
-
|
|
227303
|
+
CommentDialogvue_type_template_id_27b7d6e2_render,
|
|
227304
|
+
CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns,
|
|
227217
227305
|
false,
|
|
227218
227306
|
null,
|
|
227219
227307
|
null,
|
|
@@ -230537,8 +230625,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
230537
230625
|
;
|
|
230538
230626
|
var ControlModal_component = normalizeComponent(
|
|
230539
230627
|
controls_ControlModalvue_type_script_lang_ts_,
|
|
230540
|
-
|
|
230541
|
-
|
|
230628
|
+
ControlModalvue_type_template_id_2efd7672_render,
|
|
230629
|
+
ControlModalvue_type_template_id_2efd7672_staticRenderFns,
|
|
230542
230630
|
false,
|
|
230543
230631
|
null,
|
|
230544
230632
|
null,
|
|
@@ -232384,9 +232472,9 @@ var HoDocs_component = normalizeComponent(
|
|
|
232384
232472
|
)
|
|
232385
232473
|
|
|
232386
232474
|
/* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
|
|
232387
|
-
;// 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=
|
|
232388
|
-
var
|
|
232389
|
-
var
|
|
232475
|
+
;// 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&
|
|
232476
|
+
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)}
|
|
232477
|
+
var ToolBarvue_type_template_id_3f61d307_staticRenderFns = []
|
|
232390
232478
|
|
|
232391
232479
|
|
|
232392
232480
|
;// 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&
|
|
@@ -237508,27 +237596,32 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
237508
237596
|
}, {
|
|
237509
237597
|
key: "deleteComment",
|
|
237510
237598
|
value: function deleteComment() {
|
|
237511
|
-
|
|
237512
|
-
|
|
237513
|
-
|
|
237514
|
-
|
|
237515
|
-
if (selectedComment) {
|
|
237516
|
-
|
|
237517
|
-
|
|
237518
|
-
|
|
237519
|
-
|
|
237520
|
-
|
|
237521
|
-
|
|
237522
|
-
|
|
237523
|
-
|
|
237524
|
-
|
|
237525
|
-
|
|
237526
|
-
|
|
237527
|
-
|
|
237528
|
-
|
|
237529
|
-
|
|
237530
|
-
|
|
237531
|
-
|
|
237599
|
+
this.$emit("insertComments", {
|
|
237600
|
+
type: 'delete',
|
|
237601
|
+
selectedComment: this.vueController.getOnSelectedComment()
|
|
237602
|
+
}); // const selectedComment = this.vueController.getOnSelectedComment();
|
|
237603
|
+
// if (selectedComment) {
|
|
237604
|
+
// (this as any)
|
|
237605
|
+
// .$elConfirm("确定要删除选中的批注吗", "删除确认", {
|
|
237606
|
+
// cancelButtonText: "取消",
|
|
237607
|
+
// confirmButtonText: "确定",
|
|
237608
|
+
// type: "warning",
|
|
237609
|
+
// })
|
|
237610
|
+
// .then(() => {
|
|
237611
|
+
// this.vueController.deleteComment(1);
|
|
237612
|
+
// })
|
|
237613
|
+
// .catch(() => {
|
|
237614
|
+
// console.log("取消删除");
|
|
237615
|
+
// });
|
|
237616
|
+
// } else {
|
|
237617
|
+
// (this as any).$elMessage.closeAll();
|
|
237618
|
+
// (this as any).$elMessage.warning({
|
|
237619
|
+
// message: "点击选中右侧批注区域内已添加的批注后,进行删除操作",
|
|
237620
|
+
// duration: 3000,
|
|
237621
|
+
// offset: 120,
|
|
237622
|
+
// });
|
|
237623
|
+
// return;
|
|
237624
|
+
// }
|
|
237532
237625
|
}
|
|
237533
237626
|
/**
|
|
237534
237627
|
* 删除全部批注
|
|
@@ -237537,15 +237630,21 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
|
|
|
237537
237630
|
}, {
|
|
237538
237631
|
key: "deleteAllComment",
|
|
237539
237632
|
value: function deleteAllComment() {
|
|
237540
|
-
|
|
237541
|
-
|
|
237542
|
-
|
|
237543
|
-
|
|
237544
|
-
|
|
237545
|
-
|
|
237546
|
-
|
|
237547
|
-
|
|
237548
|
-
})
|
|
237633
|
+
this.$emit("insertComments", {
|
|
237634
|
+
type: 'deleteAll',
|
|
237635
|
+
commentValue: this.vueController.getDocCommentValue()
|
|
237636
|
+
}); // (this as any)
|
|
237637
|
+
// .$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)", "删除确认", {
|
|
237638
|
+
// cancelButtonText: "取消",
|
|
237639
|
+
// confirmButtonText: "确定",
|
|
237640
|
+
// type: "warning",
|
|
237641
|
+
// })
|
|
237642
|
+
// .then(() => {
|
|
237643
|
+
// this.vueController.deleteComment(0);
|
|
237644
|
+
// })
|
|
237645
|
+
// .catch(() => {
|
|
237646
|
+
// console.log("取消删除");
|
|
237647
|
+
// });
|
|
237549
237648
|
}
|
|
237550
237649
|
/**
|
|
237551
237650
|
* 取消删除
|
|
@@ -237673,8 +237772,8 @@ ToolBar = __decorate([vue_class_component_esm({
|
|
|
237673
237772
|
|
|
237674
237773
|
var ToolBar_component = normalizeComponent(
|
|
237675
237774
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
237676
|
-
|
|
237677
|
-
|
|
237775
|
+
ToolBarvue_type_template_id_3f61d307_render,
|
|
237776
|
+
ToolBarvue_type_template_id_3f61d307_staticRenderFns,
|
|
237678
237777
|
false,
|
|
237679
237778
|
null,
|
|
237680
237779
|
null,
|