hoeditor-web 2.0.56 → 2.0.59
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 +1011 -281
- package/lib/hoeditor.css +1 -0
- package/lib/hoeditor.umd.js +1011 -281
- package/lib/hoeditor.umd.min.js +9 -9
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -10970,7 +10970,7 @@ var PrintStatus = /*#__PURE__*/function () {
|
|
|
10970
10970
|
this._printRecord = new PrintRecord(hoEditorFactoryID);
|
|
10971
10971
|
this._DrawRange = new Array();
|
|
10972
10972
|
this.pageSettingMap = new Map();
|
|
10973
|
-
this._printAppoint =
|
|
10973
|
+
this._printAppoint = '';
|
|
10974
10974
|
}
|
|
10975
10975
|
|
|
10976
10976
|
(0,createClass/* default */.Z)(PrintStatus, [{
|
|
@@ -11158,16 +11158,16 @@ var PrintStatus = /*#__PURE__*/function () {
|
|
|
11158
11158
|
return;
|
|
11159
11159
|
}
|
|
11160
11160
|
|
|
11161
|
-
if (values ==
|
|
11161
|
+
if (values == '') {
|
|
11162
11162
|
values = "".concat(this.startIndex, "-").concat(hoEditorFactory.drawTree.drawPages.length);
|
|
11163
11163
|
}
|
|
11164
11164
|
|
|
11165
|
-
values = values.replace(/\s*/g,
|
|
11165
|
+
values = values.replace(/\s*/g, '').replace(/[^\d|-]/g, ',').replace(/\,{2,}/g, ',');
|
|
11166
11166
|
var val = values;
|
|
11167
|
-
var arr = val.split(
|
|
11167
|
+
var arr = val.split(',');
|
|
11168
11168
|
var pages = new Array();
|
|
11169
11169
|
arr.forEach(function (value) {
|
|
11170
|
-
var tmp = value.split(
|
|
11170
|
+
var tmp = value.split('-');
|
|
11171
11171
|
|
|
11172
11172
|
if (tmp.length == 1) {
|
|
11173
11173
|
pages.push(parseInt(tmp[0]));
|
|
@@ -11442,21 +11442,21 @@ var Print = /*#__PURE__*/function () {
|
|
|
11442
11442
|
(0,createClass/* default */.Z)(Print, null, [{
|
|
11443
11443
|
key: "openDataUriInWindow",
|
|
11444
11444
|
value: function openDataUriInWindow(PDF, fileName, width) {
|
|
11445
|
-
if (navigator && navigator.userAgent.toLowerCase().indexOf(
|
|
11446
|
-
var htmlForNewWindow =
|
|
11447
|
-
var nW = window.open(
|
|
11445
|
+
if (navigator && navigator.userAgent.toLowerCase().indexOf('electron') !== -1) {
|
|
11446
|
+
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>';
|
|
11447
|
+
var nW = window.open('', 'modal', 'width=' + (width + 400) + ',height=800');
|
|
11448
11448
|
|
|
11449
11449
|
if (nW) {
|
|
11450
11450
|
nW.document.write(htmlForNewWindow);
|
|
11451
11451
|
}
|
|
11452
11452
|
} else {
|
|
11453
|
-
if (document.querySelector(
|
|
11454
|
-
document.body.removeChild(document.querySelector(
|
|
11453
|
+
if (document.querySelector('#Ho_Editor_Print_Iframe')) {
|
|
11454
|
+
document.body.removeChild(document.querySelector('#Ho_Editor_Print_Iframe'));
|
|
11455
11455
|
}
|
|
11456
11456
|
|
|
11457
11457
|
this.printPage(PDF).catch(function (error) {
|
|
11458
11458
|
PDF.autoPrint();
|
|
11459
|
-
PDF.output(
|
|
11459
|
+
PDF.output('dataurlnewwindow');
|
|
11460
11460
|
});
|
|
11461
11461
|
}
|
|
11462
11462
|
}
|
|
@@ -11469,7 +11469,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11469
11469
|
while (1) {
|
|
11470
11470
|
switch (_context2.prev = _context2.next) {
|
|
11471
11471
|
case 0:
|
|
11472
|
-
oHiddFrame = document.createElement(
|
|
11472
|
+
oHiddFrame = document.createElement('iframe');
|
|
11473
11473
|
printPromise = new Promise(function (resolve, reject) {
|
|
11474
11474
|
oHiddFrame.onload = function () {
|
|
11475
11475
|
try {
|
|
@@ -11478,20 +11478,20 @@ var Print = /*#__PURE__*/function () {
|
|
|
11478
11478
|
oHiddFrame === null || oHiddFrame === void 0 ? void 0 : (_oHiddFrame$contentWi = oHiddFrame.contentWindow) === null || _oHiddFrame$contentWi === void 0 ? void 0 : _oHiddFrame$contentWi.focus(); // Required for IE
|
|
11479
11479
|
|
|
11480
11480
|
oHiddFrame === null || oHiddFrame === void 0 ? void 0 : (_oHiddFrame$contentWi2 = oHiddFrame.contentWindow) === null || _oHiddFrame$contentWi2 === void 0 ? void 0 : _oHiddFrame$contentWi2.print();
|
|
11481
|
-
resolve(
|
|
11481
|
+
resolve('print');
|
|
11482
11482
|
} catch (error) {
|
|
11483
11483
|
reject(error);
|
|
11484
11484
|
}
|
|
11485
11485
|
};
|
|
11486
11486
|
});
|
|
11487
|
-
oHiddFrame.id =
|
|
11488
|
-
oHiddFrame.style.position =
|
|
11489
|
-
oHiddFrame.style.right =
|
|
11490
|
-
oHiddFrame.style.bottom =
|
|
11491
|
-
oHiddFrame.style.width =
|
|
11492
|
-
oHiddFrame.style.height =
|
|
11493
|
-
oHiddFrame.style.border =
|
|
11494
|
-
oHiddFrame.src = PDF.output(
|
|
11487
|
+
oHiddFrame.id = 'Ho_Editor_Print_Iframe';
|
|
11488
|
+
oHiddFrame.style.position = 'fixed';
|
|
11489
|
+
oHiddFrame.style.right = '0';
|
|
11490
|
+
oHiddFrame.style.bottom = '0';
|
|
11491
|
+
oHiddFrame.style.width = '0';
|
|
11492
|
+
oHiddFrame.style.height = '0';
|
|
11493
|
+
oHiddFrame.style.border = '0';
|
|
11494
|
+
oHiddFrame.src = PDF.output('bloburl');
|
|
11495
11495
|
document.body.appendChild(oHiddFrame);
|
|
11496
11496
|
_context2.next = 13;
|
|
11497
11497
|
return printPromise;
|
|
@@ -11531,7 +11531,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11531
11531
|
break;
|
|
11532
11532
|
}
|
|
11533
11533
|
|
|
11534
|
-
message_box_default().alert(
|
|
11534
|
+
message_box_default().alert('病程记录文件有删除或者内容减少,导致上一次记录的打印位置错误无法使用,请用重打进行打印或者删除所有打印记录后续打');
|
|
11535
11535
|
|
|
11536
11536
|
reslove && reslove(null);
|
|
11537
11537
|
return _context3.abrupt("return");
|
|
@@ -11563,17 +11563,17 @@ var Print = /*#__PURE__*/function () {
|
|
|
11563
11563
|
hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
|
|
11564
11564
|
}
|
|
11565
11565
|
|
|
11566
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ?
|
|
11566
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
11567
11567
|
width = hoEditorFactory.pageProperty.widthPixes;
|
|
11568
|
-
height = orientation ===
|
|
11568
|
+
height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
|
|
11569
11569
|
|
|
11570
|
-
if (type ===
|
|
11571
|
-
svgBox = document.createElement(
|
|
11572
|
-
svgBox.className =
|
|
11570
|
+
if (type === 'html') {
|
|
11571
|
+
svgBox = document.createElement('div');
|
|
11572
|
+
svgBox.className = 'ho-print-svg-box';
|
|
11573
11573
|
}
|
|
11574
11574
|
|
|
11575
11575
|
last = -1;
|
|
11576
|
-
console.time(
|
|
11576
|
+
console.time('绘制svg和生成pdf');
|
|
11577
11577
|
_iterator = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
11578
11578
|
_context3.prev = 15;
|
|
11579
11579
|
|
|
@@ -11581,7 +11581,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11581
11581
|
|
|
11582
11582
|
case 17:
|
|
11583
11583
|
if ((_step = _iterator.n()).done) {
|
|
11584
|
-
_context3.next =
|
|
11584
|
+
_context3.next = 60;
|
|
11585
11585
|
break;
|
|
11586
11586
|
}
|
|
11587
11587
|
|
|
@@ -11593,13 +11593,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
11593
11593
|
}
|
|
11594
11594
|
|
|
11595
11595
|
_context3.next = 22;
|
|
11596
|
-
return message_box_default().confirm(
|
|
11597
|
-
confirmButtonText:
|
|
11598
|
-
type:
|
|
11596
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
11597
|
+
confirmButtonText: '确定',
|
|
11598
|
+
type: 'info'
|
|
11599
11599
|
});
|
|
11600
11600
|
|
|
11601
11601
|
case 22:
|
|
11602
|
-
return _context3.abrupt("continue",
|
|
11602
|
+
return _context3.abrupt("continue", 58);
|
|
11603
11603
|
|
|
11604
11604
|
case 23:
|
|
11605
11605
|
last = index;
|
|
@@ -11610,7 +11610,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11610
11610
|
break;
|
|
11611
11611
|
}
|
|
11612
11612
|
|
|
11613
|
-
return _context3.abrupt("break",
|
|
11613
|
+
return _context3.abrupt("break", 60);
|
|
11614
11614
|
|
|
11615
11615
|
case 27:
|
|
11616
11616
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
@@ -11621,7 +11621,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11621
11621
|
|
|
11622
11622
|
if (index === hoEditorFactory.startPageNum && positionY) {
|
|
11623
11623
|
dShape = new createjs.Shape();
|
|
11624
|
-
dShape.graphics.beginFill(
|
|
11624
|
+
dShape.graphics.beginFill('#fff').rect(0, 0, width, positionY).endFill();
|
|
11625
11625
|
cpage.drawDocContainer.addChild(dShape);
|
|
11626
11626
|
cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
|
|
11627
11627
|
} // 光标处续打
|
|
@@ -11634,7 +11634,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11634
11634
|
if (index === posIndex && posY) {
|
|
11635
11635
|
_dShape = new createjs.Shape();
|
|
11636
11636
|
|
|
11637
|
-
_dShape.graphics.beginFill(
|
|
11637
|
+
_dShape.graphics.beginFill('#fff').rect(0, 0, width, posY).endFill();
|
|
11638
11638
|
|
|
11639
11639
|
cpage.drawDocContainer.addChild(_dShape);
|
|
11640
11640
|
cpage.drawFooter.alpha = 0;
|
|
@@ -11652,7 +11652,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11652
11652
|
};
|
|
11653
11653
|
|
|
11654
11654
|
if (hoEditorFactory.isFixedPrintToA4 && format) {
|
|
11655
|
-
if (orientation ==
|
|
11655
|
+
if (orientation == 'l') {
|
|
11656
11656
|
svg2pdfOptions.x = format[0] - width;
|
|
11657
11657
|
svg2pdfOptions.y = (format[1] - height) / 2;
|
|
11658
11658
|
} else {
|
|
@@ -11661,20 +11661,31 @@ var Print = /*#__PURE__*/function () {
|
|
|
11661
11661
|
}
|
|
11662
11662
|
|
|
11663
11663
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11664
|
-
_context3.next =
|
|
11664
|
+
_context3.next = 44;
|
|
11665
11665
|
break;
|
|
11666
11666
|
}
|
|
11667
11667
|
|
|
11668
11668
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11669
11669
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11670
|
+
window.printBlack = hoEditorFactory.printBlack;
|
|
11671
|
+
|
|
11672
|
+
if (hoEditorFactory.isFixedPrintToA4T && format) {
|
|
11673
|
+
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
11674
|
+
if (orientation === 'p' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
|
|
11675
|
+
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
11676
|
+
|
|
11677
|
+
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
11678
|
+
}
|
|
11679
|
+
}
|
|
11680
|
+
|
|
11670
11681
|
ctx.posX = svg2pdfOptions.x;
|
|
11671
11682
|
ctx.posY = svg2pdfOptions.y;
|
|
11672
11683
|
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));
|
|
11673
11684
|
ctx = null;
|
|
11674
|
-
_context3.next =
|
|
11685
|
+
_context3.next = 57;
|
|
11675
11686
|
break;
|
|
11676
11687
|
|
|
11677
|
-
case
|
|
11688
|
+
case 44:
|
|
11678
11689
|
_ctx = new canvas2svg({
|
|
11679
11690
|
width: width,
|
|
11680
11691
|
height: height,
|
|
@@ -11682,138 +11693,142 @@ var Print = /*#__PURE__*/function () {
|
|
|
11682
11693
|
});
|
|
11683
11694
|
_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));
|
|
11684
11695
|
|
|
11685
|
-
if (!(type ===
|
|
11686
|
-
_context3.next =
|
|
11696
|
+
if (!(type === 'html')) {
|
|
11697
|
+
_context3.next = 51;
|
|
11687
11698
|
break;
|
|
11688
11699
|
}
|
|
11689
11700
|
|
|
11690
11701
|
svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
|
|
11691
11702
|
svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
|
|
11692
|
-
_context3.next =
|
|
11703
|
+
_context3.next = 56;
|
|
11693
11704
|
break;
|
|
11694
11705
|
|
|
11695
|
-
case
|
|
11706
|
+
case 51:
|
|
11696
11707
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11697
11708
|
_context3.t0 = PDF;
|
|
11698
11709
|
|
|
11699
11710
|
if (!_context3.t0) {
|
|
11700
|
-
_context3.next =
|
|
11711
|
+
_context3.next = 56;
|
|
11701
11712
|
break;
|
|
11702
11713
|
}
|
|
11703
11714
|
|
|
11704
|
-
_context3.next =
|
|
11715
|
+
_context3.next = 56;
|
|
11705
11716
|
return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
|
|
11706
11717
|
|
|
11707
|
-
case
|
|
11718
|
+
case 56:
|
|
11708
11719
|
_ctx = null;
|
|
11709
11720
|
|
|
11710
|
-
case
|
|
11721
|
+
case 57:
|
|
11711
11722
|
index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
|
|
11712
11723
|
|
|
11713
|
-
case
|
|
11724
|
+
case 58:
|
|
11714
11725
|
_context3.next = 17;
|
|
11715
11726
|
break;
|
|
11716
11727
|
|
|
11717
|
-
case
|
|
11718
|
-
_context3.next =
|
|
11728
|
+
case 60:
|
|
11729
|
+
_context3.next = 65;
|
|
11719
11730
|
break;
|
|
11720
11731
|
|
|
11721
|
-
case
|
|
11722
|
-
_context3.prev =
|
|
11732
|
+
case 62:
|
|
11733
|
+
_context3.prev = 62;
|
|
11723
11734
|
_context3.t1 = _context3["catch"](15);
|
|
11724
11735
|
|
|
11725
11736
|
_iterator.e(_context3.t1);
|
|
11726
11737
|
|
|
11727
|
-
case
|
|
11728
|
-
_context3.prev =
|
|
11738
|
+
case 65:
|
|
11739
|
+
_context3.prev = 65;
|
|
11729
11740
|
|
|
11730
11741
|
_iterator.f();
|
|
11731
11742
|
|
|
11732
|
-
return _context3.finish(
|
|
11743
|
+
return _context3.finish(65);
|
|
11733
11744
|
|
|
11734
|
-
case
|
|
11735
|
-
console.timeEnd(
|
|
11745
|
+
case 68:
|
|
11746
|
+
console.timeEnd('绘制svg和生成pdf');
|
|
11736
11747
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11737
11748
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11738
11749
|
|
|
11739
11750
|
if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
|
|
11740
|
-
_context3.next =
|
|
11751
|
+
_context3.next = 77;
|
|
11741
11752
|
break;
|
|
11742
11753
|
}
|
|
11743
11754
|
|
|
11744
11755
|
_last = hoEditorFactory.printStatus.printRecord.last();
|
|
11745
11756
|
|
|
11746
11757
|
if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
|
|
11747
|
-
_context3.next =
|
|
11758
|
+
_context3.next = 77;
|
|
11748
11759
|
break;
|
|
11749
11760
|
}
|
|
11750
11761
|
|
|
11751
|
-
message_box_default().confirm(
|
|
11752
|
-
confirmButtonText:
|
|
11753
|
-
type:
|
|
11762
|
+
message_box_default().confirm('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录', '打印提示', {
|
|
11763
|
+
confirmButtonText: '确定',
|
|
11764
|
+
type: 'info'
|
|
11754
11765
|
});
|
|
11755
11766
|
|
|
11756
|
-
reslove && reslove(
|
|
11767
|
+
reslove && reslove('printend');
|
|
11757
11768
|
return _context3.abrupt("return");
|
|
11758
11769
|
|
|
11759
|
-
case
|
|
11760
|
-
if (!(type ===
|
|
11761
|
-
_context3.next =
|
|
11770
|
+
case 77:
|
|
11771
|
+
if (!(type === 'pdf')) {
|
|
11772
|
+
_context3.next = 83;
|
|
11762
11773
|
break;
|
|
11763
11774
|
}
|
|
11764
11775
|
|
|
11765
11776
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11766
|
-
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName +
|
|
11777
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
|
|
11767
11778
|
hoEditorFactory.printStatus.drawPrintRecord.clear();
|
|
11768
|
-
_context3.next =
|
|
11779
|
+
_context3.next = 89;
|
|
11769
11780
|
break;
|
|
11770
11781
|
|
|
11771
|
-
case
|
|
11782
|
+
case 83:
|
|
11772
11783
|
if (!(svgBox && svgBox.childNodes.length === 0)) {
|
|
11773
|
-
_context3.next =
|
|
11784
|
+
_context3.next = 87;
|
|
11774
11785
|
break;
|
|
11775
11786
|
}
|
|
11776
11787
|
|
|
11777
|
-
message_box_default().confirm(
|
|
11778
|
-
confirmButtonText:
|
|
11779
|
-
type:
|
|
11788
|
+
message_box_default().confirm('无新增内容', '打印提示', {
|
|
11789
|
+
confirmButtonText: '确定',
|
|
11790
|
+
type: 'info'
|
|
11780
11791
|
});
|
|
11781
11792
|
|
|
11782
|
-
reslove && reslove(
|
|
11793
|
+
reslove && reslove('printend');
|
|
11783
11794
|
return _context3.abrupt("return");
|
|
11784
11795
|
|
|
11785
|
-
case
|
|
11796
|
+
case 87:
|
|
11786
11797
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
11787
11798
|
|
|
11788
|
-
if (type ===
|
|
11799
|
+
if (type === 'html') {
|
|
11789
11800
|
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 ");
|
|
11790
11801
|
url = window.URL.createObjectURL(new Blob([exportHtml], {
|
|
11791
11802
|
type: "text/html"
|
|
11792
11803
|
}));
|
|
11793
|
-
link = document.createElement(
|
|
11794
|
-
link.style.display =
|
|
11804
|
+
link = document.createElement('a');
|
|
11805
|
+
link.style.display = 'none';
|
|
11795
11806
|
link.href = url;
|
|
11796
|
-
link.setAttribute(
|
|
11807
|
+
link.setAttribute('download', fileName ? fileName : '电子病历文档');
|
|
11797
11808
|
document.body.appendChild(link);
|
|
11798
11809
|
link.click();
|
|
11799
11810
|
setTimeout(function () {
|
|
11800
11811
|
return link.remove();
|
|
11801
11812
|
}, 100);
|
|
11802
11813
|
} else {
|
|
11814
|
+
if (height <= 560 && !hoEditorFactory.isFixedPrintToA4T) {
|
|
11815
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11816
|
+
}
|
|
11817
|
+
|
|
11803
11818
|
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
11804
|
-
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() :
|
|
11819
|
+
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
11805
11820
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
11806
11821
|
}
|
|
11807
11822
|
|
|
11808
|
-
case
|
|
11809
|
-
reslove && reslove(
|
|
11823
|
+
case 89:
|
|
11824
|
+
reslove && reslove('printend');
|
|
11810
11825
|
|
|
11811
|
-
case
|
|
11826
|
+
case 90:
|
|
11812
11827
|
case "end":
|
|
11813
11828
|
return _context3.stop();
|
|
11814
11829
|
}
|
|
11815
11830
|
}
|
|
11816
|
-
}, _callee2, this, [[15,
|
|
11831
|
+
}, _callee2, this, [[15, 62, 65, 68]]);
|
|
11817
11832
|
}));
|
|
11818
11833
|
|
|
11819
11834
|
function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
|
|
@@ -11840,9 +11855,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
11840
11855
|
hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
|
|
11841
11856
|
}
|
|
11842
11857
|
|
|
11843
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ?
|
|
11844
|
-
svgBox = document.createElement(
|
|
11845
|
-
svgBox.className =
|
|
11858
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
11859
|
+
svgBox = document.createElement('div');
|
|
11860
|
+
svgBox.className = 'ho-print-svg-box';
|
|
11846
11861
|
last = -1;
|
|
11847
11862
|
_iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
11848
11863
|
_context4.prev = 9;
|
|
@@ -11851,7 +11866,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11851
11866
|
|
|
11852
11867
|
case 11:
|
|
11853
11868
|
if ((_step2 = _iterator2.n()).done) {
|
|
11854
|
-
_context4.next =
|
|
11869
|
+
_context4.next = 40;
|
|
11855
11870
|
break;
|
|
11856
11871
|
}
|
|
11857
11872
|
|
|
@@ -11863,13 +11878,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
11863
11878
|
}
|
|
11864
11879
|
|
|
11865
11880
|
_context4.next = 16;
|
|
11866
|
-
return message_box_default().confirm(
|
|
11867
|
-
confirmButtonText:
|
|
11868
|
-
type:
|
|
11881
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
11882
|
+
confirmButtonText: '确定',
|
|
11883
|
+
type: 'info'
|
|
11869
11884
|
});
|
|
11870
11885
|
|
|
11871
11886
|
case 16:
|
|
11872
|
-
return _context4.abrupt("continue",
|
|
11887
|
+
return _context4.abrupt("continue", 38);
|
|
11873
11888
|
|
|
11874
11889
|
case 17:
|
|
11875
11890
|
last = index;
|
|
@@ -11880,7 +11895,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
11880
11895
|
break;
|
|
11881
11896
|
}
|
|
11882
11897
|
|
|
11883
|
-
return _context4.abrupt("break",
|
|
11898
|
+
return _context4.abrupt("break", 40);
|
|
11884
11899
|
|
|
11885
11900
|
case 21:
|
|
11886
11901
|
if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
|
|
@@ -11894,69 +11909,70 @@ var Print = /*#__PURE__*/function () {
|
|
|
11894
11909
|
}
|
|
11895
11910
|
|
|
11896
11911
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
11897
|
-
_context4.next =
|
|
11912
|
+
_context4.next = 31;
|
|
11898
11913
|
break;
|
|
11899
11914
|
}
|
|
11900
11915
|
|
|
11901
11916
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
|
|
11902
11917
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
11918
|
+
window.printBlack = hoEditorFactory.printBlack;
|
|
11903
11919
|
ctx && ((_cpage$drawDomLevel4 = cpage.drawDomLevel) === null || _cpage$drawDomLevel4 === void 0 ? void 0 : (_cpage$drawDomLevel4$ = _cpage$drawDomLevel4.stage) === null || _cpage$drawDomLevel4$ === void 0 ? void 0 : _cpage$drawDomLevel4$.draw(ctx));
|
|
11904
11920
|
ctx = null;
|
|
11905
|
-
_context4.next =
|
|
11921
|
+
_context4.next = 37;
|
|
11906
11922
|
break;
|
|
11907
11923
|
|
|
11908
|
-
case
|
|
11924
|
+
case 31:
|
|
11909
11925
|
_ctx4 = new canvas2svg({
|
|
11910
11926
|
width: hoEditorFactory.pageProperty.widthPixes,
|
|
11911
|
-
height: orientation ===
|
|
11927
|
+
height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
|
|
11912
11928
|
printBlack: hoEditorFactory.printBlack
|
|
11913
11929
|
});
|
|
11914
11930
|
_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));
|
|
11915
11931
|
PDF.addPage();
|
|
11916
|
-
_context4.next =
|
|
11932
|
+
_context4.next = 36;
|
|
11917
11933
|
return svg2pdf((_ctx5 = _ctx4) === null || _ctx5 === void 0 ? void 0 : _ctx5.getSvg(), PDF);
|
|
11918
11934
|
|
|
11919
|
-
case
|
|
11935
|
+
case 36:
|
|
11920
11936
|
_ctx4 = null;
|
|
11921
11937
|
|
|
11922
|
-
case
|
|
11938
|
+
case 37:
|
|
11923
11939
|
index > 0 && ((_cpage$drawDomLevel6 = cpage.drawDomLevel) === null || _cpage$drawDomLevel6 === void 0 ? void 0 : _cpage$drawDomLevel6.clearStage());
|
|
11924
11940
|
|
|
11925
|
-
case
|
|
11941
|
+
case 38:
|
|
11926
11942
|
_context4.next = 11;
|
|
11927
11943
|
break;
|
|
11928
11944
|
|
|
11929
|
-
case
|
|
11930
|
-
_context4.next =
|
|
11945
|
+
case 40:
|
|
11946
|
+
_context4.next = 45;
|
|
11931
11947
|
break;
|
|
11932
11948
|
|
|
11933
|
-
case
|
|
11934
|
-
_context4.prev =
|
|
11949
|
+
case 42:
|
|
11950
|
+
_context4.prev = 42;
|
|
11935
11951
|
_context4.t0 = _context4["catch"](9);
|
|
11936
11952
|
|
|
11937
11953
|
_iterator2.e(_context4.t0);
|
|
11938
11954
|
|
|
11939
|
-
case
|
|
11940
|
-
_context4.prev =
|
|
11955
|
+
case 45:
|
|
11956
|
+
_context4.prev = 45;
|
|
11941
11957
|
|
|
11942
11958
|
_iterator2.f();
|
|
11943
11959
|
|
|
11944
|
-
return _context4.finish(
|
|
11960
|
+
return _context4.finish(45);
|
|
11945
11961
|
|
|
11946
|
-
case
|
|
11962
|
+
case 48:
|
|
11947
11963
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
11948
11964
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
11949
11965
|
}
|
|
11950
11966
|
|
|
11951
11967
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
11952
|
-
reslove && reslove(
|
|
11968
|
+
reslove && reslove('printend');
|
|
11953
11969
|
|
|
11954
|
-
case
|
|
11970
|
+
case 51:
|
|
11955
11971
|
case "end":
|
|
11956
11972
|
return _context4.stop();
|
|
11957
11973
|
}
|
|
11958
11974
|
}
|
|
11959
|
-
}, _callee3, null, [[9,
|
|
11975
|
+
}, _callee3, null, [[9, 42, 45, 48]]);
|
|
11960
11976
|
}));
|
|
11961
11977
|
|
|
11962
11978
|
function createPDFBase64(_x9, _x10, _x11) {
|
|
@@ -11978,11 +11994,11 @@ var Print = /*#__PURE__*/function () {
|
|
|
11978
11994
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoEditorFactoryID);
|
|
11979
11995
|
hoEditorFactory.printStatus.startIndex = 1;
|
|
11980
11996
|
hoEditorFactory.printStatus.generatePageIndexs(hoEditorFactory.printStatus.printAppoint);
|
|
11981
|
-
svgBox = document.createElement(
|
|
11982
|
-
svgBox.className =
|
|
11983
|
-
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ?
|
|
11997
|
+
svgBox = document.createElement('div');
|
|
11998
|
+
svgBox.className = 'ho-print-svg-box';
|
|
11999
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
11984
12000
|
width = hoEditorFactory.pageProperty.widthPixes;
|
|
11985
|
-
height = orientation ===
|
|
12001
|
+
height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
|
|
11986
12002
|
last = -1;
|
|
11987
12003
|
_iterator3 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
11988
12004
|
_context5.prev = 10;
|
|
@@ -12003,9 +12019,9 @@ var Print = /*#__PURE__*/function () {
|
|
|
12003
12019
|
}
|
|
12004
12020
|
|
|
12005
12021
|
_context5.next = 17;
|
|
12006
|
-
return message_box_default().confirm(
|
|
12007
|
-
confirmButtonText:
|
|
12008
|
-
type:
|
|
12022
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
12023
|
+
confirmButtonText: '确定',
|
|
12024
|
+
type: 'info'
|
|
12009
12025
|
});
|
|
12010
12026
|
|
|
12011
12027
|
case 17:
|
|
@@ -12072,7 +12088,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12072
12088
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
12073
12089
|
printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
12074
12090
|
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 ");
|
|
12075
|
-
reslove && reslove(
|
|
12091
|
+
reslove && reslove('printend');
|
|
12076
12092
|
|
|
12077
12093
|
case 44:
|
|
12078
12094
|
case "end":
|
|
@@ -12105,8 +12121,8 @@ var Print = /*#__PURE__*/function () {
|
|
|
12105
12121
|
p: [793, 1122],
|
|
12106
12122
|
l: [1122, 793]
|
|
12107
12123
|
};
|
|
12108
|
-
svgBox = document.createElement(
|
|
12109
|
-
svgBox.className =
|
|
12124
|
+
svgBox = document.createElement('div');
|
|
12125
|
+
svgBox.className = 'ho-print-svg-box';
|
|
12110
12126
|
last = -1;
|
|
12111
12127
|
_iterator4 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
|
|
12112
12128
|
_context6.prev = 8;
|
|
@@ -12115,7 +12131,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12115
12131
|
|
|
12116
12132
|
case 10:
|
|
12117
12133
|
if ((_step4 = _iterator4.n()).done) {
|
|
12118
|
-
_context6.next =
|
|
12134
|
+
_context6.next = 49;
|
|
12119
12135
|
break;
|
|
12120
12136
|
}
|
|
12121
12137
|
|
|
@@ -12127,13 +12143,13 @@ var Print = /*#__PURE__*/function () {
|
|
|
12127
12143
|
}
|
|
12128
12144
|
|
|
12129
12145
|
_context6.next = 15;
|
|
12130
|
-
return message_box_default().confirm(
|
|
12131
|
-
confirmButtonText:
|
|
12132
|
-
type:
|
|
12146
|
+
return message_box_default().confirm('请进行翻页', '打印提示', {
|
|
12147
|
+
confirmButtonText: '确定',
|
|
12148
|
+
type: 'info'
|
|
12133
12149
|
});
|
|
12134
12150
|
|
|
12135
12151
|
case 15:
|
|
12136
|
-
return _context6.abrupt("continue",
|
|
12152
|
+
return _context6.abrupt("continue", 47);
|
|
12137
12153
|
|
|
12138
12154
|
case 16:
|
|
12139
12155
|
last = index;
|
|
@@ -12154,12 +12170,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
12154
12170
|
break;
|
|
12155
12171
|
}
|
|
12156
12172
|
|
|
12157
|
-
return _context6.abrupt("break",
|
|
12173
|
+
return _context6.abrupt("break", 49);
|
|
12158
12174
|
|
|
12159
12175
|
case 22:
|
|
12160
12176
|
widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
|
|
12161
12177
|
heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
|
|
12162
|
-
orientation = widthPixes > heightPixes ?
|
|
12178
|
+
orientation = widthPixes > heightPixes ? 'l' : 'p';
|
|
12163
12179
|
formats = [widthPixes, heightPixes];
|
|
12164
12180
|
format = a4Size[orientation];
|
|
12165
12181
|
svg2pdfOptions = {
|
|
@@ -12168,7 +12184,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12168
12184
|
};
|
|
12169
12185
|
|
|
12170
12186
|
if (hoEditorFactory.isFixedPrintToA4 && format) {
|
|
12171
|
-
if (orientation ==
|
|
12187
|
+
if (orientation == 'l') {
|
|
12172
12188
|
svg2pdfOptions.x = format[0] - widthPixes;
|
|
12173
12189
|
svg2pdfOptions.y = (format[1] - heightPixes) / 2;
|
|
12174
12190
|
} else {
|
|
@@ -12177,7 +12193,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
12177
12193
|
}
|
|
12178
12194
|
|
|
12179
12195
|
if (!hoEditorFactory.isUseImagePrint) {
|
|
12180
|
-
_context6.next =
|
|
12196
|
+
_context6.next = 40;
|
|
12181
12197
|
break;
|
|
12182
12198
|
}
|
|
12183
12199
|
|
|
@@ -12188,17 +12204,28 @@ var Print = /*#__PURE__*/function () {
|
|
|
12188
12204
|
}
|
|
12189
12205
|
|
|
12190
12206
|
ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
|
|
12207
|
+
window.printBlack = hoEditorFactory.printBlack;
|
|
12208
|
+
|
|
12209
|
+
if (hoEditorFactory.isFixedPrintToA4T && format && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
|
|
12210
|
+
// 避免切换纸张的打印方式 绘制只处理竖向情况
|
|
12211
|
+
if (orientation === 'p') {
|
|
12212
|
+
ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
|
|
12213
|
+
|
|
12214
|
+
ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
|
|
12215
|
+
}
|
|
12216
|
+
}
|
|
12217
|
+
|
|
12191
12218
|
ctx.posX = svg2pdfOptions.x;
|
|
12192
12219
|
ctx.posY = svg2pdfOptions.y;
|
|
12193
12220
|
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));
|
|
12194
12221
|
ctx = null;
|
|
12195
|
-
_context6.next =
|
|
12222
|
+
_context6.next = 46;
|
|
12196
12223
|
break;
|
|
12197
12224
|
|
|
12198
|
-
case
|
|
12225
|
+
case 40:
|
|
12199
12226
|
_ctx6 = new canvas2svg({
|
|
12200
12227
|
width: widthPixes,
|
|
12201
|
-
height: orientation ===
|
|
12228
|
+
height: orientation === 'l' ? heightPixes - 1 : heightPixes,
|
|
12202
12229
|
printBlack: hoEditorFactory.printBlack
|
|
12203
12230
|
});
|
|
12204
12231
|
_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));
|
|
@@ -12209,37 +12236,37 @@ var Print = /*#__PURE__*/function () {
|
|
|
12209
12236
|
PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
|
|
12210
12237
|
}
|
|
12211
12238
|
|
|
12212
|
-
_context6.next =
|
|
12239
|
+
_context6.next = 45;
|
|
12213
12240
|
return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
|
|
12214
12241
|
|
|
12215
|
-
case
|
|
12242
|
+
case 45:
|
|
12216
12243
|
_ctx6 = null;
|
|
12217
12244
|
|
|
12218
|
-
case
|
|
12245
|
+
case 46:
|
|
12219
12246
|
index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
|
|
12220
12247
|
|
|
12221
|
-
case
|
|
12248
|
+
case 47:
|
|
12222
12249
|
_context6.next = 10;
|
|
12223
12250
|
break;
|
|
12224
12251
|
|
|
12225
|
-
case
|
|
12226
|
-
_context6.next =
|
|
12252
|
+
case 49:
|
|
12253
|
+
_context6.next = 54;
|
|
12227
12254
|
break;
|
|
12228
12255
|
|
|
12229
|
-
case
|
|
12230
|
-
_context6.prev =
|
|
12256
|
+
case 51:
|
|
12257
|
+
_context6.prev = 51;
|
|
12231
12258
|
_context6.t0 = _context6["catch"](8);
|
|
12232
12259
|
|
|
12233
12260
|
_iterator4.e(_context6.t0);
|
|
12234
12261
|
|
|
12235
|
-
case
|
|
12236
|
-
_context6.prev =
|
|
12262
|
+
case 54:
|
|
12263
|
+
_context6.prev = 54;
|
|
12237
12264
|
|
|
12238
12265
|
_iterator4.f();
|
|
12239
12266
|
|
|
12240
|
-
return _context6.finish(
|
|
12267
|
+
return _context6.finish(54);
|
|
12241
12268
|
|
|
12242
|
-
case
|
|
12269
|
+
case 57:
|
|
12243
12270
|
if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
|
|
12244
12271
|
hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
|
|
12245
12272
|
}
|
|
@@ -12257,12 +12284,12 @@ var Print = /*#__PURE__*/function () {
|
|
|
12257
12284
|
hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
|
|
12258
12285
|
reslove();
|
|
12259
12286
|
|
|
12260
|
-
case
|
|
12287
|
+
case 61:
|
|
12261
12288
|
case "end":
|
|
12262
12289
|
return _context6.stop();
|
|
12263
12290
|
}
|
|
12264
12291
|
}
|
|
12265
|
-
}, _callee5, null, [[8,
|
|
12292
|
+
}, _callee5, null, [[8, 51, 54, 57]]);
|
|
12266
12293
|
}));
|
|
12267
12294
|
|
|
12268
12295
|
function printAllNew(_x15, _x16, _x17, _x18) {
|
|
@@ -19689,8 +19716,10 @@ var DomRange = /*#__PURE__*/function () {
|
|
|
19689
19716
|
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
19690
19717
|
// const isValidPath = hoEditorFactory.docTree.checkPath(value);
|
|
19691
19718
|
if (value.indexOf("-") >= 0) {
|
|
19692
|
-
|
|
19719
|
+
//const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
19720
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径s(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._startPath + ")");
|
|
19693
19721
|
|
|
19722
|
+
this.setSamePath(this._startPath);
|
|
19694
19723
|
return;
|
|
19695
19724
|
} else {
|
|
19696
19725
|
this._startPath = value;
|
|
@@ -19707,8 +19736,9 @@ var DomRange = /*#__PURE__*/function () {
|
|
|
19707
19736
|
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
19708
19737
|
// const isValidPath = hoEditorFactory.docTree.checkPath(value);
|
|
19709
19738
|
if (value.indexOf("-") >= 0) {
|
|
19710
|
-
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。");
|
|
19739
|
+
element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._endPath + ")");
|
|
19711
19740
|
|
|
19741
|
+
this.setSamePath(this._endPath);
|
|
19712
19742
|
return;
|
|
19713
19743
|
} else {
|
|
19714
19744
|
this._endPath = value;
|
|
@@ -24757,8 +24787,13 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
24757
24787
|
var index = parentNodes.indexOf(this);
|
|
24758
24788
|
|
|
24759
24789
|
if (index != -1) {
|
|
24760
|
-
if (this.parentNode)
|
|
24761
|
-
|
|
24790
|
+
if (this.parentNode) {
|
|
24791
|
+
//有父节点,使用父节点的删除方法
|
|
24792
|
+
return this.parentNode.removeChild(this);
|
|
24793
|
+
} else {
|
|
24794
|
+
parentNodes.splice(index, 1);
|
|
24795
|
+
}
|
|
24796
|
+
|
|
24762
24797
|
return true;
|
|
24763
24798
|
}
|
|
24764
24799
|
|
|
@@ -28588,8 +28623,8 @@ var BaseNode = __webpack_require__(50369);
|
|
|
28588
28623
|
/*
|
|
28589
28624
|
* @Author: your name
|
|
28590
28625
|
* @Date: 2020-11-11 10:02:30
|
|
28591
|
-
* @LastEditTime:
|
|
28592
|
-
* @LastEditors:
|
|
28626
|
+
* @LastEditTime: 2022-06-23 09:54:03
|
|
28627
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
28593
28628
|
* @Description: In User Settings Edit
|
|
28594
28629
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\ImageNode.ts
|
|
28595
28630
|
*/
|
|
@@ -28696,6 +28731,12 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28696
28731
|
key: "imageDataBase64String",
|
|
28697
28732
|
get: function get() {
|
|
28698
28733
|
return this._imageDataBase64String;
|
|
28734
|
+
},
|
|
28735
|
+
set: function set(value) {
|
|
28736
|
+
if (this._imageDataBase64String !== value) {
|
|
28737
|
+
this._imageDataBase64String = value;
|
|
28738
|
+
this.node2DrawNodeRange(0, 0);
|
|
28739
|
+
}
|
|
28699
28740
|
}
|
|
28700
28741
|
/**
|
|
28701
28742
|
* imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
|
|
@@ -28723,6 +28764,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
28723
28764
|
}, {
|
|
28724
28765
|
key: "node2DrawNodeRange",
|
|
28725
28766
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
28767
|
+
this._drawNodes.length = 0;
|
|
28726
28768
|
var dNode = new DrawImageNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.imageDataBase64String, this.width, this.height //,
|
|
28727
28769
|
//this.scaleX,
|
|
28728
28770
|
//this.scaleY
|
|
@@ -31178,8 +31220,13 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
31178
31220
|
var index = parentNodes.indexOf(this);
|
|
31179
31221
|
|
|
31180
31222
|
if (index != -1) {
|
|
31181
|
-
if (this.parentNode)
|
|
31182
|
-
|
|
31223
|
+
if (this.parentNode) {
|
|
31224
|
+
//有父节点,使用父节点的删除方法
|
|
31225
|
+
return this.parentNode.removeChild(this);
|
|
31226
|
+
} else {
|
|
31227
|
+
parentNodes.splice(index, 1);
|
|
31228
|
+
}
|
|
31229
|
+
|
|
31183
31230
|
return true;
|
|
31184
31231
|
}
|
|
31185
31232
|
|
|
@@ -33342,7 +33389,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
33342
33389
|
}
|
|
33343
33390
|
|
|
33344
33391
|
json.isAllowDelete = !json.isAllowDelete ? false : json.isAllowDelete;
|
|
33345
|
-
json.isSelected = !json.isSelected ? false : json.isSelected;
|
|
33392
|
+
json.isSelected = !json.isSelected ? false : json.isSelected.text != undefined ? json.isSelected.text : json.isSelected;
|
|
33346
33393
|
json.boxAlign = !json.boxAlign ? false : json.boxAlign;
|
|
33347
33394
|
json.isEditText = !json.isEditText ? false : json.isEditText;
|
|
33348
33395
|
json.isTransToText = !json.isTransToText ? false : json.isTransToText;
|
|
@@ -35756,6 +35803,10 @@ var ColInfos = /*#__PURE__*/function () {
|
|
|
35756
35803
|
return this._colWidth;
|
|
35757
35804
|
},
|
|
35758
35805
|
set: function set(colWidth) {
|
|
35806
|
+
if (isNaN(colWidth)) {
|
|
35807
|
+
console.warn('当前列宽 === NaN');
|
|
35808
|
+
}
|
|
35809
|
+
|
|
35759
35810
|
this._colWidth = colWidth;
|
|
35760
35811
|
}
|
|
35761
35812
|
}, {
|
|
@@ -42514,8 +42565,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
|
|
|
42514
42565
|
/*
|
|
42515
42566
|
* @Author: your name
|
|
42516
42567
|
* @Date: 2021-01-19 10:05:08
|
|
42517
|
-
* @LastEditTime:
|
|
42518
|
-
* @LastEditors:
|
|
42568
|
+
* @LastEditTime: 2022-06-24 16:54:17
|
|
42569
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
42519
42570
|
* @Description: In User Settings Edit
|
|
42520
42571
|
* @FilePath: \hoeditor-web\src\editor\draw\DrawResize.ts
|
|
42521
42572
|
*/
|
|
@@ -42587,6 +42638,8 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
42587
42638
|
|
|
42588
42639
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
42589
42640
|
hoEditorFactory.docTree.curOnDragNode = this.node;
|
|
42641
|
+
this.dragFlag = true;
|
|
42642
|
+
this.sLocation = new createjs.Point(e.stageX, e.stageY);
|
|
42590
42643
|
this.drawBorders(this._drawNode.dWidth, this._drawNode.dHeight, true); //const drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(
|
|
42591
42644
|
//this.drawNode
|
|
42592
42645
|
//);
|
|
@@ -42594,8 +42647,6 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
42594
42647
|
//drawLine.drawItems.splice(index, 1);
|
|
42595
42648
|
//drawLine.removeChild(this.drawNode);
|
|
42596
42649
|
|
|
42597
|
-
this.dragFlag = true;
|
|
42598
|
-
this.sLocation = new createjs.Point(e.stageX, e.stageY);
|
|
42599
42650
|
var shapes = this.drawNode.children;
|
|
42600
42651
|
shapes.forEach(function (value, index) {
|
|
42601
42652
|
// if (value.name !== this.node.id && value.alpha !== 1) {
|
|
@@ -42777,7 +42828,7 @@ var DrawResize = /*#__PURE__*/function () {
|
|
|
42777
42828
|
//左上
|
|
42778
42829
|
this.drawNode.dWidth = this.drawNode.dWidth - changeX;
|
|
42779
42830
|
this.drawNode.dHeight = this.drawNode.dHeight - changeY;
|
|
42780
|
-
this.imageY = this.imageY
|
|
42831
|
+
this.imageY = this.imageY + changeY;
|
|
42781
42832
|
} else if (e.target.name === "centerTop") {
|
|
42782
42833
|
//向上
|
|
42783
42834
|
this.drawNode.dHeight = this.drawNode.dHeight - changeY;
|
|
@@ -43431,7 +43482,7 @@ var StagePosition = /*#__PURE__*/function () {
|
|
|
43431
43482
|
/* harmony export */ "l": function() { return /* binding */ DrawArea; }
|
|
43432
43483
|
/* harmony export */ });
|
|
43433
43484
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
|
|
43434
|
-
/* harmony import */ var
|
|
43485
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(22342);
|
|
43435
43486
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
|
|
43436
43487
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
|
|
43437
43488
|
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66992);
|
|
@@ -43459,6 +43510,8 @@ var StagePosition = /*#__PURE__*/function () {
|
|
|
43459
43510
|
/* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2242);
|
|
43460
43511
|
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(41005);
|
|
43461
43512
|
/* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(95883);
|
|
43513
|
+
/* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(39648);
|
|
43514
|
+
|
|
43462
43515
|
|
|
43463
43516
|
|
|
43464
43517
|
|
|
@@ -43512,7 +43565,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
43512
43565
|
// }
|
|
43513
43566
|
|
|
43514
43567
|
|
|
43515
|
-
(0,
|
|
43568
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(DrawArea, [{
|
|
43516
43569
|
key: "endDline",
|
|
43517
43570
|
get: function get() {
|
|
43518
43571
|
return this._endDline;
|
|
@@ -44350,7 +44403,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44350
44403
|
var localPos = _this2.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
44351
44404
|
|
|
44352
44405
|
|
|
44353
|
-
var spX = endDrawNode.x;
|
|
44406
|
+
var spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__/* .DrawPageCell */ .k ? localPos.x : endDrawNode.x;
|
|
44354
44407
|
var spY = localPos.y;
|
|
44355
44408
|
|
|
44356
44409
|
_this2.removeComment(value);
|
|
@@ -44581,11 +44634,176 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
44581
44634
|
if (child.name === comment.id) {
|
|
44582
44635
|
child.alpha = 1;
|
|
44583
44636
|
}
|
|
44584
|
-
}
|
|
44637
|
+
}
|
|
44638
|
+
|
|
44639
|
+
hoEditorFactory.drawPageTree.updateDrawPage(this.index);
|
|
44640
|
+
}
|
|
44641
|
+
}, {
|
|
44642
|
+
key: "drawEditRecords",
|
|
44643
|
+
value: function drawEditRecords(comment, nodeX, nodeY, commentY) {
|
|
44644
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
44645
|
+
var commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
|
|
44646
|
+
var docWidth = this.docWidth;
|
|
44647
|
+
var container = new createjs.Container();
|
|
44648
|
+
container.x = docWidth + 15;
|
|
44649
|
+
container.y = commentY - comment.lineHeight / 2;
|
|
44650
|
+
container.name = comment.id;
|
|
44651
|
+
var commentTextShape = null; // 批注内容
|
|
44585
44652
|
|
|
44653
|
+
var commentArr = comment.commentTextWarp(commentWidth, comment.text);
|
|
44654
|
+
var text = commentArr[0];
|
|
44655
|
+
var textLen = commentArr[1] > 1 ? commentArr[1] - 1 : commentArr[1];
|
|
44656
|
+
comment.lineHeight = 20 * textLen + 10;
|
|
44657
|
+
commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
|
|
44658
|
+
commentTextShape.lineWidth = commentWidth - 25;
|
|
44659
|
+
commentTextShape.lineHeight = 20;
|
|
44660
|
+
commentTextShape.name = "oldValue";
|
|
44661
|
+
commentTextShape.x = 5;
|
|
44662
|
+
commentTextShape.y = 10;
|
|
44663
|
+
commentTextShape.alpha = 1; //背景
|
|
44586
44664
|
|
|
44665
|
+
var textWidth = commentTextShape.getMeasuredWidth();
|
|
44666
|
+
var shapeWidth = textWidth + 10 > commentWidth - 30 ? commentWidth - 30 : textWidth + 10;
|
|
44667
|
+
var backShape = new createjs.Shape();
|
|
44668
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5").drawRoundRect(0, 0, shapeWidth, comment.lineHeight, 5);
|
|
44669
|
+
backShape.name = "backShape";
|
|
44670
|
+
backShape.alpha = 0.5; //横线
|
|
44671
|
+
|
|
44672
|
+
var horizontalLine = new createjs.Shape();
|
|
44673
|
+
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
44674
|
+
horizontalLine.name = comment.id;
|
|
44675
|
+
horizontalLine.alpha = 1; //指向线
|
|
44676
|
+
|
|
44677
|
+
var guideLine = new createjs.Shape();
|
|
44678
|
+
guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
|
|
44679
|
+
guideLine.name = comment.id;
|
|
44680
|
+
guideLine.alpha = 1;
|
|
44681
|
+
container.addChild(backShape);
|
|
44682
|
+
container.addChild(commentTextShape);
|
|
44683
|
+
this.addChild(horizontalLine);
|
|
44684
|
+
this.addChild(guideLine);
|
|
44685
|
+
this.addChild(container);
|
|
44587
44686
|
hoEditorFactory.drawPageTree.updateDrawPage(this.index);
|
|
44588
44687
|
}
|
|
44688
|
+
}, {
|
|
44689
|
+
key: "repaintRecored",
|
|
44690
|
+
value: function repaintRecored(comments, comment, nPath, spX, spY) {
|
|
44691
|
+
var _this5 = this;
|
|
44692
|
+
|
|
44693
|
+
var topComments = new Array();
|
|
44694
|
+
var bottomComments = new Array();
|
|
44695
|
+
var tempArr = new Array();
|
|
44696
|
+
|
|
44697
|
+
var getStagePos = function getStagePos(comment) {
|
|
44698
|
+
var endDrawNode = comment.eNode.drawNodes[0];
|
|
44699
|
+
var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this5._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
44700
|
+
|
|
44701
|
+
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
44702
|
+
|
|
44703
|
+
var localPos = _this5.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
44704
|
+
|
|
44705
|
+
|
|
44706
|
+
return [endDrawNode.x, localPos.y];
|
|
44707
|
+
};
|
|
44708
|
+
|
|
44709
|
+
var commentY = spY;
|
|
44710
|
+
comments.forEach(function (value) {
|
|
44711
|
+
if (value.id !== comment.id) {
|
|
44712
|
+
tempArr.push(value);
|
|
44713
|
+
}
|
|
44714
|
+
});
|
|
44715
|
+
tempArr.forEach(function (value) {
|
|
44716
|
+
var aPath = value.eNode.getNodePath();
|
|
44717
|
+
var result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__/* .NodePosition.treePathCompare */ .F.treePathCompare(nPath, aPath);
|
|
44718
|
+
|
|
44719
|
+
if (result > 0) {
|
|
44720
|
+
topComments.push(value);
|
|
44721
|
+
} else {
|
|
44722
|
+
bottomComments.push(value);
|
|
44723
|
+
}
|
|
44724
|
+
});
|
|
44725
|
+
|
|
44726
|
+
if (topComments.length > 0) {
|
|
44727
|
+
var tempComment = topComments[0];
|
|
44728
|
+
var maxValue = getStagePos(tempComment)[1];
|
|
44729
|
+
var lHeight = tempComment.lineHeight;
|
|
44730
|
+
|
|
44731
|
+
for (var i = 1; i < topComments.length; i++) {
|
|
44732
|
+
var stageY = getStagePos(topComments[i])[1];
|
|
44733
|
+
|
|
44734
|
+
if (stageY > maxValue) {
|
|
44735
|
+
maxValue = stageY;
|
|
44736
|
+
lHeight = topComments[i].lineHeight;
|
|
44737
|
+
tempComment = topComments[i];
|
|
44738
|
+
}
|
|
44739
|
+
}
|
|
44740
|
+
|
|
44741
|
+
if (maxValue + lHeight + 5 > spY) {
|
|
44742
|
+
commentY = maxValue + lHeight + 5;
|
|
44743
|
+
|
|
44744
|
+
for (var j = 0; j < this.children.length; j++) {
|
|
44745
|
+
var child = this.children[j];
|
|
44746
|
+
|
|
44747
|
+
if (child.name === tempComment.id && child instanceof createjs.Container) {
|
|
44748
|
+
if (child.y + tempComment.lineHeight / 2 > maxValue) {
|
|
44749
|
+
commentY = child.y + tempComment.lineHeight / 2 + lHeight + 5;
|
|
44750
|
+
}
|
|
44751
|
+
}
|
|
44752
|
+
}
|
|
44753
|
+
}
|
|
44754
|
+
}
|
|
44755
|
+
|
|
44756
|
+
this.drawEditRecords(comment, spX, spY, commentY);
|
|
44757
|
+
|
|
44758
|
+
if (bottomComments.length > 0) {
|
|
44759
|
+
var repaintComment = function repaintComment(commentObj, commentY, lineHeight) {
|
|
44760
|
+
var nodeX = getStagePos(commentObj)[0];
|
|
44761
|
+
var nodeY = getStagePos(commentObj)[1];
|
|
44762
|
+
var arrIndex = bottomComments.indexOf(commentObj);
|
|
44763
|
+
bottomComments.splice(arrIndex, 1);
|
|
44764
|
+
|
|
44765
|
+
if (commentY + lineHeight + 5 > nodeY) {
|
|
44766
|
+
commentY = commentY + lineHeight + 5;
|
|
44767
|
+
} else {
|
|
44768
|
+
commentY = nodeY;
|
|
44769
|
+
}
|
|
44770
|
+
|
|
44771
|
+
_this5.removeComment(commentObj);
|
|
44772
|
+
|
|
44773
|
+
_this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
|
|
44774
|
+
|
|
44775
|
+
if (bottomComments.length > 0) {
|
|
44776
|
+
var _minValue2 = getStagePos(bottomComments[0])[1];
|
|
44777
|
+
var _tempComment4 = bottomComments[0];
|
|
44778
|
+
|
|
44779
|
+
for (var _j2 = 1; _j2 < bottomComments.length; _j2++) {
|
|
44780
|
+
var _stageY3 = getStagePos(bottomComments[_j2])[1];
|
|
44781
|
+
|
|
44782
|
+
if (_stageY3 < _minValue2) {
|
|
44783
|
+
_minValue2 = _stageY3;
|
|
44784
|
+
_tempComment4 = bottomComments[_j2];
|
|
44785
|
+
}
|
|
44786
|
+
}
|
|
44787
|
+
|
|
44788
|
+
repaintComment(_tempComment4, commentY, commentObj.lineHeight);
|
|
44789
|
+
}
|
|
44790
|
+
};
|
|
44791
|
+
|
|
44792
|
+
var minValue = getStagePos(bottomComments[0])[1];
|
|
44793
|
+
var _tempComment3 = bottomComments[0];
|
|
44794
|
+
|
|
44795
|
+
for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
|
|
44796
|
+
var _stageY4 = getStagePos(bottomComments[_i2])[1];
|
|
44797
|
+
|
|
44798
|
+
if (_stageY4 < minValue) {
|
|
44799
|
+
minValue = _stageY4;
|
|
44800
|
+
_tempComment3 = bottomComments[_i2];
|
|
44801
|
+
}
|
|
44802
|
+
}
|
|
44803
|
+
|
|
44804
|
+
repaintComment(_tempComment3, commentY, comment.lineHeight);
|
|
44805
|
+
}
|
|
44806
|
+
}
|
|
44589
44807
|
}]);
|
|
44590
44808
|
|
|
44591
44809
|
return DrawArea;
|
|
@@ -53280,7 +53498,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
53280
53498
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
|
|
53281
53499
|
if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
53282
53500
|
if (this.node.parentNode.inputFieldType === 0) {
|
|
53283
|
-
backColor
|
|
53501
|
+
if (backColor === hoEditorFactory.pageProperty.backColor) {
|
|
53502
|
+
backColor = hoEditorFactory.option.getColorByLevel(10);
|
|
53503
|
+
}
|
|
53284
53504
|
} else {
|
|
53285
53505
|
if (this.node.parentNode.keyValue == "") {
|
|
53286
53506
|
backColor = hoEditorFactory.option.getColorByLevel(120);
|
|
@@ -62970,30 +63190,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
62970
63190
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
62971
63191
|
/* harmony export */ "e": function() { return /* binding */ ParseUndoUnit; }
|
|
62972
63192
|
/* harmony export */ });
|
|
62973
|
-
/* harmony import */ var
|
|
62974
|
-
/* harmony import */ var
|
|
62975
|
-
/* harmony import */ var
|
|
62976
|
-
/* harmony import */ var
|
|
62977
|
-
/* harmony import */ var
|
|
62978
|
-
/* harmony import */ var
|
|
62979
|
-
/* harmony import */ var
|
|
62980
|
-
/* harmony import */ var
|
|
62981
|
-
/* harmony import */ var
|
|
62982
|
-
/* harmony import */ var
|
|
62983
|
-
/* harmony import */ var
|
|
62984
|
-
/* harmony import */ var
|
|
62985
|
-
/* harmony import */ var
|
|
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
|
|
63193
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(86160);
|
|
63194
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(39873);
|
|
63195
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(35671);
|
|
63196
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(22342);
|
|
63197
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);
|
|
63198
|
+
/* 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__);
|
|
63199
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54747);
|
|
63200
|
+
/* 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__);
|
|
63201
|
+
/* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
|
|
63202
|
+
/* 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__);
|
|
63203
|
+
/* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23375);
|
|
63204
|
+
/* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91538);
|
|
63205
|
+
/* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34534);
|
|
63206
|
+
/* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(66828);
|
|
63207
|
+
/* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58416);
|
|
63208
|
+
/* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(48508);
|
|
63209
|
+
/* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50356);
|
|
63210
|
+
/* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2242);
|
|
63211
|
+
/* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(14208);
|
|
63212
|
+
/* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95883);
|
|
63213
|
+
/* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8);
|
|
63214
|
+
/* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(1470);
|
|
63215
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(41005);
|
|
63216
|
+
/* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(34565);
|
|
63217
|
+
/* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(15868);
|
|
63218
|
+
/* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(15798);
|
|
63219
|
+
|
|
63220
|
+
|
|
62997
63221
|
|
|
62998
63222
|
|
|
62999
63223
|
|
|
@@ -63017,7 +63241,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
63017
63241
|
|
|
63018
63242
|
var ParseUndoUnit = /*#__PURE__*/function () {
|
|
63019
63243
|
function ParseUndoUnit(hoEditorFactoryID, startPath, endPath, nodes) {
|
|
63020
|
-
(0,
|
|
63244
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ParseUndoUnit);
|
|
63021
63245
|
|
|
63022
63246
|
//插入后的,变更范围
|
|
63023
63247
|
this._tmp = {
|
|
@@ -63027,42 +63251,66 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63027
63251
|
this._hoEditorFactoryID = hoEditorFactoryID;
|
|
63028
63252
|
this._startPath = startPath;
|
|
63029
63253
|
this._endPath = endPath;
|
|
63030
|
-
this._undo = new
|
|
63254
|
+
this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_11__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
|
|
63031
63255
|
|
|
63032
63256
|
this._undoNodes = new Array();
|
|
63033
63257
|
this._nodes = nodes;
|
|
63034
63258
|
this._opTime = new Date();
|
|
63035
|
-
this._affectText =
|
|
63259
|
+
this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(nodes);
|
|
63036
63260
|
}
|
|
63037
63261
|
|
|
63038
|
-
(0,
|
|
63262
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(ParseUndoUnit, [{
|
|
63039
63263
|
key: "undo",
|
|
63040
|
-
value: function
|
|
63041
|
-
var
|
|
63264
|
+
value: function () {
|
|
63265
|
+
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() {
|
|
63266
|
+
var hoEditorFactory, delEvent, np;
|
|
63267
|
+
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) {
|
|
63268
|
+
while (1) {
|
|
63269
|
+
switch (_context.prev = _context.next) {
|
|
63270
|
+
case 0:
|
|
63271
|
+
hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63272
|
+
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);
|
|
63273
|
+
delEvent.oldEndPath = this._tmp.end;
|
|
63274
|
+
delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.end); //删除插入的节点
|
|
63042
63275
|
|
|
63043
|
-
|
|
63276
|
+
this._undoNodes.forEach(function (value) {
|
|
63277
|
+
hoEditorFactory.docTree.deleteNode(value, "update");
|
|
63278
|
+
});
|
|
63044
63279
|
|
|
63045
|
-
|
|
63046
|
-
|
|
63047
|
-
|
|
63280
|
+
delEvent.afterChangePath = this._tmp.start;
|
|
63281
|
+
_context.next = 8;
|
|
63282
|
+
return hoEditorFactory.docTree.change(delEvent);
|
|
63048
63283
|
|
|
63049
|
-
|
|
63050
|
-
|
|
63051
|
-
|
|
63284
|
+
case 8:
|
|
63285
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
|
|
63286
|
+
|
|
63287
|
+
while (!this._undo.atBottom()) {
|
|
63288
|
+
this._undo.undo();
|
|
63289
|
+
}
|
|
63052
63290
|
|
|
63053
|
-
|
|
63054
|
-
|
|
63055
|
-
|
|
63291
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
|
|
63292
|
+
hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
|
|
63293
|
+
np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
|
|
63056
63294
|
|
|
63057
|
-
|
|
63058
|
-
|
|
63059
|
-
|
|
63295
|
+
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) {
|
|
63296
|
+
hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
|
|
63297
|
+
} // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
|
|
63060
63298
|
|
|
63061
|
-
if (np && np.node instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_18__/* .MarkNode */ .j && np.node.parentNode && np.node.parentNode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__/* .TextInputFieldNode */ .re && np.node.parentNode.childNodes.length === 2) {
|
|
63062
|
-
hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
|
|
63063
|
-
} // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
|
|
63064
63299
|
|
|
63065
|
-
|
|
63300
|
+
case 14:
|
|
63301
|
+
case "end":
|
|
63302
|
+
return _context.stop();
|
|
63303
|
+
}
|
|
63304
|
+
}
|
|
63305
|
+
}, _callee, this);
|
|
63306
|
+
}));
|
|
63307
|
+
|
|
63308
|
+
function undo() {
|
|
63309
|
+
return _undo.apply(this, arguments);
|
|
63310
|
+
}
|
|
63311
|
+
|
|
63312
|
+
return undo;
|
|
63313
|
+
}()
|
|
63066
63314
|
/**
|
|
63067
63315
|
* @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
|
|
63068
63316
|
*/
|
|
@@ -63081,8 +63329,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63081
63329
|
_startPosition$node;
|
|
63082
63330
|
|
|
63083
63331
|
this.initParam();
|
|
63084
|
-
var curRange = new
|
|
63085
|
-
var hoEditorFactory =
|
|
63332
|
+
var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
|
|
63333
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
63086
63334
|
var rootNodes = hoEditorFactory.docTree.getPathRoots(this._startPath);
|
|
63087
63335
|
|
|
63088
63336
|
if (!rootNodes) {
|
|
@@ -63096,7 +63344,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63096
63344
|
//删除选中节点
|
|
63097
63345
|
this._undo.begin();
|
|
63098
63346
|
|
|
63099
|
-
this._undo.add(new
|
|
63347
|
+
this._undo.add(new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath));
|
|
63100
63348
|
|
|
63101
63349
|
this._undo.commit();
|
|
63102
63350
|
}
|
|
@@ -63109,12 +63357,12 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63109
63357
|
var prevNode = startPosition.node;
|
|
63110
63358
|
var i = -1;
|
|
63111
63359
|
var path = nodeLastPath;
|
|
63112
|
-
var positon =
|
|
63360
|
+
var positon = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__/* .NodePosition.treePathCompare */ .F.treePathCompare(curRange.startPath, nodeLastPath);
|
|
63113
63361
|
|
|
63114
63362
|
if (positon < 0) {
|
|
63115
63363
|
//如果是中间,先拆分
|
|
63116
|
-
if (startPosition.node instanceof
|
|
63117
|
-
var textNodeSplitUndoUnit = new
|
|
63364
|
+
if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__/* .TextNode */ .R) {
|
|
63365
|
+
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));
|
|
63118
63366
|
|
|
63119
63367
|
this._undo.begin();
|
|
63120
63368
|
|
|
@@ -63133,7 +63381,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63133
63381
|
//第一个节点是段落时,不插入
|
|
63134
63382
|
var curr = hoEditorFactory.docTree.findNodePositionByPath(curRange.startPath).node;
|
|
63135
63383
|
|
|
63136
|
-
if (curr instanceof
|
|
63384
|
+
if (curr instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
|
|
63137
63385
|
curr.combineParagraph.copyStyle(node.combineParagraph);
|
|
63138
63386
|
} else {
|
|
63139
63387
|
hoEditorFactory.docTree.insertNodeAfterPath(path, node);
|
|
@@ -63151,7 +63399,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63151
63399
|
var _prevNode;
|
|
63152
63400
|
|
|
63153
63401
|
return {
|
|
63154
|
-
isTable: _this._nodes[index] instanceof
|
|
63402
|
+
isTable: _this._nodes[index] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
|
|
63155
63403
|
prevNode: index == 0 ? prevNode : _this._nodes[index - 1],
|
|
63156
63404
|
nextNode: index == _this._nodes.length - 1 ? (_prevNode = prevNode) === null || _prevNode === void 0 ? void 0 : _prevNode.nextSibling() : _this._nodes[index + 1]
|
|
63157
63405
|
};
|
|
@@ -63164,7 +63412,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63164
63412
|
|
|
63165
63413
|
var checkTableNode2 = function checkTableNode2(node) {
|
|
63166
63414
|
return {
|
|
63167
|
-
isTable: node instanceof
|
|
63415
|
+
isTable: node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
|
|
63168
63416
|
node: node,
|
|
63169
63417
|
prevNode: node.prevSibling(),
|
|
63170
63418
|
nextNode: node.nextSibling()
|
|
@@ -63180,8 +63428,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63180
63428
|
var insertParaNode = function insertParaNode(info) {
|
|
63181
63429
|
if (!info.isTable) return;
|
|
63182
63430
|
|
|
63183
|
-
if (!(info.prevNode instanceof
|
|
63184
|
-
var lpara = new
|
|
63431
|
+
if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63432
|
+
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);
|
|
63185
63433
|
hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.prevNode), lpara);
|
|
63186
63434
|
|
|
63187
63435
|
_this._undoNodes.push(lpara);
|
|
@@ -63189,8 +63437,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63189
63437
|
info.node.paragraphNode = lpara; // endNode = lpara;
|
|
63190
63438
|
}
|
|
63191
63439
|
|
|
63192
|
-
if (!(info.nextNode instanceof
|
|
63193
|
-
var _lpara = new
|
|
63440
|
+
if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63441
|
+
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);
|
|
63194
63442
|
|
|
63195
63443
|
hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.node), _lpara);
|
|
63196
63444
|
|
|
@@ -63211,7 +63459,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63211
63459
|
insertParaNode(info);
|
|
63212
63460
|
}
|
|
63213
63461
|
|
|
63214
|
-
if (node instanceof
|
|
63462
|
+
if (node instanceof _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__/* .BaseCombineNode */ .V) {
|
|
63215
63463
|
node.childNodes.forEach(function (value) {
|
|
63216
63464
|
var info = checkTableNode2(value);
|
|
63217
63465
|
|
|
@@ -63232,8 +63480,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63232
63480
|
var info = checkTableNode(i);
|
|
63233
63481
|
|
|
63234
63482
|
if (info.isTable) {
|
|
63235
|
-
if (!(info.nextNode instanceof
|
|
63236
|
-
var lpara = new
|
|
63483
|
+
if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63484
|
+
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);
|
|
63237
63485
|
hoEditorFactory.docTree.insertNodeAfterPath(path, lpara);
|
|
63238
63486
|
|
|
63239
63487
|
this._undoNodes.push(lpara);
|
|
@@ -63245,8 +63493,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63245
63493
|
|
|
63246
63494
|
this._undoNodes.push(node);
|
|
63247
63495
|
|
|
63248
|
-
if (!(info.prevNode instanceof
|
|
63249
|
-
var _lpara2 = new
|
|
63496
|
+
if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
|
|
63497
|
+
var _lpara2 = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(path), hoEditorFactory.docTree.curParaNo);
|
|
63250
63498
|
|
|
63251
63499
|
hoEditorFactory.docTree.insertNodeAfterPath(path, _lpara2);
|
|
63252
63500
|
node.paragraphNode = _lpara2;
|
|
@@ -63265,7 +63513,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63265
63513
|
|
|
63266
63514
|
hoEditorFactory.docTree.insertNodeAfterPath(path, node);
|
|
63267
63515
|
|
|
63268
|
-
if (node instanceof
|
|
63516
|
+
if (node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
|
|
63269
63517
|
node.refreshDrootNodes();
|
|
63270
63518
|
}
|
|
63271
63519
|
|
|
@@ -63280,22 +63528,22 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63280
63528
|
|
|
63281
63529
|
endNode = this._nodes[this._nodes.length - 1];
|
|
63282
63530
|
|
|
63283
|
-
if (endNode instanceof
|
|
63531
|
+
if (endNode instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh) {
|
|
63284
63532
|
endNode = this._nodes[this._nodes.length - 1].nextSibling();
|
|
63285
63533
|
}
|
|
63286
63534
|
}
|
|
63287
63535
|
|
|
63288
63536
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(endNode);
|
|
63289
|
-
var changeEvent = new
|
|
63537
|
+
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);
|
|
63290
63538
|
hoEditorFactory.docTree.change(changeEvent);
|
|
63291
63539
|
|
|
63292
|
-
if (((_startPosition$node = startPosition.node) === null || _startPosition$node === void 0 ? void 0 : _startPosition$node.parentNode) instanceof
|
|
63540
|
+
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) {
|
|
63293
63541
|
var _startPosition$node2;
|
|
63294
63542
|
|
|
63295
63543
|
(_startPosition$node2 = startPosition.node) === null || _startPosition$node2 === void 0 ? void 0 : _startPosition$node2.parentNode.update();
|
|
63296
63544
|
var ppNode = startPosition.node.parentNode.parentNode;
|
|
63297
63545
|
|
|
63298
|
-
if (ppNode instanceof
|
|
63546
|
+
if (ppNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__/* .CellNode */ .D && ppNode.drawCell.drawPageCells.length > 1) {
|
|
63299
63547
|
ppNode.drawCell.needUpdate = true;
|
|
63300
63548
|
ppNode.table.update();
|
|
63301
63549
|
}
|
|
@@ -63304,7 +63552,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
|
|
|
63304
63552
|
this._tmp.start = curRange.startPath;
|
|
63305
63553
|
this._tmp.end = endPath;
|
|
63306
63554
|
hoEditorFactory.drawTree.moveCaretToPath(endPath);
|
|
63307
|
-
hoEditorFactory.docTree.curDomRange = new
|
|
63555
|
+
hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
|
|
63308
63556
|
}
|
|
63309
63557
|
}, {
|
|
63310
63558
|
key: "isEmpty",
|
|
@@ -97645,7 +97893,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
|
|
|
97645
97893
|
*/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
|
|
97646
97894
|
setLineWidth(lineWidth);// Set draw color
|
|
97647
97895
|
out(strokeColor);// resurrecting non-default line caps, joins
|
|
97648
|
-
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;};/**
|
|
97896
|
+
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;};/**
|
|
97649
97897
|
* Returns a document-specific font key - a label assigned to a
|
|
97650
97898
|
* font name + font type combination at the time the font was added
|
|
97651
97899
|
* to the font inventory.
|
|
@@ -99724,8 +99972,9 @@ var f2,getHorizontalCoordinateString,getVerticalCoordinateString,getHorizontalCo
|
|
|
99724
99972
|
* @property {(color|gradient|pattern)} value The color of the drawing. Default value is #000000<br />
|
|
99725
99973
|
* A gradient object (linear or radial) used to fill the drawing (not supported by context2d)<br />
|
|
99726
99974
|
* A pattern object to use to fill the drawing (not supported by context2d)
|
|
99727
|
-
*/Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle;},set:function set(value){var rgba;rgba=getRGBA(value);this.ctx.fillStyle=rgba.style;this.ctx.isFillTransparent=rgba.a===0;//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
|
|
99728
|
-
if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}
|
|
99975
|
+
*/Object.defineProperty(this,"fillStyle",{get:function get(){return this.ctx.fillStyle;},set:function set(value){var rgba;rgba=getRGBA(value);this.ctx.fillStyle=rgba.style;this.ctx.isFillTransparent=rgba.a===0;console.log(this.ctx.fillStyle,this.ctx.fillStyle!=="#000000"&&this.ctx.fillStyle!=="#FFFFFF");//自定义修改 当透明度小于1时改成0 ,以适配不支持透明度的打印机
|
|
99976
|
+
if(rgba.a<1){this.ctx.fillOpacity=0;}else{this.ctx.fillOpacity=rgba.a;}// 自定义修改 处理彩色字体打印问题
|
|
99977
|
+
if(window.printBlack&&this.ctx.fillStyle!=="#000000"&&this.ctx.fillStyle!=="#FFFFFF"){this.ctx.fillStyle="#000000";rgba.r=0;rgba.g=0;rgba.b=0;}var alpha=this.ctx.fillOpacity;this.pdf.setFillColor(rgba.r,rgba.g,rgba.b,{a:alpha});this.pdf.setTextColor(rgba.r,rgba.g,rgba.b,{a:alpha});}});/**
|
|
99729
99978
|
* Sets or returns the color, gradient, or pattern used for strokes
|
|
99730
99979
|
*
|
|
99731
99980
|
* @name strokeStyle
|
|
@@ -198758,7 +199007,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
198758
199007
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
198759
199008
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
198760
199009
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
198761
|
-
;// 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=
|
|
199010
|
+
;// 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&
|
|
198762
199011
|
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()}
|
|
198763
199012
|
var staticRenderFns = []
|
|
198764
199013
|
|
|
@@ -200362,11 +200611,12 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
200362
200611
|
drawNode.children.splice(d, 1);
|
|
200363
200612
|
}
|
|
200364
200613
|
}
|
|
200365
|
-
}
|
|
200366
200614
|
|
|
200367
|
-
|
|
200368
|
-
|
|
200615
|
+
hoeditorfactory.docTree.curOnDragNode = null;
|
|
200616
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
|
|
200617
|
+
} //if (drawLine instanceof DrawLine) drawLine.updateCache();
|
|
200369
200618
|
//drawNode.stage.update();
|
|
200619
|
+
|
|
200370
200620
|
}
|
|
200371
200621
|
|
|
200372
200622
|
var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
|
|
@@ -206740,7 +206990,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
206740
206990
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206741
206991
|
var ParagraphNode = __webpack_require__(14208);
|
|
206742
206992
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206743
|
-
/* harmony default export */ var version = ('2.0.
|
|
206993
|
+
/* harmony default export */ var version = ('2.0.59');
|
|
206744
206994
|
;// 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&
|
|
206745
206995
|
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)}
|
|
206746
206996
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -210166,11 +210416,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210166
210416
|
styleobj["font_style"] = "italic";
|
|
210167
210417
|
} else if (tag == "sup") {
|
|
210168
210418
|
var str = styleobj["vertical_align"] || "";
|
|
210169
|
-
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" ? "" : str + " ") + "super";
|
|
210419
|
+
if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" || str == undefined ? "" : str + " ") + "super";
|
|
210170
210420
|
} else if (tag == "sub") {
|
|
210171
210421
|
var _str6 = styleobj["vertical_align"] || "";
|
|
210172
210422
|
|
|
210173
|
-
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" ? "" : _str6 + " ") + "sub";
|
|
210423
|
+
if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" || _str6 == undefined ? "" : _str6 + " ") + "sub";
|
|
210174
210424
|
} else if (tag == "u") {
|
|
210175
210425
|
var _str7 = styleobj["text_decoration"] || "";
|
|
210176
210426
|
|
|
@@ -214405,6 +214655,8 @@ var StagePosition = __webpack_require__(57674);
|
|
|
214405
214655
|
|
|
214406
214656
|
|
|
214407
214657
|
|
|
214658
|
+
|
|
214659
|
+
|
|
214408
214660
|
|
|
214409
214661
|
|
|
214410
214662
|
|
|
@@ -219201,7 +219453,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219201
219453
|
var _loop2 = function _loop2(i) {
|
|
219202
219454
|
var node = nodes[i];
|
|
219203
219455
|
|
|
219204
|
-
if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re &&
|
|
219456
|
+
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) {
|
|
219205
219457
|
return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
|
|
219206
219458
|
}).length === 0) {
|
|
219207
219459
|
if (arr.filter(function (v) {
|
|
@@ -219663,6 +219915,17 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219663
219915
|
var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
|
|
219664
219916
|
return [caret.pageIndex + 1, caret.stageX * 0.75, y];
|
|
219665
219917
|
}
|
|
219918
|
+
/**
|
|
219919
|
+
* 获取光标位置
|
|
219920
|
+
* returns [pageIndex, x, y]
|
|
219921
|
+
*/
|
|
219922
|
+
// public getSignNodePosition(): [number, number, number] {
|
|
219923
|
+
// const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
219924
|
+
// const caret = hoEditorFactory.drawTree.caret;
|
|
219925
|
+
// const y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
|
|
219926
|
+
// return [caret.pageIndex + 1, caret.stageX * 0.75, y];
|
|
219927
|
+
// }
|
|
219928
|
+
|
|
219666
219929
|
/**
|
|
219667
219930
|
* 文档生成并返回base64格式pdf文件 患者签名使用
|
|
219668
219931
|
*/
|
|
@@ -219745,7 +220008,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219745
220008
|
|
|
219746
220009
|
}, {
|
|
219747
220010
|
key: "insertWriteSign",
|
|
219748
|
-
value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition) {
|
|
220011
|
+
value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition, callback) {
|
|
219749
220012
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219750
220013
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
219751
220014
|
var startPath = curDomRange.normalize().startPath;
|
|
@@ -219776,7 +220039,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219776
220039
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219777
220040
|
|
|
219778
220041
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219779
|
-
hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)
|
|
220042
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220043
|
+
setTimeout(function () {
|
|
220044
|
+
callback && callback();
|
|
220045
|
+
}, 0);
|
|
220046
|
+
});
|
|
219780
220047
|
}
|
|
219781
220048
|
}, 0);
|
|
219782
220049
|
}
|
|
@@ -219784,7 +220051,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219784
220051
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
219785
220052
|
|
|
219786
220053
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
219787
|
-
hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)
|
|
220054
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220055
|
+
setTimeout(function () {
|
|
220056
|
+
callback && callback();
|
|
220057
|
+
}, 0);
|
|
220058
|
+
});
|
|
219788
220059
|
}
|
|
219789
220060
|
}
|
|
219790
220061
|
}
|
|
@@ -220388,6 +220659,67 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220388
220659
|
}
|
|
220389
220660
|
}
|
|
220390
220661
|
}
|
|
220662
|
+
}, {
|
|
220663
|
+
key: "showElementsEditRecord",
|
|
220664
|
+
value: function showElementsEditRecord(objects) {
|
|
220665
|
+
var comments = [];
|
|
220666
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220667
|
+
|
|
220668
|
+
for (var i = 0; i < objects.length; i++) {
|
|
220669
|
+
var object = objects[i];
|
|
220670
|
+
var name = object.name;
|
|
220671
|
+
var oldValue = object.oldValue;
|
|
220672
|
+
var elements = this.getNodesByName("main", true, name);
|
|
220673
|
+
|
|
220674
|
+
for (var j = 0; j < elements.length; j++) {
|
|
220675
|
+
var element = elements[j];
|
|
220676
|
+
|
|
220677
|
+
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220678
|
+
var commentID = hoEditorFactory.gernerateCode.generateID("C");
|
|
220679
|
+
var comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
|
|
220680
|
+
comment.lineHeight = comment.lineHeight - 20;
|
|
220681
|
+
comments.push(comment);
|
|
220682
|
+
}
|
|
220683
|
+
}
|
|
220684
|
+
}
|
|
220685
|
+
|
|
220686
|
+
comments.forEach(function (comment, index) {
|
|
220687
|
+
index++;
|
|
220688
|
+
var endDrawNode = comment.eNode.drawNodes[0];
|
|
220689
|
+
var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
|
|
220690
|
+
var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
220691
|
+
|
|
220692
|
+
var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
220693
|
+
|
|
220694
|
+
var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
220695
|
+
|
|
220696
|
+
var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
|
|
220697
|
+
var spY = localPos.y;
|
|
220698
|
+
drawArea.removeComment(comment);
|
|
220699
|
+
var path = comment.eNode.getNodePath();
|
|
220700
|
+
|
|
220701
|
+
if (index === 1) {
|
|
220702
|
+
drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
220703
|
+
}
|
|
220704
|
+
|
|
220705
|
+
if (index >= 2) {
|
|
220706
|
+
drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
220707
|
+
}
|
|
220708
|
+
});
|
|
220709
|
+
}
|
|
220710
|
+
}, {
|
|
220711
|
+
key: "updateImageSrc",
|
|
220712
|
+
value: function updateImageSrc(node, src) {
|
|
220713
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220714
|
+
var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
|
|
220715
|
+
var ePath = node.getNodePath();
|
|
220716
|
+
var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
|
|
220717
|
+
changeEvent.oldEndPath = ePath;
|
|
220718
|
+
changeEvent.afterChangePath = ePath;
|
|
220719
|
+
changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
|
|
220720
|
+
node.imageDataBase64String = src;
|
|
220721
|
+
hoEditorFactory.docTree.change(changeEvent);
|
|
220722
|
+
}
|
|
220391
220723
|
}]);
|
|
220392
220724
|
|
|
220393
220725
|
return VueController;
|
|
@@ -221389,7 +221721,19 @@ var EditController = /*#__PURE__*/function () {
|
|
|
221389
221721
|
if (!hoeditorfactory.pasteBase) {
|
|
221390
221722
|
for (var n = 0; n < nodes.length; n++) {
|
|
221391
221723
|
var node = nodes[n];
|
|
221392
|
-
|
|
221724
|
+
|
|
221725
|
+
if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) {
|
|
221726
|
+
var style = hoeditorfactory.docTree.styles[node.styleIndex];
|
|
221727
|
+
|
|
221728
|
+
if (style.combineStyle.script != 0) {
|
|
221729
|
+
var newStyle = style.clone();
|
|
221730
|
+
newStyle.script = style.combineStyle.script;
|
|
221731
|
+
var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
|
|
221732
|
+
node.styleIndex = newStyleIndex;
|
|
221733
|
+
} else {
|
|
221734
|
+
node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
|
|
221735
|
+
}
|
|
221736
|
+
}
|
|
221393
221737
|
|
|
221394
221738
|
if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
221395
221739
|
node.paraNo = hoeditorfactory.docTree.curParaNo;
|
|
@@ -222635,6 +222979,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222635
222979
|
format = _this3._a4Size[orientation];
|
|
222636
222980
|
}
|
|
222637
222981
|
|
|
222982
|
+
if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
|
|
222983
|
+
format = [793, 1122];
|
|
222984
|
+
orientation = 'p';
|
|
222985
|
+
}
|
|
222986
|
+
|
|
222638
222987
|
var options = {
|
|
222639
222988
|
orientation: orientation,
|
|
222640
222989
|
unit: "px",
|
|
@@ -222745,6 +223094,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222745
223094
|
format = _this4._a4Size[orientation];
|
|
222746
223095
|
}
|
|
222747
223096
|
|
|
223097
|
+
if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
|
|
223098
|
+
format = [793, 1122];
|
|
223099
|
+
orientation = 'p';
|
|
223100
|
+
}
|
|
223101
|
+
|
|
222748
223102
|
var options = {
|
|
222749
223103
|
orientation: orientation,
|
|
222750
223104
|
unit: "px",
|
|
@@ -222887,6 +223241,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222887
223241
|
format = _this5._a4Size[orientation];
|
|
222888
223242
|
}
|
|
222889
223243
|
|
|
223244
|
+
if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
|
|
223245
|
+
format = [793, 1122];
|
|
223246
|
+
orientation = 'p';
|
|
223247
|
+
}
|
|
223248
|
+
|
|
222890
223249
|
options = {
|
|
222891
223250
|
orientation: orientation,
|
|
222892
223251
|
unit: "px",
|
|
@@ -222896,7 +223255,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
222896
223255
|
PDF = new jspdf/* default */.ZP(options);
|
|
222897
223256
|
PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this5._hoEditorFactoryID, PDF, undefined, undefined, resolve, positionY, format);
|
|
222898
223257
|
|
|
222899
|
-
case
|
|
223258
|
+
case 7:
|
|
222900
223259
|
case "end":
|
|
222901
223260
|
return _context4.stop();
|
|
222902
223261
|
}
|
|
@@ -223086,6 +223445,8 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
223086
223445
|
} else {
|
|
223087
223446
|
hoEditorFactory.loadImageCallback = toPrint;
|
|
223088
223447
|
}
|
|
223448
|
+
|
|
223449
|
+
mergeList = [];
|
|
223089
223450
|
});
|
|
223090
223451
|
} else {
|
|
223091
223452
|
createSvg();
|
|
@@ -224676,6 +225037,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
224676
225037
|
this._isFixedPrintToA4 = value;
|
|
224677
225038
|
}
|
|
224678
225039
|
}
|
|
225040
|
+
}, {
|
|
225041
|
+
key: "isFixedPrintToA4T",
|
|
225042
|
+
get: function get() {
|
|
225043
|
+
return this._isFixedPrintToA4T;
|
|
225044
|
+
},
|
|
225045
|
+
set: function set(value) {
|
|
225046
|
+
if (this._isFixedPrintToA4T !== value) {
|
|
225047
|
+
this._isFixedPrintToA4T = value;
|
|
225048
|
+
}
|
|
225049
|
+
}
|
|
224679
225050
|
}, {
|
|
224680
225051
|
key: "isUseImagePrint",
|
|
224681
225052
|
get: function get() {
|
|
@@ -225062,9 +225433,9 @@ var HoFooter_component = normalizeComponent(
|
|
|
225062
225433
|
)
|
|
225063
225434
|
|
|
225064
225435
|
/* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
|
|
225065
|
-
;// 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=
|
|
225066
|
-
var
|
|
225067
|
-
var
|
|
225436
|
+
;// 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&
|
|
225437
|
+
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)}
|
|
225438
|
+
var ControlModalvue_type_template_id_35544190_staticRenderFns = []
|
|
225068
225439
|
|
|
225069
225440
|
|
|
225070
225441
|
;// 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&
|
|
@@ -228350,9 +228721,9 @@ var Delimiter_component = normalizeComponent(
|
|
|
228350
228721
|
;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
|
|
228351
228722
|
|
|
228352
228723
|
/* harmony default export */ var delimiter = (delimiter_Delimiter);
|
|
228353
|
-
;// 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=
|
|
228354
|
-
var
|
|
228355
|
-
var
|
|
228724
|
+
;// 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&
|
|
228725
|
+
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)])}
|
|
228726
|
+
var Signvue_type_template_id_6c042af0_staticRenderFns = []
|
|
228356
228727
|
|
|
228357
228728
|
|
|
228358
228729
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[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&
|
|
@@ -228499,8 +228870,8 @@ Sign = __decorate([vue_class_component_esm({
|
|
|
228499
228870
|
|
|
228500
228871
|
var Sign_component = normalizeComponent(
|
|
228501
228872
|
sign_Signvue_type_script_lang_ts_,
|
|
228502
|
-
|
|
228503
|
-
|
|
228873
|
+
Signvue_type_template_id_6c042af0_render,
|
|
228874
|
+
Signvue_type_template_id_6c042af0_staticRenderFns,
|
|
228504
228875
|
false,
|
|
228505
228876
|
null,
|
|
228506
228877
|
null,
|
|
@@ -228875,9 +229246,339 @@ var UploadImageDialog_component = normalizeComponent(
|
|
|
228875
229246
|
)
|
|
228876
229247
|
|
|
228877
229248
|
/* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
|
|
229249
|
+
;// 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&
|
|
229250
|
+
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)])}
|
|
229251
|
+
var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns = []
|
|
229252
|
+
|
|
229253
|
+
|
|
229254
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
229255
|
+
|
|
229256
|
+
|
|
229257
|
+
|
|
229258
|
+
//
|
|
229259
|
+
//
|
|
229260
|
+
//
|
|
229261
|
+
//
|
|
229262
|
+
//
|
|
229263
|
+
//
|
|
229264
|
+
//
|
|
229265
|
+
//
|
|
229266
|
+
//
|
|
229267
|
+
//
|
|
229268
|
+
//
|
|
229269
|
+
//
|
|
229270
|
+
//
|
|
229271
|
+
//
|
|
229272
|
+
//
|
|
229273
|
+
//
|
|
229274
|
+
//
|
|
229275
|
+
//
|
|
229276
|
+
//
|
|
229277
|
+
//
|
|
229278
|
+
//
|
|
229279
|
+
//
|
|
229280
|
+
//
|
|
229281
|
+
//
|
|
229282
|
+
|
|
229283
|
+
|
|
229284
|
+
/* harmony default export */ var CanvasImageDialogvue_type_script_lang_js_ = ({
|
|
229285
|
+
name: 'canvasImageDialog',
|
|
229286
|
+
props: {
|
|
229287
|
+
hoEditorFactoryId: {
|
|
229288
|
+
type: String,
|
|
229289
|
+
required: true
|
|
229290
|
+
},
|
|
229291
|
+
vueController: {
|
|
229292
|
+
type: Object,
|
|
229293
|
+
required: true
|
|
229294
|
+
}
|
|
229295
|
+
},
|
|
229296
|
+
data: function data() {
|
|
229297
|
+
return {
|
|
229298
|
+
canvasWidth: 500,
|
|
229299
|
+
canvasHeight: 400,
|
|
229300
|
+
animationClassNames: 'control-modal-contents image-modal animation-in',
|
|
229301
|
+
uploadLoading: false,
|
|
229302
|
+
eraserEnabled: false,
|
|
229303
|
+
activeBgColor: '#fff',
|
|
229304
|
+
ifPop: false,
|
|
229305
|
+
lWidth: 2,
|
|
229306
|
+
opacity: 1,
|
|
229307
|
+
strokeColor: '#FF0000',
|
|
229308
|
+
radius: 5,
|
|
229309
|
+
canvasHistory: [],
|
|
229310
|
+
step: -1,
|
|
229311
|
+
canvas: null,
|
|
229312
|
+
textarea: null,
|
|
229313
|
+
canvasArea: null,
|
|
229314
|
+
context: null,
|
|
229315
|
+
painting: false,
|
|
229316
|
+
// 定义一个变量初始化画笔状态
|
|
229317
|
+
startPoint: {
|
|
229318
|
+
x: undefined,
|
|
229319
|
+
y: undefined
|
|
229320
|
+
},
|
|
229321
|
+
// 记录画笔最后一次的位置
|
|
229322
|
+
tool: 1,
|
|
229323
|
+
textAreaStyle: {}
|
|
229324
|
+
};
|
|
229325
|
+
},
|
|
229326
|
+
watch: {
|
|
229327
|
+
tool: function tool() {
|
|
229328
|
+
if (this.tool === 0) {
|
|
229329
|
+
this.canvas.removeEventListener('mousemove', this.move);
|
|
229330
|
+
} else if (this.tool === 1) {
|
|
229331
|
+
this.canvas.addEventListener('mousemove', this.move);
|
|
229332
|
+
}
|
|
229333
|
+
},
|
|
229334
|
+
canvasHistory: function canvasHistory() {}
|
|
229335
|
+
},
|
|
229336
|
+
mounted: function mounted() {
|
|
229337
|
+
var _this = this;
|
|
229338
|
+
|
|
229339
|
+
this.canvas = document.querySelector('#image_canvas');
|
|
229340
|
+
this.canvasArea = document.querySelector('#loon_canvas_editor_box');
|
|
229341
|
+
this.context = this.canvas.getContext('2d');
|
|
229342
|
+
this.listenDrawLine();
|
|
229343
|
+
var updateNode = this.getImageNode();
|
|
229344
|
+
var image = new Image();
|
|
229345
|
+
image.src = updateNode.imageDataBase64String;
|
|
229346
|
+
|
|
229347
|
+
image.onload = function () {
|
|
229348
|
+
_this.canvasWidth = image.naturalWidth;
|
|
229349
|
+
_this.canvasHeight = image.naturalHeight;
|
|
229350
|
+
|
|
229351
|
+
_this.context.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
229352
|
+
|
|
229353
|
+
setTimeout(function () {
|
|
229354
|
+
_this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
|
|
229355
|
+
|
|
229356
|
+
_this.canvasDraw();
|
|
229357
|
+
}, 0);
|
|
229358
|
+
};
|
|
229359
|
+
},
|
|
229360
|
+
methods: {
|
|
229361
|
+
getImageNode: function getImageNode() {
|
|
229362
|
+
var value;
|
|
229363
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
229364
|
+
var curOnDragNode = hoEditorFactory.docTree.curOnDragNode;
|
|
229365
|
+
|
|
229366
|
+
if (curOnDragNode instanceof ImageNode/* ImageNode */.H) {
|
|
229367
|
+
value = curOnDragNode;
|
|
229368
|
+
}
|
|
229369
|
+
|
|
229370
|
+
return value;
|
|
229371
|
+
},
|
|
229372
|
+
listenDrawLine: function listenDrawLine() {
|
|
229373
|
+
this.canvas.addEventListener('mousedown', this.down);
|
|
229374
|
+
this.canvas.addEventListener('mousemove', this.move);
|
|
229375
|
+
this.canvasArea.addEventListener('mouseup', this.up);
|
|
229376
|
+
},
|
|
229377
|
+
clearListenDrawLine: function clearListenDrawLine() {
|
|
229378
|
+
this.canvas.removeEventListener('mousedown', this.down);
|
|
229379
|
+
this.canvas.removeEventListener('mousemove', this.move);
|
|
229380
|
+
this.canvasArea.removeEventListener('mouseup', this.up);
|
|
229381
|
+
},
|
|
229382
|
+
changeTool: function changeTool(tool) {
|
|
229383
|
+
this.tool = tool;
|
|
229384
|
+
},
|
|
229385
|
+
down: function down(e) {
|
|
229386
|
+
var _this2 = this;
|
|
229387
|
+
|
|
229388
|
+
this.painting = true;
|
|
229389
|
+
this.startPoint = {
|
|
229390
|
+
x: e.offsetX,
|
|
229391
|
+
y: e.offsetY
|
|
229392
|
+
};
|
|
229393
|
+
|
|
229394
|
+
if (this.tool === 0) {
|
|
229395
|
+
this.textAreaStyle = {
|
|
229396
|
+
width: '100px',
|
|
229397
|
+
height: '27px',
|
|
229398
|
+
left: e.offsetX + 'px',
|
|
229399
|
+
top: e.offsetY + 'px'
|
|
229400
|
+
};
|
|
229401
|
+
setTimeout(function () {
|
|
229402
|
+
if (_this2.$refs.textCanvas) {
|
|
229403
|
+
_this2.$refs.textCanvas.focus();
|
|
229404
|
+
}
|
|
229405
|
+
}, 0);
|
|
229406
|
+
}
|
|
229407
|
+
|
|
229408
|
+
e.stopPropagation();
|
|
229409
|
+
e.preventDefault();
|
|
229410
|
+
},
|
|
229411
|
+
move: function move(e) {
|
|
229412
|
+
switch (this.tool) {
|
|
229413
|
+
case 0:
|
|
229414
|
+
{
|
|
229415
|
+
this.drawText(e);
|
|
229416
|
+
break;
|
|
229417
|
+
}
|
|
229418
|
+
|
|
229419
|
+
case 1:
|
|
229420
|
+
{
|
|
229421
|
+
this.drawLine(e);
|
|
229422
|
+
break;
|
|
229423
|
+
}
|
|
229424
|
+
}
|
|
229425
|
+
},
|
|
229426
|
+
up: function up(e) {
|
|
229427
|
+
if (this.tool === 0) {
|
|
229428
|
+
this.canvas.removeEventListener('mousemove', this.move);
|
|
229429
|
+
}
|
|
229430
|
+
|
|
229431
|
+
this.painting = false;
|
|
229432
|
+
|
|
229433
|
+
if (this.tool === 1) {
|
|
229434
|
+
this.canvasDraw();
|
|
229435
|
+
}
|
|
229436
|
+
|
|
229437
|
+
e.stopPropagation();
|
|
229438
|
+
e.preventDefault();
|
|
229439
|
+
},
|
|
229440
|
+
changeText: function changeText(e) {
|
|
229441
|
+
if (e.offsetX - this.startPoint.x > 0) {
|
|
229442
|
+
this.textAreaStyle.width = e.offsetX - this.startPoint.x + 'px';
|
|
229443
|
+
} else {
|
|
229444
|
+
this.textAreaStyle.width = -(e.offsetX - this.startPoint.x) + 'px';
|
|
229445
|
+
this.textAreaStyle.left = e.offsetX + 'px';
|
|
229446
|
+
}
|
|
229447
|
+
|
|
229448
|
+
if (e.offsetY - this.startPoint.y > 0) {
|
|
229449
|
+
this.textAreaStyle.height = e.offsetY - this.startPoint.y + 'px';
|
|
229450
|
+
} else {
|
|
229451
|
+
this.textAreaStyle.height = -(e.offsetY - this.startPoint.y) + 'px';
|
|
229452
|
+
this.textAreaStyle.top = e.offsetY + 'px';
|
|
229453
|
+
}
|
|
229454
|
+
},
|
|
229455
|
+
drawText: function drawText() {
|
|
229456
|
+
if (this.$refs.textCanvas && this.$refs.textCanvas.value) {
|
|
229457
|
+
this.context.font = '16px 宋体';
|
|
229458
|
+
this.context.fillStyle = '#F00';
|
|
229459
|
+
this.context.fillText(this.$refs.textCanvas.value, this.textAreaStyle.left.split('px')[0], Number(this.textAreaStyle.top.split('px')[0]) + 16);
|
|
229460
|
+
this.canvasDraw();
|
|
229461
|
+
this.$refs.textCanvas.value = '';
|
|
229462
|
+
this.textAreaStyle = {};
|
|
229463
|
+
}
|
|
229464
|
+
},
|
|
229465
|
+
drawLine: function drawLine(e) {
|
|
229466
|
+
if (!this.painting) return;
|
|
229467
|
+
this.context.beginPath();
|
|
229468
|
+
this.context.lineWidth = this.lWidth;
|
|
229469
|
+
this.context.strokeStyle = this.strokeColor; // 设置线条末端样式。
|
|
229470
|
+
|
|
229471
|
+
this.context.lineCap = 'round'; // 设定线条与线条间接合处的样式
|
|
229472
|
+
|
|
229473
|
+
this.context.lineJoin = 'round';
|
|
229474
|
+
this.context.moveTo(this.startPoint.x, this.startPoint.y);
|
|
229475
|
+
this.context.lineTo(e.offsetX, e.offsetY);
|
|
229476
|
+
this.context.stroke();
|
|
229477
|
+
this.context.closePath();
|
|
229478
|
+
this.startPoint = {
|
|
229479
|
+
x: e.offsetX,
|
|
229480
|
+
y: e.offsetY
|
|
229481
|
+
};
|
|
229482
|
+
e.stopPropagation();
|
|
229483
|
+
e.preventDefault();
|
|
229484
|
+
},
|
|
229485
|
+
// 绘制方法
|
|
229486
|
+
canvasDraw: function canvasDraw() {
|
|
229487
|
+
this.step++;
|
|
229488
|
+
|
|
229489
|
+
if (this.step < this.canvasHistory.length) {
|
|
229490
|
+
this.canvasHistory.length = this.step; // 截断数组
|
|
229491
|
+
}
|
|
229492
|
+
|
|
229493
|
+
var quality = 1;
|
|
229494
|
+
var base64 = this.canvas.toDataURL('image/jpeg', quality); //压缩语句
|
|
229495
|
+
// 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
|
|
229496
|
+
|
|
229497
|
+
while (base64.length / 1024 > 100) {
|
|
229498
|
+
quality -= 0.01;
|
|
229499
|
+
base64 = this.canvas.toDataURL('image/jpeg', quality);
|
|
229500
|
+
} // 添加新的绘制到历史记录
|
|
229501
|
+
|
|
229502
|
+
|
|
229503
|
+
this.canvasHistory.push(this.canvas.toDataURL());
|
|
229504
|
+
},
|
|
229505
|
+
// 撤销方法
|
|
229506
|
+
canvasUndo: function canvasUndo() {
|
|
229507
|
+
var _this3 = this;
|
|
229508
|
+
|
|
229509
|
+
if (this.step > 0) {
|
|
229510
|
+
this.step--;
|
|
229511
|
+
var canvasPic = new Image();
|
|
229512
|
+
canvasPic.src = this.canvasHistory[this.step];
|
|
229513
|
+
this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
229514
|
+
|
|
229515
|
+
canvasPic.onload = function () {
|
|
229516
|
+
_this3.context.drawImage(canvasPic, 0, 0);
|
|
229517
|
+
};
|
|
229518
|
+
}
|
|
229519
|
+
},
|
|
229520
|
+
// 恢复方法
|
|
229521
|
+
canvasRedo: function canvasRedo() {
|
|
229522
|
+
var _this4 = this;
|
|
229523
|
+
|
|
229524
|
+
if (this.step < this.canvasHistory.length - 1) {
|
|
229525
|
+
this.step++;
|
|
229526
|
+
var canvasPic = new Image();
|
|
229527
|
+
canvasPic.src = this.canvasHistory[this.step];
|
|
229528
|
+
this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
|
|
229529
|
+
|
|
229530
|
+
canvasPic.onload = function () {
|
|
229531
|
+
_this4.context.drawImage(canvasPic, 0, 0);
|
|
229532
|
+
};
|
|
229533
|
+
}
|
|
229534
|
+
},
|
|
229535
|
+
handleClose: function handleClose() {
|
|
229536
|
+
this.clearListenDrawLine();
|
|
229537
|
+
this.$emit('closed');
|
|
229538
|
+
},
|
|
229539
|
+
sure: function sure() {
|
|
229540
|
+
var updateNode = this.getImageNode();
|
|
229541
|
+
var src = this.canvasHistory[this.canvasHistory.length - 1];
|
|
229542
|
+
|
|
229543
|
+
if (updateNode && src) {
|
|
229544
|
+
this.vueController.updateImageSrc(updateNode, src);
|
|
229545
|
+
this.handleClose();
|
|
229546
|
+
}
|
|
229547
|
+
}
|
|
229548
|
+
}
|
|
229549
|
+
});
|
|
229550
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
229551
|
+
/* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
|
|
229552
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[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&
|
|
229553
|
+
// extracted by mini-css-extract-plugin
|
|
229554
|
+
|
|
229555
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=6832ea7e&lang=scss&scoped=true&
|
|
229556
|
+
|
|
229557
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
|
|
229558
|
+
|
|
229559
|
+
|
|
229560
|
+
|
|
229561
|
+
;
|
|
229562
|
+
|
|
229563
|
+
|
|
229564
|
+
/* normalize component */
|
|
229565
|
+
|
|
229566
|
+
var CanvasImageDialog_component = normalizeComponent(
|
|
229567
|
+
upload_CanvasImageDialogvue_type_script_lang_js_,
|
|
229568
|
+
CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_render,
|
|
229569
|
+
CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns,
|
|
229570
|
+
false,
|
|
229571
|
+
null,
|
|
229572
|
+
"6832ea7e",
|
|
229573
|
+
null
|
|
229574
|
+
|
|
229575
|
+
)
|
|
229576
|
+
|
|
229577
|
+
/* harmony default export */ var CanvasImageDialog = (CanvasImageDialog_component.exports);
|
|
228878
229578
|
;// CONCATENATED MODULE: ./src/components/controls/upload/index.ts
|
|
228879
229579
|
|
|
228880
|
-
|
|
229580
|
+
|
|
229581
|
+
|
|
228881
229582
|
;// 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&
|
|
228882
229583
|
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)])}
|
|
228883
229584
|
var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
|
|
@@ -230662,7 +231363,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
230662
231363
|
CommentDialog: commentDialog,
|
|
230663
231364
|
PageInfoes: pageInfoes,
|
|
230664
231365
|
Delimiter: delimiter,
|
|
230665
|
-
UploadImageDialog:
|
|
231366
|
+
UploadImageDialog: upload_UploadImageDialog,
|
|
231367
|
+
CanvasImageDialog: CanvasImageDialog
|
|
230666
231368
|
}
|
|
230667
231369
|
})], ControlModal);
|
|
230668
231370
|
/* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
|
|
@@ -230678,8 +231380,8 @@ ControlModal = __decorate([vue_class_component_esm({
|
|
|
230678
231380
|
;
|
|
230679
231381
|
var ControlModal_component = normalizeComponent(
|
|
230680
231382
|
controls_ControlModalvue_type_script_lang_ts_,
|
|
230681
|
-
|
|
230682
|
-
|
|
231383
|
+
ControlModalvue_type_template_id_35544190_render,
|
|
231384
|
+
ControlModalvue_type_template_id_35544190_staticRenderFns,
|
|
230683
231385
|
false,
|
|
230684
231386
|
null,
|
|
230685
231387
|
null,
|
|
@@ -231368,7 +232070,7 @@ var ControlMixin = /*#__PURE__*/function (_Vue) {
|
|
|
231368
232070
|
this.rightType = node.controlStyle;
|
|
231369
232071
|
this.dataSource = node.bandDataSource;
|
|
231370
232072
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
231371
|
-
this.rightType = "
|
|
232073
|
+
this.rightType = "edit-image";
|
|
231372
232074
|
} else if (node instanceof LabelNode/* LabelNode */.P) {
|
|
231373
232075
|
this.rightType = "label";
|
|
231374
232076
|
} else if (node instanceof SignNode/* SignNode */.N) {
|
|
@@ -231998,6 +232700,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
231998
232700
|
var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
|
|
231999
232701
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
232000
232702
|
hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = this.isFixedPrintToA4);
|
|
232703
|
+
}
|
|
232704
|
+
}, {
|
|
232705
|
+
key: "isFixedPrintToA4TChange",
|
|
232706
|
+
value: function isFixedPrintToA4TChange() {
|
|
232707
|
+
var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
|
|
232708
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
|
|
232709
|
+
hoEditorFactory && (hoEditorFactory.isFixedPrintToA4T = this.isFixedPrintToA4T);
|
|
232001
232710
|
} // 监听默认打印纸张设置变化
|
|
232002
232711
|
|
|
232003
232712
|
}, {
|
|
@@ -232081,6 +232790,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
232081
232790
|
}
|
|
232082
232791
|
|
|
232083
232792
|
hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
|
|
232793
|
+
hoEditor.isFixedPrintToA4T = _this3.isFixedPrintToA4T;
|
|
232084
232794
|
hoEditor.isUseImagePrint = _this3.isUseImagePrint;
|
|
232085
232795
|
hoEditor.isUseForm = _this3.isUseForm;
|
|
232086
232796
|
hoEditor.printBlack = _this3.printBlack;
|
|
@@ -232428,6 +233138,10 @@ __decorate([Prop({
|
|
|
232428
233138
|
default: false
|
|
232429
233139
|
})], HoDocs.prototype, "isFixedPrintToA4", void 0);
|
|
232430
233140
|
|
|
233141
|
+
__decorate([Prop({
|
|
233142
|
+
default: false
|
|
233143
|
+
})], HoDocs.prototype, "isFixedPrintToA4T", void 0);
|
|
233144
|
+
|
|
232431
233145
|
__decorate([Prop({
|
|
232432
233146
|
default: true
|
|
232433
233147
|
})], HoDocs.prototype, "isUseImagePrint", void 0);
|
|
@@ -232472,6 +233186,10 @@ __decorate([Watch("isFixedPrintToA4", {
|
|
|
232472
233186
|
deep: true
|
|
232473
233187
|
})], HoDocs.prototype, "isFixedPrintToA4Change", null);
|
|
232474
233188
|
|
|
233189
|
+
__decorate([Watch("isFixedPrintToA4T", {
|
|
233190
|
+
deep: true
|
|
233191
|
+
})], HoDocs.prototype, "isFixedPrintToA4TChange", null);
|
|
233192
|
+
|
|
232475
233193
|
__decorate([Watch("isUseImagePrint", {
|
|
232476
233194
|
deep: true
|
|
232477
233195
|
})], HoDocs.prototype, "isUseImagePrintChange", null);
|
|
@@ -236622,9 +237340,9 @@ var ToolTablevue_type_template_id_194f516e_render = function () {var _vm=this;va
|
|
|
236622
237340
|
var ToolTablevue_type_template_id_194f516e_staticRenderFns = []
|
|
236623
237341
|
|
|
236624
237342
|
|
|
236625
|
-
;// 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=
|
|
236626
|
-
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)}
|
|
236627
|
-
var
|
|
237343
|
+
;// 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&
|
|
237344
|
+
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)}
|
|
237345
|
+
var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
|
|
236628
237346
|
|
|
236629
237347
|
|
|
236630
237348
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoTableFeatures.vue?vue&type=script&lang=js&
|
|
@@ -237028,8 +237746,8 @@ var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
|
|
|
237028
237746
|
|
|
237029
237747
|
var HoTableFeatures_component = normalizeComponent(
|
|
237030
237748
|
insert_HoTableFeaturesvue_type_script_lang_js_,
|
|
237031
|
-
|
|
237032
|
-
|
|
237749
|
+
HoTableFeaturesvue_type_template_id_02d0c560_render,
|
|
237750
|
+
HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns,
|
|
237033
237751
|
false,
|
|
237034
237752
|
null,
|
|
237035
237753
|
null,
|
|
@@ -238109,7 +238827,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238109
238827
|
_this$rightNode13,
|
|
238110
238828
|
_this$rightNode14,
|
|
238111
238829
|
_this$rightNode15,
|
|
238112
|
-
_this$rightNode16
|
|
238830
|
+
_this$rightNode16,
|
|
238831
|
+
_this$rightNode17;
|
|
238113
238832
|
|
|
238114
238833
|
var h = arguments[0];
|
|
238115
238834
|
return h("div", {
|
|
@@ -238207,7 +238926,18 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238207
238926
|
return _this4.toUpdateNodes("qrcode", event);
|
|
238208
238927
|
}
|
|
238209
238928
|
}
|
|
238210
|
-
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((
|
|
238929
|
+
}, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$rightNode11 = this.rightNode) === null || _this$rightNode11 === void 0 ? void 0 : _this$rightNode11.type) === "edit-image" && h("ul", {
|
|
238930
|
+
"class": "mouse-right-menu"
|
|
238931
|
+
}, [h("li", {
|
|
238932
|
+
"class": "mouse-menu-item mouse-right-menu-line"
|
|
238933
|
+
}), h("li", {
|
|
238934
|
+
"class": "mouse-menu-item",
|
|
238935
|
+
"on": {
|
|
238936
|
+
"click": function click() {
|
|
238937
|
+
return _this4.toUpdateNodes("edit-image", event);
|
|
238938
|
+
}
|
|
238939
|
+
}
|
|
238940
|
+
}, ["\u7F16\u8F91\u56FE\u7247"])]), (((_this$rightNode12 = this.rightNode) === null || _this$rightNode12 === void 0 ? void 0 : _this$rightNode12.type) === "text" || this.emrDebug) && h("ul", {
|
|
238211
238941
|
"class": "mouse-right-menu"
|
|
238212
238942
|
}, [h("li", {
|
|
238213
238943
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -238218,7 +238948,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238218
238948
|
return _this4.toUpdateNodes("text", event);
|
|
238219
238949
|
}
|
|
238220
238950
|
}
|
|
238221
|
-
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$
|
|
238951
|
+
}, ["\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", {
|
|
238222
238952
|
"class": "mouse-right-menu"
|
|
238223
238953
|
}, [h("li", {
|
|
238224
238954
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -238250,7 +238980,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238250
238980
|
return _this4.toUpdateNodes("table-cell", event);
|
|
238251
238981
|
}
|
|
238252
238982
|
}
|
|
238253
|
-
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$
|
|
238983
|
+
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.rightTypeIsTable) && this.defaultTable && h("ul", {
|
|
238254
238984
|
"class": "mouse-right-menu"
|
|
238255
238985
|
}, [h("li", {
|
|
238256
238986
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -238264,7 +238994,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238264
238994
|
table: this.defaultTable,
|
|
238265
238995
|
tableProperty: this.rightNode.tableProperty
|
|
238266
238996
|
})
|
|
238267
|
-
})]), ((_this$
|
|
238997
|
+
})]), ((_this$rightNode16 = this.rightNode) === null || _this$rightNode16 === void 0 ? void 0 : _this$rightNode16.canShowComment) && h("ul", {
|
|
238268
238998
|
"class": "mouse-right-menu"
|
|
238269
238999
|
}, [h("li", {
|
|
238270
239000
|
"class": "mouse-menu-item",
|
|
@@ -238273,7 +239003,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
238273
239003
|
return _this4.hideComments();
|
|
238274
239004
|
}
|
|
238275
239005
|
}
|
|
238276
|
-
}, [(_this$
|
|
239006
|
+
}, [(_this$rightNode17 = this.rightNode) !== null && _this$rightNode17 !== void 0 && _this$rightNode17.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
|
|
238277
239007
|
"class": "mouse-right-menu"
|
|
238278
239008
|
}, [h("li", {
|
|
238279
239009
|
"class": "mouse-menu-item"
|
|
@@ -238943,8 +239673,8 @@ var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item);
|
|
|
238943
239673
|
var lib_form = __webpack_require__(54223);
|
|
238944
239674
|
var form_default = /*#__PURE__*/__webpack_require__.n(lib_form);
|
|
238945
239675
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/upload.js
|
|
238946
|
-
var
|
|
238947
|
-
var upload_default = /*#__PURE__*/__webpack_require__.n(
|
|
239676
|
+
var upload = __webpack_require__(26906);
|
|
239677
|
+
var upload_default = /*#__PURE__*/__webpack_require__.n(upload);
|
|
238948
239678
|
// EXTERNAL MODULE: ./node_modules/element-ui/lib/dropdown-item.js
|
|
238949
239679
|
var dropdown_item = __webpack_require__(42173);
|
|
238950
239680
|
var dropdown_item_default = /*#__PURE__*/__webpack_require__.n(dropdown_item);
|