hoeditor-web 2.0.55 → 2.0.58

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -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,138 +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 {
11813
+ if (height <= 560 && !hoEditorFactory.isFixedPrintToA4T) {
11814
+ PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11815
+ }
11816
+
11803
11817
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11804
- name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
11818
+ name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
11805
11819
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
11806
11820
  }
11807
11821
 
11808
- case 87:
11809
- reslove && reslove("printend");
11810
-
11811
11822
  case 88:
11823
+ reslove && reslove('printend');
11824
+
11825
+ case 89:
11812
11826
  case "end":
11813
11827
  return _context3.stop();
11814
11828
  }
11815
11829
  }
11816
- }, _callee2, this, [[15, 60, 63, 66]]);
11830
+ }, _callee2, this, [[15, 61, 64, 67]]);
11817
11831
  }));
11818
11832
 
11819
11833
  function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
@@ -11840,9 +11854,9 @@ var Print = /*#__PURE__*/function () {
11840
11854
  hoEditorFactory.printStatus.DrawPrintRange().preparePrint();
11841
11855
  }
11842
11856
 
11843
- orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? "l" : "p";
11844
- svgBox = document.createElement("div");
11845
- 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';
11846
11860
  last = -1;
11847
11861
  _iterator2 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11848
11862
  _context4.prev = 9;
@@ -11863,9 +11877,9 @@ var Print = /*#__PURE__*/function () {
11863
11877
  }
11864
11878
 
11865
11879
  _context4.next = 16;
11866
- return message_box_default().confirm("请进行翻页", "打印提示", {
11867
- confirmButtonText: "确定",
11868
- type: "info"
11880
+ return message_box_default().confirm('请进行翻页', '打印提示', {
11881
+ confirmButtonText: '确定',
11882
+ type: 'info'
11869
11883
  });
11870
11884
 
11871
11885
  case 16:
@@ -11908,7 +11922,7 @@ var Print = /*#__PURE__*/function () {
11908
11922
  case 30:
11909
11923
  _ctx4 = new canvas2svg({
11910
11924
  width: hoEditorFactory.pageProperty.widthPixes,
11911
- height: orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
11925
+ height: orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes,
11912
11926
  printBlack: hoEditorFactory.printBlack
11913
11927
  });
11914
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));
@@ -11949,7 +11963,7 @@ var Print = /*#__PURE__*/function () {
11949
11963
  }
11950
11964
 
11951
11965
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
11952
- reslove && reslove("printend");
11966
+ reslove && reslove('printend');
11953
11967
 
11954
11968
  case 50:
11955
11969
  case "end":
@@ -11978,11 +11992,11 @@ var Print = /*#__PURE__*/function () {
11978
11992
  hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(hoEditorFactoryID);
11979
11993
  hoEditorFactory.printStatus.startIndex = 1;
11980
11994
  hoEditorFactory.printStatus.generatePageIndexs(hoEditorFactory.printStatus.printAppoint);
11981
- svgBox = document.createElement("div");
11982
- svgBox.className = "ho-print-svg-box";
11983
- 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';
11984
11998
  width = hoEditorFactory.pageProperty.widthPixes;
11985
- height = orientation === "l" ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11999
+ height = orientation === 'l' ? hoEditorFactory.pageProperty.heightPixes - 1 : hoEditorFactory.pageProperty.heightPixes;
11986
12000
  last = -1;
11987
12001
  _iterator3 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
11988
12002
  _context5.prev = 10;
@@ -12003,9 +12017,9 @@ var Print = /*#__PURE__*/function () {
12003
12017
  }
12004
12018
 
12005
12019
  _context5.next = 17;
12006
- return message_box_default().confirm("请进行翻页", "打印提示", {
12007
- confirmButtonText: "确定",
12008
- type: "info"
12020
+ return message_box_default().confirm('请进行翻页', '打印提示', {
12021
+ confirmButtonText: '确定',
12022
+ type: 'info'
12009
12023
  });
12010
12024
 
12011
12025
  case 17:
@@ -12072,7 +12086,7 @@ var Print = /*#__PURE__*/function () {
12072
12086
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
12073
12087
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
12074
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 ");
12075
- reslove && reslove("printend");
12089
+ reslove && reslove('printend');
12076
12090
 
12077
12091
  case 44:
12078
12092
  case "end":
@@ -12105,8 +12119,8 @@ var Print = /*#__PURE__*/function () {
12105
12119
  p: [793, 1122],
12106
12120
  l: [1122, 793]
12107
12121
  };
12108
- svgBox = document.createElement("div");
12109
- svgBox.className = "ho-print-svg-box";
12122
+ svgBox = document.createElement('div');
12123
+ svgBox.className = 'ho-print-svg-box';
12110
12124
  last = -1;
12111
12125
  _iterator4 = (0,createForOfIteratorHelper/* default */.Z)(hoEditorFactory.printStatus.printProcess());
12112
12126
  _context6.prev = 8;
@@ -12115,7 +12129,7 @@ var Print = /*#__PURE__*/function () {
12115
12129
 
12116
12130
  case 10:
12117
12131
  if ((_step4 = _iterator4.n()).done) {
12118
- _context6.next = 47;
12132
+ _context6.next = 48;
12119
12133
  break;
12120
12134
  }
12121
12135
 
@@ -12127,13 +12141,13 @@ var Print = /*#__PURE__*/function () {
12127
12141
  }
12128
12142
 
12129
12143
  _context6.next = 15;
12130
- return message_box_default().confirm("请进行翻页", "打印提示", {
12131
- confirmButtonText: "确定",
12132
- type: "info"
12144
+ return message_box_default().confirm('请进行翻页', '打印提示', {
12145
+ confirmButtonText: '确定',
12146
+ type: 'info'
12133
12147
  });
12134
12148
 
12135
12149
  case 15:
12136
- return _context6.abrupt("continue", 45);
12150
+ return _context6.abrupt("continue", 46);
12137
12151
 
12138
12152
  case 16:
12139
12153
  last = index;
@@ -12154,12 +12168,12 @@ var Print = /*#__PURE__*/function () {
12154
12168
  break;
12155
12169
  }
12156
12170
 
12157
- return _context6.abrupt("break", 47);
12171
+ return _context6.abrupt("break", 48);
12158
12172
 
12159
12173
  case 22:
12160
12174
  widthPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.widthMm, true);
12161
12175
  heightPixes = hoEditorFactory.unitConvert.mmConversionPx(hoEditorFactory.pageProperty.heightMm, true);
12162
- orientation = widthPixes > heightPixes ? "l" : "p";
12176
+ orientation = widthPixes > heightPixes ? 'l' : 'p';
12163
12177
  formats = [widthPixes, heightPixes];
12164
12178
  format = a4Size[orientation];
12165
12179
  svg2pdfOptions = {
@@ -12168,7 +12182,7 @@ var Print = /*#__PURE__*/function () {
12168
12182
  };
12169
12183
 
12170
12184
  if (hoEditorFactory.isFixedPrintToA4 && format) {
12171
- if (orientation == "l") {
12185
+ if (orientation == 'l') {
12172
12186
  svg2pdfOptions.x = format[0] - widthPixes;
12173
12187
  svg2pdfOptions.y = (format[1] - heightPixes) / 2;
12174
12188
  } else {
@@ -12177,7 +12191,7 @@ var Print = /*#__PURE__*/function () {
12177
12191
  }
12178
12192
 
12179
12193
  if (!hoEditorFactory.isUseImagePrint) {
12180
- _context6.next = 38;
12194
+ _context6.next = 39;
12181
12195
  break;
12182
12196
  }
12183
12197
 
@@ -12188,17 +12202,27 @@ var Print = /*#__PURE__*/function () {
12188
12202
  }
12189
12203
 
12190
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
+
12191
12215
  ctx.posX = svg2pdfOptions.x;
12192
12216
  ctx.posY = svg2pdfOptions.y;
12193
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));
12194
12218
  ctx = null;
12195
- _context6.next = 44;
12219
+ _context6.next = 45;
12196
12220
  break;
12197
12221
 
12198
- case 38:
12222
+ case 39:
12199
12223
  _ctx6 = new canvas2svg({
12200
12224
  width: widthPixes,
12201
- height: orientation === "l" ? heightPixes - 1 : heightPixes,
12225
+ height: orientation === 'l' ? heightPixes - 1 : heightPixes,
12202
12226
  printBlack: hoEditorFactory.printBlack
12203
12227
  });
12204
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));
@@ -12209,37 +12233,37 @@ var Print = /*#__PURE__*/function () {
12209
12233
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage(format, orientation);
12210
12234
  }
12211
12235
 
12212
- _context6.next = 43;
12236
+ _context6.next = 44;
12213
12237
  return svg2pdf((_ctx7 = _ctx6) === null || _ctx7 === void 0 ? void 0 : _ctx7.getSvg(), PDF, svg2pdfOptions);
12214
12238
 
12215
- case 43:
12239
+ case 44:
12216
12240
  _ctx6 = null;
12217
12241
 
12218
- case 44:
12242
+ case 45:
12219
12243
  index > 0 && ((_cpage$drawDomLevel12 = cpage.drawDomLevel) === null || _cpage$drawDomLevel12 === void 0 ? void 0 : _cpage$drawDomLevel12.clearStage());
12220
12244
 
12221
- case 45:
12245
+ case 46:
12222
12246
  _context6.next = 10;
12223
12247
  break;
12224
12248
 
12225
- case 47:
12226
- _context6.next = 52;
12249
+ case 48:
12250
+ _context6.next = 53;
12227
12251
  break;
12228
12252
 
12229
- case 49:
12230
- _context6.prev = 49;
12253
+ case 50:
12254
+ _context6.prev = 50;
12231
12255
  _context6.t0 = _context6["catch"](8);
12232
12256
 
12233
12257
  _iterator4.e(_context6.t0);
12234
12258
 
12235
- case 52:
12236
- _context6.prev = 52;
12259
+ case 53:
12260
+ _context6.prev = 53;
12237
12261
 
12238
12262
  _iterator4.f();
12239
12263
 
12240
- return _context6.finish(52);
12264
+ return _context6.finish(53);
12241
12265
 
12242
- case 55:
12266
+ case 56:
12243
12267
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) {
12244
12268
  hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
12245
12269
  }
@@ -12257,12 +12281,12 @@ var Print = /*#__PURE__*/function () {
12257
12281
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
12258
12282
  reslove();
12259
12283
 
12260
- case 59:
12284
+ case 60:
12261
12285
  case "end":
12262
12286
  return _context6.stop();
12263
12287
  }
12264
12288
  }
12265
- }, _callee5, null, [[8, 49, 52, 55]]);
12289
+ }, _callee5, null, [[8, 50, 53, 56]]);
12266
12290
  }));
12267
12291
 
12268
12292
  function printAllNew(_x15, _x16, _x17, _x18) {
@@ -19689,8 +19713,10 @@ var DomRange = /*#__PURE__*/function () {
19689
19713
  // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19690
19714
  // const isValidPath = hoEditorFactory.docTree.checkPath(value);
19691
19715
  if (value.indexOf("-") >= 0) {
19692
- 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 + ")");
19693
19718
 
19719
+ this.setSamePath(this._startPath);
19694
19720
  return;
19695
19721
  } else {
19696
19722
  this._startPath = value;
@@ -19707,8 +19733,9 @@ var DomRange = /*#__PURE__*/function () {
19707
19733
  // const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
19708
19734
  // const isValidPath = hoEditorFactory.docTree.checkPath(value);
19709
19735
  if (value.indexOf("-") >= 0) {
19710
- 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 + ")");
19711
19737
 
19738
+ this.setSamePath(this._endPath);
19712
19739
  return;
19713
19740
  } else {
19714
19741
  this._endPath = value;
@@ -22413,8 +22440,7 @@ var Comment = /*#__PURE__*/function () {
22413
22440
  key: "whiteList",
22414
22441
  value: function whiteList() {
22415
22442
  return ['id', 'text', 'date', 'lineHeight', //"endPath",
22416
- 'userID', 'userName', //"endMarkNode"
22417
- 'customProperty'];
22443
+ 'userID', 'userName'];
22418
22444
  }
22419
22445
  }]);
22420
22446
 
@@ -24758,8 +24784,13 @@ var BaseNode = /*#__PURE__*/function () {
24758
24784
  var index = parentNodes.indexOf(this);
24759
24785
 
24760
24786
  if (index != -1) {
24761
- if (this.parentNode) //有父节点,使用父节点的删除方法
24762
- 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
+
24763
24794
  return true;
24764
24795
  }
24765
24796
 
@@ -28589,8 +28620,8 @@ var BaseNode = __webpack_require__(50369);
28589
28620
  /*
28590
28621
  * @Author: your name
28591
28622
  * @Date: 2020-11-11 10:02:30
28592
- * @LastEditTime: 2021-09-28 14:10:50
28593
- * @LastEditors: Please set LastEditors
28623
+ * @LastEditTime: 2022-06-23 09:54:03
28624
+ * @LastEditors: liyanan 2441631434@qq.com
28594
28625
  * @Description: In User Settings Edit
28595
28626
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\ImageNode.ts
28596
28627
  */
@@ -28697,6 +28728,12 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
28697
28728
  key: "imageDataBase64String",
28698
28729
  get: function get() {
28699
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
+ }
28700
28737
  }
28701
28738
  /**
28702
28739
  * imageNode 节点删除时 如果 imageDataBase64String是url地址形式 需要保存url列表
@@ -28724,6 +28761,7 @@ var ImageNode = /*#__PURE__*/function (_BaseNode) {
28724
28761
  }, {
28725
28762
  key: "node2DrawNodeRange",
28726
28763
  value: function node2DrawNodeRange(startIndex, endIndex) {
28764
+ this._drawNodes.length = 0;
28727
28765
  var dNode = new DrawImageNode(this._hoEditorFactoryID, this._rootPath, this, 0, this.imageDataBase64String, this.width, this.height //,
28728
28766
  //this.scaleX,
28729
28767
  //this.scaleY
@@ -31179,8 +31217,13 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
31179
31217
  var index = parentNodes.indexOf(this);
31180
31218
 
31181
31219
  if (index != -1) {
31182
- if (this.parentNode) //有父节点,使用父节点的删除方法
31183
- 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
+
31184
31227
  return true;
31185
31228
  }
31186
31229
 
@@ -35757,6 +35800,10 @@ var ColInfos = /*#__PURE__*/function () {
35757
35800
  return this._colWidth;
35758
35801
  },
35759
35802
  set: function set(colWidth) {
35803
+ if (isNaN(colWidth)) {
35804
+ console.warn('当前列宽 === NaN');
35805
+ }
35806
+
35760
35807
  this._colWidth = colWidth;
35761
35808
  }
35762
35809
  }, {
@@ -42515,8 +42562,8 @@ var DrawLine = /*#__PURE__*/function (_DrawContainer) {
42515
42562
  /*
42516
42563
  * @Author: your name
42517
42564
  * @Date: 2021-01-19 10:05:08
42518
- * @LastEditTime: 2021-09-26 22:46:04
42519
- * @LastEditors: Please set LastEditors
42565
+ * @LastEditTime: 2022-06-24 16:54:17
42566
+ * @LastEditors: liyanan 2441631434@qq.com
42520
42567
  * @Description: In User Settings Edit
42521
42568
  * @FilePath: \hoeditor-web\src\editor\draw\DrawResize.ts
42522
42569
  */
@@ -42588,6 +42635,8 @@ var DrawResize = /*#__PURE__*/function () {
42588
42635
 
42589
42636
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_5__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
42590
42637
  hoEditorFactory.docTree.curOnDragNode = this.node;
42638
+ this.dragFlag = true;
42639
+ this.sLocation = new createjs.Point(e.stageX, e.stageY);
42591
42640
  this.drawBorders(this._drawNode.dWidth, this._drawNode.dHeight, true); //const drawLine = hoEditorFactory.drawTree.getDrawLineByDNode(
42592
42641
  //this.drawNode
42593
42642
  //);
@@ -42595,8 +42644,6 @@ var DrawResize = /*#__PURE__*/function () {
42595
42644
  //drawLine.drawItems.splice(index, 1);
42596
42645
  //drawLine.removeChild(this.drawNode);
42597
42646
 
42598
- this.dragFlag = true;
42599
- this.sLocation = new createjs.Point(e.stageX, e.stageY);
42600
42647
  var shapes = this.drawNode.children;
42601
42648
  shapes.forEach(function (value, index) {
42602
42649
  // if (value.name !== this.node.id && value.alpha !== 1) {
@@ -42778,7 +42825,7 @@ var DrawResize = /*#__PURE__*/function () {
42778
42825
  //左上
42779
42826
  this.drawNode.dWidth = this.drawNode.dWidth - changeX;
42780
42827
  this.drawNode.dHeight = this.drawNode.dHeight - changeY;
42781
- this.imageY = this.imageY - changeY;
42828
+ this.imageY = this.imageY + changeY;
42782
42829
  } else if (e.target.name === "centerTop") {
42783
42830
  //向上
42784
42831
  this.drawNode.dHeight = this.drawNode.dHeight - changeY;
@@ -43432,7 +43479,7 @@ var StagePosition = /*#__PURE__*/function () {
43432
43479
  /* harmony export */ "l": function() { return /* binding */ DrawArea; }
43433
43480
  /* harmony export */ });
43434
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);
43435
- /* 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);
43436
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);
43437
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);
43438
43485
  /* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(66992);
@@ -43460,6 +43507,8 @@ var StagePosition = /*#__PURE__*/function () {
43460
43507
  /* harmony import */ var _editor_dom_NodePosition__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(2242);
43461
43508
  /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(41005);
43462
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
+
43463
43512
 
43464
43513
 
43465
43514
 
@@ -43513,7 +43562,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
43513
43562
  // }
43514
43563
 
43515
43564
 
43516
- (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, [{
43517
43566
  key: "endDline",
43518
43567
  get: function get() {
43519
43568
  return this._endDline;
@@ -44351,7 +44400,7 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44351
44400
  var localPos = _this2.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
44352
44401
 
44353
44402
 
44354
- var spX = endDrawNode.x;
44403
+ var spX = dline.parent instanceof _drawNode_DrawPageCell__WEBPACK_IMPORTED_MODULE_19__/* .DrawPageCell */ .k ? localPos.x : endDrawNode.x;
44355
44404
  var spY = localPos.y;
44356
44405
 
44357
44406
  _this2.removeComment(value);
@@ -44582,11 +44631,176 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
44582
44631
  if (child.name === comment.id) {
44583
44632
  child.alpha = 1;
44584
44633
  }
44585
- } //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; // 批注内容
44586
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; //横线
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; //指向线
44587
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);
44588
44683
  hoEditorFactory.drawPageTree.updateDrawPage(this.index);
44589
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
+ }
44590
44804
  }]);
44591
44805
 
44592
44806
  return DrawArea;
@@ -53281,7 +53495,9 @@ var DrawTextNode = /*#__PURE__*/function (_DrawCombineNode) {
53281
53495
  if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
53282
53496
  if (this.node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
53283
53497
  if (this.node.parentNode.inputFieldType === 0) {
53284
- backColor = hoEditorFactory.option.getColorByLevel(10);
53498
+ if (backColor === hoEditorFactory.pageProperty.backColor) {
53499
+ backColor = hoEditorFactory.option.getColorByLevel(10);
53500
+ }
53285
53501
  } else {
53286
53502
  if (this.node.parentNode.keyValue == "") {
53287
53503
  backColor = hoEditorFactory.option.getColorByLevel(120);
@@ -62623,11 +62839,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62623
62839
  }
62624
62840
 
62625
62841
  this._tmp.start = Arange.startPath;
62626
- this._tmp.end = Arange.endPath;
62627
-
62628
- if (s instanceof _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_21__/* .MarkNode */ .j && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf())) {
62629
- return true;
62630
- }
62842
+ this._tmp.end = Arange.endPath; // if (s instanceof MarkNode && s.parentNode == hoEditorFactory.docTree.getParentNode(Arange.endPath) && Arange.endPath != hoEditorFactory.docTree.getNodeFirstPath(s.nextLeaf() as BaseNode)) {
62843
+ // return true;
62844
+ // }
62631
62845
 
62632
62846
  if (s === e) {
62633
62847
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_13__/* .TextNode */ .R) {
@@ -62973,30 +63187,34 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62973
63187
  /* harmony export */ __webpack_require__.d(__webpack_exports__, {
62974
63188
  /* harmony export */ "e": function() { return /* binding */ ParseUndoUnit; }
62975
63189
  /* harmony export */ });
62976
- /* 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);
62977
- /* 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);
62978
- /* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(41539);
62979
- /* 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__);
62980
- /* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(54747);
62981
- /* 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__);
62982
- /* harmony import */ var core_js_modules_es_error_cause_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(21703);
62983
- /* 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__);
62984
- /* harmony import */ var _editor_dom_DocTree__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23375);
62985
- /* harmony import */ var _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(91538);
62986
- /* harmony import */ var _events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34534);
62987
- /* harmony import */ var _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66828);
62988
- /* harmony import */ var _TextNodeSplitUndoUnit__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(58416);
62989
- /* harmony import */ var _UndoService__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(48508);
62990
- /* harmony import */ var _editor_undoRedo_NodesDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(50356);
62991
- /* harmony import */ var _dom_NodePosition__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(2242);
62992
- /* harmony import */ var _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(14208);
62993
- /* harmony import */ var _dom_treeNode_TableNode__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(95883);
62994
- /* harmony import */ var _dom_treeNode_BaseCombineNode__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(8);
62995
- /* harmony import */ var _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(1470);
62996
- /* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(41005);
62997
- /* harmony import */ var _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(34565);
62998
- /* harmony import */ var _dom_treeNode_MarkNode__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(15868);
62999
- /* 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
+
63000
63218
 
63001
63219
 
63002
63220
 
@@ -63020,7 +63238,7 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
63020
63238
 
63021
63239
  var ParseUndoUnit = /*#__PURE__*/function () {
63022
63240
  function ParseUndoUnit(hoEditorFactoryID, startPath, endPath, nodes) {
63023
- (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);
63024
63242
 
63025
63243
  //插入后的,变更范围
63026
63244
  this._tmp = {
@@ -63030,42 +63248,66 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63030
63248
  this._hoEditorFactoryID = hoEditorFactoryID;
63031
63249
  this._startPath = startPath;
63032
63250
  this._endPath = endPath;
63033
- 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;
63034
63252
 
63035
63253
  this._undoNodes = new Array();
63036
63254
  this._nodes = nodes;
63037
63255
  this._opTime = new Date();
63038
- 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);
63039
63257
  }
63040
63258
 
63041
- (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, [{
63042
63260
  key: "undo",
63043
- value: function undo() {
63044
- 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); //删除插入的节点
63045
63272
 
63046
- 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
+ });
63047
63276
 
63048
- this._undoNodes.forEach(function (value) {
63049
- hoEditorFactory.docTree.deleteNode(value, "update");
63050
- });
63277
+ delEvent.afterChangePath = this._tmp.start;
63278
+ _context.next = 8;
63279
+ return hoEditorFactory.docTree.change(delEvent);
63051
63280
 
63052
- while (!this._undo.atBottom()) {
63053
- this._undo.undo();
63054
- }
63281
+ case 8:
63282
+ hoEditorFactory.docTree.curDomRange.setSamePath(this._tmp.start);
63055
63283
 
63056
- delEvent.oldEndPath = this._tmp.start;
63057
- delEvent.oldDrawTreeLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_15__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawTreeLines(this._tmp.start, this._tmp.start);
63058
- hoEditorFactory.docTree.change(delEvent); //删除插入的节点
63284
+ while (!this._undo.atBottom()) {
63285
+ this._undo.undo();
63286
+ }
63059
63287
 
63060
- hoEditorFactory.docTree.curDomRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath);
63061
- hoEditorFactory.drawTree.moveCaretToPath(this._endPath);
63062
- var np = hoEditorFactory.docTree.findNodePositionByPath(this._endPath);
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);
63063
63291
 
63064
- 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) {
63065
- hoEditorFactory.docController.resetEmptyInputFieldNode(hoEditorFactory, np.node.parentNode);
63066
- } // HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).drawTree.repaintSelectShape();
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();
63067
63295
 
63068
- }
63296
+
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
+ }()
63069
63311
  /**
63070
63312
  * @description 初始化变量,因为有撤销恢复可能需要反复操作,初始化不能放到create里
63071
63313
  */
@@ -63084,8 +63326,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63084
63326
  _startPosition$node;
63085
63327
 
63086
63328
  this.initParam();
63087
- var curRange = new _dom_DomRange__WEBPACK_IMPORTED_MODULE_7__/* .DomRange */ .a(this._hoEditorFactoryID, this._startPath, this._endPath).normalize();
63088
- 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);
63089
63331
  var rootNodes = hoEditorFactory.docTree.getPathRoots(this._startPath);
63090
63332
 
63091
63333
  if (!rootNodes) {
@@ -63099,7 +63341,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63099
63341
  //删除选中节点
63100
63342
  this._undo.begin();
63101
63343
 
63102
- 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));
63103
63345
 
63104
63346
  this._undo.commit();
63105
63347
  }
@@ -63112,12 +63354,12 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63112
63354
  var prevNode = startPosition.node;
63113
63355
  var i = -1;
63114
63356
  var path = nodeLastPath;
63115
- 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);
63116
63358
 
63117
63359
  if (positon < 0) {
63118
63360
  //如果是中间,先拆分
63119
- if (startPosition.node instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_5__/* .TextNode */ .R) {
63120
- 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));
63121
63363
 
63122
63364
  this._undo.begin();
63123
63365
 
@@ -63136,7 +63378,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63136
63378
  //第一个节点是段落时,不插入
63137
63379
  var curr = hoEditorFactory.docTree.findNodePositionByPath(curRange.startPath).node;
63138
63380
 
63139
- 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) {
63140
63382
  curr.combineParagraph.copyStyle(node.combineParagraph);
63141
63383
  } else {
63142
63384
  hoEditorFactory.docTree.insertNodeAfterPath(path, node);
@@ -63154,7 +63396,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63154
63396
  var _prevNode;
63155
63397
 
63156
63398
  return {
63157
- 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,
63158
63400
  prevNode: index == 0 ? prevNode : _this._nodes[index - 1],
63159
63401
  nextNode: index == _this._nodes.length - 1 ? (_prevNode = prevNode) === null || _prevNode === void 0 ? void 0 : _prevNode.nextSibling() : _this._nodes[index + 1]
63160
63402
  };
@@ -63167,7 +63409,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63167
63409
 
63168
63410
  var checkTableNode2 = function checkTableNode2(node) {
63169
63411
  return {
63170
- 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,
63171
63413
  node: node,
63172
63414
  prevNode: node.prevSibling(),
63173
63415
  nextNode: node.nextSibling()
@@ -63183,8 +63425,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63183
63425
  var insertParaNode = function insertParaNode(info) {
63184
63426
  if (!info.isTable) return;
63185
63427
 
63186
- if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63187
- 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);
63188
63430
  hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.prevNode), lpara);
63189
63431
 
63190
63432
  _this._undoNodes.push(lpara);
@@ -63192,8 +63434,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63192
63434
  info.node.paragraphNode = lpara; // endNode = lpara;
63193
63435
  }
63194
63436
 
63195
- if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63196
- 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);
63197
63439
 
63198
63440
  hoEditorFactory.docTree.insertNodeAfterPath(hoEditorFactory.docTree.getNodeLastPath(info.node), _lpara);
63199
63441
 
@@ -63214,7 +63456,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63214
63456
  insertParaNode(info);
63215
63457
  }
63216
63458
 
63217
- 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) {
63218
63460
  node.childNodes.forEach(function (value) {
63219
63461
  var info = checkTableNode2(value);
63220
63462
 
@@ -63235,8 +63477,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63235
63477
  var info = checkTableNode(i);
63236
63478
 
63237
63479
  if (info.isTable) {
63238
- if (!(info.nextNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63239
- 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);
63240
63482
  hoEditorFactory.docTree.insertNodeAfterPath(path, lpara);
63241
63483
 
63242
63484
  this._undoNodes.push(lpara);
@@ -63248,8 +63490,8 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63248
63490
 
63249
63491
  this._undoNodes.push(node);
63250
63492
 
63251
- if (!(info.prevNode instanceof _dom_treeNode_ParagraphNode__WEBPACK_IMPORTED_MODULE_12__/* .ParagraphNode */ .C)) {
63252
- 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);
63253
63495
 
63254
63496
  hoEditorFactory.docTree.insertNodeAfterPath(path, _lpara2);
63255
63497
  node.paragraphNode = _lpara2;
@@ -63268,7 +63510,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63268
63510
 
63269
63511
  hoEditorFactory.docTree.insertNodeAfterPath(path, node);
63270
63512
 
63271
- 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) {
63272
63514
  node.refreshDrootNodes();
63273
63515
  }
63274
63516
 
@@ -63283,22 +63525,22 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63283
63525
 
63284
63526
  endNode = this._nodes[this._nodes.length - 1];
63285
63527
 
63286
- 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) {
63287
63529
  endNode = this._nodes[this._nodes.length - 1].nextSibling();
63288
63530
  }
63289
63531
  }
63290
63532
 
63291
63533
  var endPath = hoEditorFactory.docTree.getNodeLastPath(endNode);
63292
- 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);
63293
63535
  hoEditorFactory.docTree.change(changeEvent);
63294
63536
 
63295
- 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) {
63296
63538
  var _startPosition$node2;
63297
63539
 
63298
63540
  (_startPosition$node2 = startPosition.node) === null || _startPosition$node2 === void 0 ? void 0 : _startPosition$node2.parentNode.update();
63299
63541
  var ppNode = startPosition.node.parentNode.parentNode;
63300
63542
 
63301
- 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) {
63302
63544
  ppNode.drawCell.needUpdate = true;
63303
63545
  ppNode.table.update();
63304
63546
  }
@@ -63307,7 +63549,7 @@ var ParseUndoUnit = /*#__PURE__*/function () {
63307
63549
  this._tmp.start = curRange.startPath;
63308
63550
  this._tmp.end = endPath;
63309
63551
  hoEditorFactory.drawTree.moveCaretToPath(endPath);
63310
- 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();
63311
63553
  }
63312
63554
  }, {
63313
63555
  key: "isEmpty",
@@ -97648,7 +97890,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
97648
97890
  */return to8bitStream(text,flags).replace(/\\/g,"\\\\").replace(/\(/g,"\\(").replace(/\)/g,"\\)");};var beginPage=API.__private__.beginPage=function(format){pages[++page]=[];pagesContext[page]={objId:0,contentsObjId:0,userUnit:Number(userUnit),artBox:null,bleedBox:null,cropBox:null,trimBox:null,mediaBox:{bottomLeftX:0,bottomLeftY:0,topRightX:Number(format[0]),topRightY:Number(format[1])}};_setPage(page);setOutputDestination(pages[currentPage]);};var _addPage=function _addPage(parmFormat,parmOrientation){var dimensions,width,height;orientation=parmOrientation||orientation;if(typeof parmFormat==="string"){dimensions=getPageFormat(parmFormat.toLowerCase());if(Array.isArray(dimensions)){width=dimensions[0];height=dimensions[1];}}if(Array.isArray(parmFormat)){width=parmFormat[0]*scaleFactor;height=parmFormat[1]*scaleFactor;}if(isNaN(width)){width=format[0];height=format[1];}if(width>14400||height>14400){console.warn("A page in a PDF can not be wider or taller than 14400 userUnit. jsPDF limits the width/height to 14400");width=Math.min(14400,width);height=Math.min(14400,height);}format=[width,height];switch(orientation.substr(0,1)){case"l":if(height>width){format=[height,width];}break;case"p":if(width>height){format=[height,width];}break;}beginPage(format);// Set line width
97649
97891
  setLineWidth(lineWidth);// Set draw color
97650
97892
  out(strokeColor);// resurrecting non-default line caps, joins
97651
- if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
97893
+ if(lineCapID!==0){out(lineCapID+" J");}if(lineJoinID!==0){out(lineJoinID+" j");}events.publish("addPage",{pageNumber:page});};var _deletePage=function _deletePage(n){if(n>0&&n<=page){pages.splice(n,1);pagesContext.splice(n,1);page--;if(currentPage>page){currentPage=page;}console.log(page);this.setPage(currentPage);}};var _setPage=function _setPage(n){if(n>0&&n<=page){currentPage=n;}};var getNumberOfPages=API.__private__.getNumberOfPages=API.getNumberOfPages=function(){return pages.length-1;};/**
97652
97894
  * Returns a document-specific font key - a label assigned to a
97653
97895
  * font name + font type combination at the time the font was added
97654
97896
  * to the font inventory.
@@ -198761,7 +199003,7 @@ var es_function_name = __webpack_require__(68309);
198761
199003
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
198762
199004
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
198763
199005
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
198764
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=3651fabe&
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&
198765
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()}
198766
199008
  var staticRenderFns = []
198767
199009
 
@@ -200365,11 +200607,12 @@ var DrawSelectLevel = /*#__PURE__*/function () {
200365
200607
  drawNode.children.splice(d, 1);
200366
200608
  }
200367
200609
  }
200368
- }
200369
200610
 
200370
- hoeditorfactory.docTree.curOnDragNode = null;
200371
- 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();
200372
200614
  //drawNode.stage.update();
200615
+
200373
200616
  }
200374
200617
 
200375
200618
  var curComment = hoeditorfactory.drawTree.curOnSelectedComment;
@@ -206743,7 +206986,7 @@ var SignNode = __webpack_require__(34450);
206743
206986
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206744
206987
  var ParagraphNode = __webpack_require__(14208);
206745
206988
  ;// CONCATENATED MODULE: ./src/components/version.ts
206746
- /* harmony default export */ var version = ('2.0.55');
206989
+ /* harmony default export */ var version = ('2.0.58');
206747
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&
206748
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)}
206749
206992
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -210169,11 +210412,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
210169
210412
  styleobj["font_style"] = "italic";
210170
210413
  } else if (tag == "sup") {
210171
210414
  var str = styleobj["vertical_align"] || "";
210172
- if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" ? "" : str + " ") + "super";
210415
+ if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" || str == undefined ? "" : str + " ") + "super";
210173
210416
  } else if (tag == "sub") {
210174
210417
  var _str6 = styleobj["vertical_align"] || "";
210175
210418
 
210176
- if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" ? "" : _str6 + " ") + "sub";
210419
+ if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" || _str6 == undefined ? "" : _str6 + " ") + "sub";
210177
210420
  } else if (tag == "u") {
210178
210421
  var _str7 = styleobj["text_decoration"] || "";
210179
210422
 
@@ -211843,6 +212086,7 @@ var StructureConvert = /*#__PURE__*/function () {
211843
212086
  var comments = hoEditorFactory.drawTree.commentsMap;
211844
212087
  comments.forEach(function (value) {
211845
212088
  var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
212089
+ commentJson.customProperty = value.customProperty;
211846
212090
  commentsArr.push(commentJson);
211847
212091
  });
211848
212092
  return {
@@ -214407,6 +214651,8 @@ var StagePosition = __webpack_require__(57674);
214407
214651
 
214408
214652
 
214409
214653
 
214654
+
214655
+
214410
214656
 
214411
214657
 
214412
214658
 
@@ -219203,7 +219449,7 @@ var VueController = /*#__PURE__*/function () {
219203
219449
  var _loop2 = function _loop2(i) {
219204
219450
  var node = nodes[i];
219205
219451
 
219206
- if (node instanceof DownListNode/* DownListNode */.yF && node.isReadOnly || node instanceof DateTimeNode/* DateTimeNode */.Z && node.isReadOnly || node instanceof TextInputFieldNode/* TextInputFieldNode */.re && !node.canModifyContent && node.inputFieldType == 0 && node.childNodes.filter(function (child) {
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) {
219207
219453
  return child instanceof TextInputFieldNode/* TextInputFieldNode */.re;
219208
219454
  }).length === 0) {
219209
219455
  if (arr.filter(function (v) {
@@ -219665,6 +219911,17 @@ var VueController = /*#__PURE__*/function () {
219665
219911
  var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
219666
219912
  return [caret.pageIndex + 1, caret.stageX * 0.75, y];
219667
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
+
219668
219925
  /**
219669
219926
  * 文档生成并返回base64格式pdf文件 患者签名使用
219670
219927
  */
@@ -219747,7 +220004,7 @@ var VueController = /*#__PURE__*/function () {
219747
220004
 
219748
220005
  }, {
219749
220006
  key: "insertWriteSign",
219750
- value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition) {
220007
+ value: function insertWriteSign(imgSrc, fingerPrintSrc, fingerPosition, callback) {
219751
220008
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219752
220009
  var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
219753
220010
  var startPath = curDomRange.normalize().startPath;
@@ -219778,7 +220035,11 @@ var VueController = /*#__PURE__*/function () {
219778
220035
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219779
220036
 
219780
220037
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219781
- 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
+ });
219782
220043
  }
219783
220044
  }, 0);
219784
220045
  }
@@ -219786,7 +220047,11 @@ var VueController = /*#__PURE__*/function () {
219786
220047
  var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
219787
220048
 
219788
220049
  if (hoEditorFactory.docTree.changing(changingEvent)) {
219789
- 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
+ });
219790
220055
  }
219791
220056
  }
219792
220057
  }
@@ -220325,6 +220590,132 @@ var VueController = /*#__PURE__*/function () {
220325
220590
  getAllNodes(mainNodes);
220326
220591
  return isHasDoctorSign;
220327
220592
  }
220593
+ }, {
220594
+ key: "SyncElements",
220595
+ value: function SyncElements() {
220596
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220597
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220598
+ var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
220599
+ var fieldNames = [];
220600
+ var dateNames = [];
220601
+ var downNames = [];
220602
+ hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
220603
+
220604
+ for (var i = 0; i < nodes.length; i++) {
220605
+ var node = nodes[i];
220606
+
220607
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220608
+ if (fieldNames.indexOf(node.name) === -1) {
220609
+ fieldNames.push(node.name);
220610
+ var sameNameEles = this.getNodesByName("all", true, node.name);
220611
+
220612
+ for (var j = 0; j < sameNameEles.length; j++) {
220613
+ var ele = sameNameEles[j];
220614
+ if (nodes.indexOf(ele) >= 0) continue;
220615
+
220616
+ if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220617
+ ele.setFieldText(node.text);
220618
+ }
220619
+ }
220620
+ }
220621
+ }
220622
+
220623
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
220624
+ if (dateNames.indexOf(node.name) === -1) {
220625
+ dateNames.push(node.name);
220626
+
220627
+ var _sameNameEles = this.getNodesByName("all", true, node.name);
220628
+
220629
+ for (var _j = 0; _j < _sameNameEles.length; _j++) {
220630
+ var _ele = _sameNameEles[_j];
220631
+ if (nodes.indexOf(_ele) >= 0) continue;
220632
+
220633
+ if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
220634
+ _ele.setDateTimeText(node.text);
220635
+ }
220636
+ }
220637
+ }
220638
+ }
220639
+
220640
+ if (node instanceof DownListNode/* DownListNode */.yF) {
220641
+ if (downNames.indexOf(node.name) === -1) {
220642
+ downNames.push(node.name);
220643
+
220644
+ var _sameNameEles2 = this.getNodesByName("all", true, node.name);
220645
+
220646
+ for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
220647
+ var _ele2 = _sameNameEles2[_j2];
220648
+ if (nodes.indexOf(_ele2) >= 0) continue;
220649
+
220650
+ if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
220651
+ _ele2.setDownListText(node.text);
220652
+ }
220653
+ }
220654
+ }
220655
+ }
220656
+ }
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
+ }
220328
220719
  }]);
220329
220720
 
220330
220721
  return VueController;
@@ -221326,7 +221717,19 @@ var EditController = /*#__PURE__*/function () {
221326
221717
  if (!hoeditorfactory.pasteBase) {
221327
221718
  for (var n = 0; n < nodes.length; n++) {
221328
221719
  var node = nodes[n];
221329
- if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
221720
+
221721
+ if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) {
221722
+ var style = hoeditorfactory.docTree.styles[node.styleIndex];
221723
+
221724
+ if (style.combineStyle.script != 0) {
221725
+ var newStyle = style.clone();
221726
+ newStyle.script = style.combineStyle.script;
221727
+ var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
221728
+ node.styleIndex = newStyleIndex;
221729
+ } else {
221730
+ node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
221731
+ }
221732
+ }
221330
221733
 
221331
221734
  if (node instanceof ParagraphNode/* ParagraphNode */.C) {
221332
221735
  node.paraNo = hoeditorfactory.docTree.curParaNo;
@@ -222572,6 +222975,11 @@ var PrintController = /*#__PURE__*/function () {
222572
222975
  format = _this3._a4Size[orientation];
222573
222976
  }
222574
222977
 
222978
+ if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
222979
+ format = [793, 1122];
222980
+ orientation = 'p';
222981
+ }
222982
+
222575
222983
  var options = {
222576
222984
  orientation: orientation,
222577
222985
  unit: "px",
@@ -222682,6 +223090,11 @@ var PrintController = /*#__PURE__*/function () {
222682
223090
  format = _this4._a4Size[orientation];
222683
223091
  }
222684
223092
 
223093
+ if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223094
+ format = [793, 1122];
223095
+ orientation = 'p';
223096
+ }
223097
+
222685
223098
  var options = {
222686
223099
  orientation: orientation,
222687
223100
  unit: "px",
@@ -222824,6 +223237,11 @@ var PrintController = /*#__PURE__*/function () {
222824
223237
  format = _this5._a4Size[orientation];
222825
223238
  }
222826
223239
 
223240
+ if (hoEditorFactory.isFixedPrintToA4T && hoEditorFactory.pageProperty.pageSize.toLocaleLowerCase() == 'a5') {
223241
+ format = [793, 1122];
223242
+ orientation = 'p';
223243
+ }
223244
+
222827
223245
  options = {
222828
223246
  orientation: orientation,
222829
223247
  unit: "px",
@@ -222833,7 +223251,7 @@ var PrintController = /*#__PURE__*/function () {
222833
223251
  PDF = new jspdf/* default */.ZP(options);
222834
223252
  PrintStatus/* Print.printToPDF */.Kh.printToPDF(_this5._hoEditorFactoryID, PDF, undefined, undefined, resolve, positionY, format);
222835
223253
 
222836
- case 6:
223254
+ case 7:
222837
223255
  case "end":
222838
223256
  return _context4.stop();
222839
223257
  }
@@ -223023,6 +223441,8 @@ var PrintController = /*#__PURE__*/function () {
223023
223441
  } else {
223024
223442
  hoEditorFactory.loadImageCallback = toPrint;
223025
223443
  }
223444
+
223445
+ mergeList = [];
223026
223446
  });
223027
223447
  } else {
223028
223448
  createSvg();
@@ -224613,6 +225033,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
224613
225033
  this._isFixedPrintToA4 = value;
224614
225034
  }
224615
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
+ }
224616
225046
  }, {
224617
225047
  key: "isUseImagePrint",
224618
225048
  get: function get() {
@@ -224999,9 +225429,9 @@ var HoFooter_component = normalizeComponent(
224999
225429
  )
225000
225430
 
225001
225431
  /* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
225002
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=2efd7672&
225003
- var ControlModalvue_type_template_id_2efd7672_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
225004
- var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
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 = []
225005
225435
 
225006
225436
 
225007
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&
@@ -228287,9 +228717,9 @@ var Delimiter_component = normalizeComponent(
228287
228717
  ;// CONCATENATED MODULE: ./src/components/controls/delimiter/index.ts
228288
228718
 
228289
228719
  /* harmony default export */ var delimiter = (delimiter_Delimiter);
228290
- ;// 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&
228291
- 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)])}
228292
- 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 = []
228293
228723
 
228294
228724
 
228295
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&
@@ -228436,8 +228866,8 @@ Sign = __decorate([vue_class_component_esm({
228436
228866
 
228437
228867
  var Sign_component = normalizeComponent(
228438
228868
  sign_Signvue_type_script_lang_ts_,
228439
- Signvue_type_template_id_0d96e4f0_render,
228440
- Signvue_type_template_id_0d96e4f0_staticRenderFns,
228869
+ Signvue_type_template_id_6c042af0_render,
228870
+ Signvue_type_template_id_6c042af0_staticRenderFns,
228441
228871
  false,
228442
228872
  null,
228443
228873
  null,
@@ -228812,9 +229242,339 @@ var UploadImageDialog_component = normalizeComponent(
228812
229242
  )
228813
229243
 
228814
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);
228815
229574
  ;// CONCATENATED MODULE: ./src/components/controls/upload/index.ts
228816
229575
 
228817
- /* harmony default export */ var upload = (upload_UploadImageDialog);
229576
+
229577
+
228818
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&
228819
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)])}
228820
229580
  var WaterSetvue_type_template_id_58b59c58_staticRenderFns = []
@@ -230599,7 +231359,8 @@ ControlModal = __decorate([vue_class_component_esm({
230599
231359
  CommentDialog: commentDialog,
230600
231360
  PageInfoes: pageInfoes,
230601
231361
  Delimiter: delimiter,
230602
- UploadImageDialog: upload
231362
+ UploadImageDialog: upload_UploadImageDialog,
231363
+ CanvasImageDialog: CanvasImageDialog
230603
231364
  }
230604
231365
  })], ControlModal);
230605
231366
  /* harmony default export */ var ControlModalvue_type_script_lang_ts_ = (ControlModal);
@@ -230615,8 +231376,8 @@ ControlModal = __decorate([vue_class_component_esm({
230615
231376
  ;
230616
231377
  var ControlModal_component = normalizeComponent(
230617
231378
  controls_ControlModalvue_type_script_lang_ts_,
230618
- ControlModalvue_type_template_id_2efd7672_render,
230619
- ControlModalvue_type_template_id_2efd7672_staticRenderFns,
231379
+ ControlModalvue_type_template_id_35544190_render,
231380
+ ControlModalvue_type_template_id_35544190_staticRenderFns,
230620
231381
  false,
230621
231382
  null,
230622
231383
  null,
@@ -231305,7 +232066,7 @@ var ControlMixin = /*#__PURE__*/function (_Vue) {
231305
232066
  this.rightType = node.controlStyle;
231306
232067
  this.dataSource = node.bandDataSource;
231307
232068
  } else if (node instanceof ImageNode/* ImageNode */.H) {
231308
- this.rightType = "img";
232069
+ this.rightType = "edit-image";
231309
232070
  } else if (node instanceof LabelNode/* LabelNode */.P) {
231310
232071
  this.rightType = "label";
231311
232072
  } else if (node instanceof SignNode/* SignNode */.N) {
@@ -231935,6 +232696,13 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
231935
232696
  var activeDocId = this.activeDocId ? this.activeDocId : this.hoEditorFactoryIdList[0];
231936
232697
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().hoEditorFactoryMap.get(activeDocId);
231937
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);
231938
232706
  } // 监听默认打印纸张设置变化
231939
232707
 
231940
232708
  }, {
@@ -232018,6 +232786,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
232018
232786
  }
232019
232787
 
232020
232788
  hoEditor.isFixedPrintToA4 = _this3.isFixedPrintToA4;
232789
+ hoEditor.isFixedPrintToA4T = _this3.isFixedPrintToA4T;
232021
232790
  hoEditor.isUseImagePrint = _this3.isUseImagePrint;
232022
232791
  hoEditor.isUseForm = _this3.isUseForm;
232023
232792
  hoEditor.printBlack = _this3.printBlack;
@@ -232365,6 +233134,10 @@ __decorate([Prop({
232365
233134
  default: false
232366
233135
  })], HoDocs.prototype, "isFixedPrintToA4", void 0);
232367
233136
 
233137
+ __decorate([Prop({
233138
+ default: false
233139
+ })], HoDocs.prototype, "isFixedPrintToA4T", void 0);
233140
+
232368
233141
  __decorate([Prop({
232369
233142
  default: true
232370
233143
  })], HoDocs.prototype, "isUseImagePrint", void 0);
@@ -232409,6 +233182,10 @@ __decorate([Watch("isFixedPrintToA4", {
232409
233182
  deep: true
232410
233183
  })], HoDocs.prototype, "isFixedPrintToA4Change", null);
232411
233184
 
233185
+ __decorate([Watch("isFixedPrintToA4T", {
233186
+ deep: true
233187
+ })], HoDocs.prototype, "isFixedPrintToA4TChange", null);
233188
+
232412
233189
  __decorate([Watch("isUseImagePrint", {
232413
233190
  deep: true
232414
233191
  })], HoDocs.prototype, "isUseImagePrintChange", null);
@@ -232462,9 +233239,9 @@ var HoDocs_component = normalizeComponent(
232462
233239
  )
232463
233240
 
232464
233241
  /* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
232465
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=3f61d307&
232466
- var ToolBarvue_type_template_id_3f61d307_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "返回审阅模式" : "浏览模式"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
232467
- var ToolBarvue_type_template_id_3f61d307_staticRenderFns = []
233242
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/ToolBar.vue?vue&type=template&id=0e95df22&
233243
+ var ToolBarvue_type_template_id_0e95df22_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('tabs',{attrs:{"tabKey":_vm.tabKey},on:{"tabClick":_vm.mainBarClick,"updateTabKey":_vm.updateTabKey}},[_vm._t("beforeBrowse"),_c('tab-pane',{attrs:{"isShow":_vm.defaultBrowseJson.isBrowse,"label":"浏览模式","notHover":true,"name":"ho-browse"}},[(_vm.defaultBrowseJson.saveAsFile)?_c('li',{staticClass:"sub-bar-items"},[_c('el-dropdown',{attrs:{"trigger":"click"}},[_c('span',{staticClass:"el-dropdown-link"},[_vm._v("另存为")]),_c('el-dropdown-menu',{attrs:{"slot":"dropdown"},slot:"dropdown"},[_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('xml')}}},[_vm._v("XML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('html')}}},[_vm._v("HTML")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('pdf')}}},[_vm._v("PDF")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('plain')}}},[_vm._v("TXT")]),_c('el-dropdown-item',{nativeOn:{"click":function($event){return _vm.saveAsFile('json')}}},[_vm._v("JSON")])],1)],1)],1):_vm._e(),(_vm.isPrinted)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{class:_vm.isPrintClass,on:{"click":_vm.outPrinted}},[_vm._v("退出打印预览状态")])]):_vm._e(),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printed)?_c('span',{class:_vm.printedClass,on:{"click":_vm.printed}},[_vm._v("打印")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultBrowseJson.printSelected)?_c('span',{class:_vm.printSelectedClass,on:{"click":_vm.printSelected}},[_vm._v("打印拖动鼠标选中区域")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border-right":"1px solid #e6e6e6"}},[(_vm.defaultBrowseJson.printCaret)?_c('span',{class:_vm.printCaretClass,on:{"click":_vm.printCaret}},[_vm._v("打印鼠标点击位置")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items",staticStyle:{"border":"0"}},[(_vm.defaultBrowseJson.printContinue)?_c('span',{class:_vm.printContinueClass,on:{"click":_vm.printContinue}},[_vm._v("续打")]):_vm._e()]),_c('HoPrintDialog',{attrs:{"vueController":_vm.vueController,"printBeforeStatus":5,"printModal":_vm.printModal},on:{"closed":_vm.closedHoPrintModal}})],1),_vm._t("beforeEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isEdit,"label":"编辑模式","notHover":true,"name":"ho-edit"}},[_c('ToolBarChild',{attrs:{"editJson":_vm.defaultEditJson,"vueController":_vm.vueController,"tabStatus":_vm.tabStatus,"textStyle":_vm.textStyle,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus}})],1),_vm._t("afterEdit"),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertElement,"label":"插入","name":"ho-insert"}},[_c('tool-control',{attrs:{"insert":_vm.defaultEditJson,"vueController":_vm.vueController,"uploadImageParams":_vm.uploadImageParams},on:{"setModalStatus":_vm.setModalStatus},scopedSlots:_vm._u([{key:"hoInsertItem",fn:function(){return [_vm._t("insideInsert")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultEditJson.isInsertTable,"label":"表格","name":"ho-table"}},[_c('tool-table',{attrs:{"table":_vm.defaultEditJson,"tableProperty":{canAddRow: _vm.textStyle.canAddRow, canDeleteRow: _vm.textStyle.canDeleteRow},"vueController":_vm.vueController},scopedSlots:_vm._u([{key:"hoTableItem",fn:function(){return [_vm._t("insideTable")]},proxy:true}],null,true)})],1),_c('tab-pane',{attrs:{"isShow":_vm.defaultReviewJson.isReview,"label":"审阅模式","name":"ho-review"}},[_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.insertComment)?_c('span',{staticClass:"review",on:{"click":function($event){$event.stopPropagation();return _vm.createControlComment.apply(null, arguments)}}},[_vm._v("插入批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.editComment)?_c('span',{staticClass:"review",on:{"click":_vm.editComment}},[_vm._v("编辑批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteComment}},[_vm._v("删除批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.deleteAllComment)?_c('span',{staticClass:"review",on:{"click":_vm.deleteAllComment}},[_vm._v("删除全部批注")]):_vm._e()]),_c('li',{staticClass:"sub-bar-items"},[(_vm.defaultReviewJson.cancelDelete)?_c('span',{staticClass:"review",on:{"click":_vm.cancelDelete}},[_vm._v("取消删除文本")]):_vm._e()]),_vm._t("insertReview"),(_vm.defaultReviewJson.printStatus)?_c('li',{staticClass:"sub-bar-items"},[_c('span',{on:{"click":_vm.reviewPrintStatus}},[_vm._v(_vm._s(_vm.isPrinted ? "显示批注" : "隐藏批注"))])]):_vm._e()],2),_vm._t("afterReview")],2)}
233244
+ var ToolBarvue_type_template_id_0e95df22_staticRenderFns = []
232468
233245
 
232469
233246
 
232470
233247
  ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/toolbar/insert/HoMedicalExpression.vue?vue&type=template&id=7096edd1&scoped=true&
@@ -236559,9 +237336,9 @@ var ToolTablevue_type_template_id_194f516e_render = function () {var _vm=this;va
236559
237336
  var ToolTablevue_type_template_id_194f516e_staticRenderFns = []
236560
237337
 
236561
237338
 
236562
- ;// 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&
236563
- 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)}
236564
- 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 = []
236565
237342
 
236566
237343
 
236567
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&
@@ -236965,8 +237742,8 @@ var HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns = []
236965
237742
 
236966
237743
  var HoTableFeatures_component = normalizeComponent(
236967
237744
  insert_HoTableFeaturesvue_type_script_lang_js_,
236968
- HoTableFeaturesvue_type_template_id_2fd610cb_render,
236969
- HoTableFeaturesvue_type_template_id_2fd610cb_staticRenderFns,
237745
+ HoTableFeaturesvue_type_template_id_02d0c560_render,
237746
+ HoTableFeaturesvue_type_template_id_02d0c560_staticRenderFns,
236970
237747
  false,
236971
237748
  null,
236972
237749
  null,
@@ -237762,8 +238539,8 @@ ToolBar = __decorate([vue_class_component_esm({
237762
238539
 
237763
238540
  var ToolBar_component = normalizeComponent(
237764
238541
  toolbar_ToolBarvue_type_script_lang_ts_,
237765
- ToolBarvue_type_template_id_3f61d307_render,
237766
- ToolBarvue_type_template_id_3f61d307_staticRenderFns,
238542
+ ToolBarvue_type_template_id_0e95df22_render,
238543
+ ToolBarvue_type_template_id_0e95df22_staticRenderFns,
237767
238544
  false,
237768
238545
  null,
237769
238546
  null,
@@ -238046,7 +238823,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238046
238823
  _this$rightNode13,
238047
238824
  _this$rightNode14,
238048
238825
  _this$rightNode15,
238049
- _this$rightNode16;
238826
+ _this$rightNode16,
238827
+ _this$rightNode17;
238050
238828
 
238051
238829
  var h = arguments[0];
238052
238830
  return h("div", {
@@ -238144,7 +238922,18 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238144
238922
  return _this4.toUpdateNodes("qrcode", event);
238145
238923
  }
238146
238924
  }
238147
- }, ["\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", {
238148
238937
  "class": "mouse-right-menu"
238149
238938
  }, [h("li", {
238150
238939
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238155,7 +238944,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238155
238944
  return _this4.toUpdateNodes("text", event);
238156
238945
  }
238157
238946
  }
238158
- }, ["\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", {
238159
238948
  "class": "mouse-right-menu"
238160
238949
  }, [h("li", {
238161
238950
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238187,7 +238976,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238187
238976
  return _this4.toUpdateNodes("table-cell", event);
238188
238977
  }
238189
238978
  }
238190
- }, ["\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", {
238191
238980
  "class": "mouse-right-menu"
238192
238981
  }, [h("li", {
238193
238982
  "class": "mouse-menu-item mouse-right-menu-line"
@@ -238201,7 +238990,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238201
238990
  table: this.defaultTable,
238202
238991
  tableProperty: this.rightNode.tableProperty
238203
238992
  })
238204
- })]), ((_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", {
238205
238994
  "class": "mouse-right-menu"
238206
238995
  }, [h("li", {
238207
238996
  "class": "mouse-menu-item",
@@ -238210,7 +238999,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
238210
238999
  return _this4.hideComments();
238211
239000
  }
238212
239001
  }
238213
- }, [(_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", {
238214
239003
  "class": "mouse-right-menu"
238215
239004
  }, [h("li", {
238216
239005
  "class": "mouse-menu-item"
@@ -238880,8 +239669,8 @@ var form_item_default = /*#__PURE__*/__webpack_require__.n(form_item);
238880
239669
  var lib_form = __webpack_require__(54223);
238881
239670
  var form_default = /*#__PURE__*/__webpack_require__.n(lib_form);
238882
239671
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/upload.js
238883
- var lib_upload = __webpack_require__(26906);
238884
- var upload_default = /*#__PURE__*/__webpack_require__.n(lib_upload);
239672
+ var upload = __webpack_require__(26906);
239673
+ var upload_default = /*#__PURE__*/__webpack_require__.n(upload);
238885
239674
  // EXTERNAL MODULE: ./node_modules/element-ui/lib/dropdown-item.js
238886
239675
  var dropdown_item = __webpack_require__(42173);
238887
239676
  var dropdown_item_default = /*#__PURE__*/__webpack_require__.n(dropdown_item);