hoeditor-web 2.0.57 → 2.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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, "").replace(/[^\d|-]/g, ",").replace(/\,{2,}/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("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");
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("#Ho_Editor_Print_Iframe")) {
11454
- document.body.removeChild(document.querySelector("#Ho_Editor_Print_Iframe"));
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("dataurlnewwindow");
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("iframe");
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("print");
11481
+ resolve('print');
11482
11482
  } catch (error) {
11483
11483
  reject(error);
11484
11484
  }
11485
11485
  };
11486
11486
  });
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");
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 ? "l" : "p";
11566
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
11567
11567
  width = hoEditorFactory.pageProperty.widthPixes;
11568
- height = orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11568
+ height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11569
11569
 
11570
- if (type === "html") {
11571
- svgBox = document.createElement("div");
11572
- svgBox.className = "ho-print-svg-box";
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("绘制svg和生成pdf");
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 = 58;
11584
+ _context3.next = 59;
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: "info"
11596
+ return message_box_default().confirm('请进行翻页', '打印提示', {
11597
+ confirmButtonText: '确定',
11598
+ type: 'info'
11599
11599
  });
11600
11600
 
11601
11601
  case 22:
11602
- return _context3.abrupt("continue", 56);
11602
+ return _context3.abrupt("continue", 57);
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", 58);
11613
+ return _context3.abrupt("break", 59);
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("#fff").rect(0, 0, width, positionY).endFill();
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("#fff").rect(0, 0, width, posY).endFill();
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 == "l") {
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,30 @@ var Print = /*#__PURE__*/function () {
11661
11661
  }
11662
11662
 
11663
11663
  if (!hoEditorFactory.isUseImagePrint) {
11664
- _context3.next = 42;
11664
+ _context3.next = 43;
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
+
11671
+ if (hoEditorFactory.isFixedPrintToA4T && format) {
11672
+ // 避免切换纸张的打印方式 绘制只处理竖向情况
11673
+ if (orientation === 'p' && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
11674
+ ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
11675
+
11676
+ ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
11677
+ }
11678
+ }
11679
+
11670
11680
  ctx.posX = svg2pdfOptions.x;
11671
11681
  ctx.posY = svg2pdfOptions.y;
11672
11682
  ctx && ((_cpage$drawDomLevel = cpage.drawDomLevel) === null || _cpage$drawDomLevel === void 0 ? void 0 : (_cpage$drawDomLevel$s = _cpage$drawDomLevel.stage) === null || _cpage$drawDomLevel$s === void 0 ? void 0 : _cpage$drawDomLevel$s.draw(ctx));
11673
11683
  ctx = null;
11674
- _context3.next = 55;
11684
+ _context3.next = 56;
11675
11685
  break;
11676
11686
 
11677
- case 42:
11687
+ case 43:
11678
11688
  _ctx = new canvas2svg({
11679
11689
  width: width,
11680
11690
  height: height,
@@ -11682,142 +11692,142 @@ var Print = /*#__PURE__*/function () {
11682
11692
  });
11683
11693
  _ctx && ((_cpage$drawDomLevel2 = cpage.drawDomLevel) === null || _cpage$drawDomLevel2 === void 0 ? void 0 : (_cpage$drawDomLevel2$ = _cpage$drawDomLevel2.stage) === null || _cpage$drawDomLevel2$ === void 0 ? void 0 : _cpage$drawDomLevel2$.draw(_ctx));
11684
11694
 
11685
- if (!(type === "html")) {
11686
- _context3.next = 49;
11695
+ if (!(type === 'html')) {
11696
+ _context3.next = 50;
11687
11697
  break;
11688
11698
  }
11689
11699
 
11690
11700
  svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
11691
11701
  svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
11692
- _context3.next = 54;
11702
+ _context3.next = 55;
11693
11703
  break;
11694
11704
 
11695
- case 49:
11705
+ case 50:
11696
11706
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
11697
11707
  _context3.t0 = PDF;
11698
11708
 
11699
11709
  if (!_context3.t0) {
11700
- _context3.next = 54;
11710
+ _context3.next = 55;
11701
11711
  break;
11702
11712
  }
11703
11713
 
11704
- _context3.next = 54;
11714
+ _context3.next = 55;
11705
11715
  return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
11706
11716
 
11707
- case 54:
11717
+ case 55:
11708
11718
  _ctx = null;
11709
11719
 
11710
- case 55:
11720
+ case 56:
11711
11721
  index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
11712
11722
 
11713
- case 56:
11723
+ case 57:
11714
11724
  _context3.next = 17;
11715
11725
  break;
11716
11726
 
11717
- case 58:
11718
- _context3.next = 63;
11727
+ case 59:
11728
+ _context3.next = 64;
11719
11729
  break;
11720
11730
 
11721
- case 60:
11722
- _context3.prev = 60;
11731
+ case 61:
11732
+ _context3.prev = 61;
11723
11733
  _context3.t1 = _context3["catch"](15);
11724
11734
 
11725
11735
  _iterator.e(_context3.t1);
11726
11736
 
11727
- case 63:
11728
- _context3.prev = 63;
11737
+ case 64:
11738
+ _context3.prev = 64;
11729
11739
 
11730
11740
  _iterator.f();
11731
11741
 
11732
- return _context3.finish(63);
11742
+ return _context3.finish(64);
11733
11743
 
11734
- case 66:
11735
- console.timeEnd("绘制svg和生成pdf");
11744
+ case 67:
11745
+ console.timeEnd('绘制svg和生成pdf');
11736
11746
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
11737
11747
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
11738
11748
 
11739
11749
  if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
11740
- _context3.next = 75;
11750
+ _context3.next = 76;
11741
11751
  break;
11742
11752
  }
11743
11753
 
11744
11754
  _last = hoEditorFactory.printStatus.printRecord.last();
11745
11755
 
11746
11756
  if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
11747
- _context3.next = 75;
11757
+ _context3.next = 76;
11748
11758
  break;
11749
11759
  }
11750
11760
 
11751
- message_box_default().confirm("无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录", "打印提示", {
11752
- confirmButtonText: "确定",
11753
- type: "info"
11761
+ message_box_default().confirm('无新增内容无法续打,如果要打印最后一份病历,请打开打印记录,删除最近一次打印记录', '打印提示', {
11762
+ confirmButtonText: '确定',
11763
+ type: 'info'
11754
11764
  });
11755
11765
 
11756
- reslove && reslove("printend");
11766
+ reslove && reslove('printend');
11757
11767
  return _context3.abrupt("return");
11758
11768
 
11759
- case 75:
11760
- if (!(type === "pdf")) {
11761
- _context3.next = 81;
11769
+ case 76:
11770
+ if (!(type === 'pdf')) {
11771
+ _context3.next = 82;
11762
11772
  break;
11763
11773
  }
11764
11774
 
11765
11775
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11766
- PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + ".pdf");
11776
+ PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + '.pdf');
11767
11777
  hoEditorFactory.printStatus.drawPrintRecord.clear();
11768
- _context3.next = 87;
11778
+ _context3.next = 88;
11769
11779
  break;
11770
11780
 
11771
- case 81:
11781
+ case 82:
11772
11782
  if (!(svgBox && svgBox.childNodes.length === 0)) {
11773
- _context3.next = 85;
11783
+ _context3.next = 86;
11774
11784
  break;
11775
11785
  }
11776
11786
 
11777
- message_box_default().confirm("无新增内容", "打印提示", {
11778
- confirmButtonText: "确定",
11779
- type: "info"
11787
+ message_box_default().confirm('无新增内容', '打印提示', {
11788
+ confirmButtonText: '确定',
11789
+ type: 'info'
11780
11790
  });
11781
11791
 
11782
- reslove && reslove("printend");
11792
+ reslove && reslove('printend');
11783
11793
  return _context3.abrupt("return");
11784
11794
 
11785
- case 85:
11795
+ case 86:
11786
11796
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
11787
11797
 
11788
- if (type === "html") {
11798
+ if (type === 'html') {
11789
11799
  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
11800
  url = window.URL.createObjectURL(new Blob([exportHtml], {
11791
11801
  type: "text/html"
11792
11802
  }));
11793
- link = document.createElement("a");
11794
- link.style.display = "none";
11803
+ link = document.createElement('a');
11804
+ link.style.display = 'none';
11795
11805
  link.href = url;
11796
- link.setAttribute("download", fileName ? fileName : "电子病历文档");
11806
+ link.setAttribute('download', fileName ? fileName : '电子病历文档');
11797
11807
  document.body.appendChild(link);
11798
11808
  link.click();
11799
11809
  setTimeout(function () {
11800
11810
  return link.remove();
11801
11811
  }, 100);
11802
11812
  } else {
11803
- if (height <= 560) {
11813
+ if (height <= 560 && !hoEditorFactory.isFixedPrintToA4T) {
11804
11814
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11805
11815
  }
11806
11816
 
11807
11817
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11808
- name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
11818
+ name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
11809
11819
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
11810
11820
  }
11811
11821
 
11812
- case 87:
11813
- reslove && reslove("printend");
11814
-
11815
11822
  case 88:
11823
+ reslove && reslove('printend');
11824
+
11825
+ case 89:
11816
11826
  case "end":
11817
11827
  return _context3.stop();
11818
11828
  }
11819
11829
  }
11820
- }, _callee2, this, [[15, 60, 63, 66]]);
11830
+ }, _callee2, this, [[15, 61, 64, 67]]);
11821
11831
  }));
11822
11832
 
11823
11833
  function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
@@ -11844,9 +11854,9 @@ var Print = /*#__PURE__*/function () {
11844
11854
  hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
11845
11855
  }
11846
11856
 
11847
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
11848
- svgBox = document.createElement("div");
11849
- svgBox.className = "ho-print-svg-box";
11857
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
11858
+ svgBox = document.createElement('div');
11859
+ svgBox.className = 'ho-print-svg-box';
11850
11860
  last = -1;
11851
11861
  _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11852
11862
  _context4.prev = 9;
@@ -11867,9 +11877,9 @@ var Print = /*#__PURE__*/function () {
11867
11877
  }
11868
11878
 
11869
11879
  _context4.next = 16;
11870
- return message_box_default().confirm("请进行翻页", "打印提示", {
11871
- confirmButtonText: "确定",
11872
- type: "info"
11880
+ return message_box_default().confirm('请进行翻页', '打印提示', {
11881
+ confirmButtonText: '确定',
11882
+ type: 'info'
11873
11883
  });
11874
11884
 
11875
11885
  case 16:
@@ -11912,7 +11922,7 @@ var Print = /*#__PURE__*/function () {
11912
11922
  case 30:
11913
11923
  _ctx4 = new canvas2svg({
11914
11924
  width: hoEditorFactory.pageProperty.widthPixes,
11915
- height: orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
11925
+ height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
11916
11926
  printBlack: hoEditorFactory.printBlack
11917
11927
  });
11918
11928
  _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));
@@ -11953,7 +11963,7 @@ var Print = /*#__PURE__*/function () {
11953
11963
  }
11954
11964
 
11955
11965
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
11956
- reslove && reslove("printend");
11966
+ reslove && reslove('printend');
11957
11967
 
11958
11968
  case 50:
11959
11969
  case "end":
@@ -11982,11 +11992,11 @@ var Print = /*#__PURE__*/function () {
11982
11992
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoEditorFactoryID);
11983
11993
  hoEditorFactory.printStatus.startIndex = 1;
11984
11994
  hoEditorFactory.printStatus.generatePageIndexs(hoEditorFactory.printStatus.printAppoint);
11985
- svgBox = document.createElement("div");
11986
- svgBox.className = "ho-print-svg-box";
11987
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
11995
+ svgBox = document.createElement('div');
11996
+ svgBox.className = 'ho-print-svg-box';
11997
+ orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
11988
11998
  width = hoEditorFactory.pageProperty.widthPixes;
11989
- height = orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11999
+ height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11990
12000
  last = -1;
11991
12001
  _iterator3 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11992
12002
  _context5.prev = 10;
@@ -12007,9 +12017,9 @@ var Print = /*#__PURE__*/function () {
12007
12017
  }
12008
12018
 
12009
12019
  _context5.next = 17;
12010
- return message_box_default().confirm("请进行翻页", "打印提示", {
12011
- confirmButtonText: "确定",
12012
- type: "info"
12020
+ return message_box_default().confirm('请进行翻页', '打印提示', {
12021
+ confirmButtonText: '确定',
12022
+ type: 'info'
12013
12023
  });
12014
12024
 
12015
12025
  case 17:
@@ -12076,7 +12086,7 @@ var Print = /*#__PURE__*/function () {
12076
12086
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
12077
12087
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
12078
12088
  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 ");
12079
- reslove && reslove("printend");
12089
+ reslove && reslove('printend');
12080
12090
 
12081
12091
  case 44:
12082
12092
  case "end":
@@ -12109,8 +12119,8 @@ var Print = /*#__PURE__*/function () {
12109
12119
  p: [793, 1122],
12110
12120
  l: [1122, 793]
12111
12121
  };
12112
- svgBox = document.createElement("div");
12113
- svgBox.className = "ho-print-svg-box";
12122
+ svgBox = document.createElement('div');
12123
+ svgBox.className = 'ho-print-svg-box';
12114
12124
  last = -1;
12115
12125
  _iterator4 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
12116
12126
  _context6.prev = 8;
@@ -12119,7 +12129,7 @@ var Print = /*#__PURE__*/function () {
12119
12129
 
12120
12130
  case 10:
12121
12131
  if ((_step4 = _iterator4.n()).done) {
12122
- _context6.next = 47;
12132
+ _context6.next = 48;
12123
12133
  break;
12124
12134
  }
12125
12135
 
@@ -12131,13 +12141,13 @@ var Print = /*#__PURE__*/function () {
12131
12141
  }
12132
12142
 
12133
12143
  _context6.next = 15;
12134
- return message_box_default().confirm("请进行翻页", "打印提示", {
12135
- confirmButtonText: "确定",
12136
- type: "info"
12144
+ return message_box_default().confirm('请进行翻页', '打印提示', {
12145
+ confirmButtonText: '确定',
12146
+ type: 'info'
12137
12147
  });
12138
12148
 
12139
12149
  case 15:
12140
- return _context6.abrupt("continue", 45);
12150
+ return _context6.abrupt("continue", 46);
12141
12151
 
12142
12152
  case 16:
12143
12153
  last = index;
@@ -12158,12 +12168,12 @@ var Print = /*#__PURE__*/function () {
12158
12168
  break;
12159
12169
  }
12160
12170
 
12161
- return _context6.abrupt("break", 47);
12171
+ return _context6.abrupt("break", 48);
12162
12172
 
12163
12173
  case 22:
12164
12174
  widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
12165
12175
  heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
12166
- orientation = widthPixes > heightPixes ? "l" : "p";
12176
+ orientation = widthPixes > heightPixes ? 'l' : 'p';
12167
12177
  formats = [widthPixes, heightPixes];
12168
12178
  format = a4Size[orientation];
12169
12179
  svg2pdfOptions = {
@@ -12172,7 +12182,7 @@ var Print = /*#__PURE__*/function () {
12172
12182
  };
12173
12183
 
12174
12184
  if (hoEditorFactory.isFixedPrintToA4 && format) {
12175
- if (orientation == "l") {
12185
+ if (orientation == 'l') {
12176
12186
  svg2pdfOptions.x = format[0] - widthPixes;
12177
12187
  svg2pdfOptions.y = (format[1] - heightPixes) / 2;
12178
12188
  } else {
@@ -12181,7 +12191,7 @@ var Print = /*#__PURE__*/function () {
12181
12191
  }
12182
12192
 
12183
12193
  if (!hoEditorFactory.isUseImagePrint) {
12184
- _context6.next = 38;
12194
+ _context6.next = 39;
12185
12195
  break;
12186
12196
  }
12187
12197
 
@@ -12192,17 +12202,27 @@ var Print = /*#__PURE__*/function () {
12192
12202
  }
12193
12203
 
12194
12204
  ctx = PDF === null || PDF === void 0 ? void 0 : PDF.context2d;
12205
+
12206
+ if (hoEditorFactory.isFixedPrintToA4T && format && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5' && index == 0) {
12207
+ // 避免切换纸张的打印方式 绘制只处理竖向情况
12208
+ if (orientation === 'p') {
12209
+ ctx.translate(0, 1122 / 2); // 由于旋转是默认以左上角为中心 所以需要先移动位置 改变起始点
12210
+
12211
+ ctx.rotate(270 * Math.PI / 180); // 旋转 context2d
12212
+ }
12213
+ }
12214
+
12195
12215
  ctx.posX = svg2pdfOptions.x;
12196
12216
  ctx.posY = svg2pdfOptions.y;
12197
12217
  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));
12198
12218
  ctx = null;
12199
- _context6.next = 44;
12219
+ _context6.next = 45;
12200
12220
  break;
12201
12221
 
12202
- case 38:
12222
+ case 39:
12203
12223
  _ctx6 = new canvas2svg({
12204
12224
  width: widthPixes,
12205
- height: orientation === "l" ? heightPixes - 1 : heightPixes,
12225
+ height: orientation === 'l' ? heightPixes - 1 : heightPixes,
12206
12226
  printBlack: hoEditorFactory.printBlack
12207
12227
  });
12208
12228
  _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));
@@ -12213,37 +12233,37 @@ var Print = /*#__PURE__*/function () {
12213
12233
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
12214
12234
  }
12215
12235
 
12216
- _context6.next = 43;
12236
+ _context6.next = 44;
12217
12237
  return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
12218
12238
 
12219
- case 43:
12239
+ case 44:
12220
12240
  _ctx6 = null;
12221
12241
 
12222
- case 44:
12242
+ case 45:
12223
12243
  index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
12224
12244
 
12225
- case 45:
12245
+ case 46:
12226
12246
  _context6.next = 10;
12227
12247
  break;
12228
12248
 
12229
- case 47:
12230
- _context6.next = 52;
12249
+ case 48:
12250
+ _context6.next = 53;
12231
12251
  break;
12232
12252
 
12233
- case 49:
12234
- _context6.prev = 49;
12253
+ case 50:
12254
+ _context6.prev = 50;
12235
12255
  _context6.t0 = _context6["catch"](8);
12236
12256
 
12237
12257
  _iterator4.e(_context6.t0);
12238
12258
 
12239
- case 52:
12240
- _context6.prev = 52;
12259
+ case 53:
12260
+ _context6.prev = 53;
12241
12261
 
12242
12262
  _iterator4.f();
12243
12263
 
12244
- return _context6.finish(52);
12264
+ return _context6.finish(53);
12245
12265
 
12246
- case 55:
12266
+ case 56:
12247
12267
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
12248
12268
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
12249
12269
  }
@@ -12261,12 +12281,12 @@ var Print = /*#__PURE__*/function () {
12261
12281
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
12262
12282
  reslove();
12263
12283
 
12264
- case 59:
12284
+ case 60:
12265
12285
  case "end":
12266
12286
  return _context6.stop();
12267
12287
  }
12268
12288
  }
12269
- }, _callee5, null, [[8, 49, 52, 55]]);
12289
+ }, _callee5, null, [[8, 50, 53, 56]]);
12270
12290
  }));
12271
12291
 
12272
12292
  function printAllNew(_x15, _x16, _x17, _x18) {
@@ -19693,8 +19713,10 @@ var DomRange = /*#__PURE__*/function () {
19693
19713
  // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19694
19714
  // const isValidPath = hoEditorFactory.docTree.checkPath(value);
19695
19715
  if (value.indexOf("-") >= 0) {
19696
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径s(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。");
19716
+ //const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19717
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径s(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._startPath + ")");
19697
19718
 
19719
+ this.setSamePath(this._startPath);
19698
19720
  return;
19699
19721
  } else {
19700
19722
  this._startPath = value;
@@ -19711,8 +19733,9 @@ var DomRange = /*#__PURE__*/function () {
19711
19733
  // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19712
19734
  // const isValidPath = hoEditorFactory.docTree.checkPath(value);
19713
19735
  if (value.indexOf("-") >= 0) {
19714
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。");
19736
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("当前路径e(" + value + ")异常,请用鼠标点击一下页面(重获路径)再进行之后的操作。(" + this._endPath + ")");
19715
19737
 
19738
+ this.setSamePath(this._endPath);
19716
19739
  return;
19717
19740
  } else {
19718
19741
  this._endPath = value;
@@ -24761,8 +24784,13 @@ var BaseNode = /*#__PURE__*/function () {
24761
24784
  var index = parentNodes.indexOf(this);
24762
24785
 
24763
24786
  if (index != -1) {
24764
- if (this.parentNode) //有父节点,使用父节点的删除方法
24765
- return this.parentNode.removeChild(this);else parentNodes.splice(index, 1);
24787
+ if (this.parentNode) {
24788
+ //有父节点,使用父节点的删除方法
24789
+ return this.parentNode.removeChild(this);
24790
+ } else {
24791
+ parentNodes.splice(index, 1);
24792
+ }
24793
+
24766
24794
  return true;
24767
24795
  }
24768
24796
 
@@ -28592,8 +28620,8 @@ var BaseNode = __webpack_require__(50369);
28592
28620
  /*
28593
28621
  * @Author: your name
28594
28622
  * @Date: 2020-11-11 10:02:30
28595
- * @LastEditTime: 2021-09-28 14:10:50
28596
- * @LastEditors: Please set LastEditors
28623
+ * @LastEditTime: 2022-06-23 09:54:03
28624
+ * @LastEditors: liyanan 2441631434@qq.com
28597
28625
  * @Description: In User Settings Edit
28598
28626
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\ImageNode.ts
28599
28627
  */
@@ -28700,6 +28728,12 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
28700
28728
  key: "imageDataBase64String",
28701
28729
  get: function get() {
28702
28730
  return this._imageDataBase64String;
28731
+ },
28732
+ set: function set(value) {
28733
+ if (this._imageDataBase64String !== value) {
28734
+ this._imageDataBase64String = value;
28735
+ this.node2DrawNodeRange(0, 0);
28736
+ }
28703
28737
  }
28704
28738
  /**
28705
28739
  * imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
@@ -28727,6 +28761,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
28727
28761
  }, {
28728
28762
  key: "node2DrawNodeRange",
28729
28763
  value: function node2DrawNodeRange(startIndex, endIndex) {
28764
+ this._drawNodes.length = 0;
28730
28765
  var dNode = new DrawImageNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.imageDataBase64String, this.width, this.height //,
28731
28766
  //this.scaleX,
28732
28767
  //this.scaleY
@@ -31182,8 +31217,13 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31182
31217
  var index = parentNodes.indexOf(this);
31183
31218
 
31184
31219
  if (index != -1) {
31185
- if (this.parentNode) //有父节点,使用父节点的删除方法
31186
- return this.parentNode.removeChild(this);else parentNodes.splice(index, 1);
31220
+ if (this.parentNode) {
31221
+ //有父节点,使用父节点的删除方法
31222
+ return this.parentNode.removeChild(this);
31223
+ } else {
31224
+ parentNodes.splice(index, 1);
31225
+ }
31226
+
31187
31227
  return true;
31188
31228
  }
31189
31229
 
@@ -35760,6 +35800,10 @@ var ColInfos = /*#__PURE__*/function () {
35760
35800
  return this._colWidth;
35761
35801
  },
35762
35802
  set: function set(colWidth) {
35803
+ if (isNaN(colWidth)) {
35804
+ console.warn('当前列宽 === NaN');
35805
+ }
35806
+
35763
35807
  this._colWidth = colWidth;
35764
35808
  }
35765
35809
  }, {
@@ -42518,8 +42562,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
42518
42562
  /*
42519
42563
  * @Author: your name
42520
42564
  * @Date: 2021-01-19 10:05:08
42521
- * @LastEditTime: 2021-09-26 22:46:04
42522
- * @LastEditors: Please set LastEditors
42565
+ * @LastEditTime: 2022-06-24 16:54:17
42566
+ * @LastEditors: liyanan 2441631434@qq.com
42523
42567
  * @Description: In User Settings Edit
42524
42568
  * @FilePath: \hoeditor-web\src\editor\draw\DrawResize.ts
42525
42569
  */
@@ -42591,6 +42635,8 @@ var DrawResize = /*#__PURE__*/function () {
42591
42635
 
42592
42636
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
42593
42637
  hoEditorFactory.docTree.curOnDragNode = this.node;
42638
+ this.dragFlag = true;
42639
+ this.sLocation = new createjs.Point(e.stageX, e.stageY);
42594
42640
  this.drawBorders(this._drawNode.dWidth, this._drawNode.dHeight, true); //const drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(
42595
42641
  //this.drawNode
42596
42642
  //);
@@ -42598,8 +42644,6 @@ var DrawResize = /*#__PURE__*/function () {
42598
42644
  //drawLine.drawItems.splice(index, 1);
42599
42645
  //drawLine.removeChild(this.drawNode);
42600
42646
 
42601
- this.dragFlag = true;
42602
- this.sLocation = new createjs.Point(e.stageX, e.stageY);
42603
42647
  var shapes = this.drawNode.children;
42604
42648
  shapes.forEach(function (value, index) {
42605
42649
  // if (value.name !== this.node.id && value.alpha !== 1) {
@@ -42781,7 +42825,7 @@ var DrawResize = /*#__PURE__*/function () {
42781
42825
  //左上
42782
42826
  this.drawNode.dWidth = this.drawNode.dWidth - changeX;
42783
42827
  this.drawNode.dHeight = this.drawNode.dHeight - changeY;
42784
- this.imageY = this.imageY - changeY;
42828
+ this.imageY = this.imageY + changeY;
42785
42829
  } else if (e.target.name === "centerTop") {
42786
42830
  //向上
42787
42831
  this.drawNode.dHeight = this.drawNode.dHeight - changeY;
@@ -43435,7 +43479,7 @@ var StagePosition = /*#__PURE__*/function () {
43435
43479
  /* harmony export */ "l": function() { return /* binding */ DrawArea; }
43436
43480
  /* harmony export */ });
43437
43481
  /* 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);
43438
- /* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(22342);
43482
+ /* 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);
43439
43483
  /* 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);
43440
43484
  /* 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);
43441
43485
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66992);
@@ -43463,6 +43507,8 @@ var StagePosition = /*#__PURE__*/function () {
43463
43507
  /* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2242);
43464
43508
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(41005);
43465
43509
  /* harmony import */ var _editor_dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(95883);
43510
+ /* harmony import */ var _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(39648);
43511
+
43466
43512
 
43467
43513
 
43468
43514
 
@@ -43516,7 +43562,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
43516
43562
  // }
43517
43563
 
43518
43564
 
43519
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_19__/* ["default"] */ .Z)(DrawArea, [{
43565
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(DrawArea, [{
43520
43566
  key: "endDline",
43521
43567
  get: function get() {
43522
43568
  return this._endDline;
@@ -44354,7 +44400,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44354
44400
  var localPos = _this2.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
44355
44401
 
44356
44402
 
44357
- var spX = endDrawNode.x;
44403
+ var spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__/* .DrawPageCell */ .k ? localPos.x : endDrawNode.x;
44358
44404
  var spY = localPos.y;
44359
44405
 
44360
44406
  _this2.removeComment(value);
@@ -44585,11 +44631,176 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44585
44631
  if (child.name === comment.id) {
44586
44632
  child.alpha = 1;
44587
44633
  }
44588
- } //this.stage.update();
44634
+ }
44635
+
44636
+ hoEditorFactory.drawPageTree.updateDrawPage(this.index);
44637
+ }
44638
+ }, {
44639
+ key: "drawEditRecords",
44640
+ value: function drawEditRecords(comment, nodeX, nodeY, commentY) {
44641
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
44642
+ var commentWidth = hoEditorFactory.pageProperty.rightMarginPixes - 15;
44643
+ var docWidth = this.docWidth;
44644
+ var container = new createjs.Container();
44645
+ container.x = docWidth + 15;
44646
+ container.y = commentY - comment.lineHeight / 2;
44647
+ container.name = comment.id;
44648
+ var commentTextShape = null; // 批注内容
44649
+
44650
+ var commentArr = comment.commentTextWarp(commentWidth, comment.text);
44651
+ var text = commentArr[0];
44652
+ var textLen = commentArr[1] > 1 ? commentArr[1] - 1 : commentArr[1];
44653
+ comment.lineHeight = 20 * textLen + 10;
44654
+ commentTextShape = new createjs.Text(text, "12px 微软雅黑", "#666");
44655
+ commentTextShape.lineWidth = commentWidth - 25;
44656
+ commentTextShape.lineHeight = 20;
44657
+ commentTextShape.name = "oldValue";
44658
+ commentTextShape.x = 5;
44659
+ commentTextShape.y = 10;
44660
+ commentTextShape.alpha = 1; //背景
44661
+
44662
+ var textWidth = commentTextShape.getMeasuredWidth();
44663
+ var shapeWidth = textWidth + 10 > commentWidth - 30 ? commentWidth - 30 : textWidth + 10;
44664
+ var backShape = new createjs.Shape();
44665
+ backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5").drawRoundRect(0, 0, shapeWidth, comment.lineHeight, 5);
44666
+ backShape.name = "backShape";
44667
+ backShape.alpha = 0.5; //横线
44589
44668
 
44669
+ var horizontalLine = new createjs.Shape();
44670
+ horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
44671
+ horizontalLine.name = comment.id;
44672
+ horizontalLine.alpha = 1; //指向线
44590
44673
 
44674
+ var guideLine = new createjs.Shape();
44675
+ guideLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(docWidth, nodeY).lineTo(docWidth + 15, commentY - comment.lineHeight / 4);
44676
+ guideLine.name = comment.id;
44677
+ guideLine.alpha = 1;
44678
+ container.addChild(backShape);
44679
+ container.addChild(commentTextShape);
44680
+ this.addChild(horizontalLine);
44681
+ this.addChild(guideLine);
44682
+ this.addChild(container);
44591
44683
  hoEditorFactory.drawPageTree.updateDrawPage(this.index);
44592
44684
  }
44685
+ }, {
44686
+ key: "repaintRecored",
44687
+ value: function repaintRecored(comments, comment, nPath, spX, spY) {
44688
+ var _this5 = this;
44689
+
44690
+ var topComments = new Array();
44691
+ var bottomComments = new Array();
44692
+ var tempArr = new Array();
44693
+
44694
+ var getStagePos = function getStagePos(comment) {
44695
+ var endDrawNode = comment.eNode.drawNodes[0];
44696
+ var dline = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys.instance */ .b.instance().getFactory(_this5._hoEditorFactoryID).drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
44697
+
44698
+ var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
44699
+
44700
+ var localPos = _this5.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
44701
+
44702
+
44703
+ return [endDrawNode.x, localPos.y];
44704
+ };
44705
+
44706
+ var commentY = spY;
44707
+ comments.forEach(function (value) {
44708
+ if (value.id !== comment.id) {
44709
+ tempArr.push(value);
44710
+ }
44711
+ });
44712
+ tempArr.forEach(function (value) {
44713
+ var aPath = value.eNode.getNodePath();
44714
+ var result = _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__/* .NodePosition.treePathCompare */ .F.treePathCompare(nPath, aPath);
44715
+
44716
+ if (result > 0) {
44717
+ topComments.push(value);
44718
+ } else {
44719
+ bottomComments.push(value);
44720
+ }
44721
+ });
44722
+
44723
+ if (topComments.length > 0) {
44724
+ var tempComment = topComments[0];
44725
+ var maxValue = getStagePos(tempComment)[1];
44726
+ var lHeight = tempComment.lineHeight;
44727
+
44728
+ for (var i = 1; i < topComments.length; i++) {
44729
+ var stageY = getStagePos(topComments[i])[1];
44730
+
44731
+ if (stageY > maxValue) {
44732
+ maxValue = stageY;
44733
+ lHeight = topComments[i].lineHeight;
44734
+ tempComment = topComments[i];
44735
+ }
44736
+ }
44737
+
44738
+ if (maxValue + lHeight + 5 > spY) {
44739
+ commentY = maxValue + lHeight + 5;
44740
+
44741
+ for (var j = 0; j < this.children.length; j++) {
44742
+ var child = this.children[j];
44743
+
44744
+ if (child.name === tempComment.id && child instanceof createjs.Container) {
44745
+ if (child.y + tempComment.lineHeight / 2 > maxValue) {
44746
+ commentY = child.y + tempComment.lineHeight / 2 + lHeight + 5;
44747
+ }
44748
+ }
44749
+ }
44750
+ }
44751
+ }
44752
+
44753
+ this.drawEditRecords(comment, spX, spY, commentY);
44754
+
44755
+ if (bottomComments.length > 0) {
44756
+ var repaintComment = function repaintComment(commentObj, commentY, lineHeight) {
44757
+ var nodeX = getStagePos(commentObj)[0];
44758
+ var nodeY = getStagePos(commentObj)[1];
44759
+ var arrIndex = bottomComments.indexOf(commentObj);
44760
+ bottomComments.splice(arrIndex, 1);
44761
+
44762
+ if (commentY + lineHeight + 5 > nodeY) {
44763
+ commentY = commentY + lineHeight + 5;
44764
+ } else {
44765
+ commentY = nodeY;
44766
+ }
44767
+
44768
+ _this5.removeComment(commentObj);
44769
+
44770
+ _this5.drawEditRecords(commentObj, nodeX, nodeY, commentY);
44771
+
44772
+ if (bottomComments.length > 0) {
44773
+ var _minValue2 = getStagePos(bottomComments[0])[1];
44774
+ var _tempComment4 = bottomComments[0];
44775
+
44776
+ for (var _j2 = 1; _j2 < bottomComments.length; _j2++) {
44777
+ var _stageY3 = getStagePos(bottomComments[_j2])[1];
44778
+
44779
+ if (_stageY3 < _minValue2) {
44780
+ _minValue2 = _stageY3;
44781
+ _tempComment4 = bottomComments[_j2];
44782
+ }
44783
+ }
44784
+
44785
+ repaintComment(_tempComment4, commentY, commentObj.lineHeight);
44786
+ }
44787
+ };
44788
+
44789
+ var minValue = getStagePos(bottomComments[0])[1];
44790
+ var _tempComment3 = bottomComments[0];
44791
+
44792
+ for (var _i2 = 1; _i2 < bottomComments.length; _i2++) {
44793
+ var _stageY4 = getStagePos(bottomComments[_i2])[1];
44794
+
44795
+ if (_stageY4 < minValue) {
44796
+ minValue = _stageY4;
44797
+ _tempComment3 = bottomComments[_i2];
44798
+ }
44799
+ }
44800
+
44801
+ repaintComment(_tempComment3, commentY, comment.lineHeight);
44802
+ }
44803
+ }
44593
44804
  }]);
44594
44805
 
44595
44806
  return DrawArea;
@@ -53284,7 +53495,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53284
53495
  if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
53285
53496
  if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
53286
53497
  if (this.node.parentNode.inputFieldType === 0) {
53287
- backColor = hoEditorFactory.option.getColorByLevel(10);
53498
+ if (backColor === hoEditorFactory.pageProperty.backColor) {
53499
+ backColor = hoEditorFactory.option.getColorByLevel(10);
53500
+ }
53288
53501
  } else {
53289
53502
  if (this.node.parentNode.keyValue == "") {
53290
53503
  backColor = hoEditorFactory.option.getColorByLevel(120);
@@ -62974,30 +63187,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62974
63187
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
62975
63188
  /* harmony export */ "e": function() { return /* binding */ ParseUndoUnit; }
62976
63189
  /* harmony export */ });
62977
- /* 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);
62978
- /* 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);
62979
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41539);
62980
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__);
62981
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54747);
62982
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__);
62983
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21703);
62984
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__);
62985
- /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23375);
62986
- /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91538);
62987
- /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34534);
62988
- /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66828);
62989
- /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58416);
62990
- /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48508);
62991
- /* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(50356);
62992
- /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2242);
62993
- /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(14208);
62994
- /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95883);
62995
- /* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(8);
62996
- /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1470);
62997
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(41005);
62998
- /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34565);
62999
- /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(15868);
63000
- /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(15798);
63190
+ /* 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);
63191
+ /* 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);
63192
+ /* 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);
63193
+ /* 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);
63194
+ /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(41539);
63195
+ /* 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__);
63196
+ /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(54747);
63197
+ /* 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__);
63198
+ /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(21703);
63199
+ /* 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__);
63200
+ /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23375);
63201
+ /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(91538);
63202
+ /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(34534);
63203
+ /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(66828);
63204
+ /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(58416);
63205
+ /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(48508);
63206
+ /* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(50356);
63207
+ /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(2242);
63208
+ /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(14208);
63209
+ /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(95883);
63210
+ /* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(8);
63211
+ /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(1470);
63212
+ /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(41005);
63213
+ /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(34565);
63214
+ /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(15868);
63215
+ /* harmony import */ var _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(15798);
63216
+
63217
+
63001
63218
 
63002
63219
 
63003
63220
 
@@ -63021,7 +63238,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63021
63238
 
63022
63239
  var ParseUndoUnit = /*#__PURE__*/function () {
63023
63240
  function ParseUndoUnit(hoEditorFactoryID, startPath, endPath, nodes) {
63024
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, ParseUndoUnit);
63241
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(this, ParseUndoUnit);
63025
63242
 
63026
63243
  //插入后的,变更范围
63027
63244
  this._tmp = {
@@ -63031,42 +63248,66 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63031
63248
  this._hoEditorFactoryID = hoEditorFactoryID;
63032
63249
  this._startPath = startPath;
63033
63250
  this._endPath = endPath;
63034
- this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_9__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
63251
+ this._undo = new _UndoService__WEBPACK_IMPORTED_MODULE_11__/* .UndoService */ .O(this._hoEditorFactoryID); //hoEditorFactory.undoService;
63035
63252
 
63036
63253
  this._undoNodes = new Array();
63037
63254
  this._nodes = nodes;
63038
63255
  this._opTime = new Date();
63039
- this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(nodes);
63256
+ this._affectText = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodesText(nodes);
63040
63257
  }
63041
63258
 
63042
- (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_20__/* ["default"] */ .Z)(ParseUndoUnit, [{
63259
+ (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_22__/* ["default"] */ .Z)(ParseUndoUnit, [{
63043
63260
  key: "undo",
63044
- value: function undo() {
63045
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID); //先删除插入绘画节点
63261
+ value: function () {
63262
+ 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() {
63263
+ var hoEditorFactory, delEvent, np;
63264
+ 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) {
63265
+ while (1) {
63266
+ switch (_context.prev = _context.next) {
63267
+ case 0:
63268
+ hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
63269
+ 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);
63270
+ delEvent.oldEndPath = this._tmp.end;
63271
+ delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_17__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.end); //删除插入的节点
63046
63272
 
63047
- var delEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__/* .DocAction.daDelete */ .gk.daDelete, this._tmp.start, this._tmp.start); //undo
63273
+ this._undoNodes.forEach(function (value) {
63274
+ hoEditorFactory.docTree.deleteNode(value, "update");
63275
+ });
63048
63276
 
63049
- this._undoNodes.forEach(function (value) {
63050
- hoEditorFactory.docTree.deleteNode(value, "update");
63051
- });
63277
+ delEvent.afterChangePath = this._tmp.start;
63278
+ _context.next = 8;
63279
+ return hoEditorFactory.docTree.change(delEvent);
63052
63280
 
63053
- while (!this._undo.atBottom()) {
63054
- this._undo.undo();
63055
- }
63281
+ case 8:
63282
+ hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
63283
+
63284
+ while (!this._undo.atBottom()) {
63285
+ this._undo.undo();
63286
+ }
63056
63287
 
63057
- delEvent.oldEndPath = this._tmp.start;
63058
- delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.start);
63059
- hoEditorFactory.docTree.change(delEvent); //删除插入的节点
63288
+ hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
63289
+ hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
63290
+ np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
63060
63291
 
63061
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
63062
- hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
63063
- var np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
63292
+ 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) {
63293
+ hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
63294
+ } // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63064
63295
 
63065
- 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) {
63066
- hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
63067
- } // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63068
63296
 
63069
- }
63297
+ case 14:
63298
+ case "end":
63299
+ return _context.stop();
63300
+ }
63301
+ }
63302
+ }, _callee, this);
63303
+ }));
63304
+
63305
+ function undo() {
63306
+ return _undo.apply(this, arguments);
63307
+ }
63308
+
63309
+ return undo;
63310
+ }()
63070
63311
  /**
63071
63312
  * @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
63072
63313
  */
@@ -63085,8 +63326,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63085
63326
  _startPosition$node;
63086
63327
 
63087
63328
  this.initParam();
63088
- var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
63089
- var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
63329
+ var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
63330
+ var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_18__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
63090
63331
  var rootNodes = hoEditorFactory.docTree.getPathRoots(this._startPath);
63091
63332
 
63092
63333
  if (!rootNodes) {
@@ -63100,7 +63341,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63100
63341
  //删除选中节点
63101
63342
  this._undo.begin();
63102
63343
 
63103
- this._undo.add(new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_10__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath));
63344
+ this._undo.add(new _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_12__/* .NodesDeleteUndoUnit */ .F(this._hoEditorFactoryID, curRange.startPath, curRange.endPath));
63104
63345
 
63105
63346
  this._undo.commit();
63106
63347
  }
@@ -63113,12 +63354,12 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63113
63354
  var prevNode = startPosition.node;
63114
63355
  var i = -1;
63115
63356
  var path = nodeLastPath;
63116
- var positon = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__/* .NodePosition.treePathCompare */ .F.treePathCompare(curRange.startPath, nodeLastPath);
63357
+ var positon = _dom_NodePosition__WEBPACK_IMPORTED_MODULE_13__/* .NodePosition.treePathCompare */ .F.treePathCompare(curRange.startPath, nodeLastPath);
63117
63358
 
63118
63359
  if (positon < 0) {
63119
63360
  //如果是中间,先拆分
63120
- if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_5__/* .TextNode */ .R) {
63121
- var textNodeSplitUndoUnit = new _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_8__/* .TextNodeSplitUndoUnit */ .W(this._hoEditorFactoryID, curRange.startPath, startPosition.node, new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, curRange.startPath, nodeLastPath));
63361
+ if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_7__/* .TextNode */ .R) {
63362
+ 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));
63122
63363
 
63123
63364
  this._undo.begin();
63124
63365
 
@@ -63137,7 +63378,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63137
63378
  //第一个节点是段落时,不插入
63138
63379
  var curr = hoEditorFactory.docTree.findNodePositionByPath(curRange.startPath).node;
63139
63380
 
63140
- if (curr instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C) {
63381
+ if (curr instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
63141
63382
  curr.combineParagraph.copyStyle(node.combineParagraph);
63142
63383
  } else {
63143
63384
  hoEditorFactory.docTree.insertNodeAfterPath(path, node);
@@ -63155,7 +63396,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63155
63396
  var _prevNode;
63156
63397
 
63157
63398
  return {
63158
- isTable: _this._nodes[index] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode */ .Fh,
63399
+ isTable: _this._nodes[index] instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
63159
63400
  prevNode: index == 0 ? prevNode : _this._nodes[index - 1],
63160
63401
  nextNode: index == _this._nodes.length - 1 ? (_prevNode = prevNode) === null || _prevNode === void 0 ? void 0 : _prevNode.nextSibling() : _this._nodes[index + 1]
63161
63402
  };
@@ -63168,7 +63409,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63168
63409
 
63169
63410
  var checkTableNode2 = function checkTableNode2(node) {
63170
63411
  return {
63171
- isTable: node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode */ .Fh,
63412
+ isTable: node instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh,
63172
63413
  node: node,
63173
63414
  prevNode: node.prevSibling(),
63174
63415
  nextNode: node.nextSibling()
@@ -63184,8 +63425,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63184
63425
  var insertParaNode = function insertParaNode(info) {
63185
63426
  if (!info.isTable) return;
63186
63427
 
63187
- if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63188
- var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63428
+ if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63429
+ 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);
63189
63430
  hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.prevNode), lpara);
63190
63431
 
63191
63432
  _this._undoNodes.push(lpara);
@@ -63193,8 +63434,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63193
63434
  info.node.paragraphNode = lpara; // endNode = lpara;
63194
63435
  }
63195
63436
 
63196
- if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63197
- var _lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63437
+ if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63438
+ var _lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(_this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(info.node.getNodePath()), hoEditorFactory.docTree.curParaNo);
63198
63439
 
63199
63440
  hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.node), _lpara);
63200
63441
 
@@ -63215,7 +63456,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63215
63456
  insertParaNode(info);
63216
63457
  }
63217
63458
 
63218
- if (node instanceof _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_14__/* .BaseCombineNode */ .V) {
63459
+ if (node instanceof _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_16__/* .BaseCombineNode */ .V) {
63219
63460
  node.childNodes.forEach(function (value) {
63220
63461
  var info = checkTableNode2(value);
63221
63462
 
@@ -63236,8 +63477,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63236
63477
  var info = checkTableNode(i);
63237
63478
 
63238
63479
  if (info.isTable) {
63239
- if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63240
- var lpara = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(startPosition.path), hoEditorFactory.docTree.curParaNo);
63480
+ if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63481
+ 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);
63241
63482
  hoEditorFactory.docTree.insertNodeAfterPath(path, lpara);
63242
63483
 
63243
63484
  this._undoNodes.push(lpara);
@@ -63249,8 +63490,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63249
63490
 
63250
63491
  this._undoNodes.push(node);
63251
63492
 
63252
- if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63253
- var _lpara2 = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(path), hoEditorFactory.docTree.curParaNo);
63493
+ if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C)) {
63494
+ var _lpara2 = new _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C(this._hoEditorFactoryID, hoEditorFactory.docTree.activeNodes, hoEditorFactory.docTree.getParentNode(path), hoEditorFactory.docTree.curParaNo);
63254
63495
 
63255
63496
  hoEditorFactory.docTree.insertNodeAfterPath(path, _lpara2);
63256
63497
  node.paragraphNode = _lpara2;
@@ -63269,7 +63510,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63269
63510
 
63270
63511
  hoEditorFactory.docTree.insertNodeAfterPath(path, node);
63271
63512
 
63272
- if (node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C) {
63513
+ if (node instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_14__/* .ParagraphNode */ .C) {
63273
63514
  node.refreshDrootNodes();
63274
63515
  }
63275
63516
 
@@ -63284,22 +63525,22 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63284
63525
 
63285
63526
  endNode = this._nodes[this._nodes.length - 1];
63286
63527
 
63287
- if (endNode instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__/* .TableNode */ .Fh) {
63528
+ if (endNode instanceof _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_15__/* .TableNode */ .Fh) {
63288
63529
  endNode = this._nodes[this._nodes.length - 1].nextSibling();
63289
63530
  }
63290
63531
  }
63291
63532
 
63292
63533
  var endPath = hoEditorFactory.docTree.getNodeLastPath(endNode);
63293
- var changeEvent = new _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__/* .DocAction.daInsert */ .gk.daInsert, curRange.startPath, endPath);
63534
+ 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);
63294
63535
  hoEditorFactory.docTree.change(changeEvent);
63295
63536
 
63296
- if (((_startPosition$node = startPosition.node) === null || _startPosition$node === void 0 ? void 0 : _startPosition$node.parentNode) instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__/* .TextInputFieldNode */ .re) {
63537
+ 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) {
63297
63538
  var _startPosition$node2;
63298
63539
 
63299
63540
  (_startPosition$node2 = startPosition.node) === null || _startPosition$node2 === void 0 ? void 0 : _startPosition$node2.parentNode.update();
63300
63541
  var ppNode = startPosition.node.parentNode.parentNode;
63301
63542
 
63302
- if (ppNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_19__/* .CellNode */ .D && ppNode.drawCell.drawPageCells.length > 1) {
63543
+ if (ppNode instanceof _dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_21__/* .CellNode */ .D && ppNode.drawCell.drawPageCells.length > 1) {
63303
63544
  ppNode.drawCell.needUpdate = true;
63304
63545
  ppNode.table.update();
63305
63546
  }
@@ -63308,7 +63549,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63308
63549
  this._tmp.start = curRange.startPath;
63309
63550
  this._tmp.end = endPath;
63310
63551
  hoEditorFactory.drawTree.moveCaretToPath(endPath);
63311
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63552
+ hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_9__/* .DomRange */ .a(this._hoEditorFactoryID, endPath, endPath); // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
63312
63553
  }
63313
63554
  }, {
63314
63555
  key: "isEmpty",
@@ -198762,7 +199003,7 @@ var es_function_name = __webpack_require__(68309);
198762
199003
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
198763
199004
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
198764
199005
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
198765
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=3651fabe&
199006
+ ;// 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&
198766
199007
  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()}
198767
199008
  var staticRenderFns = []
198768
199009
 
@@ -200366,11 +200607,12 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200366
200607
  drawNode.children.splice(d, 1);
200367
200608
  }
200368
200609
  }
200369
- }
200370
200610
 
200371
- hoeditorfactory.docTree.curOnDragNode = null;
200372
- HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex); //if (drawLine instanceof DrawLine) drawLine.updateCache();
200611
+ hoeditorfactory.docTree.curOnDragNode = null;
200612
+ HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawPageTree.updateDrawPage(dPage.pageIndex);
200613
+ } //if (drawLine instanceof DrawLine) drawLine.updateCache();
200373
200614
  //drawNode.stage.update();
200615
+
200374
200616
  }
200375
200617
 
200376
200618
  var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
@@ -206744,7 +206986,7 @@ var SignNode = __webpack_require__(34450);
206744
206986
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206745
206987
  var ParagraphNode = __webpack_require__(14208);
206746
206988
  ;// CONCATENATED MODULE: ./src/components/version.ts
206747
- /* harmony default export */ var version = ('2.0.57');
206989
+ /* harmony default export */ var version = ('2.0.58');
206748
206990
  ;// 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&
206749
206991
  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)}
206750
206992
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -214409,6 +214651,8 @@ var StagePosition = __webpack_require__(57674);
214409
214651
 
214410
214652
 
214411
214653
 
214654
+
214655
+
214412
214656
 
214413
214657
 
214414
214658
 
@@ -219205,7 +219449,7 @@ var VueController = /*#__PURE__*/function () {
219205
219449
  var _loop2 = function _loop2(i) {
219206
219450
  var node = nodes[i];
219207
219451
 
219208
- if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && !node.canModifyContent && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
219452
+ 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) {
219209
219453
  return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
219210
219454
  }).length === 0) {
219211
219455
  if (arr.filter(function (v) {
@@ -219667,6 +219911,17 @@ var VueController = /*#__PURE__*/function () {
219667
219911
  var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
219668
219912
  return [caret.pageIndex + 1, caret.stageX * 0.75, y];
219669
219913
  }
219914
+ /**
219915
+ * 获取光标位置
219916
+ * returns [pageIndex, x, y]
219917
+ */
219918
+ // public getSignNodePosition(): [number, number, number] {
219919
+ // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
219920
+ // const caret = hoEditorFactory.drawTree.caret;
219921
+ // const y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
219922
+ // return [caret.pageIndex + 1, caret.stageX * 0.75, y];
219923
+ // }
219924
+
219670
219925
  /**
219671
219926
  * 文档生成并返回base64格式pdf文件 患者签名使用
219672
219927
  */
@@ -219749,7 +220004,7 @@ var VueController = /*#__PURE__*/function () {
219749
220004
 
219750
220005
  }, {
219751
220006
  key: "insertWriteSign",
219752
- value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition) {
220007
+ value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition, callback) {
219753
220008
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219754
220009
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219755
220010
  var startPath = curDomRange.normalize().startPath;
@@ -219780,7 +220035,11 @@ var VueController = /*#__PURE__*/function () {
219780
220035
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219781
220036
 
219782
220037
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219783
- hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition);
220038
+ Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)]).then(function () {
220039
+ setTimeout(function () {
220040
+ callback && callback();
220041
+ }, 0);
220042
+ });
219784
220043
  }
219785
220044
  }, 0);
219786
220045
  }
@@ -219788,7 +220047,11 @@ var VueController = /*#__PURE__*/function () {
219788
220047
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219789
220048
 
219790
220049
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219791
- hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition);
220050
+ Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, "患者签名", "", "", "", imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
220051
+ setTimeout(function () {
220052
+ callback && callback();
220053
+ }, 0);
220054
+ });
219792
220055
  }
219793
220056
  }
219794
220057
  }
@@ -220392,6 +220655,67 @@ var VueController = /*#__PURE__*/function () {
220392
220655
  }
220393
220656
  }
220394
220657
  }
220658
+ }, {
220659
+ key: "showElementsEditRecord",
220660
+ value: function showElementsEditRecord(objects) {
220661
+ var comments = [];
220662
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220663
+
220664
+ for (var i = 0; i < objects.length; i++) {
220665
+ var object = objects[i];
220666
+ var name = object.name;
220667
+ var oldValue = object.oldValue;
220668
+ var elements = this.getNodesByName("main", true, name);
220669
+
220670
+ for (var j = 0; j < elements.length; j++) {
220671
+ var element = elements[j];
220672
+
220673
+ if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220674
+ var commentID = hoEditorFactory.gernerateCode.generateID("C");
220675
+ var comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, oldValue, element.EndMarkNode);
220676
+ comment.lineHeight = comment.lineHeight - 20;
220677
+ comments.push(comment);
220678
+ }
220679
+ }
220680
+ }
220681
+
220682
+ comments.forEach(function (comment, index) {
220683
+ index++;
220684
+ var endDrawNode = comment.eNode.drawNodes[0];
220685
+ var drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode);
220686
+ var dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
220687
+
220688
+ var stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
220689
+
220690
+ var localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
220691
+
220692
+ var spX = dline.parent instanceof DrawPageCell/* DrawPageCell */.k ? localPos.x : endDrawNode.x;
220693
+ var spY = localPos.y;
220694
+ drawArea.removeComment(comment);
220695
+ var path = comment.eNode.getNodePath();
220696
+
220697
+ if (index === 1) {
220698
+ drawArea.drawEditRecords(comment, spX, spY, spY);
220699
+ }
220700
+
220701
+ if (index >= 2) {
220702
+ drawArea.repaintRecored(comments, comment, path, spX, spY);
220703
+ }
220704
+ });
220705
+ }
220706
+ }, {
220707
+ key: "updateImageSrc",
220708
+ value: function updateImageSrc(node, src) {
220709
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220710
+ var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
220711
+ var ePath = node.getNodePath();
220712
+ var changeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, sPath, ePath);
220713
+ changeEvent.oldEndPath = ePath;
220714
+ changeEvent.afterChangePath = ePath;
220715
+ changeEvent.oldDrawLines = new SelectRange/* SelectRange */.E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
220716
+ node.imageDataBase64String = src;
220717
+ hoEditorFactory.docTree.change(changeEvent);
220718
+ }
220395
220719
  }]);
220396
220720
 
220397
220721
  return VueController;
@@ -222651,6 +222975,11 @@ var PrintController = /*#__PURE__*/function () {
222651
222975
  format = _this3._a4Size[orientation];
222652
222976
  }
222653
222977
 
222978
+ if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
222979
+ format = [793, 1122];
222980
+ orientation = 'p';
222981
+ }
222982
+
222654
222983
  var options = {
222655
222984
  orientation: orientation,
222656
222985
  unit: "px",
@@ -222761,6 +223090,11 @@ var PrintController = /*#__PURE__*/function () {
222761
223090
  format = _this4._a4Size[orientation];
222762
223091
  }
222763
223092
 
223093
+ if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223094
+ format = [793, 1122];
223095
+ orientation = 'p';
223096
+ }
223097
+
222764
223098
  var options = {
222765
223099
  orientation: orientation,
222766
223100
  unit: "px",
@@ -222903,6 +223237,11 @@ var PrintController = /*#__PURE__*/function () {
222903
223237
  format = _this5._a4Size[orientation];
222904
223238
  }
222905
223239
 
223240
+ if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223241
+ format = [793, 1122];
223242
+ orientation = 'p';
223243
+ }
223244
+
222906
223245
  options = {
222907
223246
  orientation: orientation,
222908
223247
  unit: "px",
@@ -222912,7 +223251,7 @@ var PrintController = /*#__PURE__*/function () {
222912
223251
  PDF = new jspdf/* default */.ZP(options);
222913
223252
  PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this5._hoEditorFactoryID, PDF, undefined, undefined, resolve, positionY, format);
222914
223253
 
222915
- case 6:
223254
+ case 7:
222916
223255
  case "end":
222917
223256
  return _context4.stop();
222918
223257
  }
@@ -223102,6 +223441,8 @@ var PrintController = /*#__PURE__*/function () {
223102
223441
  } else {
223103
223442
  hoEditorFactory.loadImageCallback = toPrint;
223104
223443
  }
223444
+
223445
+ mergeList = [];
223105
223446
  });
223106
223447
  } else {
223107
223448
  createSvg();
@@ -224692,6 +225033,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
224692
225033
  this._isFixedPrintToA4 = value;
224693
225034
  }
224694
225035
  }
225036
+ }, {
225037
+ key: "isFixedPrintToA4T",
225038
+ get: function get() {
225039
+ return this._isFixedPrintToA4T;
225040
+ },
225041
+ set: function set(value) {
225042
+ if (this._isFixedPrintToA4T !== value) {
225043
+ this._isFixedPrintToA4T = value;
225044
+ }
225045
+ }
224695
225046
  }, {
224696
225047
  key: "isUseImagePrint",
224697
225048
  get: function get() {
@@ -225078,9 +225429,9 @@ var HoFooter_component = normalizeComponent(
225078
225429
  )
225079
225430
 
225080
225431
  /* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
225081
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=2efd7672&
225082
- var ControlModalvue_type_template_id_2efd7672_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
225083
- var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
225432
+ ;// 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&
225433
+ 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)}
225434
+ var ControlModalvue_type_template_id_35544190_staticRenderFns = []
225084
225435
 
225085
225436
 
225086
225437
  ;// 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&
@@ -228366,9 +228717,9 @@ var Delimiter_component = normalizeComponent(
228366
228717
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
228367
228718
 
228368
228719
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
228369
- ;// 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=0d96e4f0&
228370
- var Signvue_type_template_id_0d96e4f0_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)])}
228371
- var Signvue_type_template_id_0d96e4f0_staticRenderFns = []
228720
+ ;// 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&
228721
+ 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)])}
228722
+ var Signvue_type_template_id_6c042af0_staticRenderFns = []
228372
228723
 
228373
228724
 
228374
228725
  ;// 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&
@@ -228515,8 +228866,8 @@ Sign = __decorate([vue_class_component_esm({
228515
228866
 
228516
228867
  var Sign_component = normalizeComponent(
228517
228868
  sign_Signvue_type_script_lang_ts_,
228518
- Signvue_type_template_id_0d96e4f0_render,
228519
- Signvue_type_template_id_0d96e4f0_staticRenderFns,
228869
+ Signvue_type_template_id_6c042af0_render,
228870
+ Signvue_type_template_id_6c042af0_staticRenderFns,
228520
228871
  false,
228521
228872
  null,
228522
228873
  null,
@@ -228891,9 +229242,339 @@ var UploadImageDialog_component = normalizeComponent(
228891
229242
  )
228892
229243
 
228893
229244
  /* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
229245
+ ;// 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&
229246
+ 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)])}
229247
+ var CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns = []
229248
+
229249
+
229250
+ ;// 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&
229251
+
229252
+
229253
+
229254
+ //
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
+ /* harmony default export */ var CanvasImageDialogvue_type_script_lang_js_ = ({
229281
+ name: 'canvasImageDialog',
229282
+ props: {
229283
+ hoEditorFactoryId: {
229284
+ type: String,
229285
+ required: true
229286
+ },
229287
+ vueController: {
229288
+ type: Object,
229289
+ required: true
229290
+ }
229291
+ },
229292
+ data: function data() {
229293
+ return {
229294
+ canvasWidth: 500,
229295
+ canvasHeight: 400,
229296
+ animationClassNames: 'control-modal-contents image-modal animation-in',
229297
+ uploadLoading: false,
229298
+ eraserEnabled: false,
229299
+ activeBgColor: '#fff',
229300
+ ifPop: false,
229301
+ lWidth: 2,
229302
+ opacity: 1,
229303
+ strokeColor: '#FF0000',
229304
+ radius: 5,
229305
+ canvasHistory: [],
229306
+ step: -1,
229307
+ canvas: null,
229308
+ textarea: null,
229309
+ canvasArea: null,
229310
+ context: null,
229311
+ painting: false,
229312
+ // 定义一个变量初始化画笔状态
229313
+ startPoint: {
229314
+ x: undefined,
229315
+ y: undefined
229316
+ },
229317
+ // 记录画笔最后一次的位置
229318
+ tool: 1,
229319
+ textAreaStyle: {}
229320
+ };
229321
+ },
229322
+ watch: {
229323
+ tool: function tool() {
229324
+ if (this.tool === 0) {
229325
+ this.canvas.removeEventListener('mousemove', this.move);
229326
+ } else if (this.tool === 1) {
229327
+ this.canvas.addEventListener('mousemove', this.move);
229328
+ }
229329
+ },
229330
+ canvasHistory: function canvasHistory() {}
229331
+ },
229332
+ mounted: function mounted() {
229333
+ var _this = this;
229334
+
229335
+ this.canvas = document.querySelector('#image_canvas');
229336
+ this.canvasArea = document.querySelector('#loon_canvas_editor_box');
229337
+ this.context = this.canvas.getContext('2d');
229338
+ this.listenDrawLine();
229339
+ var updateNode = this.getImageNode();
229340
+ var image = new Image();
229341
+ image.src = updateNode.imageDataBase64String;
229342
+
229343
+ image.onload = function () {
229344
+ _this.canvasWidth = image.naturalWidth;
229345
+ _this.canvasHeight = image.naturalHeight;
229346
+
229347
+ _this.context.clearRect(0, 0, _this.canvasWidth, _this.canvasHeight);
229348
+
229349
+ setTimeout(function () {
229350
+ _this.context.drawImage(image, 0, 0, _this.canvasWidth, _this.canvasHeight);
229351
+
229352
+ _this.canvasDraw();
229353
+ }, 0);
229354
+ };
229355
+ },
229356
+ methods: {
229357
+ getImageNode: function getImageNode() {
229358
+ var value;
229359
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this.hoEditorFactoryId);
229360
+ var curOnDragNode = hoEditorFactory.docTree.curOnDragNode;
229361
+
229362
+ if (curOnDragNode instanceof ImageNode/* ImageNode */.H) {
229363
+ value = curOnDragNode;
229364
+ }
229365
+
229366
+ return value;
229367
+ },
229368
+ listenDrawLine: function listenDrawLine() {
229369
+ this.canvas.addEventListener('mousedown', this.down);
229370
+ this.canvas.addEventListener('mousemove', this.move);
229371
+ this.canvasArea.addEventListener('mouseup', this.up);
229372
+ },
229373
+ clearListenDrawLine: function clearListenDrawLine() {
229374
+ this.canvas.removeEventListener('mousedown', this.down);
229375
+ this.canvas.removeEventListener('mousemove', this.move);
229376
+ this.canvasArea.removeEventListener('mouseup', this.up);
229377
+ },
229378
+ changeTool: function changeTool(tool) {
229379
+ this.tool = tool;
229380
+ },
229381
+ down: function down(e) {
229382
+ var _this2 = this;
229383
+
229384
+ this.painting = true;
229385
+ this.startPoint = {
229386
+ x: e.offsetX,
229387
+ y: e.offsetY
229388
+ };
229389
+
229390
+ if (this.tool === 0) {
229391
+ this.textAreaStyle = {
229392
+ width: '100px',
229393
+ height: '27px',
229394
+ left: e.offsetX + 'px',
229395
+ top: e.offsetY + 'px'
229396
+ };
229397
+ setTimeout(function () {
229398
+ if (_this2.$refs.textCanvas) {
229399
+ _this2.$refs.textCanvas.focus();
229400
+ }
229401
+ }, 0);
229402
+ }
229403
+
229404
+ e.stopPropagation();
229405
+ e.preventDefault();
229406
+ },
229407
+ move: function move(e) {
229408
+ switch (this.tool) {
229409
+ case 0:
229410
+ {
229411
+ this.drawText(e);
229412
+ break;
229413
+ }
229414
+
229415
+ case 1:
229416
+ {
229417
+ this.drawLine(e);
229418
+ break;
229419
+ }
229420
+ }
229421
+ },
229422
+ up: function up(e) {
229423
+ if (this.tool === 0) {
229424
+ this.canvas.removeEventListener('mousemove', this.move);
229425
+ }
229426
+
229427
+ this.painting = false;
229428
+
229429
+ if (this.tool === 1) {
229430
+ this.canvasDraw();
229431
+ }
229432
+
229433
+ e.stopPropagation();
229434
+ e.preventDefault();
229435
+ },
229436
+ changeText: function changeText(e) {
229437
+ if (e.offsetX - this.startPoint.x > 0) {
229438
+ this.textAreaStyle.width = e.offsetX - this.startPoint.x + 'px';
229439
+ } else {
229440
+ this.textAreaStyle.width = -(e.offsetX - this.startPoint.x) + 'px';
229441
+ this.textAreaStyle.left = e.offsetX + 'px';
229442
+ }
229443
+
229444
+ if (e.offsetY - this.startPoint.y > 0) {
229445
+ this.textAreaStyle.height = e.offsetY - this.startPoint.y + 'px';
229446
+ } else {
229447
+ this.textAreaStyle.height = -(e.offsetY - this.startPoint.y) + 'px';
229448
+ this.textAreaStyle.top = e.offsetY + 'px';
229449
+ }
229450
+ },
229451
+ drawText: function drawText() {
229452
+ if (this.$refs.textCanvas && this.$refs.textCanvas.value) {
229453
+ this.context.font = '16px 宋体';
229454
+ this.context.fillStyle = '#F00';
229455
+ this.context.fillText(this.$refs.textCanvas.value, this.textAreaStyle.left.split('px')[0], Number(this.textAreaStyle.top.split('px')[0]) + 16);
229456
+ this.canvasDraw();
229457
+ this.$refs.textCanvas.value = '';
229458
+ this.textAreaStyle = {};
229459
+ }
229460
+ },
229461
+ drawLine: function drawLine(e) {
229462
+ if (!this.painting) return;
229463
+ this.context.beginPath();
229464
+ this.context.lineWidth = this.lWidth;
229465
+ this.context.strokeStyle = this.strokeColor; // 设置线条末端样式。
229466
+
229467
+ this.context.lineCap = 'round'; // 设定线条与线条间接合处的样式
229468
+
229469
+ this.context.lineJoin = 'round';
229470
+ this.context.moveTo(this.startPoint.x, this.startPoint.y);
229471
+ this.context.lineTo(e.offsetX, e.offsetY);
229472
+ this.context.stroke();
229473
+ this.context.closePath();
229474
+ this.startPoint = {
229475
+ x: e.offsetX,
229476
+ y: e.offsetY
229477
+ };
229478
+ e.stopPropagation();
229479
+ e.preventDefault();
229480
+ },
229481
+ // 绘制方法
229482
+ canvasDraw: function canvasDraw() {
229483
+ this.step++;
229484
+
229485
+ if (this.step < this.canvasHistory.length) {
229486
+ this.canvasHistory.length = this.step; // 截断数组
229487
+ }
229488
+
229489
+ var quality = 1;
229490
+ var base64 = this.canvas.toDataURL('image/jpeg', quality); //压缩语句
229491
+ // 如想确保图片压缩到自己想要的尺寸,如要求在100kb以下,请加以下语句,quality初始值根据情况自定
229492
+
229493
+ while (base64.length / 1024 > 100) {
229494
+ quality -= 0.01;
229495
+ base64 = this.canvas.toDataURL('image/jpeg', quality);
229496
+ } // 添加新的绘制到历史记录
229497
+
229498
+
229499
+ this.canvasHistory.push(this.canvas.toDataURL());
229500
+ },
229501
+ // 撤销方法
229502
+ canvasUndo: function canvasUndo() {
229503
+ var _this3 = this;
229504
+
229505
+ if (this.step > 0) {
229506
+ this.step--;
229507
+ var canvasPic = new Image();
229508
+ canvasPic.src = this.canvasHistory[this.step];
229509
+ this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
229510
+
229511
+ canvasPic.onload = function () {
229512
+ _this3.context.drawImage(canvasPic, 0, 0);
229513
+ };
229514
+ }
229515
+ },
229516
+ // 恢复方法
229517
+ canvasRedo: function canvasRedo() {
229518
+ var _this4 = this;
229519
+
229520
+ if (this.step < this.canvasHistory.length - 1) {
229521
+ this.step++;
229522
+ var canvasPic = new Image();
229523
+ canvasPic.src = this.canvasHistory[this.step];
229524
+ this.context.clearRect(0, 0, this.canvasWidth, this.canvasHeight);
229525
+
229526
+ canvasPic.onload = function () {
229527
+ _this4.context.drawImage(canvasPic, 0, 0);
229528
+ };
229529
+ }
229530
+ },
229531
+ handleClose: function handleClose() {
229532
+ this.clearListenDrawLine();
229533
+ this.$emit('closed');
229534
+ },
229535
+ sure: function sure() {
229536
+ var updateNode = this.getImageNode();
229537
+ var src = this.canvasHistory[this.canvasHistory.length - 1];
229538
+
229539
+ if (updateNode && src) {
229540
+ this.vueController.updateImageSrc(updateNode, src);
229541
+ this.handleClose();
229542
+ }
229543
+ }
229544
+ }
229545
+ });
229546
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
229547
+ /* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
229548
+ ;// 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&
229549
+ // extracted by mini-css-extract-plugin
229550
+
229551
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=6832ea7e&lang=scss&scoped=true&
229552
+
229553
+ ;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
229554
+
229555
+
229556
+
229557
+ ;
229558
+
229559
+
229560
+ /* normalize component */
229561
+
229562
+ var CanvasImageDialog_component = normalizeComponent(
229563
+ upload_CanvasImageDialogvue_type_script_lang_js_,
229564
+ CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_render,
229565
+ CanvasImageDialogvue_type_template_id_6832ea7e_scoped_true_staticRenderFns,
229566
+ false,
229567
+ null,
229568
+ "6832ea7e",
229569
+ null
229570
+
229571
+ )
229572
+
229573
+ /* harmony default export */ var CanvasImageDialog = (CanvasImageDialog_component.exports);
228894
229574
  ;// CONCATENATED MODULE: ./src/components/controls/upload/index.ts
228895
229575
 
228896
- /* harmony default export */ var upload = (upload_UploadImageDialog);
229576
+
229577
+
228897
229578
  ;// 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&
228898
229579
  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)])}
228899
229580
  var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
@@ -230678,7 +231359,8 @@ ControlModal = __decorate([vue_class_component_esm({
230678
231359
  CommentDialog: commentDialog,
230679
231360
  PageInfoes: pageInfoes,
230680
231361
  Delimiter: delimiter,
230681
- UploadImageDialog: upload
231362
+ UploadImageDialog: upload_UploadImageDialog,
231363
+ CanvasImageDialog: CanvasImageDialog
230682
231364
  }
230683
231365
  })], ControlModal);
230684
231366
  /* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
@@ -230694,8 +231376,8 @@ ControlModal = __decorate([vue_class_component_esm({
230694
231376
  ;
230695
231377
  var ControlModal_component = normalizeComponent(
230696
231378
  controls_ControlModalvue_type_script_lang_ts_,
230697
- ControlModalvue_type_template_id_2efd7672_render,
230698
- ControlModalvue_type_template_id_2efd7672_staticRenderFns,
231379
+ ControlModalvue_type_template_id_35544190_render,
231380
+ ControlModalvue_type_template_id_35544190_staticRenderFns,
230699
231381
  false,
230700
231382
  null,
230701
231383
  null,
@@ -231384,7 +232066,7 @@ var ControlMixin = /*#__PURE__*/function (_Vue) {
231384
232066
  this.rightType = node.controlStyle;
231385
232067
  this.dataSource = node.bandDataSource;
231386
232068
  } else if (node instanceof ImageNode/* ImageNode */.H) {
231387
- this.rightType = "img";
232069
+ this.rightType = "edit-image";
231388
232070
  } else if (node instanceof LabelNode/* LabelNode */.P) {
231389
232071
  this.rightType = "label";
231390
232072
  } else if (node instanceof SignNode/* SignNode */.N) {
@@ -232014,6 +232696,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232014
232696
  var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
232015
232697
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
232016
232698
  hoEditorFactory && (hoEditorFactory.isFixedPrintToA4 = this.isFixedPrintToA4);
232699
+ }
232700
+ }, {
232701
+ key: "isFixedPrintToA4TChange",
232702
+ value: function isFixedPrintToA4TChange() {
232703
+ var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
232704
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
232705
+ hoEditorFactory && (hoEditorFactory.isFixedPrintToA4T = this.isFixedPrintToA4T);
232017
232706
  } // 监听默认打印纸张设置变化
232018
232707
 
232019
232708
  }, {
@@ -232097,6 +232786,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232097
232786
  }
232098
232787
 
232099
232788
  hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
232789
+ hoEditor.isFixedPrintToA4T = _this3.isFixedPrintToA4T;
232100
232790
  hoEditor.isUseImagePrint = _this3.isUseImagePrint;
232101
232791
  hoEditor.isUseForm = _this3.isUseForm;
232102
232792
  hoEditor.printBlack = _this3.printBlack;
@@ -232444,6 +233134,10 @@ __decorate([Prop({
232444
233134
  default: false
232445
233135
  })], HoDocs.prototype, "isFixedPrintToA4", void 0);
232446
233136
 
233137
+ __decorate([Prop({
233138
+ default: false
233139
+ })], HoDocs.prototype, "isFixedPrintToA4T", void 0);
233140
+
232447
233141
  __decorate([Prop({
232448
233142
  default: true
232449
233143
  })], HoDocs.prototype, "isUseImagePrint", void 0);
@@ -232488,6 +233182,10 @@ __decorate([Watch("isFixedPrintToA4", {
232488
233182
  deep: true
232489
233183
  })], HoDocs.prototype, "isFixedPrintToA4Change", null);
232490
233184
 
233185
+ __decorate([Watch("isFixedPrintToA4T", {
233186
+ deep: true
233187
+ })], HoDocs.prototype, "isFixedPrintToA4TChange", null);
233188
+
232491
233189
  __decorate([Watch("isUseImagePrint", {
232492
233190
  deep: true
232493
233191
  })], HoDocs.prototype, "isUseImagePrintChange", null);
@@ -236638,9 +237336,9 @@ var ToolTablevue_type_template_id_194f516e_render = function () {var _vm=this;va
236638
237336
  var ToolTablevue_type_template_id_194f516e_staticRenderFns = []
236639
237337
 
236640
237338
 
236641
- ;// 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=2fd610cb&
236642
- 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)}
236643
- var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
237339
+ ;// 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&
237340
+ 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)}
237341
+ var HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns = []
236644
237342
 
236645
237343
 
236646
237344
  ;// 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&
@@ -237044,8 +237742,8 @@ var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
237044
237742
 
237045
237743
  var HoTableFeatures_component = normalizeComponent(
237046
237744
  insert_HoTableFeaturesvue_type_script_lang_js_,
237047
- HoTableFeaturesvue_type_template_id_2fd610cb_render,
237048
- HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns,
237745
+ HoTableFeaturesvue_type_template_id_02d0c560_render,
237746
+ HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns,
237049
237747
  false,
237050
237748
  null,
237051
237749
  null,
@@ -238125,7 +238823,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238125
238823
  _this$rightNode13,
238126
238824
  _this$rightNode14,
238127
238825
  _this$rightNode15,
238128
- _this$rightNode16;
238826
+ _this$rightNode16,
238827
+ _this$rightNode17;
238129
238828
 
238130
238829
  var h = arguments[0];
238131
238830
  return h("div", {
@@ -238223,7 +238922,18 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238223
238922
  return _this4.toUpdateNodes("qrcode", event);
238224
238923
  }
238225
238924
  }
238226
- }, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), (((_this$rightNode11 = this.rightNode) === null || _this$rightNode11 === void 0 ? void 0 : _this$rightNode11.type) === "text" || this.emrDebug) && h("ul", {
238925
+ }, ["\u4E8C\u7EF4\u7801\u5C5E\u6027"])]), ((_this$rightNode11 = this.rightNode) === null || _this$rightNode11 === void 0 ? void 0 : _this$rightNode11.type) === "edit-image" && h("ul", {
238926
+ "class": "mouse-right-menu"
238927
+ }, [h("li", {
238928
+ "class": "mouse-menu-item mouse-right-menu-line"
238929
+ }), h("li", {
238930
+ "class": "mouse-menu-item",
238931
+ "on": {
238932
+ "click": function click() {
238933
+ return _this4.toUpdateNodes("edit-image", event);
238934
+ }
238935
+ }
238936
+ }, ["\u7F16\u8F91\u56FE\u7247"])]), (((_this$rightNode12 = this.rightNode) === null || _this$rightNode12 === void 0 ? void 0 : _this$rightNode12.type) === "text" || this.emrDebug) && h("ul", {
238227
238937
  "class": "mouse-right-menu"
238228
238938
  }, [h("li", {
238229
238939
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238234,7 +238944,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238234
238944
  return _this4.toUpdateNodes("text", event);
238235
238945
  }
238236
238946
  }
238237
- }, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$rightNode12 = this.rightNode) === null || _this$rightNode12 === void 0 ? void 0 : _this$rightNode12.rightTypeIsTable) && this.defaultTable && ((_this$rightNode13 = this.rightNode) === null || _this$rightNode13 === void 0 ? void 0 : _this$rightNode13.paintStatus) === 0 || this.emrDebug) && h("ul", {
238947
+ }, ["\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", {
238238
238948
  "class": "mouse-right-menu"
238239
238949
  }, [h("li", {
238240
238950
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238266,7 +238976,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238266
238976
  return _this4.toUpdateNodes("table-cell", event);
238267
238977
  }
238268
238978
  }
238269
- }, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode14 = this.rightNode) === null || _this$rightNode14 === void 0 ? void 0 : _this$rightNode14.rightTypeIsTable) && this.defaultTable && h("ul", {
238979
+ }, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.rightTypeIsTable) && this.defaultTable && h("ul", {
238270
238980
  "class": "mouse-right-menu"
238271
238981
  }, [h("li", {
238272
238982
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238280,7 +238990,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238280
238990
  table: this.defaultTable,
238281
238991
  tableProperty: this.rightNode.tableProperty
238282
238992
  })
238283
- })]), ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.canShowComment) && h("ul", {
238993
+ })]), ((_this$rightNode16 = this.rightNode) === null || _this$rightNode16 === void 0 ? void 0 : _this$rightNode16.canShowComment) && h("ul", {
238284
238994
  "class": "mouse-right-menu"
238285
238995
  }, [h("li", {
238286
238996
  "class": "mouse-menu-item",
@@ -238289,7 +238999,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238289
238999
  return _this4.hideComments();
238290
239000
  }
238291
239001
  }
238292
- }, [(_this$rightNode16 = this.rightNode) !== null && _this$rightNode16 !== void 0 && _this$rightNode16.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
239002
+ }, [(_this$rightNode17 = this.rightNode) !== null && _this$rightNode17 !== void 0 && _this$rightNode17.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
238293
239003
  "class": "mouse-right-menu"
238294
239004
  }, [h("li", {
238295
239005
  "class": "mouse-menu-item"
@@ -238959,8 +239669,8 @@ var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item);
238959
239669
  var lib_form = __webpack_require__(54223);
238960
239670
  var form_default = /*#__PURE__*/__webpack_require__.n(lib_form);
238961
239671
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/upload.js
238962
- var lib_upload = __webpack_require__(26906);
238963
- var upload_default = /*#__PURE__*/__webpack_require__.n(lib_upload);
239672
+ var upload = __webpack_require__(26906);
239673
+ var upload_default = /*#__PURE__*/__webpack_require__.n(upload);
238964
239674
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/dropdown-item.js
238965
239675
  var dropdown_item = __webpack_require__(42173);
238966
239676
  var dropdown_item_default = /*#__PURE__*/__webpack_require__.n(dropdown_item);