hoeditor-web 2.0.108 → 2.0.109

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.
@@ -10836,7 +10836,7 @@ var component = (0,componentNormalizer/* default */.Z)(
10836
10836
 
10837
10837
  /***/ }),
10838
10838
 
10839
- /***/ 37542:
10839
+ /***/ 28663:
10840
10840
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10841
10841
 
10842
10842
  "use strict";
@@ -10848,7 +10848,7 @@ __webpack_require__.d(__webpack_exports__, {
10848
10848
  "default": function() { return /* binding */ Sign; }
10849
10849
  });
10850
10850
 
10851
- ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=49377b0d&
10851
+ ;// CONCATENATED MODULE: ./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=f7d15210&
10852
10852
  var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.animationClassNames},[_c('header',{staticClass:"modal-title"},[_c('span',[_vm._v("签名")]),_c('i',{staticClass:"el-icon-close modal-title-close",on:{"click":_vm.handleClose}})]),_c('section',{staticClass:"modal-content",staticStyle:{"padding":"20px"}},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名名称")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.name),callback:function ($$v) {_vm.name=$$v},expression:"name"}})],1),_c('li',{staticClass:"control-item",staticStyle:{"align-items":"baseline"}},[_c('span',{staticClass:"label"},[_vm._v("签名类型")]),_c('div',{staticStyle:{"flex":"1"}},[_c('el-radio',{attrs:{"label":1},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("患者签名")]),_c('el-radio',{attrs:{"label":0},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("医生签名")]),_c('el-radio',{attrs:{"label":3},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义医生签名")]),_c('el-radio',{attrs:{"label":2},model:{value:(_vm.signType),callback:function ($$v) {_vm.signType=$$v},expression:"signType"}},[_vm._v("自定义CA签名(默认带出职称)")])],1)]),(_vm.signType == 2)?_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("连接符")]),_c('el-input',{staticStyle:{"width":"120px","display":"flex"},attrs:{"size":"mini"},model:{value:(_vm.connectChar),callback:function ($$v) {_vm.connectChar=$$v},expression:"connectChar"}})],1):_vm._e(),(_vm.signType >= 3)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signFormat),callback:function ($$v) {_vm.signFormat=$$v},expression:"signFormat"}},[_c('el-option',{attrs:{"label":"<医师姓名>","value":"<医师姓名>"}}),_c('el-option',{attrs:{"label":"<医师姓名>(<医师职称>)","value":"<医师姓名>(<医师职称>)"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>","value":"<医师姓名>:<医师职称>"}}),_c('el-option',{attrs:{"label":"<医师姓名>:<医师职称>\\n<签名时间>","value":"<医师姓名>:<医师职称>\\n<签名时间>"}}),_vm._l((_vm.customSignFormatList),function(format){return _c('el-option',{key:format.label,attrs:{"label":format.label,"value":format.value}})})],2)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名时间格式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.signTimeFormat),callback:function ($$v) {_vm.signTimeFormat=$$v},expression:"signTimeFormat"}},[_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm:ss","value":"yyyy-MM-DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy-MM-DD HH:mm","value":"yyyy-MM-DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm:ss","value":"yyyy/MM/DD HH:mm:ss"}}),_c('el-option',{attrs:{"label":"yyyy/MM/DD HH:mm","value":"yyyy/MM/DD HH:mm"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分ss秒","value":"yyyy年MM月DD日 HH时mm分ss秒"}}),_c('el-option',{attrs:{"label":"yyyy年MM月DD日 HH时mm分","value":"yyyy年MM月DD日 HH时mm分"}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("签名连接方式")]),_c('el-select',{attrs:{"size":"mini","placeholder":"请选择"},model:{value:(_vm.connectMode),callback:function ($$v) {_vm.connectMode=$$v},expression:"connectMode"}},[_c('el-option',{attrs:{"label":"/","value":"/"}}),_c('el-option',{attrs:{"label":"换行","value":"换行"}}),_c('el-option',{attrs:{"label":"、","value":"、"}}),_c('el-option',{attrs:{"label":",","value":","}})],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.isFront),callback:function ($$v) {_vm.isFront=$$v},expression:"isFront"}},[_vm._v("连接符前置")]),_c('el-tooltip',{attrs:{"placement":"right","effect":"dark"}},[_c('div',{attrs:{"slot":"content"},slot:"content"},[_vm._v("不勾选参数:     医师签名 / "),_c('br'),_vm._v("   勾选参数:     / 医师签名")]),_c('i',{staticClass:"el-icon-info",staticStyle:{"font-size":"18px","margin-left":"10px"}})])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.allowEditSignTime),callback:function ($$v) {_vm.allowEditSignTime=$$v},expression:"allowEditSignTime"}},[_vm._v("允许修改签名时间")])],1)]:_vm._e()],2),(_vm.signType >= 3)?_c('div',{staticClass:"section-right"},[_c('div',{staticClass:"custom-format-tool-box"},[_c('ul',{staticClass:"custom-format-tool"},[_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师姓名>'}}},[_vm._v("医师姓名")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师工号>'}}},[_vm._v("医师工号")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<医师职称>'}}},[_vm._v("医师职称")]),_c('i',{staticClass:"el-icon-circle-plus"})],1),_c('li',[_c('el-button',{attrs:{"size":"small","plain":""},on:{"click":function($event){_vm.customFormatContent += '<签名时间>'}}},[_vm._v("签名时间")]),_c('i',{staticClass:"el-icon-circle-plus"})],1)]),_c('el-input',{attrs:{"type":"textarea","placeholder":"请输入内容"},model:{value:(_vm.customFormatContent),callback:function ($$v) {_vm.customFormatContent=$$v},expression:"customFormatContent"}})],1),_c('p',[_vm._v("提示:")]),_c('p',[_vm._v("1. 尖括号内的内容用来替换, 不能修改")]),_c('p',[_vm._v("2. 尖括号外的内容处理格式,可以编辑")]),_c('p',[_vm._v("2. 回车键可以自动换行,或者手动插入换行符\\n")]),_c('div',{staticClass:"custom-format-tool-btn"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.createSignFormat}},[_vm._v("添加自定义签名格式")])],1)]):_vm._e()]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.insertSign}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
10853
10853
  var staticRenderFns = []
10854
10854
 
@@ -11015,6 +11015,7 @@ var SignNode = __webpack_require__(34450);
11015
11015
  default: ''
11016
11016
  }
11017
11017
  },
11018
+ inject: ['getCustomProperty'],
11018
11019
  data: function data() {
11019
11020
  return {
11020
11021
  height: 20,
@@ -52151,7 +52152,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
52151
52152
  /*
52152
52153
  * @Author: your name
52153
52154
  * @Date: 2020-11-03 15:17:54
52154
- * @LastEditTime: 2022-10-12 08:53:30
52155
+ * @LastEditTime: 2022-10-14 09:51:03
52155
52156
  * @LastEditors: liyanan 2441631434@qq.com
52156
52157
  * @Description: In User Settings Edit
52157
52158
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -52312,11 +52313,11 @@ var DownListProperty = /*#__PURE__*/function () {
52312
52313
  value: function setDefaultImportStyle(ret) {
52313
52314
  //ret._inputFieldType = InputFieldType.text;
52314
52315
  ret._allowMultiSelected = false;
52315
- ret._splitCharacter = ""; //ret._dynamicLoadList = false;
52316
+ ret._splitCharacter = ''; //ret._dynamicLoadList = false;
52316
52317
  //ret._listContent = "";
52317
52318
 
52318
- ret._source = "";
52319
- ret._listItems = "";
52319
+ ret._source = '';
52320
+ ret._listItems = '';
52320
52321
  ret._mutexSelect = false; //ret._specialFormat = SpecialFormat.none;
52321
52322
 
52322
52323
  return ret;
@@ -52518,9 +52519,9 @@ var BandDataSource = /*#__PURE__*/function () {
52518
52519
  key: "setDefaultBandDataSource",
52519
52520
  value: function setDefaultBandDataSource(ret) {
52520
52521
  ret._dataSourceEnabled = true;
52521
- ret._dataSource = "";
52522
- ret._format = "";
52523
- ret._visitPath = "";
52522
+ ret._dataSource = '';
52523
+ ret._format = '';
52524
+ ret._visitPath = '';
52524
52525
  ret._isReadOnly = false;
52525
52526
  ret._autoUpdate = false;
52526
52527
  ret._executeStatus = ExecuteStatus.AlwaysExec;
@@ -52543,12 +52544,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52543
52544
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
52544
52545
  _this._isSynchro = false; //是否同步
52545
52546
 
52546
- _this._labelText = "请输入"; //格式化后的显示
52547
+ _this._labelText = '请输入'; //格式化后的显示
52547
52548
 
52548
- _this._text = "";
52549
- _this._name = ""; //名称
52549
+ _this._text = '';
52550
+ _this._name = ''; //名称
52550
52551
 
52551
- _this._tipText = ""; //提示文本
52552
+ _this._tipText = ''; //提示文本
52552
52553
 
52553
52554
  _this._readOnlyStatus = ReadOnlyStatus.false; //内容只读状态
52554
52555
 
@@ -52560,14 +52561,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52560
52561
 
52561
52562
  _this._enableGlobalColor = true; //启用全局文本颜色
52562
52563
 
52563
- _this._defaultValue = ""; //默认值
52564
+ _this._defaultValue = ''; //默认值
52564
52565
 
52565
52566
  _this._alignWithBlocked = false;
52566
52567
  _this._readType = -1; //保存类型
52567
52568
 
52568
- _this._keyValue = ""; //选中项的key值
52569
+ _this._keyValue = ''; //选中项的key值
52569
52570
 
52570
- _this._value = ""; //选中项的value值
52571
+ _this._value = ''; //选中项的value值
52571
52572
 
52572
52573
  _this._childNodes2 = []; //this._importStyle = new ImportStyle();
52573
52574
 
@@ -52634,22 +52635,22 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52634
52635
 
52635
52636
  _this.setValuesObject(valuesObject);
52636
52637
 
52637
- if (_this.labelText === "") {
52638
- if (_this.text === "" && _this.name !== "") {
52638
+ if (_this.labelText === '') {
52639
+ if (_this.text === '' && _this.name !== '') {
52639
52640
  _this.labelText = _this.name;
52640
52641
  } else {
52641
52642
  if (_this.inputFieldType === InputFieldType.dropDownList) {
52642
- _this.labelText = "请选择";
52643
+ _this.labelText = '请选择';
52643
52644
  }
52644
52645
 
52645
52646
  if (_this.inputFieldType === InputFieldType.text) {
52646
- _this.labelText = "请输入";
52647
+ _this.labelText = '请输入';
52647
52648
  }
52648
52649
  }
52649
52650
  }
52650
52651
 
52651
52652
  if (!_this._dataId) {
52652
- _this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Field");
52653
+ _this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
52653
52654
  } // const serialID = valuesObj["serialID"];
52654
52655
  // let name = "";
52655
52656
  // let readOnlyStatus = ReadOnlyStatus.false;
@@ -52746,12 +52747,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52746
52747
 
52747
52748
  var assignvalue = function assignvalue(target, source) {
52748
52749
  Object.keys(source).forEach(function (value) {
52749
- if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == "object") {
52750
- if (Object.prototype.toString.call(source[value]) === "[object Object]") {
52750
+ if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(target[value]) == 'object') {
52751
+ if (Object.prototype.toString.call(source[value]) === '[object Object]') {
52751
52752
  assignvalue(target[value], source[value]);
52752
52753
  } else {
52753
- if (source[value] !== "" && source[value] !== null) {
52754
- assignvalue(target[value], eval("(" + source[value] + ")"));
52754
+ if (source[value] !== '' && source[value] !== null) {
52755
+ assignvalue(target[value], eval('(' + source[value] + ')'));
52755
52756
  }
52756
52757
  }
52757
52758
  } else {
@@ -52865,7 +52866,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52865
52866
  if (this._labelText !== value) {
52866
52867
  this._labelText = value;
52867
52868
 
52868
- if (this.text === "") {
52869
+ if (this.text === '') {
52869
52870
  this.node2DrawNodeRange(0, 0);
52870
52871
  }
52871
52872
  }
@@ -53049,7 +53050,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53049
53050
  }, {
53050
53051
  key: "generateInnerCode",
53051
53052
  value: function generateInnerCode() {
53052
- return "";
53053
+ return '';
53053
53054
  }
53054
53055
  /**
53055
53056
  * 获取提示文本的节点
@@ -53083,8 +53084,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53083
53084
 
53084
53085
  var ph = 0;
53085
53086
  var needPaint = false;
53086
- var startPath = "";
53087
- var endPath = "";
53087
+ var startPath = '';
53088
+ var endPath = '';
53088
53089
  var first = this.StartMarkNode;
53089
53090
  var last = this.EndMarkNode;
53090
53091
  /**
@@ -53217,7 +53218,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53217
53218
  value: function getFieldText(isClearValue) {
53218
53219
  var _this3 = this;
53219
53220
 
53220
- var text = "";
53221
+ var text = '';
53221
53222
 
53222
53223
  var loopChildNodes = function loopChildNodes(node) {
53223
53224
  var nodes = node.childNodes.slice(1);
@@ -53233,16 +53234,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53233
53234
  if (textStyle.deleterIndex === -1 || textStyle.deleterIndex === undefined) {
53234
53235
  //text += hoEditorFactory.unitConvert.replaceAll(childNode.text, '\n', ' ');
53235
53236
  if (textStyle.script === 1) {
53236
- text += "<下标>" + childNode.text + "</下标>";
53237
+ text += '<下标>' + childNode.text + '</下标>';
53237
53238
  } else if (textStyle.script === 2) {
53238
- text += "<上标>" + childNode.text + "</上标>";
53239
+ text += '<上标>' + childNode.text + '</上标>';
53239
53240
  } else {
53240
53241
  text += childNode.text;
53241
53242
  }
53242
53243
  }
53243
53244
  } else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_40__/* .ControlNode */ .w) {
53244
53245
  if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
53245
- text += "";
53246
+ text += '';
53246
53247
  } else {
53247
53248
  text += childNode.text;
53248
53249
  }
@@ -53251,8 +53252,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53251
53252
  } else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C) {
53252
53253
  text += '\n';
53253
53254
  } else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
53254
- var expressJson = JSON.parse("{}");
53255
- text += "<MedicalExpress>";
53255
+ var expressJson = JSON.parse('{}');
53256
+ text += '<MedicalExpress>';
53256
53257
 
53257
53258
  if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .MenstrualHistoryNode */ .n) {
53258
53259
  expressJson.expressStyle = childNode.expressStyle;
@@ -53269,23 +53270,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53269
53270
  expressJson.value6 = childNode.value6;
53270
53271
 
53271
53272
  if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PupilMapNode */ .v) {
53272
- expressJson.expressStyle = "PupilMapNode";
53273
+ expressJson.expressStyle = 'PupilMapNode';
53273
53274
  expressJson.value7 = childNode.value7;
53274
53275
  } else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__/* .LightLocationMapNode */ .D) {
53275
- expressJson.expressStyle = "LightLocationMapNode";
53276
+ expressJson.expressStyle = 'LightLocationMapNode';
53276
53277
  expressJson.value7 = childNode.value7;
53277
53278
  expressJson.value8 = childNode.value8;
53278
53279
  expressJson.value9 = childNode.value9;
53279
53280
  } else {
53280
- expressJson.expressStyle = "FetalHeartMapNode";
53281
+ expressJson.expressStyle = 'FetalHeartMapNode';
53281
53282
  }
53282
53283
  } else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x) {
53283
53284
  if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f) {
53284
- expressJson.expressStyle = "PermanentTeethMapNode";
53285
+ expressJson.expressStyle = 'PermanentTeethMapNode';
53285
53286
  }
53286
53287
 
53287
53288
  if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x) {
53288
- expressJson.expressStyle = "PrimaryTeethMapNode";
53289
+ expressJson.expressStyle = 'PrimaryTeethMapNode';
53289
53290
  }
53290
53291
 
53291
53292
  expressJson.topLeftSelected = childNode.topLeftSelected;
@@ -53295,7 +53296,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53295
53296
  }
53296
53297
 
53297
53298
  text += JSON.stringify(expressJson);
53298
- text += "</MedicalExpress>";
53299
+ text += '</MedicalExpress>';
53299
53300
  }
53300
53301
  });
53301
53302
  };
@@ -53311,13 +53312,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53311
53312
  }
53312
53313
 
53313
53314
  var value = [];
53314
- var keyValue = this.keyValue.split(",");
53315
+ var keyValue = this.keyValue.split(',');
53315
53316
 
53316
53317
  for (var i = 0; i < listItems.length; i++) {
53317
53318
  var listItem = listItems[i];
53318
53319
 
53319
53320
  if (keyValue.includes(listItem.id)) {
53320
- var index = listItem.text.indexOf("<元素>");
53321
+ var index = listItem.text.indexOf('<元素>');
53321
53322
  text += index === -1 ? listItem.text : listItem.text.substring(0, index);
53322
53323
  }
53323
53324
 
@@ -53326,15 +53327,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53326
53327
  }
53327
53328
  }
53328
53329
 
53329
- this.value = value.join(",");
53330
+ this.value = value.join(',');
53330
53331
  }
53331
53332
  }
53332
53333
 
53333
- if (text === "") {
53334
+ if (text === '') {
53334
53335
  loopChildNodes(this);
53335
- }
53336
+ } //loopChildNodes(this);
53337
+
53336
53338
 
53337
- //loopChildNodes(this);
53338
53339
  return text;
53339
53340
  }
53340
53341
  }, {
@@ -53354,7 +53355,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53354
53355
  this.keyValue = keyValue;
53355
53356
  }
53356
53357
 
53357
- if (!(value === "" && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j)) {
53358
+ if (!(value === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j)) {
53358
53359
  _context2.next = 4;
53359
53360
  break;
53360
53361
  }
@@ -53380,10 +53381,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53380
53381
  }
53381
53382
  }
53382
53383
 
53383
- hoEditorFactory.docController.deleteRange(aRange, true, "update");
53384
+ hoEditorFactory.docController.deleteRange(aRange, true, 'update');
53384
53385
  }
53385
53386
 
53386
- if (!(value === "")) {
53387
+ if (!(value === '')) {
53387
53388
  _context2.next = 21;
53388
53389
  break;
53389
53390
  }
@@ -53467,10 +53468,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53467
53468
  // index = astyle.changeStyleString("fontBackColor", "transparent");
53468
53469
  // }
53469
53470
 
53470
- this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMark */ .Jq.ntMark, "|", index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart);
53471
+ this.StartMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMark */ .Jq.ntMark, '|', index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart);
53471
53472
  this.StartMarkNode.isReadOnly = true;
53472
53473
  this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart;
53473
- this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMark */ .Jq.ntMark, "]", index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd);
53474
+ this.EndMarkNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j(this._hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMark */ .Jq.ntMark, ']', index, _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd);
53474
53475
  this.EndMarkNode.isReadOnly = true;
53475
53476
  this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd;
53476
53477
  this.StartMarkNode.pair = this.EndMarkNode;
@@ -53488,7 +53489,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53488
53489
 
53489
53490
  this._childNodes = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_toConsumableArray_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this._childNodes2);
53490
53491
 
53491
- if (this.text != "") {
53492
+ if (this.text != '') {
53492
53493
  if (this._childNodes2.length == 3) {
53493
53494
  this.childNodes.splice(1, 1);
53494
53495
  }
@@ -53611,7 +53612,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53611
53612
  }, {
53612
53613
  key: "hasChildPath",
53613
53614
  value: function hasChildPath() {
53614
- if (this.labelText.length == 0 || this.text === "") {
53615
+ if (this.labelText.length == 0 || this.text === '') {
53615
53616
  return false;
53616
53617
  } else {
53617
53618
  return true;
@@ -53629,7 +53630,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53629
53630
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
53630
53631
 
53631
53632
  if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign) {
53632
- return [false, ""];
53633
+ return [false, ''];
53633
53634
  }
53634
53635
 
53635
53636
  var label = this.getLabel();
@@ -53642,7 +53643,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53642
53643
  return [true, path];
53643
53644
  }
53644
53645
 
53645
- return [true, ""];
53646
+ return [true, ''];
53646
53647
  }
53647
53648
  /**
53648
53649
  * 校验节点中的数据是否符合校验条件
@@ -53652,7 +53653,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53652
53653
  }, {
53653
53654
  key: "verifyData",
53654
53655
  value: function verifyData() {
53655
- return [true, ""];
53656
+ return [true, ''];
53656
53657
  }
53657
53658
  /**
53658
53659
  * 绘制后所包含字符的实际宽度
@@ -53675,8 +53676,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53675
53676
  if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || this.isAllowDelete) {
53676
53677
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
53677
53678
  } else {
53678
- if (operType !== "update") {
53679
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
53679
+ if (operType !== 'update') {
53680
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。', '系统提示');
53680
53681
  } else {
53681
53682
  return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_get_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_getPrototypeOf_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)(TextInputFieldNode.prototype), "delete", this).call(this);
53682
53683
  }
@@ -53786,7 +53787,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53786
53787
  for (var i = 0; i < this.childNodes.length; i++) {
53787
53788
  var node = this.childNodes[i];
53788
53789
 
53789
- if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.text.substr(0, 1) !== "C")) {
53790
+ if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
53790
53791
  if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_53__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
53791
53792
  childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
53792
53793
  } else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
@@ -53799,7 +53800,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53799
53800
  }
53800
53801
  } else {
53801
53802
  if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
53802
- if (node.text !== "") {
53803
+ if (node.text !== '') {
53803
53804
  childArray.push(node.node2Json(undefined, isCopy));
53804
53805
  }
53805
53806
  } else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__/* .DateTimeNode */ .Z) {
@@ -53859,7 +53860,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53859
53860
  }
53860
53861
 
53861
53862
  if (canCopy) {
53862
- if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node.text.substr(0, 1) === "C")) {
53863
+ if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
53863
53864
  childArray.push(_node.node2Json(rec, isCopy));
53864
53865
  }
53865
53866
  }
@@ -53870,23 +53871,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53870
53871
  }
53871
53872
 
53872
53873
  if (childArray.length > 0) {
53873
- if (childArray[0].nodeType === "ntMark" && childArray[0].type === 0) {
53874
- if (childArray[childArray.length - 1].nodeType !== "ntMark") {
53874
+ if (childArray[0].nodeType === 'ntMark' && childArray[0].type === 0) {
53875
+ if (childArray[childArray.length - 1].nodeType !== 'ntMark') {
53875
53876
  childArray.splice(0, 1);
53876
53877
  }
53877
53878
 
53878
- if (childArray[childArray.length - 1].nodeType === "ntMark" && childArray[childArray.length - 1].type !== 2) {
53879
+ if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type !== 2) {
53879
53880
  childArray.splice(childArray.length - 1, 1);
53880
53881
  childArray.splice(0, 1);
53881
53882
  }
53882
53883
  }
53883
53884
 
53884
- if (childArray[childArray.length - 1].nodeType === "ntMark" && childArray[childArray.length - 1].type === 2) {
53885
- if (childArray[0].nodeType !== "ntMark") {
53885
+ if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type === 2) {
53886
+ if (childArray[0].nodeType !== 'ntMark') {
53886
53887
  childArray.splice(childArray.length - 1, 1);
53887
53888
  }
53888
53889
 
53889
- if (childArray[0].nodeType === "ntMark" && childArray[0].type !== 0) {
53890
+ if (childArray[0].nodeType === 'ntMark' && childArray[0].type !== 0) {
53890
53891
  childArray.splice(childArray.length - 1, 1);
53891
53892
  childArray.splice(0, 1);
53892
53893
  }
@@ -53901,7 +53902,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53901
53902
  item: childArray
53902
53903
  };
53903
53904
  } else {
53904
- if (type === "json") {
53905
+ if (type === 'json') {
53905
53906
  childNodes = childArray;
53906
53907
  } else {
53907
53908
  childNodes = {
@@ -53914,7 +53915,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53914
53915
 
53915
53916
  if (isCopy) {
53916
53917
  return {
53917
- nodeType: "ntField",
53918
+ nodeType: 'ntField',
53918
53919
  inputFieldType: InputFieldType[this.inputFieldType],
53919
53920
  id: this.id,
53920
53921
  dataId: this.dataId,
@@ -53944,14 +53945,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53944
53945
  };
53945
53946
  }
53946
53947
 
53947
- var parentid = "";
53948
+ var parentid = '';
53948
53949
 
53949
53950
  if (this.parentNode && this.parentNode instanceof TextInputFieldNode) {
53950
53951
  parentid = this.parentNode.id;
53951
53952
  }
53952
53953
 
53953
53954
  var retObj = {
53954
- nodeType: "ntField",
53955
+ nodeType: 'ntField',
53955
53956
  inputFieldType: InputFieldType[this.inputFieldType],
53956
53957
  id: this.id,
53957
53958
  parentId: parentid,
@@ -53981,7 +53982,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53981
53982
  childNodes: childNodes
53982
53983
  };
53983
53984
  return {
53984
- "TextInputFieldNode": retObj
53985
+ TextInputFieldNode: retObj
53985
53986
  };
53986
53987
  }
53987
53988
  }, {
@@ -54048,19 +54049,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54048
54049
  }, {
54049
54050
  key: "getTagNameCn",
54050
54051
  value: function getTagNameCn() {
54051
- return "输入域t";
54052
+ return '输入域t';
54052
54053
  }
54053
54054
  }], [{
54054
54055
  key: "json2Node",
54055
54056
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
54056
54057
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
54058
+ var eachCount = 0;
54057
54059
  delete json.nodeType;
54058
54060
  this.transType(json);
54059
54061
 
54060
54062
  if (isPaste) {
54061
- if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
54063
+ if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
54062
54064
  //json.id = hoEditorFactory.gernerateCode.generateID("TF");
54063
- json.dataId = hoEditorFactory.gernerateCode.generateID("Field");
54065
+ json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
54064
54066
  }
54065
54067
  }
54066
54068
 
@@ -54080,20 +54082,29 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54080
54082
  var nodes = new Array();
54081
54083
 
54082
54084
  var getChildNodes = function getChildNodes(item) {
54085
+ // eachCount++;
54086
+ // if(json.name === '1-1') {
54087
+ // console.time(`1-1---${eachCount}`);
54088
+ // };
54083
54089
  if (Array.isArray(item)) {
54084
54090
  //数组
54085
54091
  for (var i = 0; i < item.length; i++) {
54086
- var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
54092
+ // if(json.name === '1-1' && item[i].name) {
54093
+ // console.time(`----${i}----1-1----${item[i].name}`);
54094
+ // };
54095
+ var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign); // if(json.name === '1-1' && item[i].name) {
54096
+ // console.timeEnd(`----${i}----1-1----${item[i].name}`);
54097
+ // };
54087
54098
 
54088
54099
  if (node) {
54089
54100
  if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
54090
- if (node.text !== "") {
54101
+ if (node.text !== '') {
54091
54102
  nodes.push(node);
54092
54103
  }
54093
54104
  } else {
54094
54105
  if (isClearSign) {
54095
54106
  if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54096
- if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == "")) {
54107
+ if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
54097
54108
  nodes.push(node);
54098
54109
  }
54099
54110
  } else {
@@ -54101,7 +54112,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54101
54112
  }
54102
54113
  } else {
54103
54114
  if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54104
- if (!(node.number == 0 && node.type == 0 && node.name == "")) {
54115
+ if (!(node.number == 0 && node.type == 0 && node.name == '')) {
54105
54116
  nodes.push(node);
54106
54117
  }
54107
54118
  } else {
@@ -54111,7 +54122,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54111
54122
  }
54112
54123
  }
54113
54124
 
54114
- if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd && node.text.substring(0, 1) === "C") {
54125
+ if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
54115
54126
  hoEditorFactory.structureConvert._markNodes.push(node);
54116
54127
  }
54117
54128
 
@@ -54125,14 +54136,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54125
54136
 
54126
54137
  if (_node2) {
54127
54138
  if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
54128
- if (_node2.text !== "") {
54139
+ if (_node2.text !== '') {
54129
54140
  nodes.push(_node2);
54130
54141
  }
54131
54142
  } else {
54132
54143
  //nodes.push(node);
54133
54144
  if (isClearSign) {
54134
54145
  if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54135
- if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == "")) {
54146
+ if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
54136
54147
  nodes.push(_node2);
54137
54148
  }
54138
54149
  } else {
@@ -54140,7 +54151,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54140
54151
  }
54141
54152
  } else {
54142
54153
  if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54143
- if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == "")) {
54154
+ if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
54144
54155
  nodes.push(_node2);
54145
54156
  }
54146
54157
  } else {
@@ -54150,29 +54161,28 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54150
54161
  }
54151
54162
  }
54152
54163
 
54153
- if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd && _node2.text.substring(0, 1) === "C") {
54164
+ if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
54154
54165
  hoEditorFactory.structureConvert._markNodes.push(_node2);
54155
54166
  }
54156
54167
 
54157
54168
  if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
54158
54169
  hoEditorFactory.structureConvert._superiorSign[0] = _node2;
54159
54170
  }
54160
- }
54161
- };
54171
+ } // if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
54172
+
54173
+ }; // if(json.name === '1-1') console.time("1-1--0");
54174
+
54162
54175
 
54163
54176
  if (isPaste) {
54164
54177
  if (json.childNodes.item) {
54165
54178
  getChildNodes(json.childNodes.item);
54166
- } else {
54167
- if (json.childNodes.node) {
54168
- getChildNodes(json.childNodes.node);
54169
- }
54170
- }
54171
- } else {
54172
- if (json.childNodes.node) {
54179
+ } else if (json.childNodes.node) {
54173
54180
  getChildNodes(json.childNodes.node);
54174
54181
  }
54175
- }
54182
+ } else if (json.childNodes.node) {
54183
+ getChildNodes(json.childNodes.node);
54184
+ } // if(json.name === '1-1') console.timeEnd("1-1--0");
54185
+
54176
54186
 
54177
54187
  if (nodes.length > 0) {
54178
54188
  if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) {
@@ -54203,11 +54213,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54203
54213
  var eChildNode = temp.childNodes[temp.childNodes.length - 1];
54204
54214
 
54205
54215
  if (!(sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) || sChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && sChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart) {
54206
- throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
54216
+ throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
54207
54217
  }
54208
54218
 
54209
54219
  if (!(eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) || eChildNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && eChildNode.MarkNodeType !== _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd) {
54210
- throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
54220
+ throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
54211
54221
  }
54212
54222
  }
54213
54223
 
@@ -54234,14 +54244,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54234
54244
  temp.childNodes.splice(1, temp.childNodes.length - 2);
54235
54245
  var styleIndex = temp.childNodes[0].styleIndex;
54236
54246
 
54237
- if (temp.text !== "") {
54238
- if (temp.text.includes("\\r\\n") || temp.text.includes("\\R\\N")) {
54247
+ if (temp.text !== '') {
54248
+ if (temp.text.includes('\\r\\n') || temp.text.includes('\\R\\N')) {
54239
54249
  var lineArr = [];
54240
54250
 
54241
- if (temp.text.includes("\\r\\n")) {
54242
- lineArr = temp.text.split("\\r\\n");
54243
- } else if (temp.text.includes("\\R\\N")) {
54244
- lineArr = temp.text.split("\\R\\N");
54251
+ if (temp.text.includes('\\r\\n')) {
54252
+ lineArr = temp.text.split('\\r\\n');
54253
+ } else if (temp.text.includes('\\R\\N')) {
54254
+ lineArr = temp.text.split('\\R\\N');
54245
54255
  }
54246
54256
 
54247
54257
  for (var i = 0; i < lineArr.length; i++) {
@@ -54258,10 +54268,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54258
54268
  } else {
54259
54269
  var expressArr = new Array();
54260
54270
 
54261
- if (temp.text.includes("<MedicalExpress>")) {
54271
+ if (temp.text.includes('<MedicalExpress>')) {
54262
54272
  var getAllMedicalExpress = function getAllMedicalExpress(str) {
54263
- var sIndex = str.lastIndexOf("<MedicalExpress>");
54264
- var eIndex = str.lastIndexOf("</MedicalExpress>");
54273
+ var sIndex = str.lastIndexOf('<MedicalExpress>');
54274
+ var eIndex = str.lastIndexOf('</MedicalExpress>');
54265
54275
 
54266
54276
  if (sIndex !== -1) {
54267
54277
  var obj = {
@@ -54275,7 +54285,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54275
54285
 
54276
54286
  str = str.substring(0, sIndex);
54277
54287
 
54278
- if (str.includes("<MedicalExpress>")) {
54288
+ if (str.includes('<MedicalExpress>')) {
54279
54289
  getAllMedicalExpress(str);
54280
54290
  }
54281
54291
  };
@@ -54283,7 +54293,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54283
54293
  getAllMedicalExpress(temp.text);
54284
54294
  }
54285
54295
 
54286
- var firstText = "";
54296
+ var firstText = '';
54287
54297
  expressArr = expressArr.reverse();
54288
54298
 
54289
54299
  if (expressArr.length > 0) {
@@ -54299,40 +54309,57 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54299
54309
  if (json.customProperty && json.customProperty.isRemoveLineFeed) {
54300
54310
  textArr.push(textStr);
54301
54311
  } else {
54302
- textArr = textStr.split("\n");
54312
+ textArr = textStr.split('\n');
54303
54313
  }
54304
54314
 
54305
54315
  var getText = function getText(atext) {
54306
54316
  var result = new Array();
54307
- var index1 = atext.indexOf("<上标>");
54308
- var index2 = atext.indexOf("</上标>");
54309
- result.push({
54310
- "mark": 0,
54311
- "text": atext.substring(0, index1)
54312
- });
54313
- result.push({
54314
- "mark": 1,
54315
- "text": atext.substring(index1 + 4, index2)
54316
- });
54317
+ var index1 = -1;
54318
+ var index2 = -1;
54319
+
54320
+ if (atext.indexOf('<上标>') >= 0) {
54321
+ index1 = atext.indexOf('<上标>');
54322
+ index2 = atext.indexOf('</上标>');
54323
+ result.push({
54324
+ mark: 0,
54325
+ text: atext.substring(0, index1)
54326
+ });
54327
+ result.push({
54328
+ mark: 1,
54329
+ text: atext.substring(index1 + 4, index2)
54330
+ });
54331
+ } else {
54332
+ index1 = atext.indexOf('<下标>');
54333
+ index2 = atext.indexOf('</下标>');
54334
+ result.push({
54335
+ mark: 0,
54336
+ text: atext.substring(0, index1)
54337
+ });
54338
+ result.push({
54339
+ mark: 2,
54340
+ text: atext.substring(index1 + 4, index2)
54341
+ });
54342
+ }
54343
+
54317
54344
  atext = atext.substring(index2 + 5, atext.length);
54318
54345
 
54319
- if (atext.indexOf("<上标>") >= 0) {
54346
+ if (atext.indexOf('<上标>') >= 0 || atext.indexOf('<下标>') >= 0) {
54320
54347
  getText(atext);
54321
54348
  } else {
54322
54349
  result.push({
54323
- "mark": 0,
54324
- "text": atext
54350
+ mark: 0,
54351
+ text: atext
54325
54352
  });
54326
54353
  }
54327
54354
 
54328
54355
  return result;
54329
54356
  };
54330
54357
 
54331
- if (textArr[0].indexOf("<上标>") >= 0) {
54358
+ if (textArr[0].indexOf('<上标>') >= 0 || textArr[0].indexOf('<下标>') >= 0) {
54332
54359
  var resultArr = getText(textArr[0]);
54333
54360
 
54334
54361
  for (var k = 0; k < resultArr.length; k++) {
54335
- if (resultArr[k].text != "") {
54362
+ if (resultArr[k].text != '') {
54336
54363
  var newStyleIndex = styleIndex;
54337
54364
 
54338
54365
  if (resultArr[k].mark == 1) {
@@ -54342,6 +54369,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54342
54369
  newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
54343
54370
  }
54344
54371
 
54372
+ if (resultArr[k].mark == 2) {
54373
+ var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54374
+
54375
+ _textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
54376
+
54377
+ _textStyle.script = 1;
54378
+ newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
54379
+ }
54380
+
54345
54381
  var textNode0 = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, resultArr[k].text, newStyleIndex);
54346
54382
  temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
54347
54383
  }
@@ -54357,21 +54393,21 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54357
54393
  paragraNode.styleIndex = styleIndex;
54358
54394
  temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
54359
54395
 
54360
- if (textArr[_i2] !== "") {
54361
- if (textArr[_i2].indexOf("<上标>") >= 0) {
54396
+ if (textArr[_i2] !== '') {
54397
+ if (textArr[_i2].indexOf('<上标>') >= 0 || textArr[_i2].indexOf('<下标>') >= 0) {
54362
54398
  var resultArr1 = getText(textArr[_i2]);
54363
54399
 
54364
54400
  for (var _k = 0; _k < resultArr1.length; _k++) {
54365
- if (resultArr1[_k].text != "") {
54401
+ if (resultArr1[_k].text != '') {
54366
54402
  var _newStyleIndex = styleIndex;
54367
54403
 
54368
54404
  if (resultArr1[_k].mark == 1) {
54369
- var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54405
+ var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54370
54406
 
54371
- _textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
54407
+ _textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
54372
54408
 
54373
- _textStyle.script = 2;
54374
- _newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
54409
+ _textStyle2.script = 2;
54410
+ _newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
54375
54411
  }
54376
54412
 
54377
54413
  var _textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntText */ .Jq.ntText, resultArr1[_k].text, _newStyleIndex);
@@ -54389,7 +54425,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54389
54425
  }
54390
54426
  };
54391
54427
 
54392
- if (firstText !== "") {
54428
+ if (firstText !== '') {
54393
54429
  getChildTextNodes(firstText);
54394
54430
  }
54395
54431
 
@@ -54408,17 +54444,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54408
54444
 
54409
54445
  var medicalExpressNode = void 0;
54410
54446
 
54411
- if (expressStyle.includes("style")) {
54447
+ if (expressStyle.includes('style')) {
54412
54448
  //经期史
54413
54449
  medicalExpressNode = new _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .MenstrualHistoryNode */ .n(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressStyle, expressObj.menseDays, expressObj.cycleDays, expressObj.menarcheAge, expressObj.menoPauseAge);
54414
54450
  } else {
54415
- if (expressStyle === "PupilMapNode") {
54451
+ if (expressStyle === 'PupilMapNode') {
54416
54452
  medicalExpressNode = new _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PupilMapNode */ .v(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7);
54417
- } else if (expressStyle === "LightLocationMapNode") {
54453
+ } else if (expressStyle === 'LightLocationMapNode') {
54418
54454
  medicalExpressNode = new _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__/* .LightLocationMapNode */ .D(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6, expressObj.value7, expressObj.value8, expressObj.value9);
54419
- } else if (expressStyle === "FetalHeartMapNode") {
54455
+ } else if (expressStyle === 'FetalHeartMapNode') {
54420
54456
  medicalExpressNode = new _FetalHeartMapNode__WEBPACK_IMPORTED_MODULE_42__/* .FetalHeartMapNode */ .t(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.value1, expressObj.value2, expressObj.value3, expressObj.value4, expressObj.value5, expressObj.value6);
54421
- } else if (expressStyle === "PermanentTeethMapNode") {
54457
+ } else if (expressStyle === 'PermanentTeethMapNode') {
54422
54458
  medicalExpressNode = new _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
54423
54459
  } else {
54424
54460
  medicalExpressNode = new _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x(hoEditorFactoryID, rootNodes, temp, _BaseNode__WEBPACK_IMPORTED_MODULE_39__/* .NodeType.ntMedicalExpression */ .Jq.ntMedicalExpression, expressObj.topLeftSelected, expressObj.topRightSelected, expressObj.bottomLeftSelected, expressObj.bottomRightSelected);
@@ -54426,7 +54462,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54426
54462
  }
54427
54463
 
54428
54464
  temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
54429
- var behindText = ""; //表达式后的文本串
54465
+ var behindText = ''; //表达式后的文本串
54430
54466
 
54431
54467
  if (_i3 < expressArr.length - 1) {
54432
54468
  behindText = temp.text.substring(eIndex + 17, expressArr[_i3 + 1].sIndex);
@@ -209477,7 +209513,7 @@ var map = {
209477
209513
  "./qrCode/QrCode.vue": 67776,
209478
209514
  "./radioCheckBox/RadioCheckbox.vue": 48961,
209479
209515
  "./selectDialog/SelectDialog.vue": 89365,
209480
- "./sign/Sign.vue": 37542,
209516
+ "./sign/Sign.vue": 28663,
209481
209517
  "./table/TableCellPoper.vue": 43529,
209482
209518
  "./table/TableCellProperty.vue": 52445,
209483
209519
  "./table/TableColProperty.vue": 17479,
@@ -214852,7 +214888,7 @@ var SignNode = __webpack_require__(34450);
214852
214888
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
214853
214889
  var ParagraphNode = __webpack_require__(14208);
214854
214890
  ;// CONCATENATED MODULE: ./src/components/version.ts
214855
- /* harmony default export */ var version = ('2.0.108');
214891
+ /* harmony default export */ var version = ('2.0.109');
214856
214892
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
214857
214893
  var PoperTipText = __webpack_require__(44523);
214858
214894
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -218200,19 +218236,36 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218200
218236
  var result = new Array();
218201
218237
 
218202
218238
  var getText = function getText(text) {
218203
- var index1 = text.indexOf("<上标>");
218204
- var index2 = text.indexOf("<上标/>");
218205
- result.push({
218206
- "mark": 0,
218207
- "text": text.substring(0, index1)
218208
- });
218209
- result.push({
218210
- "mark": 1,
218211
- "text": text.substring(index1 + 4, index2)
218212
- });
218213
- text = text.substring(index2 + 5, text.length);
218239
+ var index1 = -1;
218240
+ var index2 = -1;
218214
218241
 
218215
218242
  if (text.indexOf("<上标>") >= 0) {
218243
+ index1 = text.indexOf("<上标>");
218244
+ index2 = text.indexOf("<上标/>");
218245
+ result.push({
218246
+ "mark": 0,
218247
+ "text": text.substring(0, index1)
218248
+ });
218249
+ result.push({
218250
+ "mark": 1,
218251
+ "text": text.substring(index1 + 4, index2)
218252
+ });
218253
+ } else {
218254
+ index1 = text.indexOf("<下标>");
218255
+ index2 = text.indexOf("<下标/>");
218256
+ result.push({
218257
+ "mark": 0,
218258
+ "text": text.substring(0, index1)
218259
+ });
218260
+ result.push({
218261
+ "mark": 2,
218262
+ "text": text.substring(index1 + 4, index2)
218263
+ });
218264
+ }
218265
+
218266
+ text = text.substring(index2 + 5, text.length);
218267
+
218268
+ if (text.indexOf("<上标>") >= 0 || text.indexOf("<下标>") >= 0) {
218216
218269
  getText(text);
218217
218270
  } else {
218218
218271
  result.push({
@@ -218222,7 +218275,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218222
218275
  }
218223
218276
  };
218224
218277
 
218225
- if (text.indexOf("<上标>") >= 0) {
218278
+ if (text.indexOf("<上标>") >= 0 || text.indexOf("<下标>") >= 0) {
218226
218279
  getText(text);
218227
218280
  }
218228
218281
 
@@ -218231,6 +218284,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218231
218284
  result.forEach(function (value, key) {
218232
218285
  if (value.mark === 1) {
218233
218286
  styleobj["vertical_align"] = "super";
218287
+ } else if (value.mark === 2) {
218288
+ styleobj["vertical_align"] = "sub";
218234
218289
  } else {
218235
218290
  styleobj["vertical_align"] = "";
218236
218291
  }
@@ -219419,78 +219474,31 @@ var StructureConvert = /*#__PURE__*/function () {
219419
219474
  }, {
219420
219475
  key: "xml2Doc",
219421
219476
  value: function xml2Doc(xml, isClearSign) {
219422
- // xml = this.replaceNodesName(xml);
219423
- // const x2js = new X2JS({ stripWhitespaces: false });
219424
- // const object = x2js.xml2js(xml);
219425
- // const json = JSON.parse(JSON.stringify(object));
219426
- // if (!json.root && !json.rvxml) {
219427
- // return;
219428
- // }
219429
- // if (json.root) {
219430
- // const root = json.root;
219431
- // //处理页眉
219432
- // let headers = root.headers.header;
219433
- // if (headers.length === undefined) {
219434
- // headers = Array(root.headers.header);
219435
- // }
219436
- // const headerArrays = new Array<Array<any>>();
219437
- // for (let hi = 0; hi < headers.length; hi++) {
219438
- // const index = parseInt(headers[hi].index);
219439
- // let headerNodes = headers[hi].node;
219440
- // if (headerNodes.length === undefined) {
219441
- // headerNodes = Array(headers[hi].node);
219442
- // }
219443
- // for (let hj = 0; hj < headerNodes.length; hj++) {
219444
- // const node = headerNodes[hj];
219445
- // if (!headerArrays[index]) {
219446
- // headerArrays[index] = new Array<any>();
219447
- // }
219448
- // headerArrays[index][hj] = node;
219449
- // }
219450
- // }
219451
- // let footers = root.footers.footer;
219452
- // if (footers.length === undefined) {
219453
- // footers = Array(root.footers.footer);
219454
- // }
219455
- // const footerArrays = new Array<Array<any>>();
219456
- // for (let fi = 0; fi < footers.length; fi++) {
219457
- // const index = parseInt(footers[fi].index);
219458
- // let footerNodes = footers[fi].node;
219459
- // if (footerNodes.length === undefined) {
219460
- // footerNodes = Array(footers[fi].node);
219461
- // }
219462
- // for (let fj = 0; fj < footerNodes.length; fj++) {
219463
- // const node = footerNodes[fj];
219464
- // if (!footerArrays[index]) {
219465
- // footerArrays[index] = new Array<any>();
219466
- // }
219467
- // footerArrays[index][fj] = node;
219468
- // }
219469
- // }
219470
- //this.xmlBeauty(xml)
219471
219477
  var aobject = this.xml2Object(xml);
219472
219478
 
219473
219479
  if (aobject) {
219474
219480
  return this.json2Doc(aobject, isClearSign);
219475
- } // if (json.rvxml) {
219476
- // const rvxml = json.rvxml;
219477
- // return;
219478
- // }
219479
-
219481
+ }
219480
219482
  }
219481
219483
  }, {
219482
219484
  key: "xml2Object",
219483
219485
  value: function xml2Object(xml) {
219484
- xml = this.replaceNodesName(xml);
219486
+ // console.time("replaceNodesName");
219487
+ xml = this.replaceNodesName(xml); // console.timeEnd("replaceNodesName");
219488
+
219485
219489
  var x2js = new (x2js_default())({
219486
219490
  stripWhitespaces: false
219487
- });
219488
- var object = x2js.xml2js(xml);
219489
- var json = JSON.parse(JSON.stringify(object));
219491
+ }); // console.time("xml2js");
219492
+
219493
+ var object = x2js.xml2js(xml); // console.timeEnd("xml2js");
219494
+ // const json = JSON.parse(JSON.stringify(object));
219495
+
219496
+ var json = object;
219490
219497
 
219491
219498
  if (!json.root && !json.rvxml) {
219492
219499
  return null;
219493
- }
219500
+ } // console.time("return");
219501
+
219494
219502
 
219495
219503
  if (json.root) {
219496
219504
  var root = json.root; //处理页眉
@@ -219570,7 +219578,8 @@ var StructureConvert = /*#__PURE__*/function () {
219570
219578
  }
219571
219579
  }
219572
219580
 
219573
- var footerSubDocTree = new Array();
219581
+ var footerSubDocTree = new Array(); // console.timeEnd("return");
219582
+
219574
219583
  return {
219575
219584
  docProperty: root.docProperty,
219576
219585
  pageSettings: root.pageSettings,
@@ -220076,51 +220085,8 @@ var StructureConvert = /*#__PURE__*/function () {
220076
220085
  }, {
220077
220086
  key: "json2Doc",
220078
220087
  value: function json2Doc(xx, isClearSign) {
220088
+ // console.time("json2Doc");
220079
220089
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220080
- /*
220081
- const pushChildNodes = (
220082
- node: BaseNode | undefined,
220083
- temp: any,
220084
- rootNodes: any,
220085
- nodes: BaseNode[]
220086
- ) => {
220087
- if (node instanceof TextInputFieldNode) {
220088
- let childNodes = temp.childNodes.node;
220089
- if (childNodes.length === undefined) {
220090
- childNodes = Array(temp.childNodes.node);
220091
- }
220092
- if (childNodes) {
220093
- let childsMap = new Map<any, any>();
220094
- childsMap.set(childNodes, node);
220095
- do {
220096
- const childMap = new Map<any, any>();
220097
- childsMap.forEach((value, key) => {
220098
- childMap.clear();
220099
- for (let mj = 0; mj < key.length; mj++) {
220100
- const childNode = hoEditorFactory.structureConvert.convertNode(
220101
- key[mj],
220102
- rootNodes,
220103
- value
220104
- );
220105
- if (childNode) {
220106
- if (childNode instanceof BaseCombineNode) {
220107
- childNode.childNodes.forEach((value, key) => {
220108
- childNode.removeChild(value);
220109
- });
220110
- childMap.set(key[mj].childNodes.childNode, childNode);
220111
- }
220112
- nodes.push(childNode);
220113
- }
220114
- }
220115
- });
220116
- childsMap.clear();
220117
- childsMap = childMap;
220118
- } while (childsMap.size > 0);
220119
- }
220120
- }
220121
- };
220122
- */
220123
-
220124
220090
  var propertyJson = xx.docProperty;
220125
220091
 
220126
220092
  if (propertyJson) {
@@ -220183,23 +220149,7 @@ var StructureConvert = /*#__PURE__*/function () {
220183
220149
  if (!isClearSign) {
220184
220150
  var comments = xx.comments;
220185
220151
  this._comments = comments.comment;
220186
- } // if (xx.logs) {
220187
- // const logs = xx.logs;
220188
- // let logsArr = [];
220189
- // if (logs.log.length === undefined) {
220190
- // logsArr = Array(logs.log);
220191
- // } else {
220192
- // logsArr = logs.log;
220193
- // }
220194
- // hoEditorFactory.docTree.logRecords = [];
220195
- // for (let l = 0; l < logsArr.length; l++) {
220196
- // const log = new LogRecord();
220197
- // log.operator = logsArr[l].operator;
220198
- // log.operTime = logsArr[l].operTime;
220199
- // log.operType = logsArr[l].operType;
220200
- // hoEditorFactory.docTree.logRecords.push(log);
220201
- // }
220202
- // }
220152
+ } // console.time("histories");
220203
220153
 
220204
220154
 
220205
220155
  hoEditorFactory.docTree.userHistories = [];
@@ -220216,7 +220166,9 @@ var StructureConvert = /*#__PURE__*/function () {
220216
220166
  Object.assign(history, historyObj);
220217
220167
  history.permissionLevel = Number(historyObj.permissionLevel);
220218
220168
  hoEditorFactory.docTree.userHistories.push(history);
220219
- }
220169
+ } // console.timeEnd("histories");
220170
+ // console.time("styles");
220171
+
220220
220172
 
220221
220173
  var styles = xx.styles;
220222
220174
  hoEditorFactory.docTree.styles = [];
@@ -220245,84 +220197,17 @@ var StructureConvert = /*#__PURE__*/function () {
220245
220197
  v.font = '宋体';
220246
220198
  }
220247
220199
  });
220248
- } // for (let i = 0; i < fontStyles.length; i++) {
220249
- // const fontStyle = fontStyles[i];
220250
- // const textStyle = new TextStyle(this._hoEditorFactoryID);
220251
- // //Object.assign(textStyle, fontStyle);
220252
- // if (typeof fontStyle["size"] !== "undefined") {
220253
- // textStyle.size = parseInt(fontStyle["size"]);
220254
- // }
220255
- // if (typeof fontStyle["font"] !== "undefined") {
220256
- // textStyle.font = fontStyle["font"];
220257
- // }
220258
- // if (typeof fontStyle["color"] !== "undefined") {
220259
- // textStyle.color = fontStyle["color"];
220260
- // }
220261
- // if (typeof fontStyle["backColor"] !== "undefined") {
220262
- // textStyle.backColor = fontStyle["backColor"];
220263
- // }
220264
- // if (typeof fontStyle["bold"] !== "undefined") {
220265
- // textStyle.bold = fontStyle["bold"] === "true" ? true : false;
220266
- // }
220267
- // if (typeof fontStyle["italic"] !== "undefined") {
220268
- // textStyle.italic = fontStyle["italic"] === "true" ? true : false;
220269
- // }
220270
- // if (typeof fontStyle["underline"] !== "undefined") {
220271
- // textStyle.underline = fontStyle["underline"] === "true" ? true : false;
220272
- // }
220273
- // if (typeof fontStyle["strikeout"] !== "undefined") {
220274
- // textStyle.strikeout = fontStyle["strikeout"] === "true" ? true : false;
220275
- // }
220276
- // if (typeof fontStyle["script"] !== "undefined") {
220277
- // textStyle.script = parseInt(fontStyle["script"]);
220278
- // }
220279
- // if (typeof fontStyle["creatorIndex"] !== "undefined") {
220280
- // textStyle.creatorIndex = parseInt(fontStyle["creatorIndex"]);
220281
- // }
220282
- // if (typeof fontStyle["deleterIndex"] !== "undefined") {
220283
- // textStyle.deleterIndex = parseInt(fontStyle["deleterIndex"]);
220284
- // }
220285
- // if (typeof fontStyle["commentID"] !== "undefined") {
220286
- // textStyle.commentID = fontStyle["commentID"];
220287
- // }
220288
- // hoEditorFactory.docTree.styles.push(textStyle);
220289
- // }
220290
-
220200
+ }
220291
220201
 
220292
220202
  if (fontStyles) {
220293
220203
  var textStyles = this.getDocStyles("font", fontStyles);
220294
220204
  hoEditorFactory.docTree.styles = hoEditorFactory.docTree.styles.concat(textStyles);
220295
- }
220205
+ } // console.timeEnd("styles");
220206
+
220296
220207
 
220297
220208
  hoEditorFactory.docTree.paragraphs = [];
220298
220209
  var defaultParaStyle = new Paragraph/* Paragraph */.nv(this._hoEditorFactoryID);
220299
220210
  hoEditorFactory.docTree.paragraphs.push(defaultParaStyle); //先把默认的样式放进去
220300
- // for (let i = 0; i < paraStyles.length; i++) {
220301
- // const paraStyle = paraStyles[i];
220302
- // const paragraph: Paragraph = new Paragraph(this._hoEditorFactoryID);
220303
- // if (typeof paraStyle["leftMarginMm"] !== "undefined") {
220304
- // paragraph.leftMargin = parseInt(paraStyle["leftMarginMm"]);
220305
- // }
220306
- // if (typeof paraStyle["rightMarginMm"] !== "undefined") {
220307
- // paragraph.rightMargin = parseInt(paraStyle["rightMarginMm"]);
220308
- // }
220309
- // if (typeof paraStyle["topMarginMm"] !== "undefined") {
220310
- // paragraph.topMargin = parseInt(paraStyle["topMarginMm"]);
220311
- // }
220312
- // if (typeof paraStyle["bottomMarginMm"] !== "undefined") {
220313
- // paragraph.bottomMargin = parseInt(paraStyle["bottomMarginMm"]);
220314
- // }
220315
- // if (typeof paraStyle["align"] !== "undefined") {
220316
- // paragraph.align = parseInt(paraStyle["align"]);
220317
- // }
220318
- // if (typeof paraStyle["charSpace"] !== "undefined") {
220319
- // paragraph.charSpace = parseInt(paraStyle["charSpace"]);
220320
- // }
220321
- // if (typeof paraStyle["lineSpace"] !== "undefined") {
220322
- // paragraph.lineSpace = parseInt(paraStyle["lineSpace"]);
220323
- // }
220324
- // hoEditorFactory.docTree.paragraphs.push(paragraph);
220325
- // }
220326
220211
 
220327
220212
  if (paraStyles) {
220328
220213
  var parasStyles = this.getDocStyles("para", paraStyles);
@@ -220330,7 +220215,7 @@ var StructureConvert = /*#__PURE__*/function () {
220330
220215
  }
220331
220216
 
220332
220217
  var headersArray = xx.header;
220333
- var headerNodes = new Array();
220218
+ var headerNodes = new Array(); // console.time("headersArray");
220334
220219
 
220335
220220
  if (headersArray) {
220336
220221
  for (var hi = 0; hi < headersArray.length; hi++) {
@@ -220387,7 +220272,9 @@ var StructureConvert = /*#__PURE__*/function () {
220387
220272
  }
220388
220273
  }
220389
220274
  }
220390
- }
220275
+ } // console.timeEnd("headersArray");
220276
+ // console.time("footersArray");
220277
+
220391
220278
 
220392
220279
  var footersArray = xx.footer; // console.log(footersArray)
220393
220280
 
@@ -220449,7 +220336,9 @@ var StructureConvert = /*#__PURE__*/function () {
220449
220336
  }
220450
220337
  }
220451
220338
  }
220452
- }
220339
+ } // console.timeEnd("footersArray");
220340
+ // console.time("mainArray");
220341
+
220453
220342
 
220454
220343
  var mainArray = xx.main;
220455
220344
  var mainNodes = new Array();
@@ -220459,9 +220348,16 @@ var StructureConvert = /*#__PURE__*/function () {
220459
220348
 
220460
220349
  if (!temp) {
220461
220350
  continue;
220462
- }
220351
+ } // if([2,10,14,19,24,40,54,65].includes(mi)) {
220352
+ // console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
220353
+ // }
220354
+
220355
+
220356
+ var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign); // if([2,10,14,19,24,40,54,65].includes(mi)) {
220357
+ // console.timeEnd(`${mi}_${temp.name ? temp.name : '表格'}`);
220358
+ // console.log(temp);
220359
+ // }
220463
220360
 
220464
- var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
220465
220361
 
220466
220362
  if (_node3) {
220467
220363
  // if (node instanceof BaseCombineNode && temp.childNode) {
@@ -220472,28 +220368,14 @@ var StructureConvert = /*#__PURE__*/function () {
220472
220368
  mainNodes.push(_node3);
220473
220369
  } //pushChildNodes(node, temp,hoEditorFactory.docTree.mainNodes, mainNodes);
220474
220370
 
220475
- } // const headerDocTree= new Array<SubDocTree>();
220476
- // const footerDocTree= new Array<SubDocTree>();
220477
- // for (let h=0;h<headerNodes.length;h++){
220478
- // if (headerNodes[h]){
220479
- // const subDocTree= new SubDocTree(h,"");
220480
- // subDocTree.subDocNodes=headerNodes[h];
220481
- // headerDocTree.push(subDocTree);
220482
- // }
220483
- // }
220484
- // for (let f=0;f<footerNodes.length;f++){
220485
- // if (footerNodes[f]){
220486
- // const subDocTree= new SubDocTree(f,"");
220487
- // subDocTree.subDocNodes=footerNodes[f];
220488
- // footerDocTree.push(subDocTree);
220489
- // }
220490
- // }
220371
+ } // console.timeEnd("mainArray");
220491
220372
 
220492
220373
 
220493
220374
  var rtn = new Map();
220494
220375
  rtn.set("header", headerNodes);
220495
220376
  rtn.set("footer", footerNodes);
220496
- rtn.set("main", mainNodes);
220377
+ rtn.set("main", mainNodes); // console.timeEnd("json2Doc");
220378
+
220497
220379
  return rtn;
220498
220380
  }
220499
220381
  }, {
@@ -220613,31 +220495,11 @@ var StructureConvert = /*#__PURE__*/function () {
220613
220495
  temp.nodeType = BaseNode/* NodeType */.Jq[temp.nodeType];
220614
220496
 
220615
220497
  if (temp.nodeType == BaseNode/* NodeType.ntTable */.Jq.ntTable) {
220616
- // const cnode =hoEditorFactory.docTree.curDomRange.normalize().npStart;
220617
- // let paragraNode;
220618
- // if (cnode.node instanceof ParagraphNode) {
220619
- // paragraNode = cnode.node;
220620
- // } else {
220621
- // paragraNode = new ParagraphNode(
220622
- // this._hoEditorFactoryID,
220623
- // hoEditorFactory.docTree.activeNodes,
220624
- // hoEditorFactory.docTree.getParentNode(cnode.path),
220625
- // 0
220626
- // )
220627
- // }
220628
- // const paragraNode = nodes
220629
- // ? (nodes[nodes.length - 1] as ParagraphNode)
220630
- // : null;
220631
- //console.log("table", temp);
220632
220498
  if (isPaste && parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220633
220499
  message_box_default().alert("不允许将表格粘贴到文本域");
220634
220500
 
220635
220501
  return undefined;
220636
- } // if (isPaste && parentNode instanceof CellNode) {
220637
- // MessageBox.alert("不允许将表格粘贴到表格");
220638
- // return undefined;
220639
- // }
220640
-
220502
+ }
220641
220503
 
220642
220504
  var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
220643
220505
  return node;
@@ -220794,11 +220656,12 @@ var StructureConvert = /*#__PURE__*/function () {
220794
220656
 
220795
220657
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220796
220658
  this._superiorSign = [];
220797
- hoEditorFactory.isThrowError = false;
220798
- var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
220799
- Promise.resolve().then(function () {
220800
- hoEditorFactory.drawTree.updateDrawTreeFirstLine();
220659
+ hoEditorFactory.isThrowError = false; // console.time("xml2Doc");
220660
+
220661
+ var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign); // console.timeEnd("xml2Doc");
220801
220662
 
220663
+ Promise.resolve().then(function () {
220664
+ // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
220802
220665
  _this4.openJson2Doc(nodes, callback, isDelBlockLine);
220803
220666
  });
220804
220667
  }
@@ -220811,7 +220674,7 @@ var StructureConvert = /*#__PURE__*/function () {
220811
220674
  callback && callback({
220812
220675
  text: hoEditorFactory.vueController.getDocTitle(),
220813
220676
  count: 0
220814
- });
220677
+ }); // console.time("openJson2Doc");
220815
220678
 
220816
220679
  if (nodes) {
220817
220680
  var insertNode = function insertNode(array, prevNode) {
@@ -220879,32 +220742,7 @@ var StructureConvert = /*#__PURE__*/function () {
220879
220742
  _this5._superiorSign[0] = aNode;
220880
220743
  }
220881
220744
  }
220882
- }; // 1
220883
- //先删除全部header节点
220884
- // const headersArr =hoEditorFactory.docTree.headerNodes;
220885
- // if (headersArr.length > 0) {
220886
- // for (let i = 0; i < headersArr.length; i++) {
220887
- // const headerArr = headersArr[i];
220888
- // if (headerArr.length > 1) {
220889
- // const lastNode =hoEditorFactory.docTree.headerNodes[i][
220890
- // headerArr.length - 1
220891
- // ];
220892
- // const endPathH =hoEditorFactory.docTree.getNodeLastPath(
220893
- // lastNode
220894
- // );
220895
- // undoService.begin();
220896
- // undoService.add(
220897
- // new NodesDeleteUndoUnit(
220898
- // this._hoEditorFactoryID,
220899
- // "header/" + i.toString() + "/0/0",
220900
- // endPathH
220901
- // )
220902
- // );
220903
- // undoService.commit();
220904
- // //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.headerNodes[i].splice(1, headerArr.length - 1);
220905
- // }
220906
- // }
220907
- // }
220745
+ }; // console.time("openJson2Doc--headersArray");
220908
220746
  //添加header节点
220909
220747
 
220910
220748
 
@@ -220941,46 +220779,9 @@ var StructureConvert = /*#__PURE__*/function () {
220941
220779
  //hoEditorFactory.drawPageTree.drawHeaders[i].stage?.update();
220942
220780
 
220943
220781
  }
220944
- } //先删除全部mainDoc节点
220945
- // const rootNodes =hoEditorFactory.docTree.mainNodes;
220946
- // if (rootNodes.length > 1) {
220947
- // const endPathM =hoEditorFactory.docTree.getNodeLastPath(
220948
- // hoEditorFactory.docTree.mainNodes[rootNodes.length - 1]
220949
- // );
220950
- // undoService.begin();
220951
- // undoService.add(
220952
- // new NodesDeleteUndoUnit(this._hoEditorFactoryID, "main/0/0", endPathM)
220953
- // );
220954
- // undoService.commit();
220955
- // //hoEditorFactory.docTree.mainNodes.splice(1,hoEditorFactory.docTree.mainNodes.length - 1);
220956
- // }
220957
- //添加mainDoc节点
220958
- //先删除全部footer节点
220959
- // const footersArr =hoEditorFactory.docTree.footerNodes;
220960
- // if (footersArr.length > 0) {
220961
- // for (let i = 0; i < footersArr.length; i++) {
220962
- // const footerArr = footersArr[i];
220963
- // if (footerArr.length > 1) {
220964
- // const endPathF =hoEditorFactory.docTree.getNodeLastPath(
220965
- // hoEditorFactory.docTree.footerNodes[i][
220966
- // footerArr.length - 1
220967
- // ]
220968
- // );
220969
- // undoService.begin();
220970
- // undoService.add(
220971
- // new NodesDeleteUndoUnit(
220972
- // this._hoEditorFactoryID,
220973
- // "footer/" + i.toString() + "/0/0",
220974
- // endPathF
220975
- // )
220976
- // );
220977
- // undoService.commit();
220978
- // //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.footerNodes[i].splice(1, footerArr.length - 1);
220979
- // }
220980
- // }
220981
- // }
220782
+ } // console.timeEnd("openJson2Doc--headersArray");
220783
+ // console.time("openJson2Doc--footersArray");
220982
220784
  //添加footer节点
220983
- //const footersArray = nodes.get("footer");
220984
220785
 
220985
220786
 
220986
220787
  var footersArray = nodes.get("footer");
@@ -221017,10 +220818,8 @@ var StructureConvert = /*#__PURE__*/function () {
221017
220818
  // );
221018
220819
 
221019
220820
  }
221020
- } // for (let i = 0; i < hoEditorFactory.drawTree.drawPages.length; i++) {
221021
- // hoEditorFactory.drawPageTree.calcMainDocPosition(i);
221022
- // hoEditorFactory.drawTree.drawPages[i].reFreshBounds();
221023
- // }
220821
+ } // console.timeEnd("openJson2Doc--footersArray");
220822
+ //main
221024
220823
 
221025
220824
 
221026
220825
  var main = nodes.get("main");
@@ -221032,13 +220831,15 @@ var StructureConvert = /*#__PURE__*/function () {
221032
220831
 
221033
220832
  insertNode(main, mPrevNode);
221034
220833
  var mLength = hoEditorFactory.docTree.mainNodes.length - 1;
221035
- var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]);
220834
+ var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]); // console.time("openJson2Doc--change");
220835
+
221036
220836
  var mChangeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daInsert */.gk.daInsert, "main/0", mEndPath); // mChangeEvent.oldEndPath = mEndPath;
221037
220837
  // mChangeEvent.oldDrawTreeLines = new SelectRange(
221038
220838
  // this._hoEditorFactory
221039
220839
  // ).getRangeDrawTreeLines("main/0", mEndPath);
221040
220840
 
221041
- hoEditorFactory.docTree.change(mChangeEvent);
220841
+ hoEditorFactory.docTree.change(mChangeEvent); // console.timeEnd("openJson2Doc--change");
220842
+
221042
220843
  var comments = [];
221043
220844
 
221044
220845
  if (this._comments.length === undefined) {
@@ -221099,7 +220900,9 @@ var StructureConvert = /*#__PURE__*/function () {
221099
220900
 
221100
220901
  var formularNodes = hoEditorFactory.drawTree.formularNodes;
221101
220902
  formularNodes.forEach(function (value, key) {
221102
- if (value.formularType === TableFormula/* FormularType.ftSum */.a.ftSum || value.formularType === TableFormula/* FormularType.ftFormular */.a.ftFormular || value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
220903
+ if ( //value.formularType === FormularType.ftSum
220904
+ //|| value.formularType === FormularType.ftFormular
220905
+ value.formularType === TableFormula/* FormularType.ftBMI */.a.ftBMI || value.formularType === TableFormula/* FormularType.ftLaborProcess */.a.ftLaborProcess || value.formularType === TableFormula/* FormularType.ftExpectedBirthDate */.a.ftExpectedBirthDate || value.formularType === TableFormula/* FormularType.ftPregnantWeeks */.a.ftPregnantWeeks || value.formularType === TableFormula/* FormularType.ftScoreMapping */.a.ftScoreMapping) {
221103
220906
  value.updateResult();
221104
220907
  value.getParentCell().drawCell.needUpdate = true;
221105
220908
  var prevNode = value.previousLeaf();
@@ -221125,7 +220928,7 @@ var StructureConvert = /*#__PURE__*/function () {
221125
220928
  text: hoEditorFactory.vueController.getDocTitle(),
221126
220929
  count: 0
221127
220930
  });
221128
- hoEditorFactory.isThrowError = true;
220931
+ hoEditorFactory.isThrowError = true; // console.timeEnd("openJson2Doc");
221129
220932
  }
221130
220933
  }
221131
220934
  }, {
@@ -225456,6 +225259,7 @@ var VueController = /*#__PURE__*/function () {
225456
225259
  value: function insertHtmlText(strHtml) {
225457
225260
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
225458
225261
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, "</上标>", "<上标/>");
225262
+ strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, "</下标>", "<下标/>");
225459
225263
  var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
225460
225264
 
225461
225265
  if (result) {