hoeditor-web 2.0.54-rc.1 → 2.0.56

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") {
@@ -11789,15 +11805,15 @@ var Print = /*#__PURE__*/function () {
11789
11805
  PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
11790
11806
  }
11791
11807
 
11792
- case 86:
11808
+ case 87:
11793
11809
  reslove && reslove("printend");
11794
11810
 
11795
- case 87:
11811
+ case 88:
11796
11812
  case "end":
11797
11813
  return _context3.stop();
11798
11814
  }
11799
11815
  }
11800
- }, _callee2, this, [[15, 59, 62, 65]]);
11816
+ }, _callee2, this, [[15, 60, 63, 66]]);
11801
11817
  }));
11802
11818
 
11803
11819
  function printToPDF(_x2, _x3, _x4, _x5, _x6, _x7, _x8) {
@@ -22397,8 +22413,7 @@ var Comment = /*#__PURE__*/function () {
22397
22413
  key: "whiteList",
22398
22414
  value: function whiteList() {
22399
22415
  return ['id', 'text', 'date', 'lineHeight', //"endPath",
22400
- 'userID', 'userName', //"endMarkNode"
22401
- 'customProperty'];
22416
+ 'userID', 'userName'];
22402
22417
  }
22403
22418
  }]);
22404
22419
 
@@ -62607,11 +62622,9 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
62607
62622
  }
62608
62623
 
62609
62624
  this._tmp.start = Arange.startPath;
62610
- this._tmp.end = Arange.endPath;
62611
-
62612
- 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())) {
62613
- return true;
62614
- }
62625
+ 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)) {
62626
+ // return true;
62627
+ // }
62615
62628
 
62616
62629
  if (s === e) {
62617
62630
  if (s instanceof _dom_treeNode_TextNode__WEBPACK_IMPORTED_MODULE_13__/* .TextNode */ .R) {
@@ -198745,7 +198758,7 @@ var es_function_name = __webpack_require__(68309);
198745
198758
  // EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
198746
198759
  var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
198747
198760
  var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
198748
- ;// 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&
198761
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDocs.vue?vue&type=template&id=3651fabe&
198749
198762
  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()}
198750
198763
  var staticRenderFns = []
198751
198764
 
@@ -206727,7 +206740,7 @@ var SignNode = __webpack_require__(34450);
206727
206740
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206728
206741
  var ParagraphNode = __webpack_require__(14208);
206729
206742
  ;// CONCATENATED MODULE: ./src/components/version.ts
206730
- /* harmony default export */ var version = ('2.0.54-rc.1');
206743
+ /* harmony default export */ var version = ('2.0.56');
206731
206744
  ;// 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&
206732
206745
  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)}
206733
206746
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -211827,6 +211840,7 @@ var StructureConvert = /*#__PURE__*/function () {
211827
211840
  var comments = hoEditorFactory.drawTree.commentsMap;
211828
211841
  comments.forEach(function (value) {
211829
211842
  var commentJson = JSON.parse(JSON.stringify(value, Comment/* Comment.whiteList */.s.whiteList()));
211843
+ commentJson.customProperty = value.customProperty;
211830
211844
  commentsArr.push(commentJson);
211831
211845
  });
211832
211846
  return {
@@ -220249,6 +220263,15 @@ var VueController = /*#__PURE__*/function () {
220249
220263
  });
220250
220264
  return ishandle;
220251
220265
  }
220266
+ /**
220267
+ * 获取当前病历中所以批注
220268
+ */
220269
+
220270
+ }, {
220271
+ key: "getDocCommentValue",
220272
+ value: function getDocCommentValue() {
220273
+ return HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree.commentsMap;
220274
+ }
220252
220275
  /**
220253
220276
  * 批量修改当前病历中批注处理状态
220254
220277
  * @param status 默认修改为 1==已处理
@@ -220260,10 +220283,12 @@ var VueController = /*#__PURE__*/function () {
220260
220283
  var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree;
220261
220284
  var commentsMap = drawTree.commentsMap;
220262
220285
  commentsMap.forEach(function (value, key) {
220263
- if (value.customProperty) {
220264
- value.customProperty.ishandle = status == undefined ? '1' : status;
220265
- commentsMap.set(key, value);
220286
+ if (!value.customProperty) {
220287
+ value.customProperty = {};
220266
220288
  }
220289
+
220290
+ value.customProperty.ishandle = status == undefined ? '1' : status;
220291
+ commentsMap.set(key, value);
220267
220292
  });
220268
220293
  drawTree.commentsMap = commentsMap;
220269
220294
  }
@@ -220298,6 +220323,71 @@ var VueController = /*#__PURE__*/function () {
220298
220323
  getAllNodes(mainNodes);
220299
220324
  return isHasDoctorSign;
220300
220325
  }
220326
+ }, {
220327
+ key: "SyncElements",
220328
+ value: function SyncElements() {
220329
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220330
+ var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
220331
+ var nodes = DomRange/* DomRange.getSelectDomNodesForUpdate */.a.getSelectDomNodesForUpdate(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.endPath);
220332
+ var fieldNames = [];
220333
+ var dateNames = [];
220334
+ var downNames = [];
220335
+ hoEditorFactory.docTree.curDomRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, curDomRange.startPath, curDomRange.startPath);
220336
+
220337
+ for (var i = 0; i < nodes.length; i++) {
220338
+ var node = nodes[i];
220339
+
220340
+ if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220341
+ if (fieldNames.indexOf(node.name) === -1) {
220342
+ fieldNames.push(node.name);
220343
+ var sameNameEles = this.getNodesByName("all", true, node.name);
220344
+
220345
+ for (var j = 0; j < sameNameEles.length; j++) {
220346
+ var ele = sameNameEles[j];
220347
+ if (nodes.indexOf(ele) >= 0) continue;
220348
+
220349
+ if (ele instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220350
+ ele.setFieldText(node.text);
220351
+ }
220352
+ }
220353
+ }
220354
+ }
220355
+
220356
+ if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
220357
+ if (dateNames.indexOf(node.name) === -1) {
220358
+ dateNames.push(node.name);
220359
+
220360
+ var _sameNameEles = this.getNodesByName("all", true, node.name);
220361
+
220362
+ for (var _j = 0; _j < _sameNameEles.length; _j++) {
220363
+ var _ele = _sameNameEles[_j];
220364
+ if (nodes.indexOf(_ele) >= 0) continue;
220365
+
220366
+ if (_ele instanceof DateTimeNode/* DateTimeNode */.Z) {
220367
+ _ele.setDateTimeText(node.text);
220368
+ }
220369
+ }
220370
+ }
220371
+ }
220372
+
220373
+ if (node instanceof DownListNode/* DownListNode */.yF) {
220374
+ if (downNames.indexOf(node.name) === -1) {
220375
+ downNames.push(node.name);
220376
+
220377
+ var _sameNameEles2 = this.getNodesByName("all", true, node.name);
220378
+
220379
+ for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
220380
+ var _ele2 = _sameNameEles2[_j2];
220381
+ if (nodes.indexOf(_ele2) >= 0) continue;
220382
+
220383
+ if (_ele2 instanceof DownListNode/* DownListNode */.yF) {
220384
+ _ele2.setDownListText(node.text);
220385
+ }
220386
+ }
220387
+ }
220388
+ }
220389
+ }
220390
+ }
220301
220391
  }]);
220302
220392
 
220303
220393
  return VueController;
@@ -224972,9 +225062,9 @@ var HoFooter_component = normalizeComponent(
224972
225062
  )
224973
225063
 
224974
225064
  /* harmony default export */ var components_HoFooter = (HoFooter_component.exports);
224975
- ;// 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&
224976
- 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)}
224977
- var ControlModalvue_type_template_id_23e9e01e_staticRenderFns = []
225065
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/ControlModal.vue?vue&type=template&id=2efd7672&
225066
+ 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)}
225067
+ var ControlModalvue_type_template_id_2efd7672_staticRenderFns = []
224978
225068
 
224979
225069
 
224980
225070
  ;// 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&
@@ -227165,9 +227255,9 @@ var RadioCheckbox_component = normalizeComponent(
227165
227255
  ;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/index.ts
227166
227256
 
227167
227257
  /* harmony default export */ var radioCheckBox = (radioCheckBox_RadioCheckbox);
227168
- ;// 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&
227169
- 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)])}
227170
- var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
227258
+ ;// 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&
227259
+ 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)])}
227260
+ var CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns = []
227171
227261
 
227172
227262
 
227173
227263
  ;// 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&
@@ -227220,15 +227310,27 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
227220
227310
  mounted: function mounted() {},
227221
227311
  methods: {
227222
227312
  sure: function sure() {
227223
- if (this.textContent) {
227224
- if (this.controlStatus === 'update') {
227225
- this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
227226
- } else {
227227
- this.$emit('insertComments', this.textContent);
227228
- this.vueController.insertComment(this.textContent, this.getCustomProperty());
227229
- }
227313
+ var _this = this;
227230
227314
 
227231
- this.$emit('closed');
227315
+ var callback = function callback() {
227316
+ _this.$emit('closed');
227317
+ };
227318
+
227319
+ if (this.controlStatus === 'update') {
227320
+ this.$emit('insertComments', {
227321
+ id: this.commentValue.id,
227322
+ content: this.textContent,
227323
+ customProperty: this.getCustomProperty(),
227324
+ type: 'update',
227325
+ callback: callback
227326
+ }); // this.vueController.editComment(this.commentValue.id, this.textContent, this.getCustomProperty());
227327
+ } else {
227328
+ this.$emit('insertComments', {
227329
+ content: this.textContent,
227330
+ customProperty: this.getCustomProperty(),
227331
+ type: 'add',
227332
+ callback: callback
227333
+ }); // this.vueController.insertComment(this.textContent, this.getCustomProperty());
227232
227334
  }
227233
227335
  }
227234
227336
  }
@@ -227251,8 +227353,8 @@ var CommentDialogvue_type_template_id_cea35636_staticRenderFns = []
227251
227353
 
227252
227354
  var CommentDialog_component = normalizeComponent(
227253
227355
  commentDialog_CommentDialogvue_type_script_lang_js_,
227254
- CommentDialogvue_type_template_id_cea35636_render,
227255
- CommentDialogvue_type_template_id_cea35636_staticRenderFns,
227356
+ CommentDialogvue_type_template_id_27b7d6e2_render,
227357
+ CommentDialogvue_type_template_id_27b7d6e2_staticRenderFns,
227256
227358
  false,
227257
227359
  null,
227258
227360
  null,
@@ -230576,8 +230678,8 @@ ControlModal = __decorate([vue_class_component_esm({
230576
230678
  ;
230577
230679
  var ControlModal_component = normalizeComponent(
230578
230680
  controls_ControlModalvue_type_script_lang_ts_,
230579
- ControlModalvue_type_template_id_23e9e01e_render,
230580
- ControlModalvue_type_template_id_23e9e01e_staticRenderFns,
230681
+ ControlModalvue_type_template_id_2efd7672_render,
230682
+ ControlModalvue_type_template_id_2efd7672_staticRenderFns,
230581
230683
  false,
230582
230684
  null,
230583
230685
  null,
@@ -232423,9 +232525,9 @@ var HoDocs_component = normalizeComponent(
232423
232525
  )
232424
232526
 
232425
232527
  /* harmony default export */ var components_HoDocs = (HoDocs_component.exports);
232426
- ;// 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&
232427
- 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)}
232428
- var ToolBarvue_type_template_id_5232c890_staticRenderFns = []
232528
+ ;// 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&
232529
+ 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)}
232530
+ var ToolBarvue_type_template_id_0e95df22_staticRenderFns = []
232429
232531
 
232430
232532
 
232431
232533
  ;// 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&
@@ -237547,27 +237649,32 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
237547
237649
  }, {
237548
237650
  key: "deleteComment",
237549
237651
  value: function deleteComment() {
237550
- var _this5 = this;
237551
-
237552
- var selectedComment = this.vueController.getOnSelectedComment();
237553
-
237554
- if (selectedComment) {
237555
- this.$elConfirm("确定要删除选中的批注吗", "删除确认", {
237556
- cancelButtonText: "取消",
237557
- confirmButtonText: "确定",
237558
- type: "warning"
237559
- }).then(function () {
237560
- _this5.vueController.deleteComment(1);
237561
- }).catch(function () {});
237562
- } else {
237563
- this.$elMessage.closeAll();
237564
- this.$elMessage.warning({
237565
- message: "点击选中右侧批注区域内已添加的批注后,进行删除操作",
237566
- duration: 3000,
237567
- offset: 120
237568
- });
237569
- return;
237570
- }
237652
+ this.$emit("insertComments", {
237653
+ type: 'delete',
237654
+ selectedComment: this.vueController.getOnSelectedComment()
237655
+ }); // const selectedComment = this.vueController.getOnSelectedComment();
237656
+ // if (selectedComment) {
237657
+ // (this as any)
237658
+ // .$elConfirm("确定要删除选中的批注吗", "删除确认", {
237659
+ // cancelButtonText: "取消",
237660
+ // confirmButtonText: "确定",
237661
+ // type: "warning",
237662
+ // })
237663
+ // .then(() => {
237664
+ // this.vueController.deleteComment(1);
237665
+ // })
237666
+ // .catch(() => {
237667
+ // console.log("取消删除");
237668
+ // });
237669
+ // } else {
237670
+ // (this as any).$elMessage.closeAll();
237671
+ // (this as any).$elMessage.warning({
237672
+ // message: "点击选中右侧批注区域内已添加的批注后,进行删除操作",
237673
+ // duration: 3000,
237674
+ // offset: 120,
237675
+ // });
237676
+ // return;
237677
+ // }
237571
237678
  }
237572
237679
  /**
237573
237680
  * 删除全部批注
@@ -237576,15 +237683,21 @@ var ToolBar = /*#__PURE__*/function (_Vue) {
237576
237683
  }, {
237577
237684
  key: "deleteAllComment",
237578
237685
  value: function deleteAllComment() {
237579
- var _this6 = this;
237580
-
237581
- this.$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)", "删除确认", {
237582
- cancelButtonText: "取消",
237583
- confirmButtonText: "确定",
237584
- type: "warning"
237585
- }).then(function () {
237586
- _this6.vueController.deleteComment(0);
237587
- }).catch(function () {});
237686
+ this.$emit("insertComments", {
237687
+ type: 'deleteAll',
237688
+ commentValue: this.vueController.getDocCommentValue()
237689
+ }); // (this as any)
237690
+ // .$elConfirm("确定要删除文档内全部的批注吗(只能删除用户本人创建的批注)", "删除确认", {
237691
+ // cancelButtonText: "取消",
237692
+ // confirmButtonText: "确定",
237693
+ // type: "warning",
237694
+ // })
237695
+ // .then(() => {
237696
+ // this.vueController.deleteComment(0);
237697
+ // })
237698
+ // .catch(() => {
237699
+ // console.log("取消删除");
237700
+ // });
237588
237701
  }
237589
237702
  /**
237590
237703
  * 取消删除
@@ -237712,8 +237825,8 @@ ToolBar = __decorate([vue_class_component_esm({
237712
237825
 
237713
237826
  var ToolBar_component = normalizeComponent(
237714
237827
  toolbar_ToolBarvue_type_script_lang_ts_,
237715
- ToolBarvue_type_template_id_5232c890_render,
237716
- ToolBarvue_type_template_id_5232c890_staticRenderFns,
237828
+ ToolBarvue_type_template_id_0e95df22_render,
237829
+ ToolBarvue_type_template_id_0e95df22_staticRenderFns,
237717
237830
  false,
237718
237831
  null,
237719
237832
  null,