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.
@@ -10846,7 +10846,7 @@ var component = (0,componentNormalizer/* default */.Z)(
10846
10846
 
10847
10847
  /***/ }),
10848
10848
 
10849
- /***/ 35518:
10849
+ /***/ 10967:
10850
10850
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
10851
10851
 
10852
10852
  "use strict";
@@ -10858,7 +10858,7 @@ __webpack_require__.d(__webpack_exports__, {
10858
10858
  "default": function() { return /* binding */ Sign; }
10859
10859
  });
10860
10860
 
10861
- ;// 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&
10861
+ ;// 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&
10862
10862
  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)])}
10863
10863
  var staticRenderFns = []
10864
10864
 
@@ -11025,6 +11025,7 @@ var SignNode = __webpack_require__(78975);
11025
11025
  default: ''
11026
11026
  }
11027
11027
  },
11028
+ inject: ['getCustomProperty'],
11028
11029
  data: function data() {
11029
11030
  return {
11030
11031
  height: 20,
@@ -52161,7 +52162,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
52161
52162
  /*
52162
52163
  * @Author: your name
52163
52164
  * @Date: 2020-11-03 15:17:54
52164
- * @LastEditTime: 2022-10-12 08:53:30
52165
+ * @LastEditTime: 2022-10-14 09:51:03
52165
52166
  * @LastEditors: liyanan 2441631434@qq.com
52166
52167
  * @Description: In User Settings Edit
52167
52168
  * @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
@@ -52322,11 +52323,11 @@ var DownListProperty = /*#__PURE__*/function () {
52322
52323
  value: function setDefaultImportStyle(ret) {
52323
52324
  //ret._inputFieldType = InputFieldType.text;
52324
52325
  ret._allowMultiSelected = false;
52325
- ret._splitCharacter = ""; //ret._dynamicLoadList = false;
52326
+ ret._splitCharacter = ''; //ret._dynamicLoadList = false;
52326
52327
  //ret._listContent = "";
52327
52328
 
52328
- ret._source = "";
52329
- ret._listItems = "";
52329
+ ret._source = '';
52330
+ ret._listItems = '';
52330
52331
  ret._mutexSelect = false; //ret._specialFormat = SpecialFormat.none;
52331
52332
 
52332
52333
  return ret;
@@ -52528,9 +52529,9 @@ var BandDataSource = /*#__PURE__*/function () {
52528
52529
  key: "setDefaultBandDataSource",
52529
52530
  value: function setDefaultBandDataSource(ret) {
52530
52531
  ret._dataSourceEnabled = true;
52531
- ret._dataSource = "";
52532
- ret._format = "";
52533
- ret._visitPath = "";
52532
+ ret._dataSource = '';
52533
+ ret._format = '';
52534
+ ret._visitPath = '';
52534
52535
  ret._isReadOnly = false;
52535
52536
  ret._autoUpdate = false;
52536
52537
  ret._executeStatus = ExecuteStatus.AlwaysExec;
@@ -52553,12 +52554,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52553
52554
  _this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
52554
52555
  _this._isSynchro = false; //是否同步
52555
52556
 
52556
- _this._labelText = "请输入"; //格式化后的显示
52557
+ _this._labelText = '请输入'; //格式化后的显示
52557
52558
 
52558
- _this._text = "";
52559
- _this._name = ""; //名称
52559
+ _this._text = '';
52560
+ _this._name = ''; //名称
52560
52561
 
52561
- _this._tipText = ""; //提示文本
52562
+ _this._tipText = ''; //提示文本
52562
52563
 
52563
52564
  _this._readOnlyStatus = ReadOnlyStatus.false; //内容只读状态
52564
52565
 
@@ -52570,14 +52571,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52570
52571
 
52571
52572
  _this._enableGlobalColor = true; //启用全局文本颜色
52572
52573
 
52573
- _this._defaultValue = ""; //默认值
52574
+ _this._defaultValue = ''; //默认值
52574
52575
 
52575
52576
  _this._alignWithBlocked = false;
52576
52577
  _this._readType = -1; //保存类型
52577
52578
 
52578
- _this._keyValue = ""; //选中项的key值
52579
+ _this._keyValue = ''; //选中项的key值
52579
52580
 
52580
- _this._value = ""; //选中项的value值
52581
+ _this._value = ''; //选中项的value值
52581
52582
 
52582
52583
  _this._childNodes2 = []; //this._importStyle = new ImportStyle();
52583
52584
 
@@ -52644,22 +52645,22 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52644
52645
 
52645
52646
  _this.setValuesObject(valuesObject);
52646
52647
 
52647
- if (_this.labelText === "") {
52648
- if (_this.text === "" && _this.name !== "") {
52648
+ if (_this.labelText === '') {
52649
+ if (_this.text === '' && _this.name !== '') {
52649
52650
  _this.labelText = _this.name;
52650
52651
  } else {
52651
52652
  if (_this.inputFieldType === InputFieldType.dropDownList) {
52652
- _this.labelText = "请选择";
52653
+ _this.labelText = '请选择';
52653
52654
  }
52654
52655
 
52655
52656
  if (_this.inputFieldType === InputFieldType.text) {
52656
- _this.labelText = "请输入";
52657
+ _this.labelText = '请输入';
52657
52658
  }
52658
52659
  }
52659
52660
  }
52660
52661
 
52661
52662
  if (!_this._dataId) {
52662
- _this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Field");
52663
+ _this._dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID('Field');
52663
52664
  } // const serialID = valuesObj["serialID"];
52664
52665
  // let name = "";
52665
52666
  // let readOnlyStatus = ReadOnlyStatus.false;
@@ -52756,12 +52757,12 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52756
52757
 
52757
52758
  var assignvalue = function assignvalue(target, source) {
52758
52759
  Object.keys(source).forEach(function (value) {
52759
- 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") {
52760
- if (Object.prototype.toString.call(source[value]) === "[object Object]") {
52760
+ 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') {
52761
+ if (Object.prototype.toString.call(source[value]) === '[object Object]') {
52761
52762
  assignvalue(target[value], source[value]);
52762
52763
  } else {
52763
- if (source[value] !== "" && source[value] !== null) {
52764
- assignvalue(target[value], eval("(" + source[value] + ")"));
52764
+ if (source[value] !== '' && source[value] !== null) {
52765
+ assignvalue(target[value], eval('(' + source[value] + ')'));
52765
52766
  }
52766
52767
  }
52767
52768
  } else {
@@ -52875,7 +52876,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
52875
52876
  if (this._labelText !== value) {
52876
52877
  this._labelText = value;
52877
52878
 
52878
- if (this.text === "") {
52879
+ if (this.text === '') {
52879
52880
  this.node2DrawNodeRange(0, 0);
52880
52881
  }
52881
52882
  }
@@ -53059,7 +53060,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53059
53060
  }, {
53060
53061
  key: "generateInnerCode",
53061
53062
  value: function generateInnerCode() {
53062
- return "";
53063
+ return '';
53063
53064
  }
53064
53065
  /**
53065
53066
  * 获取提示文本的节点
@@ -53093,8 +53094,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53093
53094
 
53094
53095
  var ph = 0;
53095
53096
  var needPaint = false;
53096
- var startPath = "";
53097
- var endPath = "";
53097
+ var startPath = '';
53098
+ var endPath = '';
53098
53099
  var first = this.StartMarkNode;
53099
53100
  var last = this.EndMarkNode;
53100
53101
  /**
@@ -53227,7 +53228,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53227
53228
  value: function getFieldText(isClearValue) {
53228
53229
  var _this3 = this;
53229
53230
 
53230
- var text = "";
53231
+ var text = '';
53231
53232
 
53232
53233
  var loopChildNodes = function loopChildNodes(node) {
53233
53234
  var nodes = node.childNodes.slice(1);
@@ -53243,16 +53244,16 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53243
53244
  if (textStyle.deleterIndex === -1 || textStyle.deleterIndex === undefined) {
53244
53245
  //text += hoEditorFactory.unitConvert.replaceAll(childNode.text, '\n', ' ');
53245
53246
  if (textStyle.script === 1) {
53246
- text += "<下标>" + childNode.text + "</下标>";
53247
+ text += '<下标>' + childNode.text + '</下标>';
53247
53248
  } else if (textStyle.script === 2) {
53248
- text += "<上标>" + childNode.text + "</上标>";
53249
+ text += '<上标>' + childNode.text + '</上标>';
53249
53250
  } else {
53250
53251
  text += childNode.text;
53251
53252
  }
53252
53253
  }
53253
53254
  } else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_40__/* .ControlNode */ .w) {
53254
53255
  if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
53255
- text += "";
53256
+ text += '';
53256
53257
  } else {
53257
53258
  text += childNode.text;
53258
53259
  }
@@ -53261,8 +53262,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53261
53262
  } else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_47__/* .ParagraphNode */ .C) {
53262
53263
  text += '\n';
53263
53264
  } else if (childNode instanceof _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_45__/* .MedicalExpressionNode */ .H) {
53264
- var expressJson = JSON.parse("{}");
53265
- text += "<MedicalExpress>";
53265
+ var expressJson = JSON.parse('{}');
53266
+ text += '<MedicalExpress>';
53266
53267
 
53267
53268
  if (childNode instanceof _MenstrualHistoryNode__WEBPACK_IMPORTED_MODULE_46__/* .MenstrualHistoryNode */ .n) {
53268
53269
  expressJson.expressStyle = childNode.expressStyle;
@@ -53279,23 +53280,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53279
53280
  expressJson.value6 = childNode.value6;
53280
53281
 
53281
53282
  if (childNode instanceof _PupilMapNode__WEBPACK_IMPORTED_MODULE_50__/* .PupilMapNode */ .v) {
53282
- expressJson.expressStyle = "PupilMapNode";
53283
+ expressJson.expressStyle = 'PupilMapNode';
53283
53284
  expressJson.value7 = childNode.value7;
53284
53285
  } else if (childNode instanceof _LightLocationMapNode__WEBPACK_IMPORTED_MODULE_43__/* .LightLocationMapNode */ .D) {
53285
- expressJson.expressStyle = "LightLocationMapNode";
53286
+ expressJson.expressStyle = 'LightLocationMapNode';
53286
53287
  expressJson.value7 = childNode.value7;
53287
53288
  expressJson.value8 = childNode.value8;
53288
53289
  expressJson.value9 = childNode.value9;
53289
53290
  } else {
53290
- expressJson.expressStyle = "FetalHeartMapNode";
53291
+ expressJson.expressStyle = 'FetalHeartMapNode';
53291
53292
  }
53292
53293
  } else if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f || childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x) {
53293
53294
  if (childNode instanceof _PermanentTeethMapNode__WEBPACK_IMPORTED_MODULE_48__/* .PermanentTeethMapNode */ .f) {
53294
- expressJson.expressStyle = "PermanentTeethMapNode";
53295
+ expressJson.expressStyle = 'PermanentTeethMapNode';
53295
53296
  }
53296
53297
 
53297
53298
  if (childNode instanceof _PrimaryTeethMapNode__WEBPACK_IMPORTED_MODULE_49__/* .PrimaryTeethMapNode */ .x) {
53298
- expressJson.expressStyle = "PrimaryTeethMapNode";
53299
+ expressJson.expressStyle = 'PrimaryTeethMapNode';
53299
53300
  }
53300
53301
 
53301
53302
  expressJson.topLeftSelected = childNode.topLeftSelected;
@@ -53305,7 +53306,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53305
53306
  }
53306
53307
 
53307
53308
  text += JSON.stringify(expressJson);
53308
- text += "</MedicalExpress>";
53309
+ text += '</MedicalExpress>';
53309
53310
  }
53310
53311
  });
53311
53312
  };
@@ -53321,13 +53322,13 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53321
53322
  }
53322
53323
 
53323
53324
  var value = [];
53324
- var keyValue = this.keyValue.split(",");
53325
+ var keyValue = this.keyValue.split(',');
53325
53326
 
53326
53327
  for (var i = 0; i < listItems.length; i++) {
53327
53328
  var listItem = listItems[i];
53328
53329
 
53329
53330
  if (keyValue.includes(listItem.id)) {
53330
- var index = listItem.text.indexOf("<元素>");
53331
+ var index = listItem.text.indexOf('<元素>');
53331
53332
  text += index === -1 ? listItem.text : listItem.text.substring(0, index);
53332
53333
  }
53333
53334
 
@@ -53336,15 +53337,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53336
53337
  }
53337
53338
  }
53338
53339
 
53339
- this.value = value.join(",");
53340
+ this.value = value.join(',');
53340
53341
  }
53341
53342
  }
53342
53343
 
53343
- if (text === "") {
53344
+ if (text === '') {
53344
53345
  loopChildNodes(this);
53345
- }
53346
+ } //loopChildNodes(this);
53347
+
53346
53348
 
53347
- //loopChildNodes(this);
53348
53349
  return text;
53349
53350
  }
53350
53351
  }, {
@@ -53364,7 +53365,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53364
53365
  this.keyValue = keyValue;
53365
53366
  }
53366
53367
 
53367
- if (!(value === "" && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j)) {
53368
+ if (!(value === '' && this.childNodes[1] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j)) {
53368
53369
  _context2.next = 4;
53369
53370
  break;
53370
53371
  }
@@ -53390,10 +53391,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53390
53391
  }
53391
53392
  }
53392
53393
 
53393
- hoEditorFactory.docController.deleteRange(aRange, true, "update");
53394
+ hoEditorFactory.docController.deleteRange(aRange, true, 'update');
53394
53395
  }
53395
53396
 
53396
- if (!(value === "")) {
53397
+ if (!(value === '')) {
53397
53398
  _context2.next = 21;
53398
53399
  break;
53399
53400
  }
@@ -53477,10 +53478,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53477
53478
  // index = astyle.changeStyleString("fontBackColor", "transparent");
53478
53479
  // }
53479
53480
 
53480
- 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);
53481
+ 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);
53481
53482
  this.StartMarkNode.isReadOnly = true;
53482
53483
  this.StartMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtStart */ .q.mtStart;
53483
- 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);
53484
+ 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);
53484
53485
  this.EndMarkNode.isReadOnly = true;
53485
53486
  this.EndMarkNode.MarkNodeType = _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNodeType.mtEnd */ .q.mtEnd;
53486
53487
  this.StartMarkNode.pair = this.EndMarkNode;
@@ -53498,7 +53499,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53498
53499
 
53499
53500
  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);
53500
53501
 
53501
- if (this.text != "") {
53502
+ if (this.text != '') {
53502
53503
  if (this._childNodes2.length == 3) {
53503
53504
  this.childNodes.splice(1, 1);
53504
53505
  }
@@ -53621,7 +53622,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53621
53622
  }, {
53622
53623
  key: "hasChildPath",
53623
53624
  value: function hasChildPath() {
53624
- if (this.labelText.length == 0 || this.text === "") {
53625
+ if (this.labelText.length == 0 || this.text === '') {
53625
53626
  return false;
53626
53627
  } else {
53627
53628
  return true;
@@ -53639,7 +53640,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53639
53640
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this.hoEditorFactoryID);
53640
53641
 
53641
53642
  if (!this.canModifyContent && hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign) {
53642
- return [false, ""];
53643
+ return [false, ''];
53643
53644
  }
53644
53645
 
53645
53646
  var label = this.getLabel();
@@ -53652,7 +53653,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53652
53653
  return [true, path];
53653
53654
  }
53654
53655
 
53655
- return [true, ""];
53656
+ return [true, ''];
53656
53657
  }
53657
53658
  /**
53658
53659
  * 校验节点中的数据是否符合校验条件
@@ -53662,7 +53663,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53662
53663
  }, {
53663
53664
  key: "verifyData",
53664
53665
  value: function verifyData() {
53665
- return [true, ""];
53666
+ return [true, ''];
53666
53667
  }
53667
53668
  /**
53668
53669
  * 绘制后所包含字符的实际宽度
@@ -53685,8 +53686,8 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53685
53686
  if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_27__/* .PaintState.psDesign */ .Dh.psDesign || this.isAllowDelete) {
53686
53687
  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);
53687
53688
  } else {
53688
- if (operType !== "update") {
53689
- element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert("文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。", "系统提示");
53689
+ if (operType !== 'update') {
53690
+ element_ui_lib_message_box__WEBPACK_IMPORTED_MODULE_0___default().alert('文本域已设置为不允许删除。请先右键元素属性设置成允许删除,再进行删除操作。', '系统提示');
53690
53691
  } else {
53691
53692
  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);
53692
53693
  }
@@ -53796,7 +53797,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53796
53797
  for (var i = 0; i < this.childNodes.length; i++) {
53797
53798
  var node = this.childNodes[i];
53798
53799
 
53799
- if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.text.substr(0, 1) !== "C")) {
53800
+ if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
53800
53801
  if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_53__/* .TableNode */ .Fh || node instanceof TextInputFieldNode) {
53801
53802
  childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
53802
53803
  } else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
@@ -53809,7 +53810,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53809
53810
  }
53810
53811
  } else {
53811
53812
  if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
53812
- if (node.text !== "") {
53813
+ if (node.text !== '') {
53813
53814
  childArray.push(node.node2Json(undefined, isCopy));
53814
53815
  }
53815
53816
  } else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_41__/* .DateTimeNode */ .Z) {
@@ -53869,7 +53870,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53869
53870
  }
53870
53871
 
53871
53872
  if (canCopy) {
53872
- if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node.text.substr(0, 1) === "C")) {
53873
+ if (!(_node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j && _node.text.substr(0, 1) === 'C')) {
53873
53874
  childArray.push(_node.node2Json(rec, isCopy));
53874
53875
  }
53875
53876
  }
@@ -53880,23 +53881,23 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53880
53881
  }
53881
53882
 
53882
53883
  if (childArray.length > 0) {
53883
- if (childArray[0].nodeType === "ntMark" && childArray[0].type === 0) {
53884
- if (childArray[childArray.length - 1].nodeType !== "ntMark") {
53884
+ if (childArray[0].nodeType === 'ntMark' && childArray[0].type === 0) {
53885
+ if (childArray[childArray.length - 1].nodeType !== 'ntMark') {
53885
53886
  childArray.splice(0, 1);
53886
53887
  }
53887
53888
 
53888
- if (childArray[childArray.length - 1].nodeType === "ntMark" && childArray[childArray.length - 1].type !== 2) {
53889
+ if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type !== 2) {
53889
53890
  childArray.splice(childArray.length - 1, 1);
53890
53891
  childArray.splice(0, 1);
53891
53892
  }
53892
53893
  }
53893
53894
 
53894
- if (childArray[childArray.length - 1].nodeType === "ntMark" && childArray[childArray.length - 1].type === 2) {
53895
- if (childArray[0].nodeType !== "ntMark") {
53895
+ if (childArray[childArray.length - 1].nodeType === 'ntMark' && childArray[childArray.length - 1].type === 2) {
53896
+ if (childArray[0].nodeType !== 'ntMark') {
53896
53897
  childArray.splice(childArray.length - 1, 1);
53897
53898
  }
53898
53899
 
53899
- if (childArray[0].nodeType === "ntMark" && childArray[0].type !== 0) {
53900
+ if (childArray[0].nodeType === 'ntMark' && childArray[0].type !== 0) {
53900
53901
  childArray.splice(childArray.length - 1, 1);
53901
53902
  childArray.splice(0, 1);
53902
53903
  }
@@ -53911,7 +53912,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53911
53912
  item: childArray
53912
53913
  };
53913
53914
  } else {
53914
- if (type === "json") {
53915
+ if (type === 'json') {
53915
53916
  childNodes = childArray;
53916
53917
  } else {
53917
53918
  childNodes = {
@@ -53924,7 +53925,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53924
53925
 
53925
53926
  if (isCopy) {
53926
53927
  return {
53927
- nodeType: "ntField",
53928
+ nodeType: 'ntField',
53928
53929
  inputFieldType: InputFieldType[this.inputFieldType],
53929
53930
  id: this.id,
53930
53931
  dataId: this.dataId,
@@ -53954,14 +53955,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53954
53955
  };
53955
53956
  }
53956
53957
 
53957
- var parentid = "";
53958
+ var parentid = '';
53958
53959
 
53959
53960
  if (this.parentNode && this.parentNode instanceof TextInputFieldNode) {
53960
53961
  parentid = this.parentNode.id;
53961
53962
  }
53962
53963
 
53963
53964
  var retObj = {
53964
- nodeType: "ntField",
53965
+ nodeType: 'ntField',
53965
53966
  inputFieldType: InputFieldType[this.inputFieldType],
53966
53967
  id: this.id,
53967
53968
  parentId: parentid,
@@ -53991,7 +53992,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
53991
53992
  childNodes: childNodes
53992
53993
  };
53993
53994
  return {
53994
- "TextInputFieldNode": retObj
53995
+ TextInputFieldNode: retObj
53995
53996
  };
53996
53997
  }
53997
53998
  }, {
@@ -54058,19 +54059,20 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54058
54059
  }, {
54059
54060
  key: "getTagNameCn",
54060
54061
  value: function getTagNameCn() {
54061
- return "输入域t";
54062
+ return '输入域t';
54062
54063
  }
54063
54064
  }], [{
54064
54065
  key: "json2Node",
54065
54066
  value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isPaste, isClearSign) {
54066
54067
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoEditorFactoryID);
54068
+ var eachCount = 0;
54067
54069
  delete json.nodeType;
54068
54070
  this.transType(json);
54069
54071
 
54070
54072
  if (isPaste) {
54071
- if (hoEditorFactory.vueController.getNodeByDataID("all", json.dataId)) {
54073
+ if (hoEditorFactory.vueController.getNodeByDataID('all', json.dataId)) {
54072
54074
  //json.id = hoEditorFactory.gernerateCode.generateID("TF");
54073
- json.dataId = hoEditorFactory.gernerateCode.generateID("Field");
54075
+ json.dataId = hoEditorFactory.gernerateCode.generateID('Field');
54074
54076
  }
54075
54077
  }
54076
54078
 
@@ -54090,20 +54092,29 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54090
54092
  var nodes = new Array();
54091
54093
 
54092
54094
  var getChildNodes = function getChildNodes(item) {
54095
+ // eachCount++;
54096
+ // if(json.name === '1-1') {
54097
+ // console.time(`1-1---${eachCount}`);
54098
+ // };
54093
54099
  if (Array.isArray(item)) {
54094
54100
  //数组
54095
54101
  for (var i = 0; i < item.length; i++) {
54096
- var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign);
54102
+ // if(json.name === '1-1' && item[i].name) {
54103
+ // console.time(`----${i}----1-1----${item[i].name}`);
54104
+ // };
54105
+ var node = hoEditorFactory.structureConvert.convertNode(item[i], rootNodes, temp, undefined, undefined, isClearSign); // if(json.name === '1-1' && item[i].name) {
54106
+ // console.timeEnd(`----${i}----1-1----${item[i].name}`);
54107
+ // };
54097
54108
 
54098
54109
  if (node) {
54099
54110
  if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
54100
- if (node.text !== "") {
54111
+ if (node.text !== '') {
54101
54112
  nodes.push(node);
54102
54113
  }
54103
54114
  } else {
54104
54115
  if (isClearSign) {
54105
54116
  if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54106
- if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == "")) {
54117
+ if (node.isTemplate && !(node.number == 0 && node.type == 0 && node.name == '')) {
54107
54118
  nodes.push(node);
54108
54119
  }
54109
54120
  } else {
@@ -54111,7 +54122,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54111
54122
  }
54112
54123
  } else {
54113
54124
  if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54114
- if (!(node.number == 0 && node.type == 0 && node.name == "")) {
54125
+ if (!(node.number == 0 && node.type == 0 && node.name == '')) {
54115
54126
  nodes.push(node);
54116
54127
  }
54117
54128
  } else {
@@ -54121,7 +54132,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54121
54132
  }
54122
54133
  }
54123
54134
 
54124
- 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") {
54135
+ 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
54136
  hoEditorFactory.structureConvert._markNodes.push(node);
54126
54137
  }
54127
54138
 
@@ -54135,14 +54146,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54135
54146
 
54136
54147
  if (_node2) {
54137
54148
  if (_node2 instanceof _TextNode__WEBPACK_IMPORTED_MODULE_54__/* .TextNode */ .R) {
54138
- if (_node2.text !== "") {
54149
+ if (_node2.text !== '') {
54139
54150
  nodes.push(_node2);
54140
54151
  }
54141
54152
  } else {
54142
54153
  //nodes.push(node);
54143
54154
  if (isClearSign) {
54144
54155
  if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54145
- if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == "")) {
54156
+ if (_node2.isTemplate && !(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
54146
54157
  nodes.push(_node2);
54147
54158
  }
54148
54159
  } else {
@@ -54150,7 +54161,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54150
54161
  }
54151
54162
  } else {
54152
54163
  if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N) {
54153
- if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == "")) {
54164
+ if (!(_node2.number == 0 && _node2.type == 0 && _node2.name == '')) {
54154
54165
  nodes.push(_node2);
54155
54166
  }
54156
54167
  } else {
@@ -54160,29 +54171,28 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54160
54171
  }
54161
54172
  }
54162
54173
 
54163
- 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") {
54174
+ 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
54175
  hoEditorFactory.structureConvert._markNodes.push(_node2);
54165
54176
  }
54166
54177
 
54167
54178
  if (_node2 instanceof _SignNode__WEBPACK_IMPORTED_MODULE_51__/* .SignNode */ .N && hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(_node2.customProperty.bce01)) {
54168
54179
  hoEditorFactory.structureConvert._superiorSign[0] = _node2;
54169
54180
  }
54170
- }
54171
- };
54181
+ } // if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
54182
+
54183
+ }; // if(json.name === '1-1') console.time("1-1--0");
54184
+
54172
54185
 
54173
54186
  if (isPaste) {
54174
54187
  if (json.childNodes.item) {
54175
54188
  getChildNodes(json.childNodes.item);
54176
- } else {
54177
- if (json.childNodes.node) {
54178
- getChildNodes(json.childNodes.node);
54179
- }
54180
- }
54181
- } else {
54182
- if (json.childNodes.node) {
54189
+ } else if (json.childNodes.node) {
54183
54190
  getChildNodes(json.childNodes.node);
54184
54191
  }
54185
- }
54192
+ } else if (json.childNodes.node) {
54193
+ getChildNodes(json.childNodes.node);
54194
+ } // if(json.name === '1-1') console.timeEnd("1-1--0");
54195
+
54186
54196
 
54187
54197
  if (nodes.length > 0) {
54188
54198
  if (nodes[0] instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_44__/* .MarkNode */ .j) {
@@ -54213,11 +54223,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54213
54223
  var eChildNode = temp.childNodes[temp.childNodes.length - 1];
54214
54224
 
54215
54225
  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) {
54216
- throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
54226
+ throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
54217
54227
  }
54218
54228
 
54219
54229
  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) {
54220
- throw new Error("经检测,病历元素“" + temp.name + "”的模板格式有问题,无法正常加载,请联系工程师进行处理。");
54230
+ throw new Error('经检测,病历元素“' + temp.name + '”的模板格式有问题,无法正常加载,请联系工程师进行处理。');
54221
54231
  }
54222
54232
  }
54223
54233
 
@@ -54244,14 +54254,14 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54244
54254
  temp.childNodes.splice(1, temp.childNodes.length - 2);
54245
54255
  var styleIndex = temp.childNodes[0].styleIndex;
54246
54256
 
54247
- if (temp.text !== "") {
54248
- if (temp.text.includes("\\r\\n") || temp.text.includes("\\R\\N")) {
54257
+ if (temp.text !== '') {
54258
+ if (temp.text.includes('\\r\\n') || temp.text.includes('\\R\\N')) {
54249
54259
  var lineArr = [];
54250
54260
 
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");
54261
+ if (temp.text.includes('\\r\\n')) {
54262
+ lineArr = temp.text.split('\\r\\n');
54263
+ } else if (temp.text.includes('\\R\\N')) {
54264
+ lineArr = temp.text.split('\\R\\N');
54255
54265
  }
54256
54266
 
54257
54267
  for (var i = 0; i < lineArr.length; i++) {
@@ -54268,10 +54278,10 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54268
54278
  } else {
54269
54279
  var expressArr = new Array();
54270
54280
 
54271
- if (temp.text.includes("<MedicalExpress>")) {
54281
+ if (temp.text.includes('<MedicalExpress>')) {
54272
54282
  var getAllMedicalExpress = function getAllMedicalExpress(str) {
54273
- var sIndex = str.lastIndexOf("<MedicalExpress>");
54274
- var eIndex = str.lastIndexOf("</MedicalExpress>");
54283
+ var sIndex = str.lastIndexOf('<MedicalExpress>');
54284
+ var eIndex = str.lastIndexOf('</MedicalExpress>');
54275
54285
 
54276
54286
  if (sIndex !== -1) {
54277
54287
  var obj = {
@@ -54285,7 +54295,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54285
54295
 
54286
54296
  str = str.substring(0, sIndex);
54287
54297
 
54288
- if (str.includes("<MedicalExpress>")) {
54298
+ if (str.includes('<MedicalExpress>')) {
54289
54299
  getAllMedicalExpress(str);
54290
54300
  }
54291
54301
  };
@@ -54293,7 +54303,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54293
54303
  getAllMedicalExpress(temp.text);
54294
54304
  }
54295
54305
 
54296
- var firstText = "";
54306
+ var firstText = '';
54297
54307
  expressArr = expressArr.reverse();
54298
54308
 
54299
54309
  if (expressArr.length > 0) {
@@ -54309,40 +54319,57 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54309
54319
  if (json.customProperty && json.customProperty.isRemoveLineFeed) {
54310
54320
  textArr.push(textStr);
54311
54321
  } else {
54312
- textArr = textStr.split("\n");
54322
+ textArr = textStr.split('\n');
54313
54323
  }
54314
54324
 
54315
54325
  var getText = function getText(atext) {
54316
54326
  var result = new Array();
54317
- var index1 = atext.indexOf("<上标>");
54318
- var index2 = atext.indexOf("</上标>");
54319
- result.push({
54320
- "mark": 0,
54321
- "text": atext.substring(0, index1)
54322
- });
54323
- result.push({
54324
- "mark": 1,
54325
- "text": atext.substring(index1 + 4, index2)
54326
- });
54327
+ var index1 = -1;
54328
+ var index2 = -1;
54329
+
54330
+ if (atext.indexOf('<上标>') >= 0) {
54331
+ index1 = atext.indexOf('<上标>');
54332
+ index2 = atext.indexOf('</上标>');
54333
+ result.push({
54334
+ mark: 0,
54335
+ text: atext.substring(0, index1)
54336
+ });
54337
+ result.push({
54338
+ mark: 1,
54339
+ text: atext.substring(index1 + 4, index2)
54340
+ });
54341
+ } else {
54342
+ index1 = atext.indexOf('<下标>');
54343
+ index2 = atext.indexOf('</下标>');
54344
+ result.push({
54345
+ mark: 0,
54346
+ text: atext.substring(0, index1)
54347
+ });
54348
+ result.push({
54349
+ mark: 2,
54350
+ text: atext.substring(index1 + 4, index2)
54351
+ });
54352
+ }
54353
+
54327
54354
  atext = atext.substring(index2 + 5, atext.length);
54328
54355
 
54329
- if (atext.indexOf("<上标>") >= 0) {
54356
+ if (atext.indexOf('<上标>') >= 0 || atext.indexOf('<下标>') >= 0) {
54330
54357
  getText(atext);
54331
54358
  } else {
54332
54359
  result.push({
54333
- "mark": 0,
54334
- "text": atext
54360
+ mark: 0,
54361
+ text: atext
54335
54362
  });
54336
54363
  }
54337
54364
 
54338
54365
  return result;
54339
54366
  };
54340
54367
 
54341
- if (textArr[0].indexOf("<上标>") >= 0) {
54368
+ if (textArr[0].indexOf('<上标>') >= 0 || textArr[0].indexOf('<下标>') >= 0) {
54342
54369
  var resultArr = getText(textArr[0]);
54343
54370
 
54344
54371
  for (var k = 0; k < resultArr.length; k++) {
54345
- if (resultArr[k].text != "") {
54372
+ if (resultArr[k].text != '') {
54346
54373
  var newStyleIndex = styleIndex;
54347
54374
 
54348
54375
  if (resultArr[k].mark == 1) {
@@ -54352,6 +54379,15 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54352
54379
  newStyleIndex = hoEditorFactory.docTree.styleCompare(textStyle);
54353
54380
  }
54354
54381
 
54382
+ if (resultArr[k].mark == 2) {
54383
+ var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54384
+
54385
+ _textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
54386
+
54387
+ _textStyle.script = 1;
54388
+ newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
54389
+ }
54390
+
54355
54391
  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);
54356
54392
  temp.childNodes.splice(temp.childNodes.length - 1, 0, textNode0);
54357
54393
  }
@@ -54367,21 +54403,21 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54367
54403
  paragraNode.styleIndex = styleIndex;
54368
54404
  temp.childNodes.splice(temp.childNodes.length - 1, 0, paragraNode);
54369
54405
 
54370
- if (textArr[_i2] !== "") {
54371
- if (textArr[_i2].indexOf("<上标>") >= 0) {
54406
+ if (textArr[_i2] !== '') {
54407
+ if (textArr[_i2].indexOf('<上标>') >= 0 || textArr[_i2].indexOf('<下标>') >= 0) {
54372
54408
  var resultArr1 = getText(textArr[_i2]);
54373
54409
 
54374
54410
  for (var _k = 0; _k < resultArr1.length; _k++) {
54375
- if (resultArr1[_k].text != "") {
54411
+ if (resultArr1[_k].text != '') {
54376
54412
  var _newStyleIndex = styleIndex;
54377
54413
 
54378
54414
  if (resultArr1[_k].mark == 1) {
54379
- var _textStyle = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54415
+ var _textStyle2 = new _domNode_TextStyle__WEBPACK_IMPORTED_MODULE_35__/* .TextStyle */ .pn(hoEditorFactoryID);
54380
54416
 
54381
- _textStyle.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle);
54417
+ _textStyle2.copyProperty(hoEditorFactory.docTree.styles[styleIndex], _textStyle2);
54382
54418
 
54383
- _textStyle.script = 2;
54384
- _newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle);
54419
+ _textStyle2.script = 2;
54420
+ _newStyleIndex = hoEditorFactory.docTree.styleCompare(_textStyle2);
54385
54421
  }
54386
54422
 
54387
54423
  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);
@@ -54399,7 +54435,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54399
54435
  }
54400
54436
  };
54401
54437
 
54402
- if (firstText !== "") {
54438
+ if (firstText !== '') {
54403
54439
  getChildTextNodes(firstText);
54404
54440
  }
54405
54441
 
@@ -54418,17 +54454,17 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54418
54454
 
54419
54455
  var medicalExpressNode = void 0;
54420
54456
 
54421
- if (expressStyle.includes("style")) {
54457
+ if (expressStyle.includes('style')) {
54422
54458
  //经期史
54423
54459
  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);
54424
54460
  } else {
54425
- if (expressStyle === "PupilMapNode") {
54461
+ if (expressStyle === 'PupilMapNode') {
54426
54462
  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);
54427
- } else if (expressStyle === "LightLocationMapNode") {
54463
+ } else if (expressStyle === 'LightLocationMapNode') {
54428
54464
  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);
54429
- } else if (expressStyle === "FetalHeartMapNode") {
54465
+ } else if (expressStyle === 'FetalHeartMapNode') {
54430
54466
  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);
54431
- } else if (expressStyle === "PermanentTeethMapNode") {
54467
+ } else if (expressStyle === 'PermanentTeethMapNode') {
54432
54468
  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);
54433
54469
  } else {
54434
54470
  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);
@@ -54436,7 +54472,7 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
54436
54472
  }
54437
54473
 
54438
54474
  temp.childNodes.splice(temp.childNodes.length - 1, 0, medicalExpressNode);
54439
- var behindText = ""; //表达式后的文本串
54475
+ var behindText = ''; //表达式后的文本串
54440
54476
 
54441
54477
  if (_i3 < expressArr.length - 1) {
54442
54478
  behindText = temp.text.substring(eIndex + 17, expressArr[_i3 + 1].sIndex);
@@ -209487,7 +209523,7 @@ var map = {
209487
209523
  "./qrCode/QrCode.vue": 7049,
209488
209524
  "./radioCheckBox/RadioCheckbox.vue": 29385,
209489
209525
  "./selectDialog/SelectDialog.vue": 72227,
209490
- "./sign/Sign.vue": 35518,
209526
+ "./sign/Sign.vue": 10967,
209491
209527
  "./table/TableCellPoper.vue": 18620,
209492
209528
  "./table/TableCellProperty.vue": 84650,
209493
209529
  "./table/TableColProperty.vue": 26853,
@@ -214862,7 +214898,7 @@ var SignNode = __webpack_require__(78975);
214862
214898
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
214863
214899
  var ParagraphNode = __webpack_require__(13880);
214864
214900
  ;// CONCATENATED MODULE: ./src/components/version.ts
214865
- /* harmony default export */ var version = ('2.0.108');
214901
+ /* harmony default export */ var version = ('2.0.109');
214866
214902
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
214867
214903
  var PoperTipText = __webpack_require__(69741);
214868
214904
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -218210,19 +218246,36 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218210
218246
  var result = new Array();
218211
218247
 
218212
218248
  var getText = function getText(text) {
218213
- var index1 = text.indexOf("<上标>");
218214
- var index2 = text.indexOf("<上标/>");
218215
- result.push({
218216
- "mark": 0,
218217
- "text": text.substring(0, index1)
218218
- });
218219
- result.push({
218220
- "mark": 1,
218221
- "text": text.substring(index1 + 4, index2)
218222
- });
218223
- text = text.substring(index2 + 5, text.length);
218249
+ var index1 = -1;
218250
+ var index2 = -1;
218224
218251
 
218225
218252
  if (text.indexOf("<上标>") >= 0) {
218253
+ index1 = text.indexOf("<上标>");
218254
+ index2 = text.indexOf("<上标/>");
218255
+ result.push({
218256
+ "mark": 0,
218257
+ "text": text.substring(0, index1)
218258
+ });
218259
+ result.push({
218260
+ "mark": 1,
218261
+ "text": text.substring(index1 + 4, index2)
218262
+ });
218263
+ } else {
218264
+ index1 = text.indexOf("<下标>");
218265
+ index2 = text.indexOf("<下标/>");
218266
+ result.push({
218267
+ "mark": 0,
218268
+ "text": text.substring(0, index1)
218269
+ });
218270
+ result.push({
218271
+ "mark": 2,
218272
+ "text": text.substring(index1 + 4, index2)
218273
+ });
218274
+ }
218275
+
218276
+ text = text.substring(index2 + 5, text.length);
218277
+
218278
+ if (text.indexOf("<上标>") >= 0 || text.indexOf("<下标>") >= 0) {
218226
218279
  getText(text);
218227
218280
  } else {
218228
218281
  result.push({
@@ -218232,7 +218285,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218232
218285
  }
218233
218286
  };
218234
218287
 
218235
- if (text.indexOf("<上标>") >= 0) {
218288
+ if (text.indexOf("<上标>") >= 0 || text.indexOf("<下标>") >= 0) {
218236
218289
  getText(text);
218237
218290
  }
218238
218291
 
@@ -218241,6 +218294,8 @@ var HTMLconverter2 = /*#__PURE__*/function () {
218241
218294
  result.forEach(function (value, key) {
218242
218295
  if (value.mark === 1) {
218243
218296
  styleobj["vertical_align"] = "super";
218297
+ } else if (value.mark === 2) {
218298
+ styleobj["vertical_align"] = "sub";
218244
218299
  } else {
218245
218300
  styleobj["vertical_align"] = "";
218246
218301
  }
@@ -219429,78 +219484,31 @@ var StructureConvert = /*#__PURE__*/function () {
219429
219484
  }, {
219430
219485
  key: "xml2Doc",
219431
219486
  value: function xml2Doc(xml, isClearSign) {
219432
- // xml = this.replaceNodesName(xml);
219433
- // const x2js = new X2JS({ stripWhitespaces: false });
219434
- // const object = x2js.xml2js(xml);
219435
- // const json = JSON.parse(JSON.stringify(object));
219436
- // if (!json.root && !json.rvxml) {
219437
- // return;
219438
- // }
219439
- // if (json.root) {
219440
- // const root = json.root;
219441
- // //处理页眉
219442
- // let headers = root.headers.header;
219443
- // if (headers.length === undefined) {
219444
- // headers = Array(root.headers.header);
219445
- // }
219446
- // const headerArrays = new Array<Array<any>>();
219447
- // for (let hi = 0; hi < headers.length; hi++) {
219448
- // const index = parseInt(headers[hi].index);
219449
- // let headerNodes = headers[hi].node;
219450
- // if (headerNodes.length === undefined) {
219451
- // headerNodes = Array(headers[hi].node);
219452
- // }
219453
- // for (let hj = 0; hj < headerNodes.length; hj++) {
219454
- // const node = headerNodes[hj];
219455
- // if (!headerArrays[index]) {
219456
- // headerArrays[index] = new Array<any>();
219457
- // }
219458
- // headerArrays[index][hj] = node;
219459
- // }
219460
- // }
219461
- // let footers = root.footers.footer;
219462
- // if (footers.length === undefined) {
219463
- // footers = Array(root.footers.footer);
219464
- // }
219465
- // const footerArrays = new Array<Array<any>>();
219466
- // for (let fi = 0; fi < footers.length; fi++) {
219467
- // const index = parseInt(footers[fi].index);
219468
- // let footerNodes = footers[fi].node;
219469
- // if (footerNodes.length === undefined) {
219470
- // footerNodes = Array(footers[fi].node);
219471
- // }
219472
- // for (let fj = 0; fj < footerNodes.length; fj++) {
219473
- // const node = footerNodes[fj];
219474
- // if (!footerArrays[index]) {
219475
- // footerArrays[index] = new Array<any>();
219476
- // }
219477
- // footerArrays[index][fj] = node;
219478
- // }
219479
- // }
219480
- //this.xmlBeauty(xml)
219481
219487
  var aobject = this.xml2Object(xml);
219482
219488
 
219483
219489
  if (aobject) {
219484
219490
  return this.json2Doc(aobject, isClearSign);
219485
- } // if (json.rvxml) {
219486
- // const rvxml = json.rvxml;
219487
- // return;
219488
- // }
219489
-
219491
+ }
219490
219492
  }
219491
219493
  }, {
219492
219494
  key: "xml2Object",
219493
219495
  value: function xml2Object(xml) {
219494
- xml = this.replaceNodesName(xml);
219496
+ // console.time("replaceNodesName");
219497
+ xml = this.replaceNodesName(xml); // console.timeEnd("replaceNodesName");
219498
+
219495
219499
  var x2js = new (x2js_default())({
219496
219500
  stripWhitespaces: false
219497
- });
219498
- var object = x2js.xml2js(xml);
219499
- var json = JSON.parse(JSON.stringify(object));
219501
+ }); // console.time("xml2js");
219502
+
219503
+ var object = x2js.xml2js(xml); // console.timeEnd("xml2js");
219504
+ // const json = JSON.parse(JSON.stringify(object));
219505
+
219506
+ var json = object;
219500
219507
 
219501
219508
  if (!json.root && !json.rvxml) {
219502
219509
  return null;
219503
- }
219510
+ } // console.time("return");
219511
+
219504
219512
 
219505
219513
  if (json.root) {
219506
219514
  var root = json.root; //处理页眉
@@ -219580,7 +219588,8 @@ var StructureConvert = /*#__PURE__*/function () {
219580
219588
  }
219581
219589
  }
219582
219590
 
219583
- var footerSubDocTree = new Array();
219591
+ var footerSubDocTree = new Array(); // console.timeEnd("return");
219592
+
219584
219593
  return {
219585
219594
  docProperty: root.docProperty,
219586
219595
  pageSettings: root.pageSettings,
@@ -220086,51 +220095,8 @@ var StructureConvert = /*#__PURE__*/function () {
220086
220095
  }, {
220087
220096
  key: "json2Doc",
220088
220097
  value: function json2Doc(xx, isClearSign) {
220098
+ // console.time("json2Doc");
220089
220099
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220090
- /*
220091
- const pushChildNodes = (
220092
- node: BaseNode | undefined,
220093
- temp: any,
220094
- rootNodes: any,
220095
- nodes: BaseNode[]
220096
- ) => {
220097
- if (node instanceof TextInputFieldNode) {
220098
- let childNodes = temp.childNodes.node;
220099
- if (childNodes.length === undefined) {
220100
- childNodes = Array(temp.childNodes.node);
220101
- }
220102
- if (childNodes) {
220103
- let childsMap = new Map<any, any>();
220104
- childsMap.set(childNodes, node);
220105
- do {
220106
- const childMap = new Map<any, any>();
220107
- childsMap.forEach((value, key) => {
220108
- childMap.clear();
220109
- for (let mj = 0; mj < key.length; mj++) {
220110
- const childNode = hoEditorFactory.structureConvert.convertNode(
220111
- key[mj],
220112
- rootNodes,
220113
- value
220114
- );
220115
- if (childNode) {
220116
- if (childNode instanceof BaseCombineNode) {
220117
- childNode.childNodes.forEach((value, key) => {
220118
- childNode.removeChild(value);
220119
- });
220120
- childMap.set(key[mj].childNodes.childNode, childNode);
220121
- }
220122
- nodes.push(childNode);
220123
- }
220124
- }
220125
- });
220126
- childsMap.clear();
220127
- childsMap = childMap;
220128
- } while (childsMap.size > 0);
220129
- }
220130
- }
220131
- };
220132
- */
220133
-
220134
220100
  var propertyJson = xx.docProperty;
220135
220101
 
220136
220102
  if (propertyJson) {
@@ -220193,23 +220159,7 @@ var StructureConvert = /*#__PURE__*/function () {
220193
220159
  if (!isClearSign) {
220194
220160
  var comments = xx.comments;
220195
220161
  this._comments = comments.comment;
220196
- } // if (xx.logs) {
220197
- // const logs = xx.logs;
220198
- // let logsArr = [];
220199
- // if (logs.log.length === undefined) {
220200
- // logsArr = Array(logs.log);
220201
- // } else {
220202
- // logsArr = logs.log;
220203
- // }
220204
- // hoEditorFactory.docTree.logRecords = [];
220205
- // for (let l = 0; l < logsArr.length; l++) {
220206
- // const log = new LogRecord();
220207
- // log.operator = logsArr[l].operator;
220208
- // log.operTime = logsArr[l].operTime;
220209
- // log.operType = logsArr[l].operType;
220210
- // hoEditorFactory.docTree.logRecords.push(log);
220211
- // }
220212
- // }
220162
+ } // console.time("histories");
220213
220163
 
220214
220164
 
220215
220165
  hoEditorFactory.docTree.userHistories = [];
@@ -220226,7 +220176,9 @@ var StructureConvert = /*#__PURE__*/function () {
220226
220176
  Object.assign(history, historyObj);
220227
220177
  history.permissionLevel = Number(historyObj.permissionLevel);
220228
220178
  hoEditorFactory.docTree.userHistories.push(history);
220229
- }
220179
+ } // console.timeEnd("histories");
220180
+ // console.time("styles");
220181
+
220230
220182
 
220231
220183
  var styles = xx.styles;
220232
220184
  hoEditorFactory.docTree.styles = [];
@@ -220255,84 +220207,17 @@ var StructureConvert = /*#__PURE__*/function () {
220255
220207
  v.font = '宋体';
220256
220208
  }
220257
220209
  });
220258
- } // for (let i = 0; i < fontStyles.length; i++) {
220259
- // const fontStyle = fontStyles[i];
220260
- // const textStyle = new TextStyle(this._hoEditorFactoryID);
220261
- // //Object.assign(textStyle, fontStyle);
220262
- // if (typeof fontStyle["size"] !== "undefined") {
220263
- // textStyle.size = parseInt(fontStyle["size"]);
220264
- // }
220265
- // if (typeof fontStyle["font"] !== "undefined") {
220266
- // textStyle.font = fontStyle["font"];
220267
- // }
220268
- // if (typeof fontStyle["color"] !== "undefined") {
220269
- // textStyle.color = fontStyle["color"];
220270
- // }
220271
- // if (typeof fontStyle["backColor"] !== "undefined") {
220272
- // textStyle.backColor = fontStyle["backColor"];
220273
- // }
220274
- // if (typeof fontStyle["bold"] !== "undefined") {
220275
- // textStyle.bold = fontStyle["bold"] === "true" ? true : false;
220276
- // }
220277
- // if (typeof fontStyle["italic"] !== "undefined") {
220278
- // textStyle.italic = fontStyle["italic"] === "true" ? true : false;
220279
- // }
220280
- // if (typeof fontStyle["underline"] !== "undefined") {
220281
- // textStyle.underline = fontStyle["underline"] === "true" ? true : false;
220282
- // }
220283
- // if (typeof fontStyle["strikeout"] !== "undefined") {
220284
- // textStyle.strikeout = fontStyle["strikeout"] === "true" ? true : false;
220285
- // }
220286
- // if (typeof fontStyle["script"] !== "undefined") {
220287
- // textStyle.script = parseInt(fontStyle["script"]);
220288
- // }
220289
- // if (typeof fontStyle["creatorIndex"] !== "undefined") {
220290
- // textStyle.creatorIndex = parseInt(fontStyle["creatorIndex"]);
220291
- // }
220292
- // if (typeof fontStyle["deleterIndex"] !== "undefined") {
220293
- // textStyle.deleterIndex = parseInt(fontStyle["deleterIndex"]);
220294
- // }
220295
- // if (typeof fontStyle["commentID"] !== "undefined") {
220296
- // textStyle.commentID = fontStyle["commentID"];
220297
- // }
220298
- // hoEditorFactory.docTree.styles.push(textStyle);
220299
- // }
220300
-
220210
+ }
220301
220211
 
220302
220212
  if (fontStyles) {
220303
220213
  var textStyles = this.getDocStyles("font", fontStyles);
220304
220214
  hoEditorFactory.docTree.styles = hoEditorFactory.docTree.styles.concat(textStyles);
220305
- }
220215
+ } // console.timeEnd("styles");
220216
+
220306
220217
 
220307
220218
  hoEditorFactory.docTree.paragraphs = [];
220308
220219
  var defaultParaStyle = new Paragraph/* Paragraph */.nv(this._hoEditorFactoryID);
220309
220220
  hoEditorFactory.docTree.paragraphs.push(defaultParaStyle); //先把默认的样式放进去
220310
- // for (let i = 0; i < paraStyles.length; i++) {
220311
- // const paraStyle = paraStyles[i];
220312
- // const paragraph: Paragraph = new Paragraph(this._hoEditorFactoryID);
220313
- // if (typeof paraStyle["leftMarginMm"] !== "undefined") {
220314
- // paragraph.leftMargin = parseInt(paraStyle["leftMarginMm"]);
220315
- // }
220316
- // if (typeof paraStyle["rightMarginMm"] !== "undefined") {
220317
- // paragraph.rightMargin = parseInt(paraStyle["rightMarginMm"]);
220318
- // }
220319
- // if (typeof paraStyle["topMarginMm"] !== "undefined") {
220320
- // paragraph.topMargin = parseInt(paraStyle["topMarginMm"]);
220321
- // }
220322
- // if (typeof paraStyle["bottomMarginMm"] !== "undefined") {
220323
- // paragraph.bottomMargin = parseInt(paraStyle["bottomMarginMm"]);
220324
- // }
220325
- // if (typeof paraStyle["align"] !== "undefined") {
220326
- // paragraph.align = parseInt(paraStyle["align"]);
220327
- // }
220328
- // if (typeof paraStyle["charSpace"] !== "undefined") {
220329
- // paragraph.charSpace = parseInt(paraStyle["charSpace"]);
220330
- // }
220331
- // if (typeof paraStyle["lineSpace"] !== "undefined") {
220332
- // paragraph.lineSpace = parseInt(paraStyle["lineSpace"]);
220333
- // }
220334
- // hoEditorFactory.docTree.paragraphs.push(paragraph);
220335
- // }
220336
220221
 
220337
220222
  if (paraStyles) {
220338
220223
  var parasStyles = this.getDocStyles("para", paraStyles);
@@ -220340,7 +220225,7 @@ var StructureConvert = /*#__PURE__*/function () {
220340
220225
  }
220341
220226
 
220342
220227
  var headersArray = xx.header;
220343
- var headerNodes = new Array();
220228
+ var headerNodes = new Array(); // console.time("headersArray");
220344
220229
 
220345
220230
  if (headersArray) {
220346
220231
  for (var hi = 0; hi < headersArray.length; hi++) {
@@ -220397,7 +220282,9 @@ var StructureConvert = /*#__PURE__*/function () {
220397
220282
  }
220398
220283
  }
220399
220284
  }
220400
- }
220285
+ } // console.timeEnd("headersArray");
220286
+ // console.time("footersArray");
220287
+
220401
220288
 
220402
220289
  var footersArray = xx.footer; // console.log(footersArray)
220403
220290
 
@@ -220459,7 +220346,9 @@ var StructureConvert = /*#__PURE__*/function () {
220459
220346
  }
220460
220347
  }
220461
220348
  }
220462
- }
220349
+ } // console.timeEnd("footersArray");
220350
+ // console.time("mainArray");
220351
+
220463
220352
 
220464
220353
  var mainArray = xx.main;
220465
220354
  var mainNodes = new Array();
@@ -220469,9 +220358,16 @@ var StructureConvert = /*#__PURE__*/function () {
220469
220358
 
220470
220359
  if (!temp) {
220471
220360
  continue;
220472
- }
220361
+ } // if([2,10,14,19,24,40,54,65].includes(mi)) {
220362
+ // console.time(`${mi}_${temp.name ? temp.name : '表格'}`);
220363
+ // }
220364
+
220365
+
220366
+ var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign); // if([2,10,14,19,24,40,54,65].includes(mi)) {
220367
+ // console.timeEnd(`${mi}_${temp.name ? temp.name : '表格'}`);
220368
+ // console.log(temp);
220369
+ // }
220473
220370
 
220474
- var _node3 = hoEditorFactory.structureConvert.convertNode(temp, hoEditorFactory.docTree.mainNodes, null, mainNodes, undefined, isClearSign);
220475
220371
 
220476
220372
  if (_node3) {
220477
220373
  // if (node instanceof BaseCombineNode && temp.childNode) {
@@ -220482,28 +220378,14 @@ var StructureConvert = /*#__PURE__*/function () {
220482
220378
  mainNodes.push(_node3);
220483
220379
  } //pushChildNodes(node, temp,hoEditorFactory.docTree.mainNodes, mainNodes);
220484
220380
 
220485
- } // const headerDocTree= new Array<SubDocTree>();
220486
- // const footerDocTree= new Array<SubDocTree>();
220487
- // for (let h=0;h<headerNodes.length;h++){
220488
- // if (headerNodes[h]){
220489
- // const subDocTree= new SubDocTree(h,"");
220490
- // subDocTree.subDocNodes=headerNodes[h];
220491
- // headerDocTree.push(subDocTree);
220492
- // }
220493
- // }
220494
- // for (let f=0;f<footerNodes.length;f++){
220495
- // if (footerNodes[f]){
220496
- // const subDocTree= new SubDocTree(f,"");
220497
- // subDocTree.subDocNodes=footerNodes[f];
220498
- // footerDocTree.push(subDocTree);
220499
- // }
220500
- // }
220381
+ } // console.timeEnd("mainArray");
220501
220382
 
220502
220383
 
220503
220384
  var rtn = new Map();
220504
220385
  rtn.set("header", headerNodes);
220505
220386
  rtn.set("footer", footerNodes);
220506
- rtn.set("main", mainNodes);
220387
+ rtn.set("main", mainNodes); // console.timeEnd("json2Doc");
220388
+
220507
220389
  return rtn;
220508
220390
  }
220509
220391
  }, {
@@ -220623,31 +220505,11 @@ var StructureConvert = /*#__PURE__*/function () {
220623
220505
  temp.nodeType = BaseNode/* NodeType */.Jq[temp.nodeType];
220624
220506
 
220625
220507
  if (temp.nodeType == BaseNode/* NodeType.ntTable */.Jq.ntTable) {
220626
- // const cnode =hoEditorFactory.docTree.curDomRange.normalize().npStart;
220627
- // let paragraNode;
220628
- // if (cnode.node instanceof ParagraphNode) {
220629
- // paragraNode = cnode.node;
220630
- // } else {
220631
- // paragraNode = new ParagraphNode(
220632
- // this._hoEditorFactoryID,
220633
- // hoEditorFactory.docTree.activeNodes,
220634
- // hoEditorFactory.docTree.getParentNode(cnode.path),
220635
- // 0
220636
- // )
220637
- // }
220638
- // const paragraNode = nodes
220639
- // ? (nodes[nodes.length - 1] as ParagraphNode)
220640
- // : null;
220641
- //console.log("table", temp);
220642
220508
  if (isPaste && parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
220643
220509
  message_box_default().alert("不允许将表格粘贴到文本域");
220644
220510
 
220645
220511
  return undefined;
220646
- } // if (isPaste && parentNode instanceof CellNode) {
220647
- // MessageBox.alert("不允许将表格粘贴到表格");
220648
- // return undefined;
220649
- // }
220650
-
220512
+ }
220651
220513
 
220652
220514
  var node = TableNode/* TableNode.json2Node */.Fh.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode, isPaste, isClearSign);
220653
220515
  return node;
@@ -220804,11 +220666,12 @@ var StructureConvert = /*#__PURE__*/function () {
220804
220666
 
220805
220667
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
220806
220668
  this._superiorSign = [];
220807
- hoEditorFactory.isThrowError = false;
220808
- var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign);
220809
- Promise.resolve().then(function () {
220810
- hoEditorFactory.drawTree.updateDrawTreeFirstLine();
220669
+ hoEditorFactory.isThrowError = false; // console.time("xml2Doc");
220670
+
220671
+ var nodes = hoEditorFactory.structureConvert.xml2Doc(xml, isClearSign); // console.timeEnd("xml2Doc");
220811
220672
 
220673
+ Promise.resolve().then(function () {
220674
+ // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
220812
220675
  _this4.openJson2Doc(nodes, callback, isDelBlockLine);
220813
220676
  });
220814
220677
  }
@@ -220821,7 +220684,7 @@ var StructureConvert = /*#__PURE__*/function () {
220821
220684
  callback && callback({
220822
220685
  text: hoEditorFactory.vueController.getDocTitle(),
220823
220686
  count: 0
220824
- });
220687
+ }); // console.time("openJson2Doc");
220825
220688
 
220826
220689
  if (nodes) {
220827
220690
  var insertNode = function insertNode(array, prevNode) {
@@ -220889,32 +220752,7 @@ var StructureConvert = /*#__PURE__*/function () {
220889
220752
  _this5._superiorSign[0] = aNode;
220890
220753
  }
220891
220754
  }
220892
- }; // 1
220893
- //先删除全部header节点
220894
- // const headersArr =hoEditorFactory.docTree.headerNodes;
220895
- // if (headersArr.length > 0) {
220896
- // for (let i = 0; i < headersArr.length; i++) {
220897
- // const headerArr = headersArr[i];
220898
- // if (headerArr.length > 1) {
220899
- // const lastNode =hoEditorFactory.docTree.headerNodes[i][
220900
- // headerArr.length - 1
220901
- // ];
220902
- // const endPathH =hoEditorFactory.docTree.getNodeLastPath(
220903
- // lastNode
220904
- // );
220905
- // undoService.begin();
220906
- // undoService.add(
220907
- // new NodesDeleteUndoUnit(
220908
- // this._hoEditorFactoryID,
220909
- // "header/" + i.toString() + "/0/0",
220910
- // endPathH
220911
- // )
220912
- // );
220913
- // undoService.commit();
220914
- // //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.headerNodes[i].splice(1, headerArr.length - 1);
220915
- // }
220916
- // }
220917
- // }
220755
+ }; // console.time("openJson2Doc--headersArray");
220918
220756
  //添加header节点
220919
220757
 
220920
220758
 
@@ -220951,46 +220789,9 @@ var StructureConvert = /*#__PURE__*/function () {
220951
220789
  //hoEditorFactory.drawPageTree.drawHeaders[i].stage?.update();
220952
220790
 
220953
220791
  }
220954
- } //先删除全部mainDoc节点
220955
- // const rootNodes =hoEditorFactory.docTree.mainNodes;
220956
- // if (rootNodes.length > 1) {
220957
- // const endPathM =hoEditorFactory.docTree.getNodeLastPath(
220958
- // hoEditorFactory.docTree.mainNodes[rootNodes.length - 1]
220959
- // );
220960
- // undoService.begin();
220961
- // undoService.add(
220962
- // new NodesDeleteUndoUnit(this._hoEditorFactoryID, "main/0/0", endPathM)
220963
- // );
220964
- // undoService.commit();
220965
- // //hoEditorFactory.docTree.mainNodes.splice(1,hoEditorFactory.docTree.mainNodes.length - 1);
220966
- // }
220967
- //添加mainDoc节点
220968
- //先删除全部footer节点
220969
- // const footersArr =hoEditorFactory.docTree.footerNodes;
220970
- // if (footersArr.length > 0) {
220971
- // for (let i = 0; i < footersArr.length; i++) {
220972
- // const footerArr = footersArr[i];
220973
- // if (footerArr.length > 1) {
220974
- // const endPathF =hoEditorFactory.docTree.getNodeLastPath(
220975
- // hoEditorFactory.docTree.footerNodes[i][
220976
- // footerArr.length - 1
220977
- // ]
220978
- // );
220979
- // undoService.begin();
220980
- // undoService.add(
220981
- // new NodesDeleteUndoUnit(
220982
- // this._hoEditorFactoryID,
220983
- // "footer/" + i.toString() + "/0/0",
220984
- // endPathF
220985
- // )
220986
- // );
220987
- // undoService.commit();
220988
- // //HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.footerNodes[i].splice(1, footerArr.length - 1);
220989
- // }
220990
- // }
220991
- // }
220792
+ } // console.timeEnd("openJson2Doc--headersArray");
220793
+ // console.time("openJson2Doc--footersArray");
220992
220794
  //添加footer节点
220993
- //const footersArray = nodes.get("footer");
220994
220795
 
220995
220796
 
220996
220797
  var footersArray = nodes.get("footer");
@@ -221027,10 +220828,8 @@ var StructureConvert = /*#__PURE__*/function () {
221027
220828
  // );
221028
220829
 
221029
220830
  }
221030
- } // for (let i = 0; i < hoEditorFactory.drawTree.drawPages.length; i++) {
221031
- // hoEditorFactory.drawPageTree.calcMainDocPosition(i);
221032
- // hoEditorFactory.drawTree.drawPages[i].reFreshBounds();
221033
- // }
220831
+ } // console.timeEnd("openJson2Doc--footersArray");
220832
+ //main
221034
220833
 
221035
220834
 
221036
220835
  var main = nodes.get("main");
@@ -221042,13 +220841,15 @@ var StructureConvert = /*#__PURE__*/function () {
221042
220841
 
221043
220842
  insertNode(main, mPrevNode);
221044
220843
  var mLength = hoEditorFactory.docTree.mainNodes.length - 1;
221045
- var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]);
220844
+ var mEndPath = hoEditorFactory.docTree.getNodeLastPath(hoEditorFactory.docTree.mainNodes[mLength]); // console.time("openJson2Doc--change");
220845
+
221046
220846
  var mChangeEvent = new NodeChangeEvent/* NodeChangeEvent */.G(this._hoEditorFactoryID, DocTree/* DocAction.daInsert */.gk.daInsert, "main/0", mEndPath); // mChangeEvent.oldEndPath = mEndPath;
221047
220847
  // mChangeEvent.oldDrawTreeLines = new SelectRange(
221048
220848
  // this._hoEditorFactory
221049
220849
  // ).getRangeDrawTreeLines("main/0", mEndPath);
221050
220850
 
221051
- hoEditorFactory.docTree.change(mChangeEvent);
220851
+ hoEditorFactory.docTree.change(mChangeEvent); // console.timeEnd("openJson2Doc--change");
220852
+
221052
220853
  var comments = [];
221053
220854
 
221054
220855
  if (this._comments.length === undefined) {
@@ -221109,7 +220910,9 @@ var StructureConvert = /*#__PURE__*/function () {
221109
220910
 
221110
220911
  var formularNodes = hoEditorFactory.drawTree.formularNodes;
221111
220912
  formularNodes.forEach(function (value, key) {
221112
- 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) {
220913
+ if ( //value.formularType === FormularType.ftSum
220914
+ //|| value.formularType === FormularType.ftFormular
220915
+ 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) {
221113
220916
  value.updateResult();
221114
220917
  value.getParentCell().drawCell.needUpdate = true;
221115
220918
  var prevNode = value.previousLeaf();
@@ -221135,7 +220938,7 @@ var StructureConvert = /*#__PURE__*/function () {
221135
220938
  text: hoEditorFactory.vueController.getDocTitle(),
221136
220939
  count: 0
221137
220940
  });
221138
- hoEditorFactory.isThrowError = true;
220941
+ hoEditorFactory.isThrowError = true; // console.timeEnd("openJson2Doc");
221139
220942
  }
221140
220943
  }
221141
220944
  }, {
@@ -225466,6 +225269,7 @@ var VueController = /*#__PURE__*/function () {
225466
225269
  value: function insertHtmlText(strHtml) {
225467
225270
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
225468
225271
  strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, "</上标>", "<上标/>");
225272
+ strHtml = hoEditorFactory.unitConvert.replaceAll(strHtml, "</下标>", "<下标/>");
225469
225273
  var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
225470
225274
 
225471
225275
  if (result) {