hoeditor-web 2.0.55 → 2.0.58
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 +1059 -270
- package/lib/hoeditor.css +2 -853
- package/lib/hoeditor.umd.js +1059 -270
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -10980,7 +10980,7 @@ var PrintStatus = /*#__PURE__*/function () {
|
|
|
10980
10980
|
this._printRecord = new PrintRecord(hoEditorFactoryID);
|
|
10981
10981
|
this._DrawRange = new Array();
|
|
10982
10982
|
this.pageSettingMap = new Map();
|
|
10983
|
-
this._printAppoint =
|
|
10983
|
+
this._printAppoint = '';
|
|
10984
10984
|
}
|
|
10985
10985
|
|
|
10986
10986
|
(0,createClass/* default */.Z)(PrintStatus, [{
|
|
@@ -11168,16 +11168,16 @@ var PrintStatus = /*#__PURE__*/function () {
|
|
|
11168
11168
|
return;
|
|
11169
11169
|
}
|
|
11170
11170
|
|
|
11171
|
-
if (values ==
|
|
11171
|
+
if (values == '') {
|
|
11172
11172
|
values = "".concat(this.startIndex, "-").concat(hoEditorFactory.drawTree.drawPages.length);
|
|
11173
11173
|
}
|
|
11174
11174
|
|
|
11175
|
-
values = values.replace(/\s*/g,
|
|
11175
|
+
values = values.replace(/\s*/g, '').replace(/[^\d|-]/g, ',').replace(/\,{2,}/g, ',');
|
|
11176
11176
|
var val = values;
|
|
11177
|
-
var arr = val.split(
|
|
11177
|
+
var arr = val.split(',');
|
|
11178
11178
|
var pages = new Array();
|
|
11179
11179
|
arr.forEach(function (value) {
|
|
11180
|
-
var tmp = value.split(
|
|
11180
|
+
var tmp = value.split('-');
|
|
11181
11181
|
|
|
11182
11182
|
if (tmp.length == 1) {
|
|
11183
11183
|
pages.push(parseInt(tmp[0]));
|
|
@@ -11452,21 +11452,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
11452
11452
|
(0,createClass/* default */.Z)(Print, null, [{
|
|
11453
11453
|
key: "openDataUriInWindow",
|
|
11454
11454
|
value: function openDataUriInWindow(PDF, fileName, width) {
|
|
11455
|
-
if (navigator && navigator.userAgent.toLowerCase().indexOf(
|
|
11456
|
-
var htmlForNewWindow =
|
|
11457
|
-
var nW = window.open(
|
|
11455
|
+
if (navigator && navigator.userAgent.toLowerCase().indexOf('electron') !== -1) {
|
|
11456
|
+
var htmlForNewWindow = '<html>' + '<title>' + fileName + '</title>' + '<style>html, body { padding: 0; margin: 0; } iframe { width: 100%; height: 100%; border: 0;} </style>' + '<body>' + '<iframe src="' + PDF.output('bloburl') + '"></iframe>' + '</body></html>';
|
|
11457
|
+
var nW = window.open('', 'modal', 'width=' + (width + 400) + ',height=800');
|
|
11458
11458
|
|
|
11459
11459
|
if (nW) {
|
|
11460
11460
|
nW.document.write(htmlForNewWindow);
|
|
11461
11461
|
}
|
|
11462
11462
|
} else {
|
|
11463
|
-
if (document.querySelector(
|
|
11464
|
-
document.body.removeChild(document.querySelector(
|
|
11463
|
+
if (document.querySelector('#Ho_Editor_Print_Iframe')) {
|
|
11464
|
+
document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
|
|
11465
11465
|
}
|
|
11466
11466
|
|
|
11467
11467
|
this.printPage(PDF).catch(function (error) {
|
|
11468
11468
|
PDF.autoPrint();
|
|
11469
|
-
PDF.output(
|
|
11469
|
+
PDF.output('dataurlnewwindow');
|
|
11470
11470
|
});
|
|
11471
11471
|
}
|
|
11472
11472
|
}
|
|
@@ -11479,7 +11479,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11479
11479
|
while (1) {
|
|
11480
11480
|
switch (_context2.prev = _context2.next) {
|
|
11481
11481
|
case 0:
|
|
11482
|
-
oHiddFrame = document.createElement(
|
|
11482
|
+
oHiddFrame = document.createElement('iframe');
|
|
11483
11483
|
printPromise = new Promise(function (resolve, reject) {
|
|
11484
11484
|
oHiddFrame.onload = function () {
|
|
11485
11485
|
try {
|
|
@@ -11488,20 +11488,20 @@ var Print = /*#__PURE__*/function () {
|
|
|
11488
11488
|
oHiddFrame === null || oHiddFrame === void 0 ? void 0 : (_oHiddFrame$contentWi = oHiddFrame.contentWindow) === null || _oHiddFrame$contentWi === void 0 ? void 0 : _oHiddFrame$contentWi.focus(); // Required for IE
|
|
11489
11489
|
|
|
11490
11490
|
oHiddFrame === null || oHiddFrame === void 0 ? void 0 : (_oHiddFrame$contentWi2 = oHiddFrame.contentWindow) === null || _oHiddFrame$contentWi2 === void 0 ? void 0 : _oHiddFrame$contentWi2.print();
|
|
11491
|
-
resolve(
|
|
11491
|
+
resolve('print');
|
|
11492
11492
|
} catch (error) {
|
|
11493
11493
|
reject(error);
|
|
11494
11494
|
}
|
|
11495
11495
|
};
|
|
11496
11496
|
});
|
|
11497
|
-
oHiddFrame.id =
|
|
11498
|
-
oHiddFrame.style.position =
|
|
11499
|
-
oHiddFrame.style.right =
|
|
11500
|
-
oHiddFrame.style.bottom =
|
|
11501
|
-
oHiddFrame.style.width =
|
|
11502
|
-
oHiddFrame.style.height =
|
|
11503
|
-
oHiddFrame.style.border =
|
|
11504
|
-
oHiddFrame.src = PDF.output(
|
|
11497
|
+
oHiddFrame.id = 'Ho_Editor_Print_Iframe';
|
|
11498
|
+
oHiddFrame.style.position = 'fixed';
|
|
11499
|
+
oHiddFrame.style.right = '0';
|
|
11500
|
+
oHiddFrame.style.bottom = '0';
|
|
11501
|
+
oHiddFrame.style.width = '0';
|
|
11502
|
+
oHiddFrame.style.height = '0';
|
|
11503
|
+
oHiddFrame.style.border = '0';
|
|
11504
|
+
oHiddFrame.src = PDF.output('bloburl');
|
|
11505
11505
|
document.body.appendChild(oHiddFrame);
|
|
11506
11506
|
_context2.next = 13;
|
|
11507
11507
|
return printPromise;
|
|
@@ -11541,7 +11541,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11541
11541
|
break;
|
|
11542
11542
|
}
|
|
11543
11543
|
|
|
11544
|
-
message_box_default().alert(
|
|
11544
|
+
message_box_default().alert('病程记录文件有删除或者内容减少,导致上一次记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打');
|
|
11545
11545
|
|
|
11546
11546
|
reslove && reslove(null);
|
|
11547
11547
|
return _context3.abrupt("return");
|
|
@@ -11573,17 +11573,17 @@ var Print = /*#__PURE__*/function () {
|
|
|
11573
11573
|
hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
|
|
11574
11574
|
}
|
|
11575
11575
|
|
|
11576
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ?
|
|
11576
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
11577
11577
|
width = hoEditorFactory.pageProperty.widthPixes;
|
|
11578
|
-
height = orientation ===
|
|
11578
|
+
height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
|
|
11579
11579
|
|
|
11580
|
-
if (type ===
|
|
11581
|
-
svgBox = document.createElement(
|
|
11582
|
-
svgBox.className =
|
|
11580
|
+
if (type === 'html') {
|
|
11581
|
+
svgBox = document.createElement('div');
|
|
11582
|
+
svgBox.className = 'ho-print-svg-box';
|
|
11583
11583
|
}
|
|
11584
11584
|
|
|
11585
11585
|
last = -1;
|
|
11586
|
-
console.time(
|
|
11586
|
+
console.time('绘制svg和生成pdf');
|
|
11587
11587
|
_iterator = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
11588
11588
|
_context3.prev = 15;
|
|
11589
11589
|
|
|
@@ -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 = 59;
|
|
11595
11595
|
break;
|
|
11596
11596
|
}
|
|
11597
11597
|
|
|
@@ -11603,13 +11603,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
11603
11603
|
}
|
|
11604
11604
|
|
|
11605
11605
|
_context3.next = 22;
|
|
11606
|
-
return message_box_default().confirm(
|
|
11607
|
-
confirmButtonText:
|
|
11608
|
-
type:
|
|
11606
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
11607
|
+
confirmButtonText: '确定',
|
|
11608
|
+
type: 'info'
|
|
11609
11609
|
});
|
|
11610
11610
|
|
|
11611
11611
|
case 22:
|
|
11612
|
-
return _context3.abrupt("continue",
|
|
11612
|
+
return _context3.abrupt("continue", 57);
|
|
11613
11613
|
|
|
11614
11614
|
case 23:
|
|
11615
11615
|
last = index;
|
|
@@ -11620,7 +11620,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11620
11620
|
break;
|
|
11621
11621
|
}
|
|
11622
11622
|
|
|
11623
|
-
return _context3.abrupt("break",
|
|
11623
|
+
return _context3.abrupt("break", 59);
|
|
11624
11624
|
|
|
11625
11625
|
case 27:
|
|
11626
11626
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
@@ -11631,7 +11631,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11631
11631
|
|
|
11632
11632
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
11633
11633
|
dShape = new createjs.Shape();
|
|
11634
|
-
dShape.graphics.beginFill(
|
|
11634
|
+
dShape.graphics.beginFill('#fff').rect(0, 0, width, positionY).endFill();
|
|
11635
11635
|
cpage.drawDocContainer.addChild(dShape);
|
|
11636
11636
|
cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
|
|
11637
11637
|
} // 光标处续打
|
|
@@ -11644,7 +11644,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11644
11644
|
if (index === posIndex && posY) {
|
|
11645
11645
|
_dShape = new createjs.Shape();
|
|
11646
11646
|
|
|
11647
|
-
_dShape.graphics.beginFill(
|
|
11647
|
+
_dShape.graphics.beginFill('#fff').rect(0, 0, width, posY).endFill();
|
|
11648
11648
|
|
|
11649
11649
|
cpage.drawDocContainer.addChild(_dShape);
|
|
11650
11650
|
cpage.drawFooter.alpha = 0;
|
|
@@ -11662,7 +11662,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11662
11662
|
};
|
|
11663
11663
|
|
|
11664
11664
|
if (hoEditorFactory.isFixedPrintToA4 && format) {
|
|
11665
|
-
if (orientation ==
|
|
11665
|
+
if (orientation == 'l') {
|
|
11666
11666
|
svg2pdfOptions.x = format[0] - width;
|
|
11667
11667
|
svg2pdfOptions.y = (format[1] - height) / 2;
|
|
11668
11668
|
} else {
|
|
@@ -11671,20 +11671,30 @@ var Print = /*#__PURE__*/function () {
|
|
|
11671
11671
|
}
|
|
11672
11672
|
|
|
11673
11673
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11674
|
-
_context3.next =
|
|
11674
|
+
_context3.next = 43;
|
|
11675
11675
|
break;
|
|
11676
11676
|
}
|
|
11677
11677
|
|
|
11678
11678
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11679
11679
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11680
|
+
|
|
11681
|
+
if (hoEditorFactory.isFixedPrintToA4T && format) {
|
|
11682
|
+
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
11683
|
+
if (orientation === 'p' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
|
|
11684
|
+
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
11685
|
+
|
|
11686
|
+
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
11687
|
+
}
|
|
11688
|
+
}
|
|
11689
|
+
|
|
11680
11690
|
ctx.posX = svg2pdfOptions.x;
|
|
11681
11691
|
ctx.posY = svg2pdfOptions.y;
|
|
11682
11692
|
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));
|
|
11683
11693
|
ctx = null;
|
|
11684
|
-
_context3.next =
|
|
11694
|
+
_context3.next = 56;
|
|
11685
11695
|
break;
|
|
11686
11696
|
|
|
11687
|
-
case
|
|
11697
|
+
case 43:
|
|
11688
11698
|
_ctx = new canvas2svg({
|
|
11689
11699
|
width: width,
|
|
11690
11700
|
height: height,
|
|
@@ -11692,138 +11702,142 @@ var Print = /*#__PURE__*/function () {
|
|
|
11692
11702
|
});
|
|
11693
11703
|
_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));
|
|
11694
11704
|
|
|
11695
|
-
if (!(type ===
|
|
11696
|
-
_context3.next =
|
|
11705
|
+
if (!(type === 'html')) {
|
|
11706
|
+
_context3.next = 50;
|
|
11697
11707
|
break;
|
|
11698
11708
|
}
|
|
11699
11709
|
|
|
11700
11710
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
11701
11711
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
11702
|
-
_context3.next =
|
|
11712
|
+
_context3.next = 55;
|
|
11703
11713
|
break;
|
|
11704
11714
|
|
|
11705
|
-
case
|
|
11715
|
+
case 50:
|
|
11706
11716
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11707
11717
|
_context3.t0 = PDF;
|
|
11708
11718
|
|
|
11709
11719
|
if (!_context3.t0) {
|
|
11710
|
-
_context3.next =
|
|
11720
|
+
_context3.next = 55;
|
|
11711
11721
|
break;
|
|
11712
11722
|
}
|
|
11713
11723
|
|
|
11714
|
-
_context3.next =
|
|
11724
|
+
_context3.next = 55;
|
|
11715
11725
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
11716
11726
|
|
|
11717
|
-
case
|
|
11727
|
+
case 55:
|
|
11718
11728
|
_ctx = null;
|
|
11719
11729
|
|
|
11720
|
-
case
|
|
11730
|
+
case 56:
|
|
11721
11731
|
index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
|
|
11722
11732
|
|
|
11723
|
-
case
|
|
11733
|
+
case 57:
|
|
11724
11734
|
_context3.next = 17;
|
|
11725
11735
|
break;
|
|
11726
11736
|
|
|
11727
|
-
case
|
|
11728
|
-
_context3.next =
|
|
11737
|
+
case 59:
|
|
11738
|
+
_context3.next = 64;
|
|
11729
11739
|
break;
|
|
11730
11740
|
|
|
11731
|
-
case
|
|
11732
|
-
_context3.prev =
|
|
11741
|
+
case 61:
|
|
11742
|
+
_context3.prev = 61;
|
|
11733
11743
|
_context3.t1 = _context3["catch"](15);
|
|
11734
11744
|
|
|
11735
11745
|
_iterator.e(_context3.t1);
|
|
11736
11746
|
|
|
11737
|
-
case
|
|
11738
|
-
_context3.prev =
|
|
11747
|
+
case 64:
|
|
11748
|
+
_context3.prev = 64;
|
|
11739
11749
|
|
|
11740
11750
|
_iterator.f();
|
|
11741
11751
|
|
|
11742
|
-
return _context3.finish(
|
|
11752
|
+
return _context3.finish(64);
|
|
11743
11753
|
|
|
11744
|
-
case
|
|
11745
|
-
console.timeEnd(
|
|
11754
|
+
case 67:
|
|
11755
|
+
console.timeEnd('绘制svg和生成pdf');
|
|
11746
11756
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11747
11757
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11748
11758
|
|
|
11749
11759
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
11750
|
-
_context3.next =
|
|
11760
|
+
_context3.next = 76;
|
|
11751
11761
|
break;
|
|
11752
11762
|
}
|
|
11753
11763
|
|
|
11754
11764
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
11755
11765
|
|
|
11756
11766
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
11757
|
-
_context3.next =
|
|
11767
|
+
_context3.next = 76;
|
|
11758
11768
|
break;
|
|
11759
11769
|
}
|
|
11760
11770
|
|
|
11761
|
-
message_box_default().confirm(
|
|
11762
|
-
confirmButtonText:
|
|
11763
|
-
type:
|
|
11771
|
+
message_box_default().confirm('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录', '打印提示', {
|
|
11772
|
+
confirmButtonText: '确定',
|
|
11773
|
+
type: 'info'
|
|
11764
11774
|
});
|
|
11765
11775
|
|
|
11766
|
-
reslove && reslove(
|
|
11776
|
+
reslove && reslove('printend');
|
|
11767
11777
|
return _context3.abrupt("return");
|
|
11768
11778
|
|
|
11769
|
-
case
|
|
11770
|
-
if (!(type ===
|
|
11771
|
-
_context3.next =
|
|
11779
|
+
case 76:
|
|
11780
|
+
if (!(type === 'pdf')) {
|
|
11781
|
+
_context3.next = 82;
|
|
11772
11782
|
break;
|
|
11773
11783
|
}
|
|
11774
11784
|
|
|
11775
11785
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11776
|
-
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName +
|
|
11786
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
11777
11787
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
11778
|
-
_context3.next =
|
|
11788
|
+
_context3.next = 88;
|
|
11779
11789
|
break;
|
|
11780
11790
|
|
|
11781
|
-
case
|
|
11791
|
+
case 82:
|
|
11782
11792
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
11783
|
-
_context3.next =
|
|
11793
|
+
_context3.next = 86;
|
|
11784
11794
|
break;
|
|
11785
11795
|
}
|
|
11786
11796
|
|
|
11787
|
-
message_box_default().confirm(
|
|
11788
|
-
confirmButtonText:
|
|
11789
|
-
type:
|
|
11797
|
+
message_box_default().confirm('无新增内容', '打印提示', {
|
|
11798
|
+
confirmButtonText: '确定',
|
|
11799
|
+
type: 'info'
|
|
11790
11800
|
});
|
|
11791
11801
|
|
|
11792
|
-
reslove && reslove(
|
|
11802
|
+
reslove && reslove('printend');
|
|
11793
11803
|
return _context3.abrupt("return");
|
|
11794
11804
|
|
|
11795
|
-
case
|
|
11805
|
+
case 86:
|
|
11796
11806
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
11797
11807
|
|
|
11798
|
-
if (type ===
|
|
11808
|
+
if (type === 'html') {
|
|
11799
11809
|
exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat((_svgBox = svgBox) === null || _svgBox === void 0 ? void 0 : _svgBox.innerHTML, "</body>\n </html>\n ");
|
|
11800
11810
|
url = window.URL.createObjectURL(new Blob([exportHtml], {
|
|
11801
11811
|
type: "text/html"
|
|
11802
11812
|
}));
|
|
11803
|
-
link = document.createElement(
|
|
11804
|
-
link.style.display =
|
|
11813
|
+
link = document.createElement('a');
|
|
11814
|
+
link.style.display = 'none';
|
|
11805
11815
|
link.href = url;
|
|
11806
|
-
link.setAttribute(
|
|
11816
|
+
link.setAttribute('download', fileName ? fileName : '电子病历文档');
|
|
11807
11817
|
document.body.appendChild(link);
|
|
11808
11818
|
link.click();
|
|
11809
11819
|
setTimeout(function () {
|
|
11810
11820
|
return link.remove();
|
|
11811
11821
|
}, 100);
|
|
11812
11822
|
} else {
|
|
11823
|
+
if (height <= 560 && !hoEditorFactory.isFixedPrintToA4T) {
|
|
11824
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11825
|
+
}
|
|
11826
|
+
|
|
11813
11827
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11814
|
-
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() :
|
|
11828
|
+
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
11815
11829
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
11816
11830
|
}
|
|
11817
11831
|
|
|
11818
|
-
case 87:
|
|
11819
|
-
reslove && reslove("printend");
|
|
11820
|
-
|
|
11821
11832
|
case 88:
|
|
11833
|
+
reslove && reslove('printend');
|
|
11834
|
+
|
|
11835
|
+
case 89:
|
|
11822
11836
|
case "end":
|
|
11823
11837
|
return _context3.stop();
|
|
11824
11838
|
}
|
|
11825
11839
|
}
|
|
11826
|
-
}, _callee2, this, [[15,
|
|
11840
|
+
}, _callee2, this, [[15, 61, 64, 67]]);
|
|
11827
11841
|
}));
|
|
11828
11842
|
|
|
11829
11843
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
@@ -11850,9 +11864,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
11850
11864
|
hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
|
|
11851
11865
|
}
|
|
11852
11866
|
|
|
11853
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ?
|
|
11854
|
-
svgBox = document.createElement(
|
|
11855
|
-
svgBox.className =
|
|
11867
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
11868
|
+
svgBox = document.createElement('div');
|
|
11869
|
+
svgBox.className = 'ho-print-svg-box';
|
|
11856
11870
|
last = -1;
|
|
11857
11871
|
_iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
11858
11872
|
_context4.prev = 9;
|
|
@@ -11873,9 +11887,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
11873
11887
|
}
|
|
11874
11888
|
|
|
11875
11889
|
_context4.next = 16;
|
|
11876
|
-
return message_box_default().confirm(
|
|
11877
|
-
confirmButtonText:
|
|
11878
|
-
type:
|
|
11890
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
11891
|
+
confirmButtonText: '确定',
|
|
11892
|
+
type: 'info'
|
|
11879
11893
|
});
|
|
11880
11894
|
|
|
11881
11895
|
case 16:
|
|
@@ -11918,7 +11932,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11918
11932
|
case 30:
|
|
11919
11933
|
_ctx4 = new canvas2svg({
|
|
11920
11934
|
width: hoEditorFactory.pageProperty.widthPixes,
|
|
11921
|
-
height: orientation ===
|
|
11935
|
+
height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
|
|
11922
11936
|
printBlack: hoEditorFactory.printBlack
|
|
11923
11937
|
});
|
|
11924
11938
|
_ctx4 && ((_cpage$drawDomLevel5 = cpage.drawDomLevel) === null || _cpage$drawDomLevel5 === void 0 ? void 0 : (_cpage$drawDomLevel5$ = _cpage$drawDomLevel5.stage) === null || _cpage$drawDomLevel5$ === void 0 ? void 0 : _cpage$drawDomLevel5$.draw(_ctx4));
|
|
@@ -11959,7 +11973,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11959
11973
|
}
|
|
11960
11974
|
|
|
11961
11975
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11962
|
-
reslove && reslove(
|
|
11976
|
+
reslove && reslove('printend');
|
|
11963
11977
|
|
|
11964
11978
|
case 50:
|
|
11965
11979
|
case "end":
|
|
@@ -11988,11 +12002,11 @@ var Print = /*#__PURE__*/function () {
|
|
|
11988
12002
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoEditorFactoryID);
|
|
11989
12003
|
hoEditorFactory.printStatus.startIndex = 1;
|
|
11990
12004
|
hoEditorFactory.printStatus.generatePageIndexs(hoEditorFactory.printStatus.printAppoint);
|
|
11991
|
-
svgBox = document.createElement(
|
|
11992
|
-
svgBox.className =
|
|
11993
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ?
|
|
12005
|
+
svgBox = document.createElement('div');
|
|
12006
|
+
svgBox.className = 'ho-print-svg-box';
|
|
12007
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
11994
12008
|
width = hoEditorFactory.pageProperty.widthPixes;
|
|
11995
|
-
height = orientation ===
|
|
12009
|
+
height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
|
|
11996
12010
|
last = -1;
|
|
11997
12011
|
_iterator3 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
11998
12012
|
_context5.prev = 10;
|
|
@@ -12013,9 +12027,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
12013
12027
|
}
|
|
12014
12028
|
|
|
12015
12029
|
_context5.next = 17;
|
|
12016
|
-
return message_box_default().confirm(
|
|
12017
|
-
confirmButtonText:
|
|
12018
|
-
type:
|
|
12030
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
12031
|
+
confirmButtonText: '确定',
|
|
12032
|
+
type: 'info'
|
|
12019
12033
|
});
|
|
12020
12034
|
|
|
12021
12035
|
case 17:
|
|
@@ -12082,7 +12096,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12082
12096
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
12083
12097
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
12084
12098
|
htmlText.text = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat(svgBox === null || svgBox === void 0 ? void 0 : svgBox.innerHTML, "</body>\n </html>\n ");
|
|
12085
|
-
reslove && reslove(
|
|
12099
|
+
reslove && reslove('printend');
|
|
12086
12100
|
|
|
12087
12101
|
case 44:
|
|
12088
12102
|
case "end":
|
|
@@ -12115,8 +12129,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
12115
12129
|
p: [793, 1122],
|
|
12116
12130
|
l: [1122, 793]
|
|
12117
12131
|
};
|
|
12118
|
-
svgBox = document.createElement(
|
|
12119
|
-
svgBox.className =
|
|
12132
|
+
svgBox = document.createElement('div');
|
|
12133
|
+
svgBox.className = 'ho-print-svg-box';
|
|
12120
12134
|
last = -1;
|
|
12121
12135
|
_iterator4 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
12122
12136
|
_context6.prev = 8;
|
|
@@ -12125,7 +12139,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12125
12139
|
|
|
12126
12140
|
case 10:
|
|
12127
12141
|
if ((_step4 = _iterator4.n()).done) {
|
|
12128
|
-
_context6.next =
|
|
12142
|
+
_context6.next = 48;
|
|
12129
12143
|
break;
|
|
12130
12144
|
}
|
|
12131
12145
|
|
|
@@ -12137,13 +12151,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
12137
12151
|
}
|
|
12138
12152
|
|
|
12139
12153
|
_context6.next = 15;
|
|
12140
|
-
return message_box_default().confirm(
|
|
12141
|
-
confirmButtonText:
|
|
12142
|
-
type:
|
|
12154
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
12155
|
+
confirmButtonText: '确定',
|
|
12156
|
+
type: 'info'
|
|
12143
12157
|
});
|
|
12144
12158
|
|
|
12145
12159
|
case 15:
|
|
12146
|
-
return _context6.abrupt("continue",
|
|
12160
|
+
return _context6.abrupt("continue", 46);
|
|
12147
12161
|
|
|
12148
12162
|
case 16:
|
|
12149
12163
|
last = index;
|
|
@@ -12164,12 +12178,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
12164
12178
|
break;
|
|
12165
12179
|
}
|
|
12166
12180
|
|
|
12167
|
-
return _context6.abrupt("break",
|
|
12181
|
+
return _context6.abrupt("break", 48);
|
|
12168
12182
|
|
|
12169
12183
|
case 22:
|
|
12170
12184
|
widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
|
|
12171
12185
|
heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
|
|
12172
|
-
orientation = widthPixes > heightPixes ?
|
|
12186
|
+
orientation = widthPixes > heightPixes ? 'l' : 'p';
|
|
12173
12187
|
formats = [widthPixes, heightPixes];
|
|
12174
12188
|
format = a4Size[orientation];
|
|
12175
12189
|
svg2pdfOptions = {
|
|
@@ -12178,7 +12192,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12178
12192
|
};
|
|
12179
12193
|
|
|
12180
12194
|
if (hoEditorFactory.isFixedPrintToA4 && format) {
|
|
12181
|
-
if (orientation ==
|
|
12195
|
+
if (orientation == 'l') {
|
|
12182
12196
|
svg2pdfOptions.x = format[0] - widthPixes;
|
|
12183
12197
|
svg2pdfOptions.y = (format[1] - heightPixes) / 2;
|
|
12184
12198
|
} else {
|
|
@@ -12187,7 +12201,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12187
12201
|
}
|
|
12188
12202
|
|
|
12189
12203
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
12190
|
-
_context6.next =
|
|
12204
|
+
_context6.next = 39;
|
|
12191
12205
|
break;
|
|
12192
12206
|
}
|
|
12193
12207
|
|
|
@@ -12198,17 +12212,27 @@ var Print = /*#__PURE__*/function () {
|
|
|
12198
12212
|
}
|
|
12199
12213
|
|
|
12200
12214
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
12215
|
+
|
|
12216
|
+
if (hoEditorFactory.isFixedPrintToA4T && format && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
|
|
12217
|
+
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
12218
|
+
if (orientation === 'p') {
|
|
12219
|
+
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
12220
|
+
|
|
12221
|
+
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
12222
|
+
}
|
|
12223
|
+
}
|
|
12224
|
+
|
|
12201
12225
|
ctx.posX = svg2pdfOptions.x;
|
|
12202
12226
|
ctx.posY = svg2pdfOptions.y;
|
|
12203
12227
|
ctx && ((_cpage$drawDomLevel9 = cpage.drawDomLevel) === null || _cpage$drawDomLevel9 === void 0 ? void 0 : (_cpage$drawDomLevel9$ = _cpage$drawDomLevel9.stage) === null || _cpage$drawDomLevel9$ === void 0 ? void 0 : _cpage$drawDomLevel9$.draw(ctx));
|
|
12204
12228
|
ctx = null;
|
|
12205
|
-
_context6.next =
|
|
12229
|
+
_context6.next = 45;
|
|
12206
12230
|
break;
|
|
12207
12231
|
|
|
12208
|
-
case
|
|
12232
|
+
case 39:
|
|
12209
12233
|
_ctx6 = new canvas2svg({
|
|
12210
12234
|
width: widthPixes,
|
|
12211
|
-
height: orientation ===
|
|
12235
|
+
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
12212
12236
|
printBlack: hoEditorFactory.printBlack
|
|
12213
12237
|
});
|
|
12214
12238
|
_ctx6 && ((_cpage$drawDomLevel10 = cpage.drawDomLevel) === null || _cpage$drawDomLevel10 === void 0 ? void 0 : (_cpage$drawDomLevel11 = _cpage$drawDomLevel10.stage) === null || _cpage$drawDomLevel11 === void 0 ? void 0 : _cpage$drawDomLevel11.draw(_ctx6));
|
|
@@ -12219,37 +12243,37 @@ var Print = /*#__PURE__*/function () {
|
|
|
12219
12243
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
12220
12244
|
}
|
|
12221
12245
|
|
|
12222
|
-
_context6.next =
|
|
12246
|
+
_context6.next = 44;
|
|
12223
12247
|
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
12224
12248
|
|
|
12225
|
-
case
|
|
12249
|
+
case 44:
|
|
12226
12250
|
_ctx6 = null;
|
|
12227
12251
|
|
|
12228
|
-
case
|
|
12252
|
+
case 45:
|
|
12229
12253
|
index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
|
|
12230
12254
|
|
|
12231
|
-
case
|
|
12255
|
+
case 46:
|
|
12232
12256
|
_context6.next = 10;
|
|
12233
12257
|
break;
|
|
12234
12258
|
|
|
12235
|
-
case
|
|
12236
|
-
_context6.next =
|
|
12259
|
+
case 48:
|
|
12260
|
+
_context6.next = 53;
|
|
12237
12261
|
break;
|
|
12238
12262
|
|
|
12239
|
-
case
|
|
12240
|
-
_context6.prev =
|
|
12263
|
+
case 50:
|
|
12264
|
+
_context6.prev = 50;
|
|
12241
12265
|
_context6.t0 = _context6["catch"](8);
|
|
12242
12266
|
|
|
12243
12267
|
_iterator4.e(_context6.t0);
|
|
12244
12268
|
|
|
12245
|
-
case
|
|
12246
|
-
_context6.prev =
|
|
12269
|
+
case 53:
|
|
12270
|
+
_context6.prev = 53;
|
|
12247
12271
|
|
|
12248
12272
|
_iterator4.f();
|
|
12249
12273
|
|
|
12250
|
-
return _context6.finish(
|
|
12274
|
+
return _context6.finish(53);
|
|
12251
12275
|
|
|
12252
|
-
case
|
|
12276
|
+
case 56:
|
|
12253
12277
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
12254
12278
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
12255
12279
|
}
|
|
@@ -12267,12 +12291,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
12267
12291
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
12268
12292
|
reslove();
|
|
12269
12293
|
|
|
12270
|
-
case
|
|
12294
|
+
case 60:
|
|
12271
12295
|
case "end":
|
|
12272
12296
|
return _context6.stop();
|
|
12273
12297
|
}
|
|
12274
12298
|
}
|
|
12275
|
-
}, _callee5, null, [[8,
|
|
12299
|
+
}, _callee5, null, [[8, 50, 53, 56]]);
|
|
12276
12300
|
}));
|
|
12277
12301
|
|
|
12278
12302
|
function printAllNew(_x15, _x16, _x17, _x18) {
|
|
@@ -19699,8 +19723,10 @@ var DomRange = /*#__PURE__*/function () {
|
|
|
19699
19723
|
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
19700
19724
|
// const isValidPath = hoEditorFactory.docTree.checkPath(value);
|
|
19701
19725
|
if (value.indexOf("-") >= 0) {
|
|
19702
|
-
|
|
19726
|
+
//const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
19727
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径s(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._startPath + ")");
|
|
19703
19728
|
|
|
19729
|
+
this.setSamePath(this._startPath);
|
|
19704
19730
|
return;
|
|
19705
19731
|
} else {
|
|
19706
19732
|
this._startPath = value;
|
|
@@ -19717,8 +19743,9 @@ var DomRange = /*#__PURE__*/function () {
|
|
|
19717
19743
|
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
19718
19744
|
// const isValidPath = hoEditorFactory.docTree.checkPath(value);
|
|
19719
19745
|
if (value.indexOf("-") >= 0) {
|
|
19720
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。");
|
|
19746
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._endPath + ")");
|
|
19721
19747
|
|
|
19748
|
+
this.setSamePath(this._endPath);
|
|
19722
19749
|
return;
|
|
19723
19750
|
} else {
|
|
19724
19751
|
this._endPath = value;
|
|
@@ -22423,8 +22450,7 @@ var Comment = /*#__PURE__*/function () {
|
|
|
22423
22450
|
key: "whiteList",
|
|
22424
22451
|
value: function whiteList() {
|
|
22425
22452
|
return ['id', 'text', 'date', 'lineHeight', //"endPath",
|
|
22426
|
-
'userID', 'userName'
|
|
22427
|
-
'customProperty'];
|
|
22453
|
+
'userID', 'userName'];
|
|
22428
22454
|
}
|
|
22429
22455
|
}]);
|
|
22430
22456
|
|
|
@@ -24768,8 +24794,13 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
24768
24794
|
var index = parentNodes.indexOf(this);
|
|
24769
24795
|
|
|
24770
24796
|
if (index != -1) {
|
|
24771
|
-
if (this.parentNode)
|
|
24772
|
-
|
|
24797
|
+
if (this.parentNode) {
|
|
24798
|
+
//有父节点,使用父节点的删除方法
|
|
24799
|
+
return this.parentNode.removeChild(this);
|
|
24800
|
+
} else {
|
|
24801
|
+
parentNodes.splice(index, 1);
|
|
24802
|
+
}
|
|
24803
|
+
|
|
24773
24804
|
return true;
|
|
24774
24805
|
}
|
|
24775
24806
|
|
|
@@ -28599,8 +28630,8 @@ var BaseNode = __webpack_require__(92178);
|
|
|
28599
28630
|
/*
|
|
28600
28631
|
* @Author: your name
|
|
28601
28632
|
* @Date: 2020-11-11 10:02:30
|
|
28602
|
-
* @LastEditTime:
|
|
28603
|
-
* @LastEditors:
|
|
28633
|
+
* @LastEditTime: 2022-06-23 09:54:03
|
|
28634
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
28604
28635
|
* @Description: In User Settings Edit
|
|
28605
28636
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\ImageNode.ts
|
|
28606
28637
|
*/
|
|
@@ -28707,6 +28738,12 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28707
28738
|
key: "imageDataBase64String",
|
|
28708
28739
|
get: function get() {
|
|
28709
28740
|
return this._imageDataBase64String;
|
|
28741
|
+
},
|
|
28742
|
+
set: function set(value) {
|
|
28743
|
+
if (this._imageDataBase64String !== value) {
|
|
28744
|
+
this._imageDataBase64String = value;
|
|
28745
|
+
this.node2DrawNodeRange(0, 0);
|
|
28746
|
+
}
|
|
28710
28747
|
}
|
|
28711
28748
|
/**
|
|
28712
28749
|
* imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
|
|
@@ -28734,6 +28771,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28734
28771
|
}, {
|
|
28735
28772
|
key: "node2DrawNodeRange",
|
|
28736
28773
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
28774
|
+
this._drawNodes.length = 0;
|
|
28737
28775
|
var dNode = new DrawImageNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.imageDataBase64String, this.width, this.height //,
|
|
28738
28776
|
//this.scaleX,
|
|
28739
28777
|
//this.scaleY
|
|
@@ -31189,8 +31227,13 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
31189
31227
|
var index = parentNodes.indexOf(this);
|
|
31190
31228
|
|
|
31191
31229
|
if (index != -1) {
|
|
31192
|
-
if (this.parentNode)
|
|
31193
|
-
|
|
31230
|
+
if (this.parentNode) {
|
|
31231
|
+
//有父节点,使用父节点的删除方法
|
|
31232
|
+
return this.parentNode.removeChild(this);
|
|
31233
|
+
} else {
|
|
31234
|
+
parentNodes.splice(index, 1);
|
|
31235
|
+
}
|
|
31236
|
+
|
|
31194
31237
|
return true;
|
|
31195
31238
|
}
|
|
31196
31239
|
|
|
@@ -35767,6 +35810,10 @@ var ColInfos = /*#__PURE__*/function () {
|
|
|
35767
35810
|
return this._colWidth;
|
|
35768
35811
|
},
|
|
35769
35812
|
set: function set(colWidth) {
|
|
35813
|
+
if (isNaN(colWidth)) {
|
|
35814
|
+
console.warn('当前列宽 === NaN');
|
|
35815
|
+
}
|
|
35816
|
+
|
|
35770
35817
|
this._colWidth = colWidth;
|
|
35771
35818
|
}
|
|
35772
35819
|
}, {
|
|
@@ -42525,8 +42572,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
42525
42572
|
/*
|
|
42526
42573
|
* @Author: your name
|
|
42527
42574
|
* @Date: 2021-01-19 10:05:08
|
|
42528
|
-
* @LastEditTime:
|
|
42529
|
-
* @LastEditors:
|
|
42575
|
+
* @LastEditTime: 2022-06-24 16:54:17
|
|
42576
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
42530
42577
|
* @Description: In User Settings Edit
|
|
42531
42578
|
* @FilePath: \hoeditor-web\src\editor\draw\DrawResize.ts
|
|
42532
42579
|
*/
|
|
@@ -42598,6 +42645,8 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
42598
42645
|
|
|
42599
42646
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42600
42647
|
hoEditorFactory.docTree.curOnDragNode = this.node;
|
|
42648
|
+
this.dragFlag = true;
|
|
42649
|
+
this.sLocation = new createjs.Point(e.stageX, e.stageY);
|
|
42601
42650
|
this.drawBorders(this._drawNode.dWidth, this._drawNode.dHeight, true); //const drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(
|
|
42602
42651
|
//this.drawNode
|
|
42603
42652
|
//);
|
|
@@ -42605,8 +42654,6 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
42605
42654
|
//drawLine.drawItems.splice(index, 1);
|
|
42606
42655
|
//drawLine.removeChild(this.drawNode);
|
|
42607
42656
|
|
|
42608
|
-
this.dragFlag = true;
|
|
42609
|
-
this.sLocation = new createjs.Point(e.stageX, e.stageY);
|
|
42610
42657
|
var shapes = this.drawNode.children;
|
|
42611
42658
|
shapes.forEach(function (value, index) {
|
|
42612
42659
|
// if (value.name !== this.node.id && value.alpha !== 1) {
|
|
@@ -42788,7 +42835,7 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
42788
42835
|
//左上
|
|
42789
42836
|
this.drawNode.dWidth = this.drawNode.dWidth - changeX;
|
|
42790
42837
|
this.drawNode.dHeight = this.drawNode.dHeight - changeY;
|
|
42791
|
-
this.imageY = this.imageY
|
|
42838
|
+
this.imageY = this.imageY + changeY;
|
|
42792
42839
|
} else if (e.target.name === "centerTop") {
|
|
42793
42840
|
//向上
|
|
42794
42841
|
this.drawNode.dHeight = this.drawNode.dHeight - changeY;
|
|
@@ -43442,7 +43489,7 @@ var StagePosition = /*#__PURE__*/function () {
|
|
|
43442
43489
|
/* harmony export */ "l": function() { return /* binding */ DrawArea; }
|
|
43443
43490
|
/* harmony export */ });
|
|
43444
43491
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(42015);
|
|
43445
|
-
/* harmony import */ var
|
|
43492
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(16296);
|
|
43446
43493
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83964);
|
|
43447
43494
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46455);
|
|
43448
43495
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66992);
|
|
@@ -43470,6 +43517,8 @@ var StagePosition = /*#__PURE__*/function () {
|
|
|
43470
43517
|
/* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(14245);
|
|
43471
43518
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(28831);
|
|
43472
43519
|
/* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(59530);
|
|
43520
|
+
/* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(12337);
|
|
43521
|
+
|
|
43473
43522
|
|
|
43474
43523
|
|
|
43475
43524
|
|
|
@@ -43523,7 +43572,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
43523
43572
|
// }
|
|
43524
43573
|
|
|
43525
43574
|
|
|
43526
|
-
(0,
|
|
43575
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(DrawArea, [{
|
|
43527
43576
|
key: "endDline",
|
|
43528
43577
|
get: function get() {
|
|
43529
43578
|
return this._endDline;
|
|
@@ -44361,7 +44410,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44361
44410
|
var localPos = _this2.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
44362
44411
|
|
|
44363
44412
|
|
|
44364
|
-
var spX = endDrawNode.x;
|
|
44413
|
+
var spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__/* .DrawPageCell */ .k ? localPos.x : endDrawNode.x;
|
|
44365
44414
|
var spY = localPos.y;
|
|
44366
44415
|
|
|
44367
44416
|
_this2.removeComment(value);
|
|
@@ -44592,11 +44641,176 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44592
44641
|
if (child.name === comment.id) {
|
|
44593
44642
|
child.alpha = 1;
|
|
44594
44643
|
}
|
|
44595
|
-
}
|
|
44644
|
+
}
|
|
44645
|
+
|
|
44646
|
+
hoEditorFactory.drawPageTree.updateDrawPage(this.index);
|
|
44647
|
+
}
|
|
44648
|
+
}, {
|
|
44649
|
+
key: "drawEditRecords",
|
|
44650
|
+
value: function drawEditRecords(comment, nodeX, nodeY, commentY) {
|
|
44651
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44652
|
+
var commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
|
|
44653
|
+
var docWidth = this.docWidth;
|
|
44654
|
+
var container = new createjs.Container();
|
|
44655
|
+
container.x = docWidth + 15;
|
|
44656
|
+
container.y = commentY - comment.lineHeight / 2;
|
|
44657
|
+
container.name = comment.id;
|
|
44658
|
+
var commentTextShape = null; // 批注内容
|
|
44596
44659
|
|
|
44660
|
+
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
44661
|
+
var text = commentArr[0];
|
|
44662
|
+
var textLen = commentArr[1] > 1 ? commentArr[1] - 1 : commentArr[1];
|
|
44663
|
+
comment.lineHeight = 20 * textLen + 10;
|
|
44664
|
+
commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
|
|
44665
|
+
commentTextShape.lineWidth = commentWidth - 25;
|
|
44666
|
+
commentTextShape.lineHeight = 20;
|
|
44667
|
+
commentTextShape.name = "oldValue";
|
|
44668
|
+
commentTextShape.x = 5;
|
|
44669
|
+
commentTextShape.y = 10;
|
|
44670
|
+
commentTextShape.alpha = 1; //背景
|
|
44671
|
+
|
|
44672
|
+
var textWidth = commentTextShape.getMeasuredWidth();
|
|
44673
|
+
var shapeWidth = textWidth + 10 > commentWidth - 30 ? commentWidth - 30 : textWidth + 10;
|
|
44674
|
+
var backShape = new createjs.Shape();
|
|
44675
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5").drawRoundRect(0, 0, shapeWidth, comment.lineHeight, 5);
|
|
44676
|
+
backShape.name = "backShape";
|
|
44677
|
+
backShape.alpha = 0.5; //横线
|
|
44678
|
+
|
|
44679
|
+
var horizontalLine = new createjs.Shape();
|
|
44680
|
+
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
44681
|
+
horizontalLine.name = comment.id;
|
|
44682
|
+
horizontalLine.alpha = 1; //指向线
|
|
44597
44683
|
|
|
44684
|
+
var guideLine = new createjs.Shape();
|
|
44685
|
+
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
44686
|
+
guideLine.name = comment.id;
|
|
44687
|
+
guideLine.alpha = 1;
|
|
44688
|
+
container.addChild(backShape);
|
|
44689
|
+
container.addChild(commentTextShape);
|
|
44690
|
+
this.addChild(horizontalLine);
|
|
44691
|
+
this.addChild(guideLine);
|
|
44692
|
+
this.addChild(container);
|
|
44598
44693
|
hoEditorFactory.drawPageTree.updateDrawPage(this.index);
|
|
44599
44694
|
}
|
|
44695
|
+
}, {
|
|
44696
|
+
key: "repaintRecored",
|
|
44697
|
+
value: function repaintRecored(comments, comment, nPath, spX, spY) {
|
|
44698
|
+
var _this5 = this;
|
|
44699
|
+
|
|
44700
|
+
var topComments = new Array();
|
|
44701
|
+
var bottomComments = new Array();
|
|
44702
|
+
var tempArr = new Array();
|
|
44703
|
+
|
|
44704
|
+
var getStagePos = function getStagePos(comment) {
|
|
44705
|
+
var endDrawNode = comment.eNode.drawNodes[0];
|
|
44706
|
+
var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this5._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
44707
|
+
|
|
44708
|
+
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
44709
|
+
|
|
44710
|
+
var localPos = _this5.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
44711
|
+
|
|
44712
|
+
|
|
44713
|
+
return [endDrawNode.x, localPos.y];
|
|
44714
|
+
};
|
|
44715
|
+
|
|
44716
|
+
var commentY = spY;
|
|
44717
|
+
comments.forEach(function (value) {
|
|
44718
|
+
if (value.id !== comment.id) {
|
|
44719
|
+
tempArr.push(value);
|
|
44720
|
+
}
|
|
44721
|
+
});
|
|
44722
|
+
tempArr.forEach(function (value) {
|
|
44723
|
+
var aPath = value.eNode.getNodePath();
|
|
44724
|
+
var result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__/* .NodePosition.treePathCompare */ .F.treePathCompare(nPath, aPath);
|
|
44725
|
+
|
|
44726
|
+
if (result > 0) {
|
|
44727
|
+
topComments.push(value);
|
|
44728
|
+
} else {
|
|
44729
|
+
bottomComments.push(value);
|
|
44730
|
+
}
|
|
44731
|
+
});
|
|
44732
|
+
|
|
44733
|
+
if (topComments.length > 0) {
|
|
44734
|
+
var tempComment = topComments[0];
|
|
44735
|
+
var maxValue = getStagePos(tempComment)[1];
|
|
44736
|
+
var lHeight = tempComment.lineHeight;
|
|
44737
|
+
|
|
44738
|
+
for (var i = 1; i < topComments.length; i++) {
|
|
44739
|
+
var stageY = getStagePos(topComments[i])[1];
|
|
44740
|
+
|
|
44741
|
+
if (stageY > maxValue) {
|
|
44742
|
+
maxValue = stageY;
|
|
44743
|
+
lHeight = topComments[i].lineHeight;
|
|
44744
|
+
tempComment = topComments[i];
|
|
44745
|
+
}
|
|
44746
|
+
}
|
|
44747
|
+
|
|
44748
|
+
if (maxValue + lHeight + 5 > spY) {
|
|
44749
|
+
commentY = maxValue + lHeight + 5;
|
|
44750
|
+
|
|
44751
|
+
for (var j = 0; j < this.children.length; j++) {
|
|
44752
|
+
var child = this.children[j];
|
|
44753
|
+
|
|
44754
|
+
if (child.name === tempComment.id && child instanceof createjs.Container) {
|
|
44755
|
+
if (child.y + tempComment.lineHeight / 2 > maxValue) {
|
|
44756
|
+
commentY = child.y + tempComment.lineHeight / 2 + lHeight + 5;
|
|
44757
|
+
}
|
|
44758
|
+
}
|
|
44759
|
+
}
|
|
44760
|
+
}
|
|
44761
|
+
}
|
|
44762
|
+
|
|
44763
|
+
this.drawEditRecords(comment, spX, spY, commentY);
|
|
44764
|
+
|
|
44765
|
+
if (bottomComments.length > 0) {
|
|
44766
|
+
var repaintComment = function repaintComment(commentObj, commentY, lineHeight) {
|
|
44767
|
+
var nodeX = getStagePos(commentObj)[0];
|
|
44768
|
+
var nodeY = getStagePos(commentObj)[1];
|
|
44769
|
+
var arrIndex = bottomComments.indexOf(commentObj);
|
|
44770
|
+
bottomComments.splice(arrIndex, 1);
|
|
44771
|
+
|
|
44772
|
+
if (commentY + lineHeight + 5 > nodeY) {
|
|
44773
|
+
commentY = commentY + lineHeight + 5;
|
|
44774
|
+
} else {
|
|
44775
|
+
commentY = nodeY;
|
|
44776
|
+
}
|
|
44777
|
+
|
|
44778
|
+
_this5.removeComment(commentObj);
|
|
44779
|
+
|
|
44780
|
+
_this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
|
|
44781
|
+
|
|
44782
|
+
if (bottomComments.length > 0) {
|
|
44783
|
+
var _minValue2 = getStagePos(bottomComments[0])[1];
|
|
44784
|
+
var _tempComment4 = bottomComments[0];
|
|
44785
|
+
|
|
44786
|
+
for (var _j2 = 1; _j2 < bottomComments.length; _j2++) {
|
|
44787
|
+
var _stageY3 = getStagePos(bottomComments[_j2])[1];
|
|
44788
|
+
|
|
44789
|
+
if (_stageY3 < _minValue2) {
|
|
44790
|
+
_minValue2 = _stageY3;
|
|
44791
|
+
_tempComment4 = bottomComments[_j2];
|
|
44792
|
+
}
|
|
44793
|
+
}
|
|
44794
|
+
|
|
44795
|
+
repaintComment(_tempComment4, commentY, commentObj.lineHeight);
|
|
44796
|
+
}
|
|
44797
|
+
};
|
|
44798
|
+
|
|
44799
|
+
var minValue = getStagePos(bottomComments[0])[1];
|
|
44800
|
+
var _tempComment3 = bottomComments[0];
|
|
44801
|
+
|
|
44802
|
+
for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
|
|
44803
|
+
var _stageY4 = getStagePos(bottomComments[_i2])[1];
|
|
44804
|
+
|
|
44805
|
+
if (_stageY4 < minValue) {
|
|
44806
|
+
minValue = _stageY4;
|
|
44807
|
+
_tempComment3 = bottomComments[_i2];
|
|
44808
|
+
}
|
|
44809
|
+
}
|
|
44810
|
+
|
|
44811
|
+
repaintComment(_tempComment3, commentY, comment.lineHeight);
|
|
44812
|
+
}
|
|
44813
|
+
}
|
|
44600
44814
|
}]);
|
|
44601
44815
|
|
|
44602
44816
|
return DrawArea;
|
|
@@ -53291,7 +53505,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53291
53505
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
53292
53506
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
53293
53507
|
if (this.node.parentNode.inputFieldType === 0) {
|
|
53294
|
-
backColor
|
|
53508
|
+
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
53509
|
+
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
53510
|
+
}
|
|
53295
53511
|
} else {
|
|
53296
53512
|
if (this.node.parentNode.keyValue == "") {
|
|
53297
53513
|
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
@@ -62633,11 +62849,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62633
62849
|
}
|
|
62634
62850
|
|
|
62635
62851
|
this._tmp.start = Arange.startPath;
|
|
62636
|
-
this._tmp.end = Arange.endPath;
|
|
62637
|
-
|
|
62638
|
-
|
|
62639
|
-
return true;
|
|
62640
|
-
}
|
|
62852
|
+
this._tmp.end = Arange.endPath; // if (s instanceof MarkNode && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf() as BaseNode)) {
|
|
62853
|
+
// return true;
|
|
62854
|
+
// }
|
|
62641
62855
|
|
|
62642
62856
|
if (s === e) {
|
|
62643
62857
|
if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_13__/* .TextNode */ .R) {
|
|
@@ -62983,30 +63197,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62983
63197
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62984
63198
|
/* harmony export */ "e": function() { return /* binding */ ParseUndoUnit; }
|
|
62985
63199
|
/* harmony export */ });
|
|
62986
|
-
/* harmony import */ var
|
|
62987
|
-
/* harmony import */ var
|
|
62988
|
-
/* harmony import */ var
|
|
62989
|
-
/* harmony import */ var
|
|
62990
|
-
/* harmony import */ var
|
|
62991
|
-
/* harmony import */ var
|
|
62992
|
-
/* harmony import */ var
|
|
62993
|
-
/* harmony import */ var
|
|
62994
|
-
/* harmony import */ var
|
|
62995
|
-
/* harmony import */ var
|
|
62996
|
-
/* harmony import */ var
|
|
62997
|
-
/* harmony import */ var
|
|
62998
|
-
/* harmony import */ var
|
|
62999
|
-
/* harmony import */ var
|
|
63000
|
-
/* harmony import */ var
|
|
63001
|
-
/* harmony import */ var
|
|
63002
|
-
/* harmony import */ var
|
|
63003
|
-
/* harmony import */ var
|
|
63004
|
-
/* harmony import */ var
|
|
63005
|
-
/* harmony import */ var
|
|
63006
|
-
/* harmony import */ var
|
|
63007
|
-
/* harmony import */ var
|
|
63008
|
-
/* harmony import */ var
|
|
63009
|
-
/* harmony import */ var
|
|
63200
|
+
/* 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);
|
|
63201
|
+
/* 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);
|
|
63202
|
+
/* 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);
|
|
63203
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(16296);
|
|
63204
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);
|
|
63205
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
63206
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54747);
|
|
63207
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
63208
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
|
|
63209
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
63210
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(71080);
|
|
63211
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(27564);
|
|
63212
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(35657);
|
|
63213
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(75438);
|
|
63214
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(26608);
|
|
63215
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(19633);
|
|
63216
|
+
/* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(61965);
|
|
63217
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(14245);
|
|
63218
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(13880);
|
|
63219
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(59530);
|
|
63220
|
+
/* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(3267);
|
|
63221
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(62938);
|
|
63222
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(28831);
|
|
63223
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(69802);
|
|
63224
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(92730);
|
|
63225
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(69088);
|
|
63226
|
+
|
|
63227
|
+
|
|
63010
63228
|
|
|
63011
63229
|
|
|
63012
63230
|
|
|
@@ -63030,7 +63248,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63030
63248
|
|
|
63031
63249
|
var ParseUndoUnit = /*#__PURE__*/function () {
|
|
63032
63250
|
function ParseUndoUnit(hoEditorFactoryID, startPath, endPath, nodes) {
|
|
63033
|
-
(0,
|
|
63251
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ParseUndoUnit);
|
|
63034
63252
|
|
|
63035
63253
|
//插入后的,变更范围
|
|
63036
63254
|
this._tmp = {
|
|
@@ -63040,42 +63258,66 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63040
63258
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
63041
63259
|
this._startPath = startPath;
|
|
63042
63260
|
this._endPath = endPath;
|
|
63043
|
-
this._undo = new
|
|
63261
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_11__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
63044
63262
|
|
|
63045
63263
|
this._undoNodes = new Array();
|
|
63046
63264
|
this._nodes = nodes;
|
|
63047
63265
|
this._opTime = new Date();
|
|
63048
|
-
this._affectText =
|
|
63266
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(nodes);
|
|
63049
63267
|
}
|
|
63050
63268
|
|
|
63051
|
-
(0,
|
|
63269
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(ParseUndoUnit, [{
|
|
63052
63270
|
key: "undo",
|
|
63053
|
-
value: function
|
|
63054
|
-
var
|
|
63271
|
+
value: function () {
|
|
63272
|
+
var _undo = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)( /*#__PURE__*/(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().mark(function _callee() {
|
|
63273
|
+
var hoEditorFactory, delEvent, np;
|
|
63274
|
+
return (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)().wrap(function _callee$(_context) {
|
|
63275
|
+
while (1) {
|
|
63276
|
+
switch (_context.prev = _context.next) {
|
|
63277
|
+
case 0:
|
|
63278
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63279
|
+
delEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .DocAction.daUndoInsert */ .gk.daUndoInsert, this._tmp.start, this._tmp.start);
|
|
63280
|
+
delEvent.oldEndPath = this._tmp.end;
|
|
63281
|
+
delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.end); //删除插入的节点
|
|
63055
63282
|
|
|
63056
|
-
|
|
63283
|
+
this._undoNodes.forEach(function (value) {
|
|
63284
|
+
hoEditorFactory.docTree.deleteNode(value, "update");
|
|
63285
|
+
});
|
|
63057
63286
|
|
|
63058
|
-
|
|
63059
|
-
|
|
63060
|
-
|
|
63287
|
+
delEvent.afterChangePath = this._tmp.start;
|
|
63288
|
+
_context.next = 8;
|
|
63289
|
+
return hoEditorFactory.docTree.change(delEvent);
|
|
63061
63290
|
|
|
63062
|
-
|
|
63063
|
-
|
|
63064
|
-
}
|
|
63291
|
+
case 8:
|
|
63292
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
63065
63293
|
|
|
63066
|
-
|
|
63067
|
-
|
|
63068
|
-
|
|
63294
|
+
while (!this._undo.atBottom()) {
|
|
63295
|
+
this._undo.undo();
|
|
63296
|
+
}
|
|
63069
63297
|
|
|
63070
|
-
|
|
63071
|
-
|
|
63072
|
-
|
|
63298
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
63299
|
+
hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
|
|
63300
|
+
np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
|
|
63073
63301
|
|
|
63074
|
-
|
|
63075
|
-
|
|
63076
|
-
|
|
63302
|
+
if (np && np.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_20__/* .MarkNode */ .j && np.node.parentNode && np.node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re && np.node.parentNode.childNodes.length === 2) {
|
|
63303
|
+
hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
|
|
63304
|
+
} // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
|
|
63077
63305
|
|
|
63078
|
-
|
|
63306
|
+
|
|
63307
|
+
case 14:
|
|
63308
|
+
case "end":
|
|
63309
|
+
return _context.stop();
|
|
63310
|
+
}
|
|
63311
|
+
}
|
|
63312
|
+
}, _callee, this);
|
|
63313
|
+
}));
|
|
63314
|
+
|
|
63315
|
+
function undo() {
|
|
63316
|
+
return _undo.apply(this, arguments);
|
|
63317
|
+
}
|
|
63318
|
+
|
|
63319
|
+
return undo;
|
|
63320
|
+
}()
|
|
63079
63321
|
/**
|
|
63080
63322
|
* @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
|
|
63081
63323
|
*/
|
|
@@ -63094,8 +63336,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63094
63336
|
_startPosition$node;
|
|
63095
63337
|
|
|
63096
63338
|
this.initParam();
|
|
63097
|
-
var curRange = new
|
|
63098
|
-
var hoEditorFactory =
|
|
63339
|
+
var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
63340
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63099
63341
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(this._startPath);
|
|
63100
63342
|
|
|
63101
63343
|
if (!rootNodes) {
|
|
@@ -63109,7 +63351,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63109
63351
|
//删除选中节点
|
|
63110
63352
|
this._undo.begin();
|
|
63111
63353
|
|
|
63112
|
-
this._undo.add(new
|
|
63354
|
+
this._undo.add(new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath));
|
|
63113
63355
|
|
|
63114
63356
|
this._undo.commit();
|
|
63115
63357
|
}
|
|
@@ -63122,12 +63364,12 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63122
63364
|
var prevNode = startPosition.node;
|
|
63123
63365
|
var i = -1;
|
|
63124
63366
|
var path = nodeLastPath;
|
|
63125
|
-
var positon =
|
|
63367
|
+
var positon = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__/* .NodePosition.treePathCompare */ .F.treePathCompare(curRange.startPath, nodeLastPath);
|
|
63126
63368
|
|
|
63127
63369
|
if (positon < 0) {
|
|
63128
63370
|
//如果是中间,先拆分
|
|
63129
|
-
if (startPosition.node instanceof
|
|
63130
|
-
var textNodeSplitUndoUnit = new
|
|
63371
|
+
if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__/* .TextNode */ .R) {
|
|
63372
|
+
var textNodeSplitUndoUnit = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_10__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, curRange.startPath, startPosition.node, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, curRange.startPath, nodeLastPath));
|
|
63131
63373
|
|
|
63132
63374
|
this._undo.begin();
|
|
63133
63375
|
|
|
@@ -63146,7 +63388,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63146
63388
|
//第一个节点是段落时,不插入
|
|
63147
63389
|
var curr = hoEditorFactory.docTree.findNodePositionByPath(curRange.startPath).node;
|
|
63148
63390
|
|
|
63149
|
-
if (curr instanceof
|
|
63391
|
+
if (curr instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
|
|
63150
63392
|
curr.combineParagraph.copyStyle(node.combineParagraph);
|
|
63151
63393
|
} else {
|
|
63152
63394
|
hoEditorFactory.docTree.insertNodeAfterPath(path, node);
|
|
@@ -63164,7 +63406,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63164
63406
|
var _prevNode;
|
|
63165
63407
|
|
|
63166
63408
|
return {
|
|
63167
|
-
isTable: _this._nodes[index] instanceof
|
|
63409
|
+
isTable: _this._nodes[index] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
|
|
63168
63410
|
prevNode: index == 0 ? prevNode : _this._nodes[index - 1],
|
|
63169
63411
|
nextNode: index == _this._nodes.length - 1 ? (_prevNode = prevNode) === null || _prevNode === void 0 ? void 0 : _prevNode.nextSibling() : _this._nodes[index + 1]
|
|
63170
63412
|
};
|
|
@@ -63177,7 +63419,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63177
63419
|
|
|
63178
63420
|
var checkTableNode2 = function checkTableNode2(node) {
|
|
63179
63421
|
return {
|
|
63180
|
-
isTable: node instanceof
|
|
63422
|
+
isTable: node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
|
|
63181
63423
|
node: node,
|
|
63182
63424
|
prevNode: node.prevSibling(),
|
|
63183
63425
|
nextNode: node.nextSibling()
|
|
@@ -63193,8 +63435,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63193
63435
|
var insertParaNode = function insertParaNode(info) {
|
|
63194
63436
|
if (!info.isTable) return;
|
|
63195
63437
|
|
|
63196
|
-
if (!(info.prevNode instanceof
|
|
63197
|
-
var lpara = new
|
|
63438
|
+
if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63439
|
+
var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
|
|
63198
63440
|
hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.prevNode), lpara);
|
|
63199
63441
|
|
|
63200
63442
|
_this._undoNodes.push(lpara);
|
|
@@ -63202,8 +63444,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63202
63444
|
info.node.paragraphNode = lpara; // endNode = lpara;
|
|
63203
63445
|
}
|
|
63204
63446
|
|
|
63205
|
-
if (!(info.nextNode instanceof
|
|
63206
|
-
var _lpara = new
|
|
63447
|
+
if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63448
|
+
var _lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
|
|
63207
63449
|
|
|
63208
63450
|
hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.node), _lpara);
|
|
63209
63451
|
|
|
@@ -63224,7 +63466,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63224
63466
|
insertParaNode(info);
|
|
63225
63467
|
}
|
|
63226
63468
|
|
|
63227
|
-
if (node instanceof
|
|
63469
|
+
if (node instanceof _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__/* .BaseCombineNode */ .V) {
|
|
63228
63470
|
node.childNodes.forEach(function (value) {
|
|
63229
63471
|
var info = checkTableNode2(value);
|
|
63230
63472
|
|
|
@@ -63245,8 +63487,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63245
63487
|
var info = checkTableNode(i);
|
|
63246
63488
|
|
|
63247
63489
|
if (info.isTable) {
|
|
63248
|
-
if (!(info.nextNode instanceof
|
|
63249
|
-
var lpara = new
|
|
63490
|
+
if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63491
|
+
var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(startPosition.path), hoEditorFactory.docTree.curParaNo);
|
|
63250
63492
|
hoEditorFactory.docTree.insertNodeAfterPath(path, lpara);
|
|
63251
63493
|
|
|
63252
63494
|
this._undoNodes.push(lpara);
|
|
@@ -63258,8 +63500,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63258
63500
|
|
|
63259
63501
|
this._undoNodes.push(node);
|
|
63260
63502
|
|
|
63261
|
-
if (!(info.prevNode instanceof
|
|
63262
|
-
var _lpara2 = new
|
|
63503
|
+
if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63504
|
+
var _lpara2 = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(path), hoEditorFactory.docTree.curParaNo);
|
|
63263
63505
|
|
|
63264
63506
|
hoEditorFactory.docTree.insertNodeAfterPath(path, _lpara2);
|
|
63265
63507
|
node.paragraphNode = _lpara2;
|
|
@@ -63278,7 +63520,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63278
63520
|
|
|
63279
63521
|
hoEditorFactory.docTree.insertNodeAfterPath(path, node);
|
|
63280
63522
|
|
|
63281
|
-
if (node instanceof
|
|
63523
|
+
if (node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
|
|
63282
63524
|
node.refreshDrootNodes();
|
|
63283
63525
|
}
|
|
63284
63526
|
|
|
@@ -63293,22 +63535,22 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63293
63535
|
|
|
63294
63536
|
endNode = this._nodes[this._nodes.length - 1];
|
|
63295
63537
|
|
|
63296
|
-
if (endNode instanceof
|
|
63538
|
+
if (endNode instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh) {
|
|
63297
63539
|
endNode = this._nodes[this._nodes.length - 1].nextSibling();
|
|
63298
63540
|
}
|
|
63299
63541
|
}
|
|
63300
63542
|
|
|
63301
63543
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(endNode);
|
|
63302
|
-
var changeEvent = new
|
|
63544
|
+
var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__/* .DocAction.daInsert */ .gk.daInsert, curRange.startPath, endPath);
|
|
63303
63545
|
hoEditorFactory.docTree.change(changeEvent);
|
|
63304
63546
|
|
|
63305
|
-
if (((_startPosition$node = startPosition.node) === null || _startPosition$node === void 0 ? void 0 : _startPosition$node.parentNode) instanceof
|
|
63547
|
+
if (((_startPosition$node = startPosition.node) === null || _startPosition$node === void 0 ? void 0 : _startPosition$node.parentNode) instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__/* .TextInputFieldNode */ .re) {
|
|
63306
63548
|
var _startPosition$node2;
|
|
63307
63549
|
|
|
63308
63550
|
(_startPosition$node2 = startPosition.node) === null || _startPosition$node2 === void 0 ? void 0 : _startPosition$node2.parentNode.update();
|
|
63309
63551
|
var ppNode = startPosition.node.parentNode.parentNode;
|
|
63310
63552
|
|
|
63311
|
-
if (ppNode instanceof
|
|
63553
|
+
if (ppNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__/* .CellNode */ .D && ppNode.drawCell.drawPageCells.length > 1) {
|
|
63312
63554
|
ppNode.drawCell.needUpdate = true;
|
|
63313
63555
|
ppNode.table.update();
|
|
63314
63556
|
}
|
|
@@ -63317,7 +63559,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63317
63559
|
this._tmp.start = curRange.startPath;
|
|
63318
63560
|
this._tmp.end = endPath;
|
|
63319
63561
|
hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
63320
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
63562
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
|
|
63321
63563
|
}
|
|
63322
63564
|
}, {
|
|
63323
63565
|
key: "isEmpty",
|
|
@@ -97658,7 +97900,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
|
|
|
97658
97900
|
*/return to8bitStream(text,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var beginPage=API.__private__.beginPage=function(format){pages[++page]=[];pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(format[0]),topRightY:Number(format[1])}};_setPage(page);setOutputDestination(pages[currentPage]);};var _addPage=function _addPage(parmFormat,parmOrientation){var dimensions,width,height;orientation=parmOrientation||orientation;if(typeof parmFormat==="string"){dimensions=getPageFormat(parmFormat.toLowerCase());if(Array.isArray(dimensions)){width=dimensions[0];height=dimensions[1];}}if(Array.isArray(parmFormat)){width=parmFormat[0]*scaleFactor;height=parmFormat[1]*scaleFactor;}if(isNaN(width)){width=format[0];height=format[1];}if(width>14400||height>14400){console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400");width=Math.min(14400,width);height=Math.min(14400,height);}format=[width,height];switch(orientation.substr(0,1)){case"l":if(height>width){format=[height,width];}break;case"p":if(width>height){format=[height,width];}break;}beginPage(format);// Set line width
|
|
97659
97901
|
setLineWidth(lineWidth);// Set draw color
|
|
97660
97902
|
out(strokeColor);// resurrecting non-default line caps, joins
|
|
97661
|
-
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
97903
|
+
if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}console.log(page);this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
|
|
97662
97904
|
* Returns a document-specific font key - a label assigned to a
|
|
97663
97905
|
* font name + font type combination at the time the font was added
|
|
97664
97906
|
* to the font inventory.
|
|
@@ -198771,7 +199013,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
198771
199013
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
198772
199014
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(77203);
|
|
198773
199015
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
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=
|
|
199016
|
+
;// 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=08a395d8&
|
|
198775
199017
|
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()}
|
|
198776
199018
|
var staticRenderFns = []
|
|
198777
199019
|
|
|
@@ -200375,11 +200617,12 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200375
200617
|
drawNode.children.splice(d, 1);
|
|
200376
200618
|
}
|
|
200377
200619
|
}
|
|
200378
|
-
}
|
|
200379
200620
|
|
|
200380
|
-
|
|
200381
|
-
|
|
200621
|
+
hoeditorfactory.docTree.curOnDragNode = null;
|
|
200622
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
200623
|
+
} //if (drawLine instanceof DrawLine) drawLine.updateCache();
|
|
200382
200624
|
//drawNode.stage.update();
|
|
200625
|
+
|
|
200383
200626
|
}
|
|
200384
200627
|
|
|
200385
200628
|
var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
|
|
@@ -206753,7 +206996,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
206753
206996
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206754
206997
|
var ParagraphNode = __webpack_require__(13880);
|
|
206755
206998
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206756
|
-
/* harmony default export */ var version = ('2.0.
|
|
206999
|
+
/* harmony default export */ var version = ('2.0.58');
|
|
206757
207000
|
;// 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&
|
|
206758
207001
|
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)}
|
|
206759
207002
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -210179,11 +210422,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210179
210422
|
styleobj["font_style"] = "italic";
|
|
210180
210423
|
} else if (tag == "sup") {
|
|
210181
210424
|
var str = styleobj["vertical_align"] || "";
|
|
210182
|
-
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" ? "" : str + " ") + "super";
|
|
210425
|
+
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" || str == undefined ? "" : str + " ") + "super";
|
|
210183
210426
|
} else if (tag == "sub") {
|
|
210184
210427
|
var _str6 = styleobj["vertical_align"] || "";
|
|
210185
210428
|
|
|
210186
|
-
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" ? "" : _str6 + " ") + "sub";
|
|
210429
|
+
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" || _str6 == undefined ? "" : _str6 + " ") + "sub";
|
|
210187
210430
|
} else if (tag == "u") {
|
|
210188
210431
|
var _str7 = styleobj["text_decoration"] || "";
|
|
210189
210432
|
|
|
@@ -211853,6 +212096,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
211853
212096
|
var comments = hoEditorFactory.drawTree.commentsMap;
|
|
211854
212097
|
comments.forEach(function (value) {
|
|
211855
212098
|
var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
|
|
212099
|
+
commentJson.customProperty = value.customProperty;
|
|
211856
212100
|
commentsArr.push(commentJson);
|
|
211857
212101
|
});
|
|
211858
212102
|
return {
|
|
@@ -214417,6 +214661,8 @@ var StagePosition = __webpack_require__(80691);
|
|
|
214417
214661
|
|
|
214418
214662
|
|
|
214419
214663
|
|
|
214664
|
+
|
|
214665
|
+
|
|
214420
214666
|
|
|
214421
214667
|
|
|
214422
214668
|
|
|
@@ -219213,7 +219459,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219213
219459
|
var _loop2 = function _loop2(i) {
|
|
219214
219460
|
var node = nodes[i];
|
|
219215
219461
|
|
|
219216
|
-
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re &&
|
|
219462
|
+
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
|
|
219217
219463
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
219218
219464
|
}).length === 0) {
|
|
219219
219465
|
if (arr.filter(function (v) {
|
|
@@ -219675,6 +219921,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219675
219921
|
var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
|
|
219676
219922
|
return [caret.pageIndex + 1, caret.stageX * 0.75, y];
|
|
219677
219923
|
}
|
|
219924
|
+
/**
|
|
219925
|
+
* 获取光标位置
|
|
219926
|
+
* returns [pageIndex, x, y]
|
|
219927
|
+
*/
|
|
219928
|
+
// public getSignNodePosition(): [number, number, number] {
|
|
219929
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
219930
|
+
// const caret = hoEditorFactory.drawTree.caret;
|
|
219931
|
+
// const y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
|
|
219932
|
+
// return [caret.pageIndex + 1, caret.stageX * 0.75, y];
|
|
219933
|
+
// }
|
|
219934
|
+
|
|
219678
219935
|
/**
|
|
219679
219936
|
* 文档生成并返回base64格式pdf文件 患者签名使用
|
|
219680
219937
|
*/
|
|
@@ -219757,7 +220014,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219757
220014
|
|
|
219758
220015
|
}, {
|
|
219759
220016
|
key: "insertWriteSign",
|
|
219760
|
-
value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition) {
|
|
220017
|
+
value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition, callback) {
|
|
219761
220018
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219762
220019
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219763
220020
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219788,7 +220045,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219788
220045
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219789
220046
|
|
|
219790
220047
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219791
|
-
hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)
|
|
220048
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220049
|
+
setTimeout(function () {
|
|
220050
|
+
callback && callback();
|
|
220051
|
+
}, 0);
|
|
220052
|
+
});
|
|
219792
220053
|
}
|
|
219793
220054
|
}, 0);
|
|
219794
220055
|
}
|
|
@@ -219796,7 +220057,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219796
220057
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219797
220058
|
|
|
219798
220059
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219799
|
-
hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220060
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220061
|
+
setTimeout(function () {
|
|
220062
|
+
callback && callback();
|
|
220063
|
+
}, 0);
|
|
220064
|
+
});
|
|
219800
220065
|
}
|
|
219801
220066
|
}
|
|
219802
220067
|
}
|
|
@@ -220335,6 +220600,132 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220335
220600
|
getAllNodes(mainNodes);
|
|
220336
220601
|
return isHasDoctorSign;
|
|
220337
220602
|
}
|
|
220603
|
+
}, {
|
|
220604
|
+
key: "SyncElements",
|
|
220605
|
+
value: function SyncElements() {
|
|
220606
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220607
|
+
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
220608
|
+
var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
|
|
220609
|
+
var fieldNames = [];
|
|
220610
|
+
var dateNames = [];
|
|
220611
|
+
var downNames = [];
|
|
220612
|
+
hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
|
|
220613
|
+
|
|
220614
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
220615
|
+
var node = nodes[i];
|
|
220616
|
+
|
|
220617
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220618
|
+
if (fieldNames.indexOf(node.name) === -1) {
|
|
220619
|
+
fieldNames.push(node.name);
|
|
220620
|
+
var sameNameEles = this.getNodesByName("all", true, node.name);
|
|
220621
|
+
|
|
220622
|
+
for (var j = 0; j < sameNameEles.length; j++) {
|
|
220623
|
+
var ele = sameNameEles[j];
|
|
220624
|
+
if (nodes.indexOf(ele) >= 0) continue;
|
|
220625
|
+
|
|
220626
|
+
if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220627
|
+
ele.setFieldText(node.text);
|
|
220628
|
+
}
|
|
220629
|
+
}
|
|
220630
|
+
}
|
|
220631
|
+
}
|
|
220632
|
+
|
|
220633
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
220634
|
+
if (dateNames.indexOf(node.name) === -1) {
|
|
220635
|
+
dateNames.push(node.name);
|
|
220636
|
+
|
|
220637
|
+
var _sameNameEles = this.getNodesByName("all", true, node.name);
|
|
220638
|
+
|
|
220639
|
+
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
220640
|
+
var _ele = _sameNameEles[_j];
|
|
220641
|
+
if (nodes.indexOf(_ele) >= 0) continue;
|
|
220642
|
+
|
|
220643
|
+
if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
220644
|
+
_ele.setDateTimeText(node.text);
|
|
220645
|
+
}
|
|
220646
|
+
}
|
|
220647
|
+
}
|
|
220648
|
+
}
|
|
220649
|
+
|
|
220650
|
+
if (node instanceof DownListNode/* DownListNode */.yF) {
|
|
220651
|
+
if (downNames.indexOf(node.name) === -1) {
|
|
220652
|
+
downNames.push(node.name);
|
|
220653
|
+
|
|
220654
|
+
var _sameNameEles2 = this.getNodesByName("all", true, node.name);
|
|
220655
|
+
|
|
220656
|
+
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
220657
|
+
var _ele2 = _sameNameEles2[_j2];
|
|
220658
|
+
if (nodes.indexOf(_ele2) >= 0) continue;
|
|
220659
|
+
|
|
220660
|
+
if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
|
|
220661
|
+
_ele2.setDownListText(node.text);
|
|
220662
|
+
}
|
|
220663
|
+
}
|
|
220664
|
+
}
|
|
220665
|
+
}
|
|
220666
|
+
}
|
|
220667
|
+
}
|
|
220668
|
+
}, {
|
|
220669
|
+
key: "showElementsEditRecord",
|
|
220670
|
+
value: function showElementsEditRecord(objects) {
|
|
220671
|
+
var comments = [];
|
|
220672
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220673
|
+
|
|
220674
|
+
for (var i = 0; i < objects.length; i++) {
|
|
220675
|
+
var object = objects[i];
|
|
220676
|
+
var name = object.name;
|
|
220677
|
+
var oldValue = object.oldValue;
|
|
220678
|
+
var elements = this.getNodesByName("main", true, name);
|
|
220679
|
+
|
|
220680
|
+
for (var j = 0; j < elements.length; j++) {
|
|
220681
|
+
var element = elements[j];
|
|
220682
|
+
|
|
220683
|
+
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220684
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
220685
|
+
var comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
220686
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
220687
|
+
comments.push(comment);
|
|
220688
|
+
}
|
|
220689
|
+
}
|
|
220690
|
+
}
|
|
220691
|
+
|
|
220692
|
+
comments.forEach(function (comment, index) {
|
|
220693
|
+
index++;
|
|
220694
|
+
var endDrawNode = comment.eNode.drawNodes[0];
|
|
220695
|
+
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
220696
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
220697
|
+
|
|
220698
|
+
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
220699
|
+
|
|
220700
|
+
var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
220701
|
+
|
|
220702
|
+
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
220703
|
+
var spY = localPos.y;
|
|
220704
|
+
drawArea.removeComment(comment);
|
|
220705
|
+
var path = comment.eNode.getNodePath();
|
|
220706
|
+
|
|
220707
|
+
if (index === 1) {
|
|
220708
|
+
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
220709
|
+
}
|
|
220710
|
+
|
|
220711
|
+
if (index >= 2) {
|
|
220712
|
+
drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
220713
|
+
}
|
|
220714
|
+
});
|
|
220715
|
+
}
|
|
220716
|
+
}, {
|
|
220717
|
+
key: "updateImageSrc",
|
|
220718
|
+
value: function updateImageSrc(node, src) {
|
|
220719
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220720
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
220721
|
+
var ePath = node.getNodePath();
|
|
220722
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
|
|
220723
|
+
changeEvent.oldEndPath = ePath;
|
|
220724
|
+
changeEvent.afterChangePath = ePath;
|
|
220725
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
220726
|
+
node.imageDataBase64String = src;
|
|
220727
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
220728
|
+
}
|
|
220338
220729
|
}]);
|
|
220339
220730
|
|
|
220340
220731
|
return VueController;
|
|
@@ -221336,7 +221727,19 @@ var EditController = /*#__PURE__*/function () {
|
|
|
221336
221727
|
if (!hoeditorfactory.pasteBase) {
|
|
221337
221728
|
for (var n = 0; n < nodes.length; n++) {
|
|
221338
221729
|
var node = nodes[n];
|
|
221339
|
-
|
|
221730
|
+
|
|
221731
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) {
|
|
221732
|
+
var style = hoeditorfactory.docTree.styles[node.styleIndex];
|
|
221733
|
+
|
|
221734
|
+
if (style.combineStyle.script != 0) {
|
|
221735
|
+
var newStyle = style.clone();
|
|
221736
|
+
newStyle.script = style.combineStyle.script;
|
|
221737
|
+
var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
|
|
221738
|
+
node.styleIndex = newStyleIndex;
|
|
221739
|
+
} else {
|
|
221740
|
+
node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
|
|
221741
|
+
}
|
|
221742
|
+
}
|
|
221340
221743
|
|
|
221341
221744
|
if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221342
221745
|
node.paraNo = hoeditorfactory.docTree.curParaNo;
|
|
@@ -222582,6 +222985,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222582
222985
|
format = _this3._a4Size[orientation];
|
|
222583
222986
|
}
|
|
222584
222987
|
|
|
222988
|
+
if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
|
|
222989
|
+
format = [793, 1122];
|
|
222990
|
+
orientation = 'p';
|
|
222991
|
+
}
|
|
222992
|
+
|
|
222585
222993
|
var options = {
|
|
222586
222994
|
orientation: orientation,
|
|
222587
222995
|
unit: "px",
|
|
@@ -222692,6 +223100,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222692
223100
|
format = _this4._a4Size[orientation];
|
|
222693
223101
|
}
|
|
222694
223102
|
|
|
223103
|
+
if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
|
|
223104
|
+
format = [793, 1122];
|
|
223105
|
+
orientation = 'p';
|
|
223106
|
+
}
|
|
223107
|
+
|
|
222695
223108
|
var options = {
|
|
222696
223109
|
orientation: orientation,
|
|
222697
223110
|
unit: "px",
|
|
@@ -222834,6 +223247,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222834
223247
|
format = _this5._a4Size[orientation];
|
|
222835
223248
|
}
|
|
222836
223249
|
|
|
223250
|
+
if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
|
|
223251
|
+
format = [793, 1122];
|
|
223252
|
+
orientation = 'p';
|
|
223253
|
+
}
|
|
223254
|
+
|
|
222837
223255
|
options = {
|
|
222838
223256
|
orientation: orientation,
|
|
222839
223257
|
unit: "px",
|
|
@@ -222843,7 +223261,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222843
223261
|
PDF = new jspdf/* default */.ZP(options);
|
|
222844
223262
|
PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this5._hoEditorFactoryID, PDF, undefined, undefined, resolve, positionY, format);
|
|
222845
223263
|
|
|
222846
|
-
case
|
|
223264
|
+
case 7:
|
|
222847
223265
|
case "end":
|
|
222848
223266
|
return _context4.stop();
|
|
222849
223267
|
}
|
|
@@ -223033,6 +223451,8 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223033
223451
|
} else {
|
|
223034
223452
|
hoEditorFactory.loadImageCallback = toPrint;
|
|
223035
223453
|
}
|
|
223454
|
+
|
|
223455
|
+
mergeList = [];
|
|
223036
223456
|
});
|
|
223037
223457
|
} else {
|
|
223038
223458
|
createSvg();
|
|
@@ -224623,6 +225043,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224623
225043
|
this._isFixedPrintToA4 = value;
|
|
224624
225044
|
}
|
|
224625
225045
|
}
|
|
225046
|
+
}, {
|
|
225047
|
+
key: "isFixedPrintToA4T",
|
|
225048
|
+
get: function get() {
|
|
225049
|
+
return this._isFixedPrintToA4T;
|
|
225050
|
+
},
|
|
225051
|
+
set: function set(value) {
|
|
225052
|
+
if (this._isFixedPrintToA4T !== value) {
|
|
225053
|
+
this._isFixedPrintToA4T = value;
|
|
225054
|
+
}
|
|
225055
|
+
}
|
|
224626
225056
|
}, {
|
|
224627
225057
|
key: "isUseImagePrint",
|
|
224628
225058
|
get: function get() {
|
|
@@ -225009,9 +225439,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
225009
225439
|
)
|
|
225010
225440
|
|
|
225011
225441
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
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=
|
|
225013
|
-
var
|
|
225014
|
-
var
|
|
225442
|
+
;// 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=35544190&
|
|
225443
|
+
var ControlModalvue_type_template_id_35544190_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(),(_vm.controlType === 'edit-image')?_c('CanvasImageDialog',{attrs:{"vueController":_vm.vueController,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
|
|
225444
|
+
var ControlModalvue_type_template_id_35544190_staticRenderFns = []
|
|
225015
225445
|
|
|
225016
225446
|
|
|
225017
225447
|
;// 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&
|
|
@@ -228297,9 +228727,9 @@ var Delimiter_component = normalizeComponent(
|
|
|
228297
228727
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
228298
228728
|
|
|
228299
228729
|
/* harmony default export */ var delimiter = (delimiter_Delimiter);
|
|
228300
|
-
;// 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/sign/Sign.vue?vue&type=template&id=
|
|
228301
|
-
var
|
|
228302
|
-
var
|
|
228730
|
+
;// 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/sign/Sign.vue?vue&type=template&id=6c042af0&
|
|
228731
|
+
var Signvue_type_template_id_6c042af0_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"paDDing":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("常规签名")]),_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义签名")])],1),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数: 医师签名 / "),_c('br'),_vm._v(" 勾选参数: / 医师签名 ")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1):_vm._e(),(_vm.signType === 1)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1):_vm._e()]),(_vm.signType === 1)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
228732
|
+
var Signvue_type_template_id_6c042af0_staticRenderFns = []
|
|
228303
228733
|
|
|
228304
228734
|
|
|
228305
228735
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-84[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=script&lang=ts&
|
|
@@ -228446,8 +228876,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
228446
228876
|
|
|
228447
228877
|
var Sign_component = normalizeComponent(
|
|
228448
228878
|
sign_Signvue_type_script_lang_ts_,
|
|
228449
|
-
|
|
228450
|
-
|
|
228879
|
+
Signvue_type_template_id_6c042af0_render,
|
|
228880
|
+
Signvue_type_template_id_6c042af0_staticRenderFns,
|
|
228451
228881
|
false,
|
|
228452
228882
|
null,
|
|
228453
228883
|
null,
|
|
@@ -228822,9 +229252,339 @@ var UploadImageDialog_component = normalizeComponent(
|
|
|
228822
229252
|
)
|
|
228823
229253
|
|
|
228824
229254
|
/* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
|
|
229255
|
+
;// 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/upload/CanvasImageDialog.vue?vue&type=template&id=6832ea7e&scoped=true&
|
|
229256
|
+
var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"canvas-image",class:_vm.animationClassNames,style:({ width: _vm.canvasWidth + 250 + 'px', height: _vm.canvasHeight + 150 + 'px' })},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("编辑图片")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",attrs:{"id":"loon_canvas_editor"}},[_c('div',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"loon_canvas_editor_box"}},[_c('canvas',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"image_canvas","width":_vm.canvasWidth,"height":_vm.canvasHeight}}),(_vm.tool === 0 && _vm.textAreaStyle.width)?_c('textarea',{ref:"textCanvas",style:(_vm.textAreaStyle),attrs:{"id":"text_canvas"},on:{"blur":function($event){return _vm.drawText()}}}):_vm._e()])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"type":_vm.tool === 0 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 0}}},[_vm._v("文字")]),_c('el-button',{attrs:{"type":_vm.tool === 1 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 1}}},[_vm._v("画笔")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasUndo()}}},[_vm._v("撤销")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasRedo()}}},[_vm._v("恢复")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small","loading":_vm.uploadLoading,"type":"primary"},on:{"click":_vm.sure}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
229257
|
+
var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns = []
|
|
229258
|
+
|
|
229259
|
+
|
|
229260
|
+
;// 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/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
229261
|
+
|
|
229262
|
+
|
|
229263
|
+
|
|
229264
|
+
//
|
|
229265
|
+
//
|
|
229266
|
+
//
|
|
229267
|
+
//
|
|
229268
|
+
//
|
|
229269
|
+
//
|
|
229270
|
+
//
|
|
229271
|
+
//
|
|
229272
|
+
//
|
|
229273
|
+
//
|
|
229274
|
+
//
|
|
229275
|
+
//
|
|
229276
|
+
//
|
|
229277
|
+
//
|
|
229278
|
+
//
|
|
229279
|
+
//
|
|
229280
|
+
//
|
|
229281
|
+
//
|
|
229282
|
+
//
|
|
229283
|
+
//
|
|
229284
|
+
//
|
|
229285
|
+
//
|
|
229286
|
+
//
|
|
229287
|
+
//
|
|
229288
|
+
|
|
229289
|
+
|
|
229290
|
+
/* harmony default export */ var CanvasImageDialogvue_type_script_lang_js_ = ({
|
|
229291
|
+
name: 'canvasImageDialog',
|
|
229292
|
+
props: {
|
|
229293
|
+
hoEditorFactoryId: {
|
|
229294
|
+
type: String,
|
|
229295
|
+
required: true
|
|
229296
|
+
},
|
|
229297
|
+
vueController: {
|
|
229298
|
+
type: Object,
|
|
229299
|
+
required: true
|
|
229300
|
+
}
|
|
229301
|
+
},
|
|
229302
|
+
data: function data() {
|
|
229303
|
+
return {
|
|
229304
|
+
canvasWidth: 500,
|
|
229305
|
+
canvasHeight: 400,
|
|
229306
|
+
animationClassNames: 'control-modal-contents image-modal animation-in',
|
|
229307
|
+
uploadLoading: false,
|
|
229308
|
+
eraserEnabled: false,
|
|
229309
|
+
activeBgColor: '#fff',
|
|
229310
|
+
ifPop: false,
|
|
229311
|
+
lWidth: 2,
|
|
229312
|
+
opacity: 1,
|
|
229313
|
+
strokeColor: '#FF0000',
|
|
229314
|
+
radius: 5,
|
|
229315
|
+
canvasHistory: [],
|
|
229316
|
+
step: -1,
|
|
229317
|
+
canvas: null,
|
|
229318
|
+
textarea: null,
|
|
229319
|
+
canvasArea: null,
|
|
229320
|
+
context: null,
|
|
229321
|
+
painting: false,
|
|
229322
|
+
// 定义一个变量初始化画笔状态
|
|
229323
|
+
startPoint: {
|
|
229324
|
+
x: undefined,
|
|
229325
|
+
y: undefined
|
|
229326
|
+
},
|
|
229327
|
+
// 记录画笔最后一次的位置
|
|
229328
|
+
tool: 1,
|
|
229329
|
+
textAreaStyle: {}
|
|
229330
|
+
};
|
|
229331
|
+
},
|
|
229332
|
+
watch: {
|
|
229333
|
+
tool: function tool() {
|
|
229334
|
+
if (this.tool === 0) {
|
|
229335
|
+
this.canvas.removeEventListener('mousemove', this.move);
|
|
229336
|
+
} else if (this.tool === 1) {
|
|
229337
|
+
this.canvas.addEventListener('mousemove', this.move);
|
|
229338
|
+
}
|
|
229339
|
+
},
|
|
229340
|
+
canvasHistory: function canvasHistory() {}
|
|
229341
|
+
},
|
|
229342
|
+
mounted: function mounted() {
|
|
229343
|
+
var _this = this;
|
|
229344
|
+
|
|
229345
|
+
this.canvas = document.querySelector('#image_canvas');
|
|
229346
|
+
this.canvasArea = document.querySelector('#loon_canvas_editor_box');
|
|
229347
|
+
this.context = this.canvas.getContext('2d');
|
|
229348
|
+
this.listenDrawLine();
|
|
229349
|
+
var updateNode = this.getImageNode();
|
|
229350
|
+
var image = new Image();
|
|
229351
|
+
image.src = updateNode.imageDataBase64String;
|
|
229352
|
+
|
|
229353
|
+
image.onload = function () {
|
|
229354
|
+
_this.canvasWidth = image.naturalWidth;
|
|
229355
|
+
_this.canvasHeight = image.naturalHeight;
|
|
229356
|
+
|
|
229357
|
+
_this.context.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
229358
|
+
|
|
229359
|
+
setTimeout(function () {
|
|
229360
|
+
_this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
229361
|
+
|
|
229362
|
+
_this.canvasDraw();
|
|
229363
|
+
}, 0);
|
|
229364
|
+
};
|
|
229365
|
+
},
|
|
229366
|
+
methods: {
|
|
229367
|
+
getImageNode: function getImageNode() {
|
|
229368
|
+
var value;
|
|
229369
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229370
|
+
var curOnDragNode = hoEditorFactory.docTree.curOnDragNode;
|
|
229371
|
+
|
|
229372
|
+
if (curOnDragNode instanceof ImageNode/* ImageNode */.H) {
|
|
229373
|
+
value = curOnDragNode;
|
|
229374
|
+
}
|
|
229375
|
+
|
|
229376
|
+
return value;
|
|
229377
|
+
},
|
|
229378
|
+
listenDrawLine: function listenDrawLine() {
|
|
229379
|
+
this.canvas.addEventListener('mousedown', this.down);
|
|
229380
|
+
this.canvas.addEventListener('mousemove', this.move);
|
|
229381
|
+
this.canvasArea.addEventListener('mouseup', this.up);
|
|
229382
|
+
},
|
|
229383
|
+
clearListenDrawLine: function clearListenDrawLine() {
|
|
229384
|
+
this.canvas.removeEventListener('mousedown', this.down);
|
|
229385
|
+
this.canvas.removeEventListener('mousemove', this.move);
|
|
229386
|
+
this.canvasArea.removeEventListener('mouseup', this.up);
|
|
229387
|
+
},
|
|
229388
|
+
changeTool: function changeTool(tool) {
|
|
229389
|
+
this.tool = tool;
|
|
229390
|
+
},
|
|
229391
|
+
down: function down(e) {
|
|
229392
|
+
var _this2 = this;
|
|
229393
|
+
|
|
229394
|
+
this.painting = true;
|
|
229395
|
+
this.startPoint = {
|
|
229396
|
+
x: e.offsetX,
|
|
229397
|
+
y: e.offsetY
|
|
229398
|
+
};
|
|
229399
|
+
|
|
229400
|
+
if (this.tool === 0) {
|
|
229401
|
+
this.textAreaStyle = {
|
|
229402
|
+
width: '100px',
|
|
229403
|
+
height: '27px',
|
|
229404
|
+
left: e.offsetX + 'px',
|
|
229405
|
+
top: e.offsetY + 'px'
|
|
229406
|
+
};
|
|
229407
|
+
setTimeout(function () {
|
|
229408
|
+
if (_this2.$refs.textCanvas) {
|
|
229409
|
+
_this2.$refs.textCanvas.focus();
|
|
229410
|
+
}
|
|
229411
|
+
}, 0);
|
|
229412
|
+
}
|
|
229413
|
+
|
|
229414
|
+
e.stopPropagation();
|
|
229415
|
+
e.preventDefault();
|
|
229416
|
+
},
|
|
229417
|
+
move: function move(e) {
|
|
229418
|
+
switch (this.tool) {
|
|
229419
|
+
case 0:
|
|
229420
|
+
{
|
|
229421
|
+
this.drawText(e);
|
|
229422
|
+
break;
|
|
229423
|
+
}
|
|
229424
|
+
|
|
229425
|
+
case 1:
|
|
229426
|
+
{
|
|
229427
|
+
this.drawLine(e);
|
|
229428
|
+
break;
|
|
229429
|
+
}
|
|
229430
|
+
}
|
|
229431
|
+
},
|
|
229432
|
+
up: function up(e) {
|
|
229433
|
+
if (this.tool === 0) {
|
|
229434
|
+
this.canvas.removeEventListener('mousemove', this.move);
|
|
229435
|
+
}
|
|
229436
|
+
|
|
229437
|
+
this.painting = false;
|
|
229438
|
+
|
|
229439
|
+
if (this.tool === 1) {
|
|
229440
|
+
this.canvasDraw();
|
|
229441
|
+
}
|
|
229442
|
+
|
|
229443
|
+
e.stopPropagation();
|
|
229444
|
+
e.preventDefault();
|
|
229445
|
+
},
|
|
229446
|
+
changeText: function changeText(e) {
|
|
229447
|
+
if (e.offsetX - this.startPoint.x > 0) {
|
|
229448
|
+
this.textAreaStyle.width = e.offsetX - this.startPoint.x + 'px';
|
|
229449
|
+
} else {
|
|
229450
|
+
this.textAreaStyle.width = -(e.offsetX - this.startPoint.x) + 'px';
|
|
229451
|
+
this.textAreaStyle.left = e.offsetX + 'px';
|
|
229452
|
+
}
|
|
229453
|
+
|
|
229454
|
+
if (e.offsetY - this.startPoint.y > 0) {
|
|
229455
|
+
this.textAreaStyle.height = e.offsetY - this.startPoint.y + 'px';
|
|
229456
|
+
} else {
|
|
229457
|
+
this.textAreaStyle.height = -(e.offsetY - this.startPoint.y) + 'px';
|
|
229458
|
+
this.textAreaStyle.top = e.offsetY + 'px';
|
|
229459
|
+
}
|
|
229460
|
+
},
|
|
229461
|
+
drawText: function drawText() {
|
|
229462
|
+
if (this.$refs.textCanvas && this.$refs.textCanvas.value) {
|
|
229463
|
+
this.context.font = '16px 宋体';
|
|
229464
|
+
this.context.fillStyle = '#F00';
|
|
229465
|
+
this.context.fillText(this.$refs.textCanvas.value, this.textAreaStyle.left.split('px')[0], Number(this.textAreaStyle.top.split('px')[0]) + 16);
|
|
229466
|
+
this.canvasDraw();
|
|
229467
|
+
this.$refs.textCanvas.value = '';
|
|
229468
|
+
this.textAreaStyle = {};
|
|
229469
|
+
}
|
|
229470
|
+
},
|
|
229471
|
+
drawLine: function drawLine(e) {
|
|
229472
|
+
if (!this.painting) return;
|
|
229473
|
+
this.context.beginPath();
|
|
229474
|
+
this.context.lineWidth = this.lWidth;
|
|
229475
|
+
this.context.strokeStyle = this.strokeColor; // 设置线条末端样式。
|
|
229476
|
+
|
|
229477
|
+
this.context.lineCap = 'round'; // 设定线条与线条间接合处的样式
|
|
229478
|
+
|
|
229479
|
+
this.context.lineJoin = 'round';
|
|
229480
|
+
this.context.moveTo(this.startPoint.x, this.startPoint.y);
|
|
229481
|
+
this.context.lineTo(e.offsetX, e.offsetY);
|
|
229482
|
+
this.context.stroke();
|
|
229483
|
+
this.context.closePath();
|
|
229484
|
+
this.startPoint = {
|
|
229485
|
+
x: e.offsetX,
|
|
229486
|
+
y: e.offsetY
|
|
229487
|
+
};
|
|
229488
|
+
e.stopPropagation();
|
|
229489
|
+
e.preventDefault();
|
|
229490
|
+
},
|
|
229491
|
+
// 绘制方法
|
|
229492
|
+
canvasDraw: function canvasDraw() {
|
|
229493
|
+
this.step++;
|
|
229494
|
+
|
|
229495
|
+
if (this.step < this.canvasHistory.length) {
|
|
229496
|
+
this.canvasHistory.length = this.step; // 截断数组
|
|
229497
|
+
}
|
|
229498
|
+
|
|
229499
|
+
var quality = 1;
|
|
229500
|
+
var base64 = this.canvas.toDataURL('image/jpeg', quality); //压缩语句
|
|
229501
|
+
// 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
|
|
229502
|
+
|
|
229503
|
+
while (base64.length / 1024 > 100) {
|
|
229504
|
+
quality -= 0.01;
|
|
229505
|
+
base64 = this.canvas.toDataURL('image/jpeg', quality);
|
|
229506
|
+
} // 添加新的绘制到历史记录
|
|
229507
|
+
|
|
229508
|
+
|
|
229509
|
+
this.canvasHistory.push(this.canvas.toDataURL());
|
|
229510
|
+
},
|
|
229511
|
+
// 撤销方法
|
|
229512
|
+
canvasUndo: function canvasUndo() {
|
|
229513
|
+
var _this3 = this;
|
|
229514
|
+
|
|
229515
|
+
if (this.step > 0) {
|
|
229516
|
+
this.step--;
|
|
229517
|
+
var canvasPic = new Image();
|
|
229518
|
+
canvasPic.src = this.canvasHistory[this.step];
|
|
229519
|
+
this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
229520
|
+
|
|
229521
|
+
canvasPic.onload = function () {
|
|
229522
|
+
_this3.context.drawImage(canvasPic, 0, 0);
|
|
229523
|
+
};
|
|
229524
|
+
}
|
|
229525
|
+
},
|
|
229526
|
+
// 恢复方法
|
|
229527
|
+
canvasRedo: function canvasRedo() {
|
|
229528
|
+
var _this4 = this;
|
|
229529
|
+
|
|
229530
|
+
if (this.step < this.canvasHistory.length - 1) {
|
|
229531
|
+
this.step++;
|
|
229532
|
+
var canvasPic = new Image();
|
|
229533
|
+
canvasPic.src = this.canvasHistory[this.step];
|
|
229534
|
+
this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
229535
|
+
|
|
229536
|
+
canvasPic.onload = function () {
|
|
229537
|
+
_this4.context.drawImage(canvasPic, 0, 0);
|
|
229538
|
+
};
|
|
229539
|
+
}
|
|
229540
|
+
},
|
|
229541
|
+
handleClose: function handleClose() {
|
|
229542
|
+
this.clearListenDrawLine();
|
|
229543
|
+
this.$emit('closed');
|
|
229544
|
+
},
|
|
229545
|
+
sure: function sure() {
|
|
229546
|
+
var updateNode = this.getImageNode();
|
|
229547
|
+
var src = this.canvasHistory[this.canvasHistory.length - 1];
|
|
229548
|
+
|
|
229549
|
+
if (updateNode && src) {
|
|
229550
|
+
this.vueController.updateImageSrc(updateNode, src);
|
|
229551
|
+
this.handleClose();
|
|
229552
|
+
}
|
|
229553
|
+
}
|
|
229554
|
+
}
|
|
229555
|
+
});
|
|
229556
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
229557
|
+
/* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
|
|
229558
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=6832ea7e&lang=scss&scoped=true&
|
|
229559
|
+
// extracted by mini-css-extract-plugin
|
|
229560
|
+
|
|
229561
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=6832ea7e&lang=scss&scoped=true&
|
|
229562
|
+
|
|
229563
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
|
|
229564
|
+
|
|
229565
|
+
|
|
229566
|
+
|
|
229567
|
+
;
|
|
229568
|
+
|
|
229569
|
+
|
|
229570
|
+
/* normalize component */
|
|
229571
|
+
|
|
229572
|
+
var CanvasImageDialog_component = normalizeComponent(
|
|
229573
|
+
upload_CanvasImageDialogvue_type_script_lang_js_,
|
|
229574
|
+
CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_render,
|
|
229575
|
+
CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns,
|
|
229576
|
+
false,
|
|
229577
|
+
null,
|
|
229578
|
+
"6832ea7e",
|
|
229579
|
+
null
|
|
229580
|
+
|
|
229581
|
+
)
|
|
229582
|
+
|
|
229583
|
+
/* harmony default export */ var CanvasImageDialog = (CanvasImageDialog_component.exports);
|
|
228825
229584
|
;// CONCATENATED MODULE: ./src/components/controls/upload/index.ts
|
|
228826
229585
|
|
|
228827
|
-
|
|
229586
|
+
|
|
229587
|
+
|
|
228828
229588
|
;// 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/watermark/WaterSet.vue?vue&type=template&id=58b59c58&
|
|
228829
229589
|
var WaterSetvue_type_template_id_58b59c58_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents water-set animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("水印")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("内容")]),_c('el-input',{attrs:{"type":"text","size":"mini","clearable":"","placeholder":"文本内容","maxlength":"20","show-word-limit":""},on:{"input":_vm.codeChange},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("角度")]),_c('el-radio-group',{attrs:{"size":"mini"},on:{"change":_vm.codeChange},model:{value:(_vm.rotate),callback:function ($$v) {_vm.rotate=$$v},expression:"rotate"}},[_c('el-radio-button',{attrs:{"label":0}},[_vm._v("水平")]),_c('el-radio-button',{attrs:{"label":1}},[_vm._v("倾斜")])],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label",staticStyle:{"width":"50px"}},[_vm._v("颜色")]),_c('el-color-picker',{attrs:{"show-alpha":""},on:{"change":_vm.codeChange},model:{value:(_vm.color),callback:function ($$v) {_vm.color=$$v},expression:"color"}})],1)]),_c('div',{staticClass:"section-right"},[_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{attrs:{"id":"water"}},[_c('img',{directives:[{name:"show",rawName:"v-show",value:(_vm.waterUrl),expression:"waterUrl"}],attrs:{"src":_vm.waterUrl,"alt":"背景水印"}})])])])]),_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":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
228830
229590
|
var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
|
|
@@ -230609,7 +231369,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
230609
231369
|
CommentDialog: commentDialog,
|
|
230610
231370
|
PageInfoes: pageInfoes,
|
|
230611
231371
|
Delimiter: delimiter,
|
|
230612
|
-
UploadImageDialog:
|
|
231372
|
+
UploadImageDialog: upload_UploadImageDialog,
|
|
231373
|
+
CanvasImageDialog: CanvasImageDialog
|
|
230613
231374
|
}
|
|
230614
231375
|
})], ControlModal);
|
|
230615
231376
|
/* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
|
|
@@ -230625,8 +231386,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
230625
231386
|
;
|
|
230626
231387
|
var ControlModal_component = normalizeComponent(
|
|
230627
231388
|
controls_ControlModalvue_type_script_lang_ts_,
|
|
230628
|
-
|
|
230629
|
-
|
|
231389
|
+
ControlModalvue_type_template_id_35544190_render,
|
|
231390
|
+
ControlModalvue_type_template_id_35544190_staticRenderFns,
|
|
230630
231391
|
false,
|
|
230631
231392
|
null,
|
|
230632
231393
|
null,
|
|
@@ -231315,7 +232076,7 @@ var ControlMixin = /*#__PURE__*/function (_Vue) {
|
|
|
231315
232076
|
this.rightType = node.controlStyle;
|
|
231316
232077
|
this.dataSource = node.bandDataSource;
|
|
231317
232078
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
231318
|
-
this.rightType = "
|
|
232079
|
+
this.rightType = "edit-image";
|
|
231319
232080
|
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
231320
232081
|
this.rightType = "label";
|
|
231321
232082
|
} else if (node instanceof SignNode/* SignNode */.N) {
|
|
@@ -231945,6 +232706,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
231945
232706
|
var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
|
|
231946
232707
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
231947
232708
|
hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = this.isFixedPrintToA4);
|
|
232709
|
+
}
|
|
232710
|
+
}, {
|
|
232711
|
+
key: "isFixedPrintToA4TChange",
|
|
232712
|
+
value: function isFixedPrintToA4TChange() {
|
|
232713
|
+
var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
|
|
232714
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
232715
|
+
hoEditorFactory && (hoEditorFactory.isFixedPrintToA4T = this.isFixedPrintToA4T);
|
|
231948
232716
|
} // 监听默认打印纸张设置变化
|
|
231949
232717
|
|
|
231950
232718
|
}, {
|
|
@@ -232028,6 +232796,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232028
232796
|
}
|
|
232029
232797
|
|
|
232030
232798
|
hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
|
|
232799
|
+
hoEditor.isFixedPrintToA4T = _this3.isFixedPrintToA4T;
|
|
232031
232800
|
hoEditor.isUseImagePrint = _this3.isUseImagePrint;
|
|
232032
232801
|
hoEditor.isUseForm = _this3.isUseForm;
|
|
232033
232802
|
hoEditor.printBlack = _this3.printBlack;
|
|
@@ -232375,6 +233144,10 @@ __decorate([Prop({
|
|
|
232375
233144
|
default: false
|
|
232376
233145
|
})], HoDocs.prototype, "isFixedPrintToA4", void 0);
|
|
232377
233146
|
|
|
233147
|
+
__decorate([Prop({
|
|
233148
|
+
default: false
|
|
233149
|
+
})], HoDocs.prototype, "isFixedPrintToA4T", void 0);
|
|
233150
|
+
|
|
232378
233151
|
__decorate([Prop({
|
|
232379
233152
|
default: true
|
|
232380
233153
|
})], HoDocs.prototype, "isUseImagePrint", void 0);
|
|
@@ -232419,6 +233192,10 @@ __decorate([Watch("isFixedPrintToA4", {
|
|
|
232419
233192
|
deep: true
|
|
232420
233193
|
})], HoDocs.prototype, "isFixedPrintToA4Change", null);
|
|
232421
233194
|
|
|
233195
|
+
__decorate([Watch("isFixedPrintToA4T", {
|
|
233196
|
+
deep: true
|
|
233197
|
+
})], HoDocs.prototype, "isFixedPrintToA4TChange", null);
|
|
233198
|
+
|
|
232422
233199
|
__decorate([Watch("isUseImagePrint", {
|
|
232423
233200
|
deep: true
|
|
232424
233201
|
})], HoDocs.prototype, "isUseImagePrintChange", null);
|
|
@@ -232472,9 +233249,9 @@ var HoDocs_component = normalizeComponent(
|
|
|
232472
233249
|
)
|
|
232473
233250
|
|
|
232474
233251
|
/* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
|
|
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=
|
|
232476
|
-
var
|
|
232477
|
-
var
|
|
233252
|
+
;// 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=0e95df22&
|
|
233253
|
+
var ToolBarvue_type_template_id_0e95df22_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)}
|
|
233254
|
+
var ToolBarvue_type_template_id_0e95df22_staticRenderFns = []
|
|
232478
233255
|
|
|
232479
233256
|
|
|
232480
233257
|
;// 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&
|
|
@@ -236569,9 +237346,9 @@ var ToolTablevue_type_template_id_194f516e_render = function () {var _vm=this;va
|
|
|
236569
237346
|
var ToolTablevue_type_template_id_194f516e_staticRenderFns = []
|
|
236570
237347
|
|
|
236571
237348
|
|
|
236572
|
-
;// 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/HoTableFeatures.vue?vue&type=template&id=
|
|
236573
|
-
var HoTableFeaturesvue_type_template_id_2fd610cb_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"pregnantWeeks"},on:{"click":function($event){return _vm.openFormula(['孕周计算公式', 'pregnantWeeks'])}}},[_vm._v(" 孕周 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
236574
|
-
var
|
|
237349
|
+
;// 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/HoTableFeatures.vue?vue&type=template&id=02d0c560&
|
|
237350
|
+
var HoTableFeaturesvue_type_template_id_02d0c560_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('li',{ref:"hoTableFeatures",staticClass:"ho-table-features"},[_c('el-dialog',{attrs:{"width":"520px","top":"20%","center":"","append-to-body":"","close-on-click-modal":false,"title":_vm.dialogFormTitle,"visible":_vm.dialogFormVisible},on:{"update:visible":function($event){_vm.dialogFormVisible=$event}}},[_c('p',{staticStyle:{"padding":"10px 0"}},[_vm._v(" 请输入表单项对应的单元格编号,从左到右依次为ABCD...,从上到下依次为1234... ")]),(_vm.formula === 'a1: a2' || _vm.formula === '(a1 + a2) * 2')?_c('section',[_c('div',{staticStyle:{"height":"26px","line-height":"36px","font-size":"16px"}},[_vm._v(" "+_vm._s(_vm.dialogFormTitle)+" ")]),_c('div',{staticStyle:{"height":"36px","line-height":"36px"}},[_vm._v("示例: "+_vm._s(_vm.dialogFormTitle === '表格行列求和公式' ? 'a1: a2' : '(a1 + a2) * 2'))]),_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('p',{staticStyle:{"height":"10px"}}),_c('el-input',{attrs:{"autocomplete":"off"},model:{value:(_vm.simpleFormula),callback:function ($$v) {_vm.simpleFormula=$$v},expression:"simpleFormula"}})],1):_vm._e(),(_vm.formula === 'bmi')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("身高")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("体重")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.weight),callback:function ($$v) {_vm.weight=$$v},expression:"weight"}})],1)]):_vm._e(),(_vm.formula === 'labor')?_c('section',[_c('el-checkbox',{model:{value:(_vm.isHideZero),callback:function ($$v) {_vm.isHideZero=$$v},expression:"isHideZero"}},[_vm._v("结果为 0 不显示")]),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("产程类型")]),_c('el-select',{attrs:{"size":"mini"},on:{"change":_vm.laborTypeChange},model:{value:(_vm.laborType),callback:function ($$v) {_vm.laborType=$$v},expression:"laborType"}},[_c('el-option',{attrs:{"value":1,"label":"第一产程"}}),_c('el-option',{attrs:{"value":2,"label":"第二产程"}}),_c('el-option',{attrs:{"value":3,"label":"第三产程"}}),_c('el-option',{attrs:{"value":0,"label":"总产程"}})],1)],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第一产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor1),callback:function ($$v) {_vm.labor1=$$v},expression:"labor1"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第二产程', '宫口全开', '胎儿娩出', '胎盘娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor2),callback:function ($$v) {_vm.labor2=$$v},expression:"labor2"}})],1),(_vm.laborType === 0)?_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v(_vm._s(['第三产程', '宫缩开始', '宫口全开', '胎儿娩出'][_vm.laborType]))]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.labor3),callback:function ($$v) {_vm.labor3=$$v},expression:"labor3"}})],1):_vm._e()],1):_vm._e(),(_vm.formula === 'expectedDate' || _vm.formula === 'pregnantDays' || _vm.formula === 'pregnantWeeks')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',[_vm._v("末次月经")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.expectedDate),callback:function ($$v) {_vm.expectedDate=$$v},expression:"expectedDate"}})],1)]):_vm._e(),(_vm.formula === 'ftScoreMapping')?_c('section',[_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"220px"}},[_vm._v("分值所在的单元格编号")]),_c('el-input',{attrs:{"size":"mini","autocomplete":"off"},model:{value:(_vm.ftScoreMapping.cell),callback:function ($$v) {_vm.$set(_vm.ftScoreMapping, "cell", $$v)},expression:"ftScoreMapping.cell"}})],1),_c('div',{staticClass:"ho-table-features-list"},[_c('p',{staticStyle:{"width":"143px"}},[_vm._v("分值区间及映射值")]),_c('ul',[_vm._l((_vm.ftScoreMapping.item),function(item,index){return _c('li',[_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":0},model:{value:(item.range[0]),callback:function ($$v) {_vm.$set(item.range, 0, $$v)},expression:"item.range[0]"}}),_c('span',{staticStyle:{"padding":"0 10px"}},[_vm._v("到")]),_c('el-input-number',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","controls":false,"min":1},model:{value:(item.range[1]),callback:function ($$v) {_vm.$set(item.range, 1, $$v)},expression:"item.range[1]"}}),_c('span',{staticStyle:{"padding":"0 10px 0 0"}},[_vm._v(" :")]),_c('el-input',{staticClass:"ft-score-mapping-input",attrs:{"size":"mini","autocomplete":"off"},model:{value:(item.text),callback:function ($$v) {_vm.$set(item, "text", $$v)},expression:"item.text"}})],1)}),_c('li',[_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.addFtScoreMappingItem}},[_c('i',{staticClass:"el-icon-folder-add",staticStyle:{"font-size":"20px"}})])],1)],2)])]):_vm._e(),_c('div',{staticClass:"dialog-footer",attrs:{"slot":"footer"},slot:"footer"},[_c('el-button',{attrs:{"type":"primary","size":"small"},on:{"click":_vm.sure}},[_vm._v("确 定")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){_vm.dialogFormVisible = false}}},[_vm._v("取 消")])],1)]),(_vm.table.tableFormula)?_c('div',{staticClass:"sub-bar-items"},[_c('el-dropdown',{class:_vm.dropdownClassName,attrs:{"trigger":"click","placement":"bottom-start","popper-append-to-body":"","tabindex":-1},on:{"visible-change":_vm.dropdownChange}},[_c('span',{staticClass:"el-dropdown-link"},[_c('span',[_vm._v("表格计算公式")]),_c('i',{staticClass:"el-icon-arrow-down el-icon--right"})]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[(_vm.table.isTableCode)?_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{directives:[{name:"debounce",rawName:"v-debounce:30.click",value:(_vm.setCellCode),expression:"setCellCode",arg:"30",modifiers:{"click":true}}]},[_c('span',[_vm._v(_vm._s(_vm.tableCellCode ? '隐藏' : '显示')+"单元格编号")])])]):_vm._e(),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"sumFormula"},on:{"click":function($event){return _vm.openFormula(['表格行列求和公式', 'a1: a2'])}}},[_vm._v(" 表格行列求和 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"arithmeticFormula"},on:{"click":function($event){_vm.openFormula(['表格行列混合运算公式', '(a1 + a2) * 2'])}}},[_vm._v(" 表格行列混合运算 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"bmiFormula"},on:{"click":function($event){return _vm.openFormula(['BMI指数计算公式', 'bmi'])}}},[_vm._v(" BMI指数 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"laborFormula"},on:{"click":function($event){return _vm.openFormula(['产程计算公式', 'labor'])}}},[_vm._v(" 产程 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"expectedDate"},on:{"click":function($event){return _vm.openFormula(['预产期计算公式', 'expectedDate'])}}},[_vm._v(" 预产期 ")])]),_c('el-dropdown-item',{staticClass:"ho-insert-table-item"},[_c('div',{attrs:{"index":"ftScoreMapping"},on:{"click":function($event){return _vm.openFormula(['分值映射计算公式', 'ftScoreMapping'])}}},[_vm._v(" 分值映射 ")])])],1)],1)],1):_vm._e(),(_vm.table.insertRowAbove && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowAbove),expression:"tableInsertRowAbove",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("上方插入 ")]),_c('el-input-number',{staticClass:"insert-top",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.topRows),callback:function ($$v) {_vm.topRows=$$v},expression:"topRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertRowBelow && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertRowBelow),expression:"tableInsertRowBelow",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("下方插入 ")]),_c('el-input-number',{staticClass:"insert-bottom",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.bottomRows),callback:function ($$v) {_vm.bottomRows=$$v},expression:"bottomRows"}}),_c('span',[_vm._v(" 行")])],1):_vm._e(),(_vm.table.insertColLeft && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColLeft),expression:"tableInsertColLeft",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("左侧插入 ")]),_c('el-input-number',{staticClass:"insert-left",attrs:{"size":"mini","controls":false,"precision":0,"min":1},model:{value:(_vm.leftRows),callback:function ($$v) {_vm.leftRows=$$v},expression:"leftRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.insertColRight && _vm.tableProperty.canAddRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableInsertColRight),expression:"tableInsertColRight",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("右侧插入 ")]),_c('el-input-number',{staticClass:"insert-right",attrs:{"size":"mini","precision":0,"controls":false,"min":1},model:{value:(_vm.rightRows),callback:function ($$v) {_vm.rightRows=$$v},expression:"rightRows"}}),_c('span',[_vm._v(" 列")])],1):_vm._e(),(_vm.table.deleteRows && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteRows),expression:"tableDeleteRows",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除行")])]):_vm._e(),(_vm.table.deleteCols && _vm.tableProperty.canDeleteRow)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableDeleteCols),expression:"tableDeleteCols",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("删除列")])]):_vm._e(),(_vm.table.mergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableMergerCells),expression:"tableMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("合并单元格")])]):_vm._e(),(_vm.table.unMergerCells)?_c('div',{directives:[{name:"debounce",rawName:"v-debounce:1000.click",value:(_vm.tableUnMergerCells),expression:"tableUnMergerCells",arg:"1000",modifiers:{"click":true}}],staticClass:"sub-bar-items"},[_c('span',[_vm._v("取消合并单元格")])]):_vm._e()],1)}
|
|
237351
|
+
var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
236575
237352
|
|
|
236576
237353
|
|
|
236577
237354
|
;// 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/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
|
|
@@ -236975,8 +237752,8 @@ var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
|
|
|
236975
237752
|
|
|
236976
237753
|
var HoTableFeatures_component = normalizeComponent(
|
|
236977
237754
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
236978
|
-
|
|
236979
|
-
|
|
237755
|
+
HoTableFeaturesvue_type_template_id_02d0c560_render,
|
|
237756
|
+
HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns,
|
|
236980
237757
|
false,
|
|
236981
237758
|
null,
|
|
236982
237759
|
null,
|
|
@@ -237772,8 +238549,8 @@ ToolBar = __decorate([vue_class_component_esm({
|
|
|
237772
238549
|
|
|
237773
238550
|
var ToolBar_component = normalizeComponent(
|
|
237774
238551
|
toolbar_ToolBarvue_type_script_lang_ts_,
|
|
237775
|
-
|
|
237776
|
-
|
|
238552
|
+
ToolBarvue_type_template_id_0e95df22_render,
|
|
238553
|
+
ToolBarvue_type_template_id_0e95df22_staticRenderFns,
|
|
237777
238554
|
false,
|
|
237778
238555
|
null,
|
|
237779
238556
|
null,
|
|
@@ -238056,7 +238833,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238056
238833
|
_this$rightNode13,
|
|
238057
238834
|
_this$rightNode14,
|
|
238058
238835
|
_this$rightNode15,
|
|
238059
|
-
_this$rightNode16
|
|
238836
|
+
_this$rightNode16,
|
|
238837
|
+
_this$rightNode17;
|
|
238060
238838
|
|
|
238061
238839
|
var h = arguments[0];
|
|
238062
238840
|
return h("div", {
|
|
@@ -238154,7 +238932,18 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238154
238932
|
return _this4.toUpdateNodes("qrcode", event);
|
|
238155
238933
|
}
|
|
238156
238934
|
}
|
|
238157
|
-
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((
|
|
238935
|
+
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$rightNode11 = this.rightNode) === null || _this$rightNode11 === void 0 ? void 0 : _this$rightNode11.type) === "edit-image" && h("ul", {
|
|
238936
|
+
"class": "mouse-right-menu"
|
|
238937
|
+
}, [h("li", {
|
|
238938
|
+
"class": "mouse-menu-item mouse-right-menu-line"
|
|
238939
|
+
}), h("li", {
|
|
238940
|
+
"class": "mouse-menu-item",
|
|
238941
|
+
"on": {
|
|
238942
|
+
"click": function click() {
|
|
238943
|
+
return _this4.toUpdateNodes("edit-image", event);
|
|
238944
|
+
}
|
|
238945
|
+
}
|
|
238946
|
+
}, ["\u7F16\u8F91\u56FE\u7247"])]), (((_this$rightNode12 = this.rightNode) === null || _this$rightNode12 === void 0 ? void 0 : _this$rightNode12.type) === "text" || this.emrDebug) && h("ul", {
|
|
238158
238947
|
"class": "mouse-right-menu"
|
|
238159
238948
|
}, [h("li", {
|
|
238160
238949
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -238165,7 +238954,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238165
238954
|
return _this4.toUpdateNodes("text", event);
|
|
238166
238955
|
}
|
|
238167
238956
|
}
|
|
238168
|
-
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$
|
|
238957
|
+
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$rightNode13 = this.rightNode) === null || _this$rightNode13 === void 0 ? void 0 : _this$rightNode13.rightTypeIsTable) && this.defaultTable && ((_this$rightNode14 = this.rightNode) === null || _this$rightNode14 === void 0 ? void 0 : _this$rightNode14.paintStatus) === 0 || this.emrDebug) && h("ul", {
|
|
238169
238958
|
"class": "mouse-right-menu"
|
|
238170
238959
|
}, [h("li", {
|
|
238171
238960
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -238197,7 +238986,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238197
238986
|
return _this4.toUpdateNodes("table-cell", event);
|
|
238198
238987
|
}
|
|
238199
238988
|
}
|
|
238200
|
-
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$
|
|
238989
|
+
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.rightTypeIsTable) && this.defaultTable && h("ul", {
|
|
238201
238990
|
"class": "mouse-right-menu"
|
|
238202
238991
|
}, [h("li", {
|
|
238203
238992
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -238211,7 +239000,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238211
239000
|
table: this.defaultTable,
|
|
238212
239001
|
tableProperty: this.rightNode.tableProperty
|
|
238213
239002
|
})
|
|
238214
|
-
})]), ((_this$
|
|
239003
|
+
})]), ((_this$rightNode16 = this.rightNode) === null || _this$rightNode16 === void 0 ? void 0 : _this$rightNode16.canShowComment) && h("ul", {
|
|
238215
239004
|
"class": "mouse-right-menu"
|
|
238216
239005
|
}, [h("li", {
|
|
238217
239006
|
"class": "mouse-menu-item",
|
|
@@ -238220,7 +239009,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238220
239009
|
return _this4.hideComments();
|
|
238221
239010
|
}
|
|
238222
239011
|
}
|
|
238223
|
-
}, [(_this$
|
|
239012
|
+
}, [(_this$rightNode17 = this.rightNode) !== null && _this$rightNode17 !== void 0 && _this$rightNode17.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
|
|
238224
239013
|
"class": "mouse-right-menu"
|
|
238225
239014
|
}, [h("li", {
|
|
238226
239015
|
"class": "mouse-menu-item"
|
|
@@ -238890,8 +239679,8 @@ var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item);
|
|
|
238890
239679
|
var lib_form = __webpack_require__(54223);
|
|
238891
239680
|
var form_default = /*#__PURE__*/__webpack_require__.n(lib_form);
|
|
238892
239681
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/upload.js
|
|
238893
|
-
var
|
|
238894
|
-
var upload_default = /*#__PURE__*/__webpack_require__.n(
|
|
239682
|
+
var upload = __webpack_require__(26906);
|
|
239683
|
+
var upload_default = /*#__PURE__*/__webpack_require__.n(upload);
|
|
238895
239684
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/dropdown-item.js
|
|
238896
239685
|
var dropdown_item = __webpack_require__(42173);
|
|
238897
239686
|
var dropdown_item_default = /*#__PURE__*/__webpack_require__.n(dropdown_item);
|