hoeditor-web 2.0.51 → 2.0.52

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.
@@ -13440,12 +13440,12 @@ var DocController = /*#__PURE__*/function () {
13440
13440
 
13441
13441
  }, {
13442
13442
  key: "insertNodeByPath",
13443
- value: function insertNodeByPath(path, node) {
13443
+ value: function insertNodeByPath(path, node, isResetFieldText) {
13444
13444
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
13445
13445
  var curRange = hoEditorFactory.docTree.curDomRange.normalize();
13446
13446
  var parentNode = node.parentNode;
13447
13447
 
13448
- if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1) {
13448
+ if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
13449
13449
  var firstPath = parentNode.StartMarkNode.getNodePath();
13450
13450
  var lastPath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
13451
13451
  curRange = new _DomRange__WEBPACK_IMPORTED_MODULE_31__/* .DomRange */ .a(this._hoEditorFactoryID, firstPath, lastPath);
@@ -13629,7 +13629,7 @@ var DocController = /*#__PURE__*/function () {
13629
13629
  } else {
13630
13630
  var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
13631
13631
 
13632
- strPath = _this.insertNodeByPath(strPath, _textNode);
13632
+ strPath = _this.insertNodeByPath(strPath, _textNode, oldCanModifyContent == undefined ? false : true);
13633
13633
  }
13634
13634
  } else {
13635
13635
  var styleIndex = hoEditorFactory.docTree.curStyleIndex;
@@ -13640,7 +13640,7 @@ var DocController = /*#__PURE__*/function () {
13640
13640
 
13641
13641
  var _textNode2 = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, styleIndex);
13642
13642
 
13643
- strPath = _this.insertNodeByPath(strPath, _textNode2);
13643
+ strPath = _this.insertNodeByPath(strPath, _textNode2, oldCanModifyContent == undefined ? false : true);
13644
13644
  } // if (index === arrSubString.length - 1 && isEndLine && oldCanModifyContent !== undefined && pNode instanceof TextInputFieldNode) {
13645
13645
  // pNode.canModifyContent = oldCanModifyContent;
13646
13646
  // pNode.update();
@@ -14727,8 +14727,11 @@ var DocController = /*#__PURE__*/function () {
14727
14727
  node.update();
14728
14728
 
14729
14729
  if (node.parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
14730
- node.parentNode.drawCell.needUpdate = true;
14731
- node.parentNode.table.update();
14730
+ node.parentNode.drawCell.needUpdate = true; //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
14731
+
14732
+ if (node.parentNode.drawCell.drawPageCells.length > 1) {
14733
+ node.parentNode.table.update();
14734
+ }
14732
14735
  }
14733
14736
 
14734
14737
  return "";
@@ -49203,6 +49206,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49203
49206
  value: function paint(dTop, dParent, restHeight) {
49204
49207
  var totalHeight = 0;
49205
49208
  var aTop = dTop;
49209
+
49210
+ if (this.table.tableProperty.fixedOnePage) {
49211
+ restHeight = Infinity;
49212
+ }
49213
+
49206
49214
  var pageRestHeight = restHeight;
49207
49215
  var bStartRowFinished = true;
49208
49216
 
@@ -49696,21 +49704,6 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49696
49704
  var row = -1;
49697
49705
  var col = -1;
49698
49706
 
49699
- for (var r = this._startRow; r <= this._endRow; r++) {
49700
- var _this$_partRowHeights;
49701
-
49702
- var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
49703
-
49704
- if (rowHeight) {
49705
- if (y >= top && y <= top + rowHeight) {
49706
- row = r;
49707
- break;
49708
- }
49709
-
49710
- top += rowHeight;
49711
- }
49712
- }
49713
-
49714
49707
  for (var c = 0; c < this._table.colCount; c++) {
49715
49708
  var colWidth = this._table.colInfos[c].colWidth;
49716
49709
 
@@ -49726,12 +49719,49 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49726
49719
  left += colWidth;
49727
49720
  }
49728
49721
 
49722
+ var r = this._startRow;
49723
+
49724
+ while (r <= this._endRow) {
49725
+ var _this$_partRowHeights;
49726
+
49727
+ //for (let r = this._startRow; r <= this._endRow; r++) {
49728
+ var rowHeight = (_this$_partRowHeights = this._partRowHeights.get(r)) === null || _this$_partRowHeights === void 0 ? void 0 : _this$_partRowHeights.rowHeight;
49729
+ var aHeight = rowHeight;
49730
+ var rowSpan = 1;
49731
+
49732
+ if (this._table.tableProperty.isAutoChangeLine) {
49733
+ var _this$_table$getMainC15 = this._table.getMainCell(r, col),
49734
+ _this$_table$getMainC16 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC15, 3),
49735
+ mainCell = _this$_table$getMainC16[0],
49736
+ mr = _this$_table$getMainC16[1],
49737
+ mc = _this$_table$getMainC16[2];
49738
+
49739
+ var partCell = mainCell.drawCell.getDrawPageCell(this);
49740
+
49741
+ if (partCell && aHeight) {
49742
+ rowHeight = Math.max(aHeight, partCell.docHeight);
49743
+ }
49744
+ } //this._partRowHeights.get(r)?.rowHeight
49745
+
49746
+
49747
+ if (aHeight && rowHeight) {
49748
+ if (y >= top && y <= top + rowHeight) {
49749
+ row = r;
49750
+ break;
49751
+ }
49752
+
49753
+ top += aHeight;
49754
+ }
49755
+
49756
+ r += rowSpan;
49757
+ }
49758
+
49729
49759
  if (row >= 0 && col >= 0) {
49730
- var _this$_table$getMainC15 = this._table.getMainCell(row, col),
49731
- _this$_table$getMainC16 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC15, 3),
49732
- cell = _this$_table$getMainC16[0],
49733
- mr = _this$_table$getMainC16[1],
49734
- mc = _this$_table$getMainC16[2];
49760
+ var _this$_table$getMainC17 = this._table.getMainCell(row, col),
49761
+ _this$_table$getMainC18 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC17, 3),
49762
+ cell = _this$_table$getMainC18[0],
49763
+ _mr2 = _this$_table$getMainC18[1],
49764
+ _mc2 = _this$_table$getMainC18[2];
49735
49765
 
49736
49766
  var ret = cell.drawCell.getDrawPageCell(this);
49737
49767
 
@@ -49764,11 +49794,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49764
49794
  var ar = r;
49765
49795
 
49766
49796
  if (!cell) {
49767
- var _this$_table$getMainC17 = this._table.getMainCell(r, c),
49768
- _this$_table$getMainC18 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC17, 3),
49769
- mainCell = _this$_table$getMainC18[0],
49770
- mr = _this$_table$getMainC18[1],
49771
- mc = _this$_table$getMainC18[2];
49797
+ var _this$_table$getMainC19 = this._table.getMainCell(r, c),
49798
+ _this$_table$getMainC20 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC19, 3),
49799
+ mainCell = _this$_table$getMainC20[0],
49800
+ mr = _this$_table$getMainC20[1],
49801
+ mc = _this$_table$getMainC20[2];
49772
49802
 
49773
49803
  cell = mainCell;
49774
49804
  ar = mr;
@@ -49822,11 +49852,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49822
49852
  var rowPaintHeight = Math.min(rowRestHeight, pageRestHeight);
49823
49853
 
49824
49854
  for (var c = 0; c < this._table.colCount; c++) {
49825
- var _this$_table$getMainC19 = this._table.getMainCell(r, c),
49826
- _this$_table$getMainC20 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC19, 3),
49827
- cell = _this$_table$getMainC20[0],
49828
- mr = _this$_table$getMainC20[1],
49829
- mc = _this$_table$getMainC20[2];
49855
+ var _this$_table$getMainC21 = this._table.getMainCell(r, c),
49856
+ _this$_table$getMainC22 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC21, 3),
49857
+ cell = _this$_table$getMainC22[0],
49858
+ mr = _this$_table$getMainC22[1],
49859
+ mc = _this$_table$getMainC22[2];
49830
49860
 
49831
49861
  var cellRestHeight = rowPaintHeight; //同一行的合并列只绘制一次
49832
49862
 
@@ -49887,11 +49917,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49887
49917
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.table.hoEditorFactoryID);
49888
49918
 
49889
49919
  if (this.table.tableProperty.fixedOnePage) {
49890
- if (this.table.drawTable.dHeight + 28 > this._maxHeight) {
49891
- return;
49892
- } else {
49893
- dRestHeight = dRestHeight;
49894
- }
49920
+ dRestHeight = Infinity;
49895
49921
  }
49896
49922
 
49897
49923
  var pageRestHeight = dRestHeight;
@@ -49955,11 +49981,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49955
49981
  var isEmptyRow = true; //是否绘制了一个单元格
49956
49982
 
49957
49983
  for (var c = 0; c < this._table.colCount; c++) {
49958
- var _this$_table$getMainC21 = this._table.getMainCell(r, c),
49959
- _this$_table$getMainC22 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC21, 3),
49960
- cell = _this$_table$getMainC22[0],
49961
- mr = _this$_table$getMainC22[1],
49962
- mc = _this$_table$getMainC22[2];
49984
+ var _this$_table$getMainC23 = this._table.getMainCell(r, c),
49985
+ _this$_table$getMainC24 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC23, 3),
49986
+ cell = _this$_table$getMainC24[0],
49987
+ mr = _this$_table$getMainC24[1],
49988
+ mc = _this$_table$getMainC24[2];
49963
49989
 
49964
49990
  if (cell && mc === c && mr + cell.rowSpan - 1 === r) {
49965
49991
  isEmptyRow = false;
@@ -49980,18 +50006,18 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
49980
50006
  }
49981
50007
 
49982
50008
  for (var _c2 = 0; _c2 < this._table.colCount; _c2++) {
49983
- var _this$_table$getMainC23 = this._table.getMainCell(r, _c2),
49984
- _this$_table$getMainC24 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC23, 3),
49985
- _cell2 = _this$_table$getMainC24[0],
49986
- _mr2 = _this$_table$getMainC24[1],
49987
- _mc2 = _this$_table$getMainC24[2];
50009
+ var _this$_table$getMainC25 = this._table.getMainCell(r, _c2),
50010
+ _this$_table$getMainC26 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC25, 3),
50011
+ _cell2 = _this$_table$getMainC26[0],
50012
+ _mr3 = _this$_table$getMainC26[1],
50013
+ _mc3 = _this$_table$getMainC26[2];
49988
50014
 
49989
- if (_cell2 && _mc2 === _c2 && (_mr2 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
50015
+ if (_cell2 && _mc3 === _c2 && (_mr3 + _cell2.rowSpan - 1 == r || rowRestHeight > pageRestHeight - 10 || pageRestHeight - rowRestHeight < hoEditorFactory.defaultLineHeight)) {
49990
50016
  var startChildIndex = 0;
49991
50017
  var partCellindex = -1;
49992
50018
  var dPrevPartCell = null;
49993
50019
 
49994
- if (prevdPageTable && _mr2 <= this._startRow) {
50020
+ if (prevdPageTable && _mr3 <= this._startRow) {
49995
50021
  dPrevPartCell = _cell2.drawCell.getDrawPageCell(prevdPageTable);
49996
50022
 
49997
50023
  if (dPrevPartCell) {
@@ -50046,7 +50072,7 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50046
50072
  _cell2.drawCell.needUpdate = true;
50047
50073
  }
50048
50074
 
50049
- if (r === _mr2) {
50075
+ if (r === _mr3) {
50050
50076
  dPartCell.maxHeight = pageRestHeight;
50051
50077
  dPartCell.dHeight = Math.min(rowRestHeight, pageRestHeight);
50052
50078
  } else {
@@ -50148,11 +50174,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
50148
50174
  //跨行单元格只在绘制所跨最后一行时绘制
50149
50175
  continue;
50150
50176
  } else if (!cell) {
50151
- var _this$_table$getMainC25 = this._table.getMainCell(r, j),
50152
- _this$_table$getMainC26 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC25, 3),
50153
- mainCell = _this$_table$getMainC26[0],
50154
- mr = _this$_table$getMainC26[1],
50155
- mc = _this$_table$getMainC26[2];
50177
+ var _this$_table$getMainC27 = this._table.getMainCell(r, j),
50178
+ _this$_table$getMainC28 = (0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_this$_table$getMainC27, 3),
50179
+ mainCell = _this$_table$getMainC28[0],
50180
+ mr = _this$_table$getMainC28[1],
50181
+ mc = _this$_table$getMainC28[2];
50156
50182
 
50157
50183
  if (mr + mainCell.rowSpan - 1 === r && mc === j) {
50158
50184
  cell = mainCell;
@@ -51162,7 +51188,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
51162
51188
  bitmap.setTransform(bitmap.x, bitmap.y, scale, scale);
51163
51189
  fingerBitmap.setTransform(fingerBitmap.x, fingerBitmap.y, fingerscale, fingerscale);
51164
51190
  var hitArea = new createjs.Shape();
51165
- hitArea.graphics.beginFill("#000").drawRect(0, 0, hitWidth * scale, hitHeight * scale); //这里是图片大小
51191
+ hitArea.graphics.beginFill("#000").drawRect(fingerBitmap.x, 0, fingerWidth * fingerscale, fingerHeight * fingerscale); //这里是图片大小
51166
51192
 
51167
51193
  bitmap.hitArea = hitArea;
51168
51194
  fingerBitmap.hitArea = hitArea;
@@ -206655,7 +206681,7 @@ var SignNode = __webpack_require__(34450);
206655
206681
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
206656
206682
  var ParagraphNode = __webpack_require__(14208);
206657
206683
  ;// CONCATENATED MODULE: ./src/components/version.ts
206658
- /* harmony default export */ var version = ('2.0.51');
206684
+ /* harmony default export */ var version = ('2.0.52');
206659
206685
  ;// 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&
206660
206686
  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)}
206661
206687
  var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
@@ -219013,7 +219039,7 @@ var VueController = /*#__PURE__*/function () {
219013
219039
 
219014
219040
  }, {
219015
219041
  key: "getAllElements",
219016
- value: function getAllElements() {
219042
+ value: function getAllElements(area) {
219017
219043
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
219018
219044
  var ret = [];
219019
219045
 
@@ -219023,21 +219049,29 @@ var VueController = /*#__PURE__*/function () {
219023
219049
 
219024
219050
  if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re || node instanceof DownListNode/* DownListNode */.yF || node instanceof DateTimeNode/* DateTimeNode */.Z) {
219025
219051
  // if (node.readType === 1) {
219026
- var elementObj = {
219027
- id: "",
219028
- name: "",
219029
- text: "",
219052
+ // const elementObj: Record<string, string | undefined | object> = {
219053
+ // id: "",
219054
+ // name: "",
219055
+ // text: "",
219056
+ // dataVerify: undefined,
219057
+ // innerIdentifier: "",
219058
+ // identifierFormat: "",
219059
+ // };
219060
+ // elementObj.id = node.id;
219061
+ // elementObj.name = node.name;
219062
+ // elementObj.text = node.text;
219063
+ // elementObj.innerIdentifier = node.innerIdentifier;
219064
+ // elementObj.identifierFormat = node.identifierFormat;
219065
+ // elementObj.customProperty = node.customProperty;
219066
+ ret.push({
219067
+ id: node.id,
219068
+ name: node.name,
219069
+ text: node.text,
219030
219070
  dataVerify: undefined,
219031
- innerIdentifier: "",
219032
- identifierFormat: ""
219033
- };
219034
- elementObj.id = node.id;
219035
- elementObj.name = node.name;
219036
- elementObj.text = node.text;
219037
- elementObj.innerIdentifier = node.innerIdentifier;
219038
- elementObj.identifierFormat = node.identifierFormat;
219039
- elementObj.customProperty = node.customProperty;
219040
- ret.push(elementObj); // }
219071
+ innerIdentifier: node.innerIdentifier,
219072
+ identifierFormat: node.identifierFormat,
219073
+ customProperty: node.customProperty
219074
+ }); // }
219041
219075
  }
219042
219076
 
219043
219077
  if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
@@ -219046,20 +219080,27 @@ var VueController = /*#__PURE__*/function () {
219046
219080
  }
219047
219081
  };
219048
219082
 
219049
- var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
219083
+ if (area == undefined || area == 'header') {
219084
+ var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
219050
219085
 
219051
- for (var h = 0; h < headerDocTree.length; h++) {
219052
- if (!headerDocTree[h]) continue;
219053
- getAllNodes(headerDocTree[h].subDocNodes);
219086
+ for (var h = 0; h < headerDocTree.length; h++) {
219087
+ if (!headerDocTree[h]) continue;
219088
+ getAllNodes(headerDocTree[h].subDocNodes);
219089
+ }
219054
219090
  }
219055
219091
 
219056
- var mainNodes = hoEditorFactory.docTree.mainNodes;
219057
- getAllNodes(mainNodes);
219058
- var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
219092
+ if (area == undefined || area == 'main') {
219093
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
219094
+ getAllNodes(mainNodes);
219095
+ }
219059
219096
 
219060
- for (var f = 0; f < footerDocTree.length; f++) {
219061
- if (!footerDocTree[f]) continue;
219062
- getAllNodes(footerDocTree[f].subDocNodes);
219097
+ if (area == undefined || area == 'footer') {
219098
+ var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
219099
+
219100
+ for (var f = 0; f < footerDocTree.length; f++) {
219101
+ if (!footerDocTree[f]) continue;
219102
+ getAllNodes(footerDocTree[f].subDocNodes);
219103
+ }
219063
219104
  }
219064
219105
 
219065
219106
  return ret;
@@ -219137,7 +219178,7 @@ var VueController = /*#__PURE__*/function () {
219137
219178
  return allArr;
219138
219179
  }
219139
219180
  /**
219140
- * 获取当前病历中的所有元素
219181
+ * 获取当前病历中的所有ca签名元素
219141
219182
  * @returns 返回元素是{id,name,text,json}的数据
219142
219183
  */
219143
219184
 
@@ -220086,12 +220127,20 @@ var VueController = /*#__PURE__*/function () {
220086
220127
  hoEditorFactory.docTree.curDomRange = newRange;
220087
220128
  hoEditorFactory.drawTree.moveCaretToPath(curDomRange.startPath);
220088
220129
  }
220130
+ /**
220131
+ * 初始化文档
220132
+ */
220133
+
220089
220134
  }, {
220090
220135
  key: "initBlankDoc",
220091
220136
  value: function initBlankDoc() {
220092
220137
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220093
220138
  hoEditorFactory.docController.initBlankDoc();
220094
220139
  }
220140
+ /**
220141
+ * 清理病历文档树 触发浏览器内存回收
220142
+ */
220143
+
220095
220144
  }, {
220096
220145
  key: "destoryEditor",
220097
220146
  value: function destoryEditor() {
@@ -220099,12 +220148,23 @@ var VueController = /*#__PURE__*/function () {
220099
220148
  hoEditorFactory.clear();
220100
220149
  hoEditorFactory = null;
220101
220150
  }
220151
+ /**
220152
+ * 获取签名元素清理后的病历xml内容
220153
+ * @returns xml
220154
+ */
220155
+
220102
220156
  }, {
220103
220157
  key: "clearSignNodes",
220104
220158
  value: function clearSignNodes() {
220105
220159
  var xml = this.getDocXml(true, true, true);
220106
220160
  return xml;
220107
220161
  }
220162
+ /**
220163
+ * // 获取当前病历中是否有未处理的批注
220164
+ * @param area 0 --- 未处理 1 --- 已处理 undefined ----存在批注
220165
+ * @returns boolean 是否查询到批注内容
220166
+ */
220167
+
220108
220168
  }, {
220109
220169
  key: "getDocComment",
220110
220170
  value: function getDocComment(area) {
@@ -220121,6 +220181,11 @@ var VueController = /*#__PURE__*/function () {
220121
220181
  });
220122
220182
  return ishandle;
220123
220183
  }
220184
+ /**
220185
+ * 批量修改当前病历中批注处理状态
220186
+ * @param status 默认修改为 1==已处理
220187
+ */
220188
+
220124
220189
  }, {
220125
220190
  key: "setDocCommentIsHandle",
220126
220191
  value: function setDocCommentIsHandle(status) {
@@ -220134,6 +220199,11 @@ var VueController = /*#__PURE__*/function () {
220134
220199
  });
220135
220200
  drawTree.commentsMap = commentsMap;
220136
220201
  }
220202
+ /**
220203
+ * 查询是否存在医生签名
220204
+ * @returns boolean
220205
+ */
220206
+
220137
220207
  }, {
220138
220208
  key: "getAllSignNode",
220139
220209
  value: function getAllSignNode() {
@@ -222535,9 +222605,9 @@ var PrintController = /*#__PURE__*/function () {
222535
222605
  hoEditorFactory.printStatus.printAppoint = '';
222536
222606
  hoEditorFactory.printStatus.drawPrintRecord.Position = [0, 0];
222537
222607
  hoEditorFactory.startPageNum = 0;
222538
- hoEditorFactory.firstPageStartTop = 0; // hoEditorFactory.printStatus.clearArea();
222539
- // hoEditorFactory.printStatus.drawPrintRecord.clear();
222540
-
222608
+ hoEditorFactory.firstPageStartTop = 0;
222609
+ hoEditorFactory.printStatus.clearArea();
222610
+ hoEditorFactory.printStatus.drawPrintRecord.clear();
222541
222611
  hoEditorFactory.drawTree.rebuildAllDrawLine(false);
222542
222612
  }
222543
222613
  });