hoeditor-web 3.0.68 → 3.0.70

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.
@@ -8964,7 +8964,7 @@ var component = (0,componentNormalizer/* default */.Z)(
8964
8964
 
8965
8965
  /***/ }),
8966
8966
 
8967
- /***/ 63138:
8967
+ /***/ 59046:
8968
8968
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
8969
8969
 
8970
8970
  "use strict";
@@ -8984,7 +8984,7 @@ var es_string_includes = __webpack_require__(32023);
8984
8984
  var es_regexp_exec = __webpack_require__(74916);
8985
8985
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.replace.js
8986
8986
  var es_string_replace = __webpack_require__(15306);
8987
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=05078cc6&
8987
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7d01edb7&
8988
8988
 
8989
8989
 
8990
8990
 
@@ -9372,7 +9372,7 @@ var render = function render() {
9372
9372
  };
9373
9373
  var staticRenderFns = [];
9374
9374
 
9375
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=05078cc6&
9375
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=template&id=7d01edb7&
9376
9376
 
9377
9377
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/toConsumableArray.js + 3 modules
9378
9378
  var toConsumableArray = __webpack_require__(61748);
@@ -11533,8 +11533,7 @@ var type = __webpack_require__(41542);
11533
11533
  v.showText = v.text.split("<元素>")[0];
11534
11534
  } else if (v.text.includes("<\u641C\u7D22>")) {
11535
11535
  v.showText = v.text.split("<搜索>")[0];
11536
- }
11537
- if (v.text.includes("__")) {
11536
+ } else if (v.text.includes("__")) {
11538
11537
  v.showText = v.text.split("__")[0];
11539
11538
  } else {
11540
11539
  v.showText = v.text;
@@ -12137,10 +12136,10 @@ var type = __webpack_require__(41542);
12137
12136
  });
12138
12137
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
12139
12138
  /* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
12140
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=05078cc6&prod&lang=scss&
12139
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7d01edb7&prod&lang=scss&
12141
12140
  // extracted by mini-css-extract-plugin
12142
12141
 
12143
- ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=05078cc6&prod&lang=scss&
12142
+ ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=7d01edb7&prod&lang=scss&
12144
12143
 
12145
12144
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
12146
12145
  var componentNormalizer = __webpack_require__(70713);
@@ -14939,7 +14938,7 @@ var component = (0,componentNormalizer/* default */.Z)(
14939
14938
 
14940
14939
  /***/ }),
14941
14940
 
14942
- /***/ 37930:
14941
+ /***/ 84240:
14943
14942
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
14944
14943
 
14945
14944
  "use strict";
@@ -14953,7 +14952,7 @@ __webpack_require__.d(__webpack_exports__, {
14953
14952
 
14954
14953
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
14955
14954
  var es_function_name = __webpack_require__(68309);
14956
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
14955
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=template&id=5cef9662&
14957
14956
 
14958
14957
  var render = function render() {
14959
14958
  var _vm = this,
@@ -15032,7 +15031,11 @@ var render = function render() {
15032
15031
  attrs: {
15033
15032
  "value": 3
15034
15033
  }
15035
- }, [_vm._v("自定义CA签名(默认带出职称和日期)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
15034
+ }, [_vm._v("自定义CA签名(默认带出职称和日期)")]), _c('a-radio', {
15035
+ attrs: {
15036
+ "value": 4
15037
+ }
15038
+ }, [_vm._v("自定义CA签名(职称,连接符可选)")])], 1)], 1)]), _vm.signType == 2 ? _c('li', {
15036
15039
  staticClass: "control-item"
15037
15040
  }, [_c('span', {
15038
15041
  staticClass: "label"
@@ -15048,11 +15051,11 @@ var render = function render() {
15048
15051
  },
15049
15052
  expression: "connectChar"
15050
15053
  }
15051
- })], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
15054
+ })], 1) : _vm._e(), _vm.signType == 4 ? _c('li', {
15052
15055
  staticClass: "control-item"
15053
15056
  }, [_c('span', {
15054
15057
  staticClass: "label"
15055
- }, [_vm._v("签名格式")]), _c('a-select', {
15058
+ }, [_vm._v("连接符")]), _c('a-select', {
15056
15059
  attrs: {
15057
15060
  "getPopupContainer": function getPopupContainer(triggerNode) {
15058
15061
  return triggerNode.parentNode;
@@ -15060,29 +15063,66 @@ var render = function render() {
15060
15063
  "placeholder": "请选择"
15061
15064
  },
15062
15065
  model: {
15063
- value: _vm.signFormat,
15066
+ value: _vm.connectMode,
15064
15067
  callback: function callback($$v) {
15065
- _vm.signFormat = $$v;
15068
+ _vm.connectMode = $$v;
15066
15069
  },
15067
- expression: "signFormat"
15070
+ expression: "connectMode"
15068
15071
  }
15069
15072
  }, [_c('a-select-option', {
15070
15073
  attrs: {
15071
- "value": "<医师姓名>"
15074
+ "value": "/"
15072
15075
  }
15073
- }, [_vm._v("<医师姓名>")]), _c('a-select-option', {
15076
+ }, [_vm._v("/")]), _c('a-select-option', {
15074
15077
  attrs: {
15075
- "value": "<医师姓名>(<医师职称>)"
15078
+ "value": "换行"
15076
15079
  }
15077
- }, [_vm._v("<医师姓名>(<医师职称>)")]), _c('a-select-option', {
15080
+ }, [_vm._v("换行")]), _c('a-select-option', {
15078
15081
  attrs: {
15079
- "value": ""
15082
+ "value": ""
15080
15083
  }
15081
- }, [_vm._v("<医师姓名>:<医师职称>\" value=\"<医师姓名>:<医师职称>")]), _c('a-select-option', {
15084
+ }, [_vm._v("")]), _c('a-select-option', {
15082
15085
  attrs: {
15083
- "value": "<医师姓名>:<医师职称>\\n<签名时间>"
15086
+ "value": ""
15084
15087
  }
15085
- }, [_vm._v("<医师姓名>:<医师职称>\\n<签名时间>")]), _vm._l(_vm.customSignFormatList, function (format) {
15088
+ }, [_vm._v("")])], 1)], 1) : _vm._e(), _vm.signType == 4 ? _c('li', {
15089
+ staticClass: "control-item"
15090
+ }, [_c('span', {
15091
+ staticClass: "label"
15092
+ }, [_vm._v("职称")]), _c('a-checkbox', {
15093
+ model: {
15094
+ value: _vm.isDisplayTitle,
15095
+ callback: function callback($$v) {
15096
+ _vm.isDisplayTitle = $$v;
15097
+ },
15098
+ expression: "isDisplayTitle"
15099
+ }
15100
+ })], 1) : _vm._e(), _vm.signType >= 9 ? [_c('li', {
15101
+ staticClass: "control-item"
15102
+ }, [_c('span', {
15103
+ staticClass: "label"
15104
+ }, [_vm._v("签名格式")]), _c('a-select', {
15105
+ attrs: {
15106
+ "getPopupContainer": function getPopupContainer(triggerNode) {
15107
+ return triggerNode.parentNode;
15108
+ },
15109
+ "placeholder": "请选择"
15110
+ },
15111
+ model: {
15112
+ value: _vm.signFormat,
15113
+ callback: function callback($$v) {
15114
+ _vm.signFormat = $$v;
15115
+ },
15116
+ expression: "signFormat"
15117
+ }
15118
+ }, [_vm._l(_vm.defaultFormatList, function (format) {
15119
+ return _c('a-select-option', {
15120
+ key: format,
15121
+ attrs: {
15122
+ "value": format
15123
+ }
15124
+ }, [_vm._v(_vm._s(format))]);
15125
+ }), _vm._l(_vm.customSignFormatList, function (format) {
15086
15126
  return _c('a-select-option', {
15087
15127
  key: format.label,
15088
15128
  attrs: {
@@ -15311,8 +15351,10 @@ var render = function render() {
15311
15351
  };
15312
15352
  var staticRenderFns = [];
15313
15353
 
15314
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=7416bc9f&
15354
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=template&id=5cef9662&
15315
15355
 
15356
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
15357
+ var objectSpread2 = __webpack_require__(63442);
15316
15358
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
15317
15359
  var style = __webpack_require__(94310);
15318
15360
  // EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/index.js + 3 modules
@@ -15360,6 +15402,7 @@ var SignNode = __webpack_require__(24701);
15360
15402
 
15361
15403
 
15362
15404
 
15405
+
15363
15406
  /* harmony default export */ var Signvue_type_script_lang_js_ = ({
15364
15407
  name: 'Sign',
15365
15408
  props: {
@@ -15387,18 +15430,23 @@ var SignNode = __webpack_require__(24701);
15387
15430
  signTimeFormat: 'yyyy-MM-DD HH:mm',
15388
15431
  customFormatContent: '',
15389
15432
  customSignFormatList: [],
15390
- animationClassNames: 'control-modal-contents sign-modal animation-in'
15433
+ defaultFormatList: ['<医师姓名>', '<医师姓名>(<医师职称>)', '<医师姓名>:<医师职称>', '<医师姓名>:<医师职称>\n<签名时间>'],
15434
+ animationClassNames: 'control-modal-contents sign-modal animation-in',
15435
+ isDisplayTitle: false
15391
15436
  };
15392
15437
  },
15393
15438
  mounted: function mounted() {
15394
15439
  if (this.controlStatus === 'update') {
15395
15440
  var node = this.getCurrentSelectNode();
15396
15441
  if (node) {
15442
+ var _node$otherProperties;
15397
15443
  this.name = node.name;
15398
15444
  if (node.attribute == 2) {
15399
15445
  this.signType = 2; // 自定义ca签名(带职称)
15400
15446
  } else if (node.attribute == 3) {
15401
- this.signType = 3; // 自定义ca签名(带职称)
15447
+ this.signType = 3; // 自定义CA签名(默认带出职称和日期)
15448
+ } else if (node.attribute == 4) {
15449
+ this.signType = 4; // 自定义CA签名(职称,连接符可选)
15402
15450
  } else if (node.attribute == 1) {
15403
15451
  this.signType = 1; // 患者签名
15404
15452
  } else {
@@ -15416,6 +15464,7 @@ var SignNode = __webpack_require__(24701);
15416
15464
  this.signTimeFormat = node.signTimeFormat;
15417
15465
  this.customFormatContent = node.customFormatContent ? node.customFormatContent : '';
15418
15466
  this.customSignFormatList = node.customSignFormatList ? node.customSignFormatList : [];
15467
+ this.isDisplayTitle = (_node$otherProperties = node.otherProperties) !== null && _node$otherProperties !== void 0 && _node$otherProperties.isDisplayTitle ? true : false;
15419
15468
  }
15420
15469
  }
15421
15470
  },
@@ -15488,6 +15537,12 @@ var SignNode = __webpack_require__(24701);
15488
15537
  } else if (this.signType === 3) {
15489
15538
  // 自定义多人签名
15490
15539
  this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(默认带出职称和日期)', 0, '', '', customProperty, '', undefined, undefined, this.signType, this.connectChar);
15540
+ } else if (this.signType === 4) {
15541
+ // 自定义多人签名
15542
+
15543
+ this.vueController.insertEmptySignNode(this.name ? this.name : '自定义CA签名(职称,连接符可选)', 0, '', '', customProperty, this.connectMode, undefined, undefined, this.signType, this.connectChar, {
15544
+ isDisplayTitle: this.isDisplayTitle
15545
+ });
15491
15546
  } else {
15492
15547
  var name = this.name ? this.name : this.signType == 1 ? '患者签名' : '医生签名';
15493
15548
  this.vueController.insertEmptySignNode(name, 0, '', '', customProperty, '', undefined, undefined, this.signType);
@@ -15497,7 +15552,10 @@ var SignNode = __webpack_require__(24701);
15497
15552
  var _name = this.name ? this.name : node.name;
15498
15553
  var attribute = this.signType === 9 ? 0 : this.signType;
15499
15554
  var signType = this.signType == 9 ? 1 : 0; // 自定义签名的signType=1 其他签名 signType=0
15500
- this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat);
15555
+ var otherProperties = (0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, node.otherProperties), {}, {
15556
+ isDisplayTitle: this.isDisplayTitle
15557
+ });
15558
+ this.vueController.updateEmptySignNode(node, _name, attribute, this.connectChar, signType, this.signFormat, this.signor, '', this.signTimeFormat, this.connectMode, otherProperties);
15501
15559
  }
15502
15560
  this.handleClose();
15503
15561
  },
@@ -15509,10 +15567,10 @@ var SignNode = __webpack_require__(24701);
15509
15567
  });
15510
15568
  ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=script&lang=js&
15511
15569
  /* harmony default export */ var sign_Signvue_type_script_lang_js_ = (Signvue_type_script_lang_js_);
15512
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
15570
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5cef9662&prod&lang=scss&
15513
15571
  // extracted by mini-css-extract-plugin
15514
15572
 
15515
- ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=7416bc9f&prod&lang=scss&
15573
+ ;// CONCATENATED MODULE: ./src/components/controls/sign/Sign.vue?vue&type=style&index=0&id=5cef9662&prod&lang=scss&
15516
15574
 
15517
15575
  // EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
15518
15576
  var componentNormalizer = __webpack_require__(70713);
@@ -41456,7 +41514,7 @@ var DocController = /*#__PURE__*/function () {
41456
41514
  sPath = hoEditorFactory.docTree.getNodeLastPath(node);
41457
41515
  }
41458
41516
  }
41459
- var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, undefined, undefined, otherProperties);
41517
+ var newSignNode = new _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_83__/* .SignNode */ .N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_23__/* .NodeType.ntSign */ .Jq.ntSign, 2, type, name, node.signType, node.signFormat, signor, signTime, node.signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, false, node.styleIndex, node.connectMode, type == 1 && node.signType == 1 ? true : node.isFront, node.allowEditSignTime, fingerPrintSrc, fingerPosition, node.attribute, node.connectChar, otherProperties);
41460
41518
  //插入该表达式节点
41461
41519
  hoEditorFactory.undoService.begin();
41462
41520
  hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_24__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, sPath, newSignNode));
@@ -41476,7 +41534,7 @@ var DocController = /*#__PURE__*/function () {
41476
41534
  */
41477
41535
  }, {
41478
41536
  key: "updateEmptySignNode",
41479
- value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat) {
41537
+ value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties) {
41480
41538
  var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_76__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
41481
41539
  var sPath = hoEditorFactory.docTree.getNodeLastPath(node.previousLeaf());
41482
41540
  var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
@@ -41492,6 +41550,8 @@ var DocController = /*#__PURE__*/function () {
41492
41550
  node.signTime = signTime;
41493
41551
  node.signTimeFormat = signTimeFormat;
41494
41552
  node.attribute = attribute;
41553
+ node.connectMode = connectMode;
41554
+ node.otherProperties = otherProperties;
41495
41555
  hoEditorFactory.docTree.change(changeEvent);
41496
41556
  }
41497
41557
  /**
@@ -58883,9 +58943,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
58883
58943
  //指纹
58884
58944
  //样式
58885
58945
  // 当前签名图片是否已转成jpg 0代表未转换 1代表已转换
58886
- //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)
58946
+ //签名属性 0:医生签名 1:患者签名 2:ca签名(职称+签名图片) 3:ca签名(职称+签名+日期)4.ca签名(职称、连接符可选)
58887
58947
  //自定义CA签名连接符
58888
- //其它属性{"title":"职称","time":"签名日期"}
58948
+ //其它属性{"isDisplayTitle":true,"title":"职称","time":"签名日期"}
58889
58949
  function SignNode(hoEditorFactoryID, rootNodes, pNode, nodeType, number, type, name, signType, signFormat, signor, signTime, signTimeFormat, imgSrc, imgWidth, imgHeight, customProperty, isTemplate, styleIndex, connectMode, isFront, allowEditSignTime, fingerPrintSrc, fingerPosition, attribute, connectChar, otherProperties) {
58890
58950
  var _this;
58891
58951
  (0,D_project_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, SignNode);
@@ -58945,8 +59005,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
58945
59005
  } else {
58946
59006
  _this._styleIndex = hoEditorFactory.docTree.curStyleIndex;
58947
59007
  }
59008
+ _this._connectMode = connectMode;
58948
59009
  if (signType === 1 && type !== 1) {
58949
- _this._connectMode = connectMode;
58950
59010
  _this._isFront = isFront;
58951
59011
  _this._allowEditSignTime = allowEditSignTime;
58952
59012
  }
@@ -76087,7 +76147,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
76087
76147
  /*
76088
76148
  * @Author: your name
76089
76149
  * @Date: 2021-09-01 16:51:49
76090
- * @LastEditTime: 2023-04-12 13:58:22
76150
+ * @LastEditTime: 2023-06-15 16:59:56
76091
76151
  * @LastEditors: liyanan 2441631434@qq.com
76092
76152
  * @Description: In User Settings Edit
76093
76153
  * @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
@@ -76133,6 +76193,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76133
76193
  _this._textStyle = cbStyle.getStyleKey();
76134
76194
  _this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : "";
76135
76195
  _this._title = otherProperties && otherProperties.title ? otherProperties.title : "";
76196
+ if (_this.attribute === 4 && _this._title == "") {
76197
+ _this._title = _this._abi02;
76198
+ }
76136
76199
  _this._signTime = otherProperties && otherProperties.time ? otherProperties.time : "";
76137
76200
  if (_this._title != "") {
76138
76201
  _this._drawTitle = new createjs.Text(_this.title + _this._connectChar, _this._textStyle, '#000000');
@@ -76174,7 +76237,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76174
76237
  }
76175
76238
  }
76176
76239
  //this._drawText = new DrawSimpleText('/', cbStyle.getStyleKey(), "#000000");
76177
- _this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
76240
+ if (node.connectMode != "换行" && node.connectMode != "无") {
76241
+ _this._drawText = new createjs.Text(node.connectMode, _this._textStyle, '#000000');
76242
+ }
76178
76243
  if (_this.number === 0) {
76179
76244
  var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
76180
76245
  _this.dWidth = dText.getMeasuredWidth();
@@ -76185,7 +76250,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76185
76250
  if (number === 1) {
76186
76251
  _this.dWidth = imgWidth * scale;
76187
76252
  } else {
76188
- _this.dWidth = imgWidth * scale + _this._drawText.getMeasuredWidth();
76253
+ _this.dWidth = imgWidth * scale + (_this._drawText ? _this._drawText.getMeasuredWidth() : 0);
76189
76254
  }
76190
76255
  if (_this.attribute === 2 && _this._abi02 !== "") {
76191
76256
  _this._drawAbi02 = new createjs.Text(_this._abi02 + _this._connectChar, _this._textStyle, '#000000');
@@ -76202,6 +76267,11 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76202
76267
  _this.dHeight = _this.dHeight + _this._drawDate.getMeasuredHeight() + 2;
76203
76268
  }
76204
76269
  }
76270
+ if (_this.attribute === 4) {
76271
+ if (_this.title != "") {
76272
+ _this.dWidth += _this._drawTitle.getMeasuredWidth();
76273
+ }
76274
+ }
76205
76275
  }
76206
76276
  if (_this.type === 2) {
76207
76277
  //文字
@@ -76579,6 +76649,17 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76579
76649
  bitmap.x = _this3._drawTitle.getMeasuredWidth();
76580
76650
  _this3.addChild(bitmap);
76581
76651
  }
76652
+ } else if (_this3.attribute === 4) {
76653
+ if (_this3.title !== "") {
76654
+ _this3._drawTitle.textBaseline = 'alphabetic';
76655
+ _this3._drawTitle.textAlign = 'left';
76656
+ _this3.addChildAt(_this3._drawTitle, 0);
76657
+ bitmap.x = _this3._drawTitle.getMeasuredWidth();
76658
+ _this3.addChild(bitmap);
76659
+ } else {
76660
+ bitmap.x = 0;
76661
+ _this3.addChild(bitmap);
76662
+ }
76582
76663
  } else {
76583
76664
  _this3.addChildAt(bitmap, 0);
76584
76665
  }
@@ -76614,6 +76695,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76614
76695
  drawNode.dWidth = _this3._drawDate.getMeasuredWidth();
76615
76696
  }
76616
76697
  }
76698
+ if (drawNode.attribute == 4 && drawNode.title != "") {
76699
+ drawNode.dWidth += drawNode._drawTitle.getMeasuredWidth();
76700
+ }
76617
76701
  if (_this3.number === 2) {
76618
76702
  drawNode.dWidth += _this3._drawText.getMeasuredWidth();
76619
76703
  }
@@ -76621,6 +76705,8 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
76621
76705
  bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
76622
76706
  } else if (drawNode.attribute === 3 && drawNode.title !== "") {
76623
76707
  bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
76708
+ } else if (drawNode.attribute === 4 && drawNode.title !== "") {
76709
+ bitmap.setTransform(drawNode._drawTitle.getMeasuredWidth(), -drawNode.dHeight - 4, width / hitWidth, (drawNode.dHeight - drawNode._drawDate.getMeasuredHeight() - 2) / hitHeight);
76624
76710
  } else {
76625
76711
  bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
76626
76712
  }
@@ -90351,7 +90437,7 @@ var UndoService = /*#__PURE__*/function () {
90351
90437
  value: function undo() {
90352
90438
  if (this._position !== 0) {
90353
90439
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
90354
- if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
90440
+ if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
90355
90441
  hoEditorFactory.contentIsModify.isModify = true;
90356
90442
  hoEditorFactory.cachedModify = false;
90357
90443
  hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
@@ -90365,7 +90451,7 @@ var UndoService = /*#__PURE__*/function () {
90365
90451
  value: function redo() {
90366
90452
  if (this._stack.length !== 0 && this._position < this._stack.length) {
90367
90453
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
90368
- if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPreview */.Dh.psPreview && hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
90454
+ if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psPrint */.Dh.psPrint) {
90369
90455
  hoEditorFactory.contentIsModify.isModify = true;
90370
90456
  hoEditorFactory.cachedModify = false;
90371
90457
  hoEditorFactory.hoLocalStorage.autoSaveLocalStorage();
@@ -196618,7 +196704,7 @@ var map = {
196618
196704
  "./pageInfoes/PageInfoes.vue": 17481,
196619
196705
  "./paragraph/ParagraphDialog.vue": 54949,
196620
196706
  "./poperSelect/PoperMark.vue": 71472,
196621
- "./poperSelect/PoperSelect.vue": 63138,
196707
+ "./poperSelect/PoperSelect.vue": 59046,
196622
196708
  "./poperTipText/PoperTipText.vue": 36081,
196623
196709
  "./popers/Poper.vue": 57937,
196624
196710
  "./popers/Title.vue": 89987,
@@ -196626,7 +196712,7 @@ var map = {
196626
196712
  "./qrCode/QrCode.vue": 86349,
196627
196713
  "./radioCheckBox/RadioCheckbox.vue": 93638,
196628
196714
  "./selectDialog/SelectDialog.vue": 59075,
196629
- "./sign/Sign.vue": 37930,
196715
+ "./sign/Sign.vue": 84240,
196630
196716
  "./table/TableCellPoper.vue": 61917,
196631
196717
  "./table/TableCellProperty.vue": 74601,
196632
196718
  "./table/TableColProperty.vue": 2116,
@@ -233041,8 +233127,8 @@ var es_string_match = __webpack_require__(4723);
233041
233127
  var es_number_constructor = __webpack_require__(9653);
233042
233128
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
233043
233129
  var es_json_stringify = __webpack_require__(38862);
233044
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=1fa60e86&
233045
- var HoDocvue_type_template_id_1fa60e86_render = function render() {
233130
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=1e008829&
233131
+ var HoDocvue_type_template_id_1e008829_render = function render() {
233046
233132
  var _vm = this,
233047
233133
  _c = _vm._self._c;
233048
233134
  return _c('div', {
@@ -233055,6 +233141,9 @@ var HoDocvue_type_template_id_1fa60e86_render = function render() {
233055
233141
  style: {
233056
233142
  minWidth: _vm.normalWidth + 'px'
233057
233143
  },
233144
+ attrs: {
233145
+ "id": _vm.hoEditorId
233146
+ },
233058
233147
  on: {
233059
233148
  "click": function click($event) {
233060
233149
  return _vm.setActiveDocIndex(_vm.hoEditorId);
@@ -233187,7 +233276,7 @@ var HoDocvue_type_template_id_1fa60e86_render = function render() {
233187
233276
  }
233188
233277
  }, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
233189
233278
  };
233190
- var HoDocvue_type_template_id_1fa60e86_staticRenderFns = [];
233279
+ var HoDocvue_type_template_id_1e008829_staticRenderFns = [];
233191
233280
 
233192
233281
  // EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
233193
233282
  var es_array_filter = __webpack_require__(57327);
@@ -234737,7 +234826,7 @@ var HoToPage_component = (0,componentNormalizer/* default */.Z)(
234737
234826
  // EXTERNAL MODULE: ./src/plugins/util.ts
234738
234827
  var plugins_util = __webpack_require__(62783);
234739
234828
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 9 modules
234740
- var PoperSelect = __webpack_require__(63138);
234829
+ var PoperSelect = __webpack_require__(59046);
234741
234830
  // EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
234742
234831
  var PoperMark = __webpack_require__(71472);
234743
234832
  ;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
@@ -236144,7 +236233,7 @@ var ParagraphNode = __webpack_require__(67945);
236144
236233
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/MarkNode.ts
236145
236234
  var MarkNode = __webpack_require__(57727);
236146
236235
  ;// CONCATENATED MODULE: ./src/components/version.ts
236147
- /* harmony default export */ var version = ('3.0.68');
236236
+ /* harmony default export */ var version = ('3.0.70');
236148
236237
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
236149
236238
  var PoperTipText = __webpack_require__(36081);
236150
236239
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -236868,10 +236957,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
236868
236957
  });
236869
236958
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
236870
236959
  /* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
236871
- ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=1fa60e86&prod&lang=scss&
236960
+ ;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22.use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=1e008829&prod&lang=scss&
236872
236961
  // extracted by mini-css-extract-plugin
236873
236962
 
236874
- ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=1fa60e86&prod&lang=scss&
236963
+ ;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=1e008829&prod&lang=scss&
236875
236964
 
236876
236965
  ;// CONCATENATED MODULE: ./src/components/HoDoc.vue
236877
236966
 
@@ -236884,8 +236973,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
236884
236973
 
236885
236974
  var HoDoc_component = (0,componentNormalizer/* default */.Z)(
236886
236975
  components_HoDocvue_type_script_lang_js_,
236887
- HoDocvue_type_template_id_1fa60e86_render,
236888
- HoDocvue_type_template_id_1fa60e86_staticRenderFns,
236976
+ HoDocvue_type_template_id_1e008829_render,
236977
+ HoDocvue_type_template_id_1e008829_staticRenderFns,
236889
236978
  false,
236890
236979
  null,
236891
236980
  null,
@@ -243561,6 +243650,7 @@ var history_component = (0,componentNormalizer/* default */.Z)(
243561
243650
 
243562
243651
 
243563
243652
 
243653
+
243564
243654
  var HistoryConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(common_history); // 获取组件的构造函数
243565
243655
  var createHistoryInstance = function createHistoryInstance(options) {
243566
243656
  // 组件的手动挂载:创建组件实例,挂载,添加在body上
@@ -243570,7 +243660,7 @@ var createHistoryInstance = function createHistoryInstance(options) {
243570
243660
  })
243571
243661
  });
243572
243662
  instance.$mount();
243573
- var editorBox = document.querySelector("#ho-comment-box-".concat(options.pageIndex));
243663
+ var editorBox = document.querySelector("#".concat(options.editorId, " #ho-comment-box-").concat(options.pageIndex));
243574
243664
  if (editorBox) {
243575
243665
  editorBox.appendChild(instance.$el);
243576
243666
  } else {
@@ -247913,12 +248003,12 @@ var VueController = /*#__PURE__*/function () {
247913
248003
  */
247914
248004
  }, {
247915
248005
  key: "updateEmptySignNode",
247916
- value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat) {
248006
+ value: function updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties) {
247917
248007
  if (node.type !== 0) {
247918
248008
  return;
247919
248009
  }
247920
248010
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
247921
- hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat);
248011
+ hoEditorFactory.docController.updateEmptySignNode(node, name, attribute, connectChar, signType, signFormat, signor, signTime, signTimeFormat, connectMode, otherProperties);
247922
248012
  }
247923
248013
  /**
247924
248014
  * 更新签名时间
@@ -248612,6 +248702,13 @@ var VueController = /*#__PURE__*/function () {
248612
248702
  var y = (hoEditorFactory.pageProperty.heightPixes - caret.stageY) * 0.75;
248613
248703
  return [caret.pageIndex + 1, caret.stageX * 0.75, y];
248614
248704
  }
248705
+ }, {
248706
+ key: "getPosition2",
248707
+ value: function getPosition2() {
248708
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
248709
+ var caret = hoEditorFactory.drawTree.caret;
248710
+ return [caret.pageIndex + 1, caret.stageX * 0.75, caret.stageY * 0.75 + 40];
248711
+ }
248615
248712
  /**
248616
248713
  * 获取光标位置
248617
248714
  * returns [pageIndex, x, y]
@@ -249425,9 +249522,9 @@ var VueController = /*#__PURE__*/function () {
249425
249522
  }
249426
249523
  }, {
249427
249524
  key: "showElementsEditRecord",
249428
- value: function showElementsEditRecord(objects) {
249525
+ value: function showElementsEditRecord(objects, id) {
249429
249526
  var comments = [];
249430
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
249527
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
249431
249528
  if (hoEditorFactory.pageProperty.commentWidthMm == 0) {
249432
249529
  this.setPageProperty(JSON.stringify({
249433
249530
  commentWidthMm: 80
@@ -249461,6 +249558,7 @@ var VueController = /*#__PURE__*/function () {
249461
249558
  arr[pos[0]] = [];
249462
249559
  }
249463
249560
  var obj = {
249561
+ editorId: id,
249464
249562
  id: comment.id,
249465
249563
  lineHeight: comment.lineHeight,
249466
249564
  permissionLevel: comment.permissionLevel,
@@ -249511,8 +249609,8 @@ var VueController = /*#__PURE__*/function () {
249511
249609
  }
249512
249610
  }, {
249513
249611
  key: "clearEditRecords",
249514
- value: function clearEditRecords() {
249515
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
249612
+ value: function clearEditRecords(id) {
249613
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(id ? id : this._hoEditorFactoryID);
249516
249614
  hoEditorFactory.vueController.setPageProperty(JSON.stringify({
249517
249615
  commentWidthMm: 0
249518
249616
  }));
@@ -250744,6 +250842,42 @@ var VueController = /*#__PURE__*/function () {
250744
250842
  }
250745
250843
  }
250746
250844
  }
250845
+ /**
250846
+ * 根据节点名称找符合条件的文本域元素
250847
+ * @param name 节点名称
250848
+ */
250849
+ }, {
250850
+ key: "getTextInputFieldsByName",
250851
+ value: function getTextInputFieldsByName(name) {
250852
+ var nodes = [];
250853
+ var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250854
+ var iteratesNodes = function iteratesNodes(pnodes) {
250855
+ for (var i = 0; i < pnodes.length; i++) {
250856
+ var anode = pnodes[i];
250857
+ if (anode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
250858
+ if (anode.name === name) {
250859
+ nodes.push(anode);
250860
+ }
250861
+ }
250862
+ if (anode instanceof BaseCombineNode/* BaseCombineNode */.V) {
250863
+ iteratesNodes(anode.childNodes);
250864
+ }
250865
+ }
250866
+ };
250867
+ var mainNodes = hoEditorFactory.docTree.mainNodes;
250868
+ iteratesNodes(mainNodes);
250869
+ return nodes;
250870
+ }
250871
+ }, {
250872
+ key: "moveCaretToTextInputField",
250873
+ value: function moveCaretToTextInputField(node) {
250874
+ var endNode = node.EndMarkNode.previousLeaf();
250875
+ if (endNode) {
250876
+ var _hoEditorFactory2 = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
250877
+ var toPath = _hoEditorFactory2.docTree.getNodeLastPath(endNode);
250878
+ _hoEditorFactory2.drawTree.moveCaretToPath(toPath);
250879
+ }
250880
+ }
250747
250881
  }]);
250748
250882
  return VueController;
250749
250883
  }();