hoeditor-web 2.0.54 → 2.0.57

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.
@@ -11518,7 +11518,7 @@ var Print = /*#__PURE__*/function () {
11518
11518
  key: "printToPDF",
11519
11519
  value: function () {
11520
11520
  var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
11521
- var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, name;
11521
+ var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, name;
11522
11522
 
11523
11523
  return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
11524
11524
  while (1) {
@@ -11581,7 +11581,7 @@ var Print = /*#__PURE__*/function () {
11581
11581
 
11582
11582
  case 17:
11583
11583
  if ((_step = _iterator.n()).done) {
11584
- _context3.next = 57;
11584
+ _context3.next = 58;
11585
11585
  break;
11586
11586
  }
11587
11587
 
@@ -11599,7 +11599,7 @@ var Print = /*#__PURE__*/function () {
11599
11599
  });
11600
11600
 
11601
11601
  case 22:
11602
- return _context3.abrupt("continue", 55);
11602
+ return _context3.abrupt("continue", 56);
11603
11603
 
11604
11604
  case 23:
11605
11605
  last = index;
@@ -11610,19 +11610,35 @@ var Print = /*#__PURE__*/function () {
11610
11610
  break;
11611
11611
  }
11612
11612
 
11613
- return _context3.abrupt("break", 57);
11613
+ return _context3.abrupt("break", 58);
11614
11614
 
11615
11615
  case 27:
11616
11616
  if (cpage.drawDomLevel && !cpage.drawDomLevel.stage) {
11617
11617
  cpage.drawDomLevel.bindStage();
11618
11618
  cpage.needUpdateStage = true;
11619
- }
11619
+ } // 合并续打: 上一页还有空余时续打起始页隐藏页脚
11620
+
11620
11621
 
11621
11622
  if (index === hoEditorFactory.startPageNum && positionY) {
11622
11623
  dShape = new createjs.Shape();
11623
11624
  dShape.graphics.beginFill("#fff").rect(0, 0, width, positionY).endFill();
11624
11625
  cpage.drawDocContainer.addChild(dShape);
11625
11626
  cpage.drawFooter.alpha = 0; // 上一页还有空余时续打起始页隐藏页脚
11627
+ } // 光标处续打
11628
+
11629
+
11630
+ if (hoEditorFactory.printStatus.printRange == PrintRange.prCaret) {
11631
+ posIndex = hoEditorFactory.printStatus.drawPrintCaret.Position[0];
11632
+ posY = hoEditorFactory.printStatus.drawPrintCaret.Position[1];
11633
+
11634
+ if (index === posIndex && posY) {
11635
+ _dShape = new createjs.Shape();
11636
+
11637
+ _dShape.graphics.beginFill("#fff").rect(0, 0, width, posY).endFill();
11638
+
11639
+ cpage.drawDocContainer.addChild(_dShape);
11640
+ cpage.drawFooter.alpha = 0;
11641
+ }
11626
11642
  }
11627
11643
 
11628
11644
  if (cpage.drawDomLevel && cpage.needUpdateStage && cpage.drawDomLevel.stage) {
@@ -11645,7 +11661,7 @@ var Print = /*#__PURE__*/function () {
11645
11661
  }
11646
11662
 
11647
11663
  if (!hoEditorFactory.isUseImagePrint) {
11648
- _context3.next = 41;
11664
+ _context3.next = 42;
11649
11665
  break;
11650
11666
  }
11651
11667
 
@@ -11655,10 +11671,10 @@ var Print = /*#__PURE__*/function () {
11655
11671
  ctx.posY = svg2pdfOptions.y;
11656
11672
  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));
11657
11673
  ctx = null;
11658
- _context3.next = 54;
11674
+ _context3.next = 55;
11659
11675
  break;
11660
11676
 
11661
- case 41:
11677
+ case 42:
11662
11678
  _ctx = new canvas2svg({
11663
11679
  width: width,
11664
11680
  height: height,
@@ -11667,68 +11683,68 @@ var Print = /*#__PURE__*/function () {
11667
11683
  _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));
11668
11684
 
11669
11685
  if (!(type === "html")) {
11670
- _context3.next = 48;
11686
+ _context3.next = 49;
11671
11687
  break;
11672
11688
  }
11673
11689
 
11674
11690
  svgData = (_ctx2 = _ctx) === null || _ctx2 === void 0 ? void 0 : _ctx2.getSvg();
11675
11691
  svgData && ((_svgBox2 = svgBox) === null || _svgBox2 === void 0 ? void 0 : _svgBox2.appendChild(svgData));
11676
- _context3.next = 53;
11692
+ _context3.next = 54;
11677
11693
  break;
11678
11694
 
11679
- case 48:
11695
+ case 49:
11680
11696
  PDF === null || PDF === void 0 ? void 0 : PDF.addPage();
11681
11697
  _context3.t0 = PDF;
11682
11698
 
11683
11699
  if (!_context3.t0) {
11684
- _context3.next = 53;
11700
+ _context3.next = 54;
11685
11701
  break;
11686
11702
  }
11687
11703
 
11688
- _context3.next = 53;
11704
+ _context3.next = 54;
11689
11705
  return svg2pdf((_ctx3 = _ctx) === null || _ctx3 === void 0 ? void 0 : _ctx3.getSvg(), PDF, svg2pdfOptions);
11690
11706
 
11691
- case 53:
11707
+ case 54:
11692
11708
  _ctx = null;
11693
11709
 
11694
- case 54:
11710
+ case 55:
11695
11711
  index > 0 && ((_cpage$drawDomLevel3 = cpage.drawDomLevel) === null || _cpage$drawDomLevel3 === void 0 ? void 0 : _cpage$drawDomLevel3.clearStage());
11696
11712
 
11697
- case 55:
11713
+ case 56:
11698
11714
  _context3.next = 17;
11699
11715
  break;
11700
11716
 
11701
- case 57:
11702
- _context3.next = 62;
11717
+ case 58:
11718
+ _context3.next = 63;
11703
11719
  break;
11704
11720
 
11705
- case 59:
11706
- _context3.prev = 59;
11721
+ case 60:
11722
+ _context3.prev = 60;
11707
11723
  _context3.t1 = _context3["catch"](15);
11708
11724
 
11709
11725
  _iterator.e(_context3.t1);
11710
11726
 
11711
- case 62:
11712
- _context3.prev = 62;
11727
+ case 63:
11728
+ _context3.prev = 63;
11713
11729
 
11714
11730
  _iterator.f();
11715
11731
 
11716
- return _context3.finish(62);
11732
+ return _context3.finish(63);
11717
11733
 
11718
- case 65:
11734
+ case 66:
11719
11735
  console.timeEnd("绘制svg和生成pdf");
11720
11736
  if (hoEditorFactory.printStatus.printRange !== PrintRange.prSelected) hoEditorFactory.printStatus.recordLastPosByPageIndex(last);
11721
11737
  hoEditorFactory.printStatus.DrawPrintRange().PrintOver();
11722
11738
 
11723
11739
  if (!(positionY || hoEditorFactory.startPageNum !== 0 && positionY !== undefined)) {
11724
- _context3.next = 74;
11740
+ _context3.next = 75;
11725
11741
  break;
11726
11742
  }
11727
11743
 
11728
11744
  _last = hoEditorFactory.printStatus.printRecord.last();
11729
11745
 
11730
11746
  if (!(_last && hoEditorFactory.startPageNum == _last[0] && positionY === _last[1])) {
11731
- _context3.next = 74;
11747
+ _context3.next = 75;
11732
11748
  break;
11733
11749
  }
11734
11750
 
@@ -11740,21 +11756,21 @@ var Print = /*#__PURE__*/function () {
11740
11756
  reslove && reslove("printend");
11741
11757
  return _context3.abrupt("return");
11742
11758
 
11743
- case 74:
11759
+ case 75:
11744
11760
  if (!(type === "pdf")) {
11745
- _context3.next = 80;
11761
+ _context3.next = 81;
11746
11762
  break;
11747
11763
  }
11748
11764
 
11749
11765
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11750
11766
  PDF === null || PDF === void 0 ? void 0 : PDF.save(fileName + ".pdf");
11751
11767
  hoEditorFactory.printStatus.drawPrintRecord.clear();
11752
- _context3.next = 86;
11768
+ _context3.next = 87;
11753
11769
  break;
11754
11770
 
11755
- case 80:
11771
+ case 81:
11756
11772
  if (!(svgBox && svgBox.childNodes.length === 0)) {
11757
- _context3.next = 84;
11773
+ _context3.next = 85;
11758
11774
  break;
11759
11775
  }
11760
11776
 
@@ -11766,7 +11782,7 @@ var Print = /*#__PURE__*/function () {
11766
11782
  reslove && reslove("printend");
11767
11783
  return _context3.abrupt("return");
11768
11784
 
11769
- case 84:
11785
+ case 85:
11770
11786
  printStyle = (0,util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
11771
11787
 
11772
11788
  if (type === "html") {
@@ -11784,20 +11800,24 @@ var Print = /*#__PURE__*/function () {
11784
11800
  return link.remove();
11785
11801
  }, 100);
11786
11802
  } else {
11803
+ if (height <= 560) {
11804
+ PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11805
+ }
11806
+
11787
11807
  PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
11788
11808
  name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : "电子病历文档";
11789
11809
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
11790
11810
  }
11791
11811
 
11792
- case 86:
11812
+ case 87:
11793
11813
  reslove && reslove("printend");
11794
11814
 
11795
- case 87:
11815
+ case 88:
11796
11816
  case "end":
11797
11817
  return _context3.stop();
11798
11818
  }
11799
11819
  }
11800
- }, _callee2, this, [[15, 59, 62, 65]]);
11820
+ }, _callee2, this, [[15, 60, 63, 66]]);
11801
11821
  }));
11802
11822
 
11803
11823
  function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
@@ -16778,9 +16798,9 @@ var DocController = /*#__PURE__*/function () {
16778
16798
  node.customProperty = customProperty;
16779
16799
  node.imgWidth = imgWidth;
16780
16800
  node.imgHeight = imgHeight;
16781
- node.imgSrc = imgSrc;
16782
16801
  node.fingerPrintSrc = fingerPrintSrc ? fingerPrintSrc : "";
16783
16802
  node.fingerPosition = fingerPosition ? fingerPosition : 0;
16803
+ node.imgSrc = imgSrc;
16784
16804
 
16785
16805
  if (type == 1 && node.signType == 1) {
16786
16806
  node.isFront = true;
@@ -16839,7 +16859,7 @@ var DocController = /*#__PURE__*/function () {
16839
16859
 
16840
16860
  }, {
16841
16861
  key: "updateSignType",
16842
- value: function updateSignType(node, type, imgSrc) {
16862
+ value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
16843
16863
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
16844
16864
  var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
16845
16865
  var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
@@ -16847,11 +16867,9 @@ var DocController = /*#__PURE__*/function () {
16847
16867
  changeEvent.oldEndPath = ePath;
16848
16868
  changeEvent.afterChangePath = ePath;
16849
16869
  changeEvent.oldDrawLines = new _draw_SelectRange__WEBPACK_IMPORTED_MODULE_76__/* .SelectRange */ .E(this._hoEditorFactoryID).getRangeDrawLines(sPath, ePath, true);
16850
-
16851
- if (node.type !== type) {
16852
- node.type = type;
16853
- }
16854
-
16870
+ node.type = type;
16871
+ node.imgWidth = imgWidth;
16872
+ node.imgHeight = imgHeight;
16855
16873
  node.imgSrc = imgSrc;
16856
16874
  hoEditorFactory.docTree.change(changeEvent);
16857
16875
  }
@@ -22399,8 +22417,7 @@ var Comment = /*#__PURE__*/function () {
22399
22417
  key: "whiteList",
22400
22418
  value: function whiteList() {
22401
22419
  return ['id', 'text', 'date', 'lineHeight', //"endPath",
22402
- 'userID', 'userName', //"endMarkNode"
22403
- 'customProperty'];
22420
+ 'userID', 'userName'];
22404
22421
  }
22405
22422
  }]);
22406
22423
 
@@ -62609,11 +62626,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62609
62626
  }
62610
62627
 
62611
62628
  this._tmp.start = Arange.startPath;
62612
- this._tmp.end = Arange.endPath;
62613
-
62614
- 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())) {
62615
- return true;
62616
- }
62629
+ 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)) {
62630
+ // return true;
62631
+ // }
62617
62632
 
62618
62633
  if (s === e) {
62619
62634
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_13__/* .TextNode */ .R) {
@@ -97634,7 +97649,7 @@ if(bch>>8){/* something left after dividing by 256 second time */throw new Error
97634
97649
  */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
97635
97650
  setLineWidth(lineWidth);// Set draw color
97636
97651
  out(strokeColor);// resurrecting non-default line caps, joins
97637
- 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;};/**
97652
+ 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;};/**
97638
97653
  * Returns a document-specific font key - a label assigned to a
97639
97654
  * font name + font type combination at the time the font was added
97640
97655
  * to the font inventory.
@@ -198747,7 +198762,7 @@ var es_function_name = __webpack_require__(68309);
198747
198762
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
198748
198763
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
198749
198764
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
198750
- ;// 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=33700d44&
198765
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=3651fabe&
198751
198766
  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()}
198752
198767
  var staticRenderFns = []
198753
198768
 
@@ -206729,7 +206744,7 @@ var SignNode = __webpack_require__(34450);
206729
206744
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206730
206745
  var ParagraphNode = __webpack_require__(14208);
206731
206746
  ;// CONCATENATED MODULE: ./src/components/version.ts
206732
- /* harmony default export */ var version = ('2.0.54');
206747
+ /* harmony default export */ var version = ('2.0.57');
206733
206748
  ;// 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&
206734
206749
  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)}
206735
206750
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -210155,11 +210170,11 @@ var HTMLconverter2 = /*#__PURE__*/function () {
210155
210170
  styleobj["font_style"] = "italic";
210156
210171
  } else if (tag == "sup") {
210157
210172
  var str = styleobj["vertical_align"] || "";
210158
- if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" ? "" : str + " ") + "super";
210173
+ if (str.indexOf("sub") == -1) styleobj["vertical_align"] = (str == "" || str == undefined ? "" : str + " ") + "super";
210159
210174
  } else if (tag == "sub") {
210160
210175
  var _str6 = styleobj["vertical_align"] || "";
210161
210176
 
210162
- if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" ? "" : _str6 + " ") + "sub";
210177
+ if (_str6.indexOf("sub") == -1) styleobj["vertical_align"] = (_str6 == "" || _str6 == undefined ? "" : _str6 + " ") + "sub";
210163
210178
  } else if (tag == "u") {
210164
210179
  var _str7 = styleobj["text_decoration"] || "";
210165
210180
 
@@ -211829,6 +211844,7 @@ var StructureConvert = /*#__PURE__*/function () {
211829
211844
  var comments = hoEditorFactory.drawTree.commentsMap;
211830
211845
  comments.forEach(function (value) {
211831
211846
  var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
211847
+ commentJson.customProperty = value.customProperty;
211832
211848
  commentsArr.push(commentJson);
211833
211849
  });
211834
211850
  return {
@@ -218894,9 +218910,9 @@ var VueController = /*#__PURE__*/function () {
218894
218910
 
218895
218911
  }, {
218896
218912
  key: "updateSignType",
218897
- value: function updateSignType(node, type, imgSrc) {
218913
+ value: function updateSignType(node, type, imgSrc, imgWidth, imgHeight) {
218898
218914
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
218899
- hoEditorFactory.docController.updateSignType(node, type, imgSrc);
218915
+ hoEditorFactory.docController.updateSignType(node, type, imgSrc, imgWidth, imgHeight);
218900
218916
  }
218901
218917
  /**
218902
218918
  * 强制删除
@@ -220251,6 +220267,15 @@ var VueController = /*#__PURE__*/function () {
220251
220267
  });
220252
220268
  return ishandle;
220253
220269
  }
220270
+ /**
220271
+ * 获取当前病历中所以批注
220272
+ */
220273
+
220274
+ }, {
220275
+ key: "getDocCommentValue",
220276
+ value: function getDocCommentValue() {
220277
+ return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap;
220278
+ }
220254
220279
  /**
220255
220280
  * 批量修改当前病历中批注处理状态
220256
220281
  * @param status 默认修改为 1==已处理
@@ -220262,10 +220287,12 @@ var VueController = /*#__PURE__*/function () {
220262
220287
  var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree;
220263
220288
  var commentsMap = drawTree.commentsMap;
220264
220289
  commentsMap.forEach(function (value, key) {
220265
- if (value.customProperty) {
220266
- value.customProperty.ishandle = status == undefined ? '1' : status;
220267
- commentsMap.set(key, value);
220290
+ if (!value.customProperty) {
220291
+ value.customProperty = {};
220268
220292
  }
220293
+
220294
+ value.customProperty.ishandle = status == undefined ? '1' : status;
220295
+ commentsMap.set(key, value);
220269
220296
  });
220270
220297
  drawTree.commentsMap = commentsMap;
220271
220298
  }
@@ -220300,6 +220327,71 @@ var VueController = /*#__PURE__*/function () {
220300
220327
  getAllNodes(mainNodes);
220301
220328
  return isHasDoctorSign;
220302
220329
  }
220330
+ }, {
220331
+ key: "SyncElements",
220332
+ value: function SyncElements() {
220333
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220334
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220335
+ var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
220336
+ var fieldNames = [];
220337
+ var dateNames = [];
220338
+ var downNames = [];
220339
+ hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
220340
+
220341
+ for (var i = 0; i < nodes.length; i++) {
220342
+ var node = nodes[i];
220343
+
220344
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220345
+ if (fieldNames.indexOf(node.name) === -1) {
220346
+ fieldNames.push(node.name);
220347
+ var sameNameEles = this.getNodesByName("all", true, node.name);
220348
+
220349
+ for (var j = 0; j < sameNameEles.length; j++) {
220350
+ var ele = sameNameEles[j];
220351
+ if (nodes.indexOf(ele) >= 0) continue;
220352
+
220353
+ if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220354
+ ele.setFieldText(node.text);
220355
+ }
220356
+ }
220357
+ }
220358
+ }
220359
+
220360
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
220361
+ if (dateNames.indexOf(node.name) === -1) {
220362
+ dateNames.push(node.name);
220363
+
220364
+ var _sameNameEles = this.getNodesByName("all", true, node.name);
220365
+
220366
+ for (var _j = 0; _j < _sameNameEles.length; _j++) {
220367
+ var _ele = _sameNameEles[_j];
220368
+ if (nodes.indexOf(_ele) >= 0) continue;
220369
+
220370
+ if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
220371
+ _ele.setDateTimeText(node.text);
220372
+ }
220373
+ }
220374
+ }
220375
+ }
220376
+
220377
+ if (node instanceof DownListNode/* DownListNode */.yF) {
220378
+ if (downNames.indexOf(node.name) === -1) {
220379
+ downNames.push(node.name);
220380
+
220381
+ var _sameNameEles2 = this.getNodesByName("all", true, node.name);
220382
+
220383
+ for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
220384
+ var _ele2 = _sameNameEles2[_j2];
220385
+ if (nodes.indexOf(_ele2) >= 0) continue;
220386
+
220387
+ if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
220388
+ _ele2.setDownListText(node.text);
220389
+ }
220390
+ }
220391
+ }
220392
+ }
220393
+ }
220394
+ }
220303
220395
  }]);
220304
220396
 
220305
220397
  return VueController;
@@ -221301,7 +221393,19 @@ var EditController = /*#__PURE__*/function () {
221301
221393
  if (!hoeditorfactory.pasteBase) {
221302
221394
  for (var n = 0; n < nodes.length; n++) {
221303
221395
  var node = nodes[n];
221304
- 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;
221396
+
221397
+ if (node instanceof ParagraphNode/* ParagraphNode */.C || node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof ControlNode/* ControlNode */.w) {
221398
+ var style = hoeditorfactory.docTree.styles[node.styleIndex];
221399
+
221400
+ if (style.combineStyle.script != 0) {
221401
+ var newStyle = style.clone();
221402
+ newStyle.script = style.combineStyle.script;
221403
+ var newStyleIndex = hoeditorfactory.docTree.styleCompare(newStyle);
221404
+ node.styleIndex = newStyleIndex;
221405
+ } else {
221406
+ node.styleIndex = hoeditorfactory.docTree.curStyleIndex;
221407
+ }
221408
+ }
221305
221409
 
221306
221410
  if (node instanceof ParagraphNode/* ParagraphNode */.C) {
221307
221411
  node.paraNo = hoeditorfactory.docTree.curParaNo;
@@ -224974,9 +225078,9 @@ var HoFooter_component = normalizeComponent(
224974
225078
  )
224975
225079
 
224976
225080
  /* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
224977
- ;// 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=23e9e01e&
224978
- var ControlModalvue_type_template_id_23e9e01e_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)}
224979
- var ControlModalvue_type_template_id_23e9e01e_staticRenderFns = []
225081
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=2efd7672&
225082
+ var ControlModalvue_type_template_id_2efd7672_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"toolModals",staticClass:"control-modal",on:{"mousedown":_vm.toolModalDown}},[(_vm.controlType === 'barcode')?_c('Barcode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'qrcode')?_c('QrCode',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'express')?_c('ExpressionForm',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'text')?_c('TextDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'date')?_c('DateDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId},on:{"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoDateFieldModal",fn:function(){return [_vm._t("hoDateModal")]},proxy:true},{key:"hoTextFieldModal",fn:function(){return [_vm._t("hoTextModal")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'select')?_c('SelectDialog',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'gestation')?_c('Gestation',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table')?_c('TableProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-row')?_c('TableRowProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-cell')?_c('TableCellProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'table-col')?_c('TableColProperty',{attrs:{"hoEditorFactoryId":_vm.hoEditorFactoryId,"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isCustoms)?_c('CustomAttributes',{attrs:{"isTableProperty":_vm.isTableProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isDataSource)?_c('DataSourceDialog',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.isListStyle)?_c('ListSource',{on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'RadioBox' || _vm.controlType === 'CheckBox')?_c('RadioCheckbox',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus,"hoEditorFactoryId":_vm.hoEditorFactoryId,"controlProperty":_vm.controlProperty},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'waterset')?_c('WaterSetDialog',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'comment')?_c('CommentDialog',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"insertComments":_vm.insertComments,"closed":_vm.handleClose},scopedSlots:_vm._u([{key:"hoCommentModal",fn:function(){return [_vm._t("hoComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlType === 'pageInfoes')?_c('PageInfoes',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'delimiter')?_c('Delimiter',{attrs:{"vueController":_vm.vueController},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'sign')?_c('Sign',{attrs:{"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e(),(_vm.controlType === 'upload-image')?_c('UploadImageDialog',{attrs:{"uploadImageParams":_vm.uploadImageParams,"vueController":_vm.vueController,"controlStatus":_vm.controlStatus},on:{"closed":_vm.handleClose}}):_vm._e()],1)}
225083
+ var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
224980
225084
 
224981
225085
 
224982
225086
  ;// 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&
@@ -227167,9 +227271,9 @@ var RadioCheckbox_component = normalizeComponent(
227167
227271
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/index.ts
227168
227272
 
227169
227273
  /* harmony default export */ var radioCheckBox = (radioCheckBox_RadioCheckbox);
227170
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/commentDialog/CommentDialog.vue?vue&type=template&id=cea35636&
227171
- var CommentDialogvue_type_template_id_cea35636_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents comment-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("批注")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":function($event){return _vm.$emit('closed')}}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("批注内容")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","autosize":{ minRows: 6, maxRows: 6 },"clearable":"","placeholder":"批注内容","maxlength":"256","show-word-limit":""},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_vm._t("hoCommentModal")],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":function($event){return _vm.$emit('closed')}}},[_vm._v("取消")])],1)])}
227172
- var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
227274
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/commentDialog/CommentDialog.vue?vue&type=template&id=27b7d6e2&
227275
+ var CommentDialogvue_type_template_id_27b7d6e2_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents comment-modal animation-in"},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("批注")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":function($event){return _vm.$emit('closed')}}})]),_c('section',{staticClass:"modal-content"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("批注内容")]),_c('el-input',{attrs:{"type":"textarea","size":"mini","autosize":{ minRows: 6, maxRows: 6 },"clearable":"","placeholder":"批注内容","maxlength":"256","show-word-limit":""},model:{value:(_vm.textContent),callback:function ($$v) {_vm.textContent=$$v},expression:"textContent"}})],1),_vm._t("hoCommentModal")],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":function($event){return _vm.$emit('closed')}}},[_vm._v("取消")])],1)])}
227276
+ var CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns = []
227173
227277
 
227174
227278
 
227175
227279
  ;// 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/commentDialog/CommentDialog.vue?vue&type=script&lang=js&
@@ -227222,15 +227326,27 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
227222
227326
  mounted: function mounted() {},
227223
227327
  methods: {
227224
227328
  sure: function sure() {
227225
- if (this.textContent) {
227226
- if (this.controlStatus === 'update') {
227227
- this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
227228
- } else {
227229
- this.$emit('insertComments', this.textContent);
227230
- this.vueController.insertComment(this.textContent, this.getCustomProperty());
227231
- }
227329
+ var _this = this;
227232
227330
 
227233
- this.$emit('closed');
227331
+ var callback = function callback() {
227332
+ _this.$emit('closed');
227333
+ };
227334
+
227335
+ if (this.controlStatus === 'update') {
227336
+ this.$emit('insertComments', {
227337
+ id: this.commentValue.id,
227338
+ content: this.textContent,
227339
+ customProperty: this.getCustomProperty(),
227340
+ type: 'update',
227341
+ callback: callback
227342
+ }); // this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
227343
+ } else {
227344
+ this.$emit('insertComments', {
227345
+ content: this.textContent,
227346
+ customProperty: this.getCustomProperty(),
227347
+ type: 'add',
227348
+ callback: callback
227349
+ }); // this.vueController.insertComment(this.textContent, this.getCustomProperty());
227234
227350
  }
227235
227351
  }
227236
227352
  }
@@ -227253,8 +227369,8 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
227253
227369
 
227254
227370
  var CommentDialog_component = normalizeComponent(
227255
227371
  commentDialog_CommentDialogvue_type_script_lang_js_,
227256
- CommentDialogvue_type_template_id_cea35636_render,
227257
- CommentDialogvue_type_template_id_cea35636_staticRenderFns,
227372
+ CommentDialogvue_type_template_id_27b7d6e2_render,
227373
+ CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns,
227258
227374
  false,
227259
227375
  null,
227260
227376
  null,
@@ -230578,8 +230694,8 @@ ControlModal = __decorate([vue_class_component_esm({
230578
230694
  ;
230579
230695
  var ControlModal_component = normalizeComponent(
230580
230696
  controls_ControlModalvue_type_script_lang_ts_,
230581
- ControlModalvue_type_template_id_23e9e01e_render,
230582
- ControlModalvue_type_template_id_23e9e01e_staticRenderFns,
230697
+ ControlModalvue_type_template_id_2efd7672_render,
230698
+ ControlModalvue_type_template_id_2efd7672_staticRenderFns,
230583
230699
  false,
230584
230700
  null,
230585
230701
  null,
@@ -232425,9 +232541,9 @@ var HoDocs_component = normalizeComponent(
232425
232541
  )
232426
232542
 
232427
232543
  /* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
232428
- ;// 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=5232c890&
232429
- var ToolBarvue_type_template_id_5232c890_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)}
232430
- var ToolBarvue_type_template_id_5232c890_staticRenderFns = []
232544
+ ;// 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&
232545
+ 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)}
232546
+ var ToolBarvue_type_template_id_0e95df22_staticRenderFns = []
232431
232547
 
232432
232548
 
232433
232549
  ;// 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&
@@ -237549,27 +237665,32 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
237549
237665
  }, {
237550
237666
  key: "deleteComment",
237551
237667
  value: function deleteComment() {
237552
- var _this5 = this;
237553
-
237554
- var selectedComment = this.vueController.getOnSelectedComment();
237555
-
237556
- if (selectedComment) {
237557
- this.$elConfirm("确定要删除选中的批注吗", "删除确认", {
237558
- cancelButtonText: "取消",
237559
- confirmButtonText: "确定",
237560
- type: "warning"
237561
- }).then(function () {
237562
- _this5.vueController.deleteComment(1);
237563
- }).catch(function () {});
237564
- } else {
237565
- this.$elMessage.closeAll();
237566
- this.$elMessage.warning({
237567
- message: "点击选中右侧批注区域内已添加的批注后,进行删除操作",
237568
- duration: 3000,
237569
- offset: 120
237570
- });
237571
- return;
237572
- }
237668
+ this.$emit("insertComments", {
237669
+ type: 'delete',
237670
+ selectedComment: this.vueController.getOnSelectedComment()
237671
+ }); // const selectedComment = this.vueController.getOnSelectedComment();
237672
+ // if (selectedComment) {
237673
+ // (this as any)
237674
+ // .$elConfirm("确定要删除选中的批注吗", "删除确认", {
237675
+ // cancelButtonText: "取消",
237676
+ // confirmButtonText: "确定",
237677
+ // type: "warning",
237678
+ // })
237679
+ // .then(() => {
237680
+ // this.vueController.deleteComment(1);
237681
+ // })
237682
+ // .catch(() => {
237683
+ // console.log("取消删除");
237684
+ // });
237685
+ // } else {
237686
+ // (this as any).$elMessage.closeAll();
237687
+ // (this as any).$elMessage.warning({
237688
+ // message: "点击选中右侧批注区域内已添加的批注后,进行删除操作",
237689
+ // duration: 3000,
237690
+ // offset: 120,
237691
+ // });
237692
+ // return;
237693
+ // }
237573
237694
  }
237574
237695
  /**
237575
237696
  * 删除全部批注
@@ -237578,15 +237699,21 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
237578
237699
  }, {
237579
237700
  key: "deleteAllComment",
237580
237701
  value: function deleteAllComment() {
237581
- var _this6 = this;
237582
-
237583
- this.$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)", "删除确认", {
237584
- cancelButtonText: "取消",
237585
- confirmButtonText: "确定",
237586
- type: "warning"
237587
- }).then(function () {
237588
- _this6.vueController.deleteComment(0);
237589
- }).catch(function () {});
237702
+ this.$emit("insertComments", {
237703
+ type: 'deleteAll',
237704
+ commentValue: this.vueController.getDocCommentValue()
237705
+ }); // (this as any)
237706
+ // .$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)", "删除确认", {
237707
+ // cancelButtonText: "取消",
237708
+ // confirmButtonText: "确定",
237709
+ // type: "warning",
237710
+ // })
237711
+ // .then(() => {
237712
+ // this.vueController.deleteComment(0);
237713
+ // })
237714
+ // .catch(() => {
237715
+ // console.log("取消删除");
237716
+ // });
237590
237717
  }
237591
237718
  /**
237592
237719
  * 取消删除
@@ -237714,8 +237841,8 @@ ToolBar = __decorate([vue_class_component_esm({
237714
237841
 
237715
237842
  var ToolBar_component = normalizeComponent(
237716
237843
  toolbar_ToolBarvue_type_script_lang_ts_,
237717
- ToolBarvue_type_template_id_5232c890_render,
237718
- ToolBarvue_type_template_id_5232c890_staticRenderFns,
237844
+ ToolBarvue_type_template_id_0e95df22_render,
237845
+ ToolBarvue_type_template_id_0e95df22_staticRenderFns,
237719
237846
  false,
237720
237847
  null,
237721
237848
  null,