hoeditor-web 2.0.93 → 2.0.96
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.
- package/lib/hoeditor.common.js +94 -85
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +94 -85
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -9063,7 +9063,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
9063
9063
|
|
|
9064
9064
|
/***/ }),
|
|
9065
9065
|
|
|
9066
|
-
/***/
|
|
9066
|
+
/***/ 67574:
|
|
9067
9067
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
9068
9068
|
|
|
9069
9069
|
"use strict";
|
|
@@ -9075,8 +9075,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
9075
9075
|
"default": function() { return /* binding */ Poper; }
|
|
9076
9076
|
});
|
|
9077
9077
|
|
|
9078
|
-
;// 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/popers/Poper.vue?vue&type=template&id=
|
|
9079
|
-
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classSelected,style:(_vm.poperStyle),on:{"mouseenter":_vm.mouseenter,"mouseleave":_vm.mouseleave}},[_vm.
|
|
9078
|
+
;// 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/popers/Poper.vue?vue&type=template&id=c961989a&
|
|
9079
|
+
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.classSelected,style:(_vm.poperStyle),on:{"mouseenter":_vm.mouseenter,"mouseleave":_vm.mouseleave}},[(_vm.svg)?_c('span',{class:_vm.classNames}):_vm._t("default"),(_vm.title && _vm.show)?_c('Title',{attrs:{"title":_vm.title,"styles":_vm.styles}}):_vm._e()],2)}
|
|
9080
9080
|
var staticRenderFns = []
|
|
9081
9081
|
|
|
9082
9082
|
|
|
@@ -9094,7 +9094,6 @@ var Title = __webpack_require__(95196);
|
|
|
9094
9094
|
//
|
|
9095
9095
|
//
|
|
9096
9096
|
//
|
|
9097
|
-
//
|
|
9098
9097
|
|
|
9099
9098
|
/* harmony default export */ var Popervue_type_script_lang_js_ = ({
|
|
9100
9099
|
name: 'Poper',
|
|
@@ -14298,7 +14297,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
14298
14297
|
|
|
14299
14298
|
/***/ }),
|
|
14300
14299
|
|
|
14301
|
-
/***/
|
|
14300
|
+
/***/ 17621:
|
|
14302
14301
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
14303
14302
|
|
|
14304
14303
|
"use strict";
|
|
@@ -14310,7 +14309,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
14310
14309
|
"default": function() { return /* binding */ UploadImageDialog; }
|
|
14311
14310
|
});
|
|
14312
14311
|
|
|
14313
|
-
;// 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/upload/UploadImageDialog.vue?vue&type=template&id=
|
|
14312
|
+
;// 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/upload/UploadImageDialog.vue?vue&type=template&id=7ab93c5e&scoped=true&
|
|
14314
14313
|
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"},[_c('ul',{staticClass:"control-list"},[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("上传图片")]),_c('el-upload',{ref:"upload",staticClass:"upload-image",attrs:{"action":"","file-list":_vm.fileList,"show-file-list":false,"auto-upload":false,"on-change":_vm.uploadImage,"accept":"image/*"}},[_c('el-button',{attrs:{"size":"small"}},[_vm._v("选择图片")])],1)],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("修改")]),_c('el-radio',{attrs:{"label":"w"},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:"radio"}},[_vm._v("宽度")]),_c('el-radio',{attrs:{"label":"h"},model:{value:(_vm.radio),callback:function ($$v) {_vm.radio=$$v},expression:"radio"}},[_vm._v("高度")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("图片宽度")]),_c('el-input',{attrs:{"disabled":_vm.radio == 'h',"size":"mini","placeholder":"设置插入后的图片宽度","maxlength":"20"},model:{value:(_vm.width),callback:function ($$v) {_vm.width=$$v},expression:"width"}})],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("图片高度")]),_c('el-input',{attrs:{"disabled":_vm.radio == 'w',"size":"mini","placeholder":"设置插入后的图片高度","maxlength":"20"},model:{value:(_vm.height),callback:function ($$v) {_vm.height=$$v},expression:"height"}})],1),(_vm.uploadImageParams && _vm.uploadImageParams.uploadUrl)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("图片格式")]),_c('el-radio',{attrs:{"label":false},model:{value:(_vm.upload),callback:function ($$v) {_vm.upload=$$v},expression:"upload"}},[_vm._v("生成base64")]),_c('el-radio',{attrs:{"label":true},model:{value:(_vm.upload),callback:function ($$v) {_vm.upload=$$v},expression:"upload"}},[_vm._v("上传到服务器")])],1)]:_vm._e(),(!_vm.upload)?[_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"}),_c('el-checkbox',{model:{value:(_vm.compress),callback:function ($$v) {_vm.compress=$$v},expression:"compress"}},[_vm._v("是否按缩放后尺寸压缩图片")])],1),_c('li',{staticStyle:{"text-align":"left","padding":"0 0 0 10px","line-height":"20px"}},[_vm._v("图片初始大小:"+_vm._s((_vm.uploadImageUrl.length / 1024).toFixed(2))+" kb")]),_c('li',{staticStyle:{"text-align":"left","padding":"0 0 0 10px","line-height":"20px"}},[_vm._v("压缩后图片大小:"+_vm._s((_vm.imageUrl.length / 1024).toFixed(2))+" kb")]),_c('li',{staticStyle:{"text-align":"left","padding":"0 0 0 10px","line-height":"20px"}},[_vm._v("图片默认压缩为 jpeg 格式")])]:_vm._e(),_c('fieldset',{staticClass:"fieldset"},[_c('legend',[_vm._v("预 览")]),_c('div',{staticClass:"view-image"},[(_vm.imageUrl)?_c('img',{ref:"image",attrs:{"width":this.width,"src":_vm.imageUrl}}):_vm._e()])])],2)]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","loading":_vm.uploadLoading,"type":"primary"},on:{"click":_vm.sure}},[_vm._v(_vm._s(_vm.uploadLoading ? '正在上传。。。' : '上传'))]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
14315
14314
|
var staticRenderFns = []
|
|
14316
14315
|
|
|
@@ -14322,8 +14321,6 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
14322
14321
|
var es_number_to_fixed = __webpack_require__(56977);
|
|
14323
14322
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.constructor.js
|
|
14324
14323
|
var es_number_constructor = __webpack_require__(9653);
|
|
14325
|
-
// EXTERNAL MODULE: ./node_modules/vue-property-decorator/lib/vue-property-decorator.js + 1 modules
|
|
14326
|
-
var vue_property_decorator = __webpack_require__(14391);
|
|
14327
14324
|
// EXTERNAL MODULE: ./src/plugins/ajax.ts
|
|
14328
14325
|
var ajax = __webpack_require__(60399);
|
|
14329
14326
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
@@ -14406,7 +14403,6 @@ var util = __webpack_require__(17987);
|
|
|
14406
14403
|
//
|
|
14407
14404
|
|
|
14408
14405
|
|
|
14409
|
-
|
|
14410
14406
|
/* harmony default export */ var UploadImageDialogvue_type_script_lang_js_ = ({
|
|
14411
14407
|
name: 'UploadImageDialog',
|
|
14412
14408
|
props: {
|
|
@@ -14626,10 +14622,10 @@ var util = __webpack_require__(17987);
|
|
|
14626
14622
|
});
|
|
14627
14623
|
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=script&lang=js&
|
|
14628
14624
|
/* harmony default export */ var upload_UploadImageDialogvue_type_script_lang_js_ = (UploadImageDialogvue_type_script_lang_js_);
|
|
14629
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
14625
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-65[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-65[0].rules[0].use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=7ab93c5e&lang=scss&scoped=true&
|
|
14630
14626
|
// extracted by mini-css-extract-plugin
|
|
14631
14627
|
|
|
14632
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=
|
|
14628
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/UploadImageDialog.vue?vue&type=style&index=0&id=7ab93c5e&lang=scss&scoped=true&
|
|
14633
14629
|
|
|
14634
14630
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14635
14631
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -14648,7 +14644,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
14648
14644
|
staticRenderFns,
|
|
14649
14645
|
false,
|
|
14650
14646
|
null,
|
|
14651
|
-
"
|
|
14647
|
+
"7ab93c5e",
|
|
14652
14648
|
null
|
|
14653
14649
|
|
|
14654
14650
|
)
|
|
@@ -16370,7 +16366,7 @@ var commonParamList = new Map();
|
|
|
16370
16366
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
16371
16367
|
|
|
16372
16368
|
"use strict";
|
|
16373
|
-
/* harmony import */ var _Poper_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
16369
|
+
/* harmony import */ var _Poper_vue__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(67574);
|
|
16374
16370
|
|
|
16375
16371
|
/* harmony default export */ __webpack_exports__["Z"] = (_Poper_vue__WEBPACK_IMPORTED_MODULE_0__["default"]);
|
|
16376
16372
|
|
|
@@ -24823,7 +24819,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
24823
24819
|
key: "printToPDF",
|
|
24824
24820
|
value: function () {
|
|
24825
24821
|
var _printToPDF = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee2(hoEditorFactoryID, PDF, type, fileName, reslove, positionY, format) {
|
|
24826
|
-
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, name;
|
|
24822
|
+
var hoEditorFactory, dPage, docHeight, dHeight, startPageNum, svgBox, orientation, width, height, last, _iterator, _step, _cpage$drawDomLevel3, index, cpage, dShape, posIndex, posY, _dShape, svg2pdfOptions, _cpage$drawDomLevel, _cpage$drawDomLevel$s, ctx, _cpage$drawDomLevel2, _cpage$drawDomLevel2$, _ctx, _ctx2, _svgBox2, svgData, _ctx3, _last, printStyle, _svgBox, exportHtml, url, link, otherPageNumber, i, name;
|
|
24827
24823
|
|
|
24828
24824
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee2$(_context3) {
|
|
24829
24825
|
while (1) {
|
|
@@ -25118,11 +25114,15 @@ var Print = /*#__PURE__*/function () {
|
|
|
25118
25114
|
return link.remove();
|
|
25119
25115
|
}, 100);
|
|
25120
25116
|
} else {
|
|
25121
|
-
|
|
25122
|
-
|
|
25117
|
+
otherPageNumber = PDF.internal.getNumberOfPages() - hoEditorFactory.drawTree.drawPages.length;
|
|
25118
|
+
|
|
25119
|
+
if (otherPageNumber >= 1) {
|
|
25120
|
+
for (i = 0; i < otherPageNumber; i++) {
|
|
25121
|
+
PDF === null || PDF === void 0 ? void 0 : PDF.deletePage(1);
|
|
25122
|
+
}
|
|
25123
25123
|
}
|
|
25124
25124
|
|
|
25125
|
-
|
|
25125
|
+
console.warn("\u4ECE\u5F00\u59CB\u5220\u6389".concat(otherPageNumber, "\u9875\u7A7A\u767D\u9875"));
|
|
25126
25126
|
name = hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档';
|
|
25127
25127
|
PDF && this.openDataUriInWindow(PDF, name, hoEditorFactory.pageProperty.widthPixes);
|
|
25128
25128
|
}
|
|
@@ -28167,13 +28167,13 @@ var DocController = /*#__PURE__*/function () {
|
|
|
28167
28167
|
if (node.keyValue !== "") {
|
|
28168
28168
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
28169
28169
|
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(this._hoEditorFactoryID, node.rootNodes, node, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, values["text"], hoEditorFactory.docTree.curStyleIndex);
|
|
28170
|
-
node.childNodes.splice(1, 0, textNode);
|
|
28170
|
+
node.childNodes.splice(1, 0, textNode);
|
|
28171
|
+
changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
28171
28172
|
} else {
|
|
28172
28173
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
28173
28174
|
node.childNodes.splice(1, 0, node.childNodes2[1]);
|
|
28175
|
+
changeEvent.afterChangePath = ePath;
|
|
28174
28176
|
}
|
|
28175
|
-
|
|
28176
|
-
changeEvent.afterChangePath = ePath;
|
|
28177
28177
|
} else {
|
|
28178
28178
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
28179
28179
|
changeEvent.afterChangePath = ePath;
|
|
@@ -47450,16 +47450,13 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
47450
47450
|
_this._signTime = signTime;
|
|
47451
47451
|
_this._imgSrc = imgSrc;
|
|
47452
47452
|
_this._attribute = attribute === undefined ? 0 : attribute;
|
|
47453
|
-
_this._connectChar = connectChar === undefined ? ":" : connectChar;
|
|
47454
|
-
|
|
47455
|
-
|
|
47456
|
-
|
|
47457
|
-
|
|
47458
|
-
_this._type = 3;
|
|
47459
|
-
} // if(attribute == 1) { // 患者签名修改 type == 3
|
|
47453
|
+
_this._connectChar = connectChar === undefined ? ":" : connectChar; // if (fingerPrintSrc || (imgSrc && !fingerPrintSrc && customProperty && !customProperty.created_date)) { // 用自定义属性区分并兼容旧的患者签名
|
|
47454
|
+
// this._attribute = 1;
|
|
47455
|
+
// this._type = 3;
|
|
47456
|
+
// }
|
|
47457
|
+
// if(attribute == 1) { // 患者签名修改 type == 3
|
|
47460
47458
|
// this._type = 3;
|
|
47461
47459
|
// }
|
|
47462
|
-
|
|
47463
47460
|
|
|
47464
47461
|
if (fingerPrintSrc) {
|
|
47465
47462
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -58464,10 +58461,10 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58464
58461
|
commentTextShape.alpha = 1; //背景
|
|
58465
58462
|
|
|
58466
58463
|
var backShape = new createjs.Shape();
|
|
58467
|
-
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5")
|
|
58464
|
+
backShape.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").beginFill("#ffe5e5") //.drawRoundRect(0, 0, commentWidth - 20, comment.lineHeigh,5);
|
|
58465
|
+
.drawRect(0, 0, commentWidth - 20, comment.lineHeight);
|
|
58468
58466
|
backShape.name = "back";
|
|
58469
|
-
backShape.alpha = 0.5;
|
|
58470
|
-
//横线
|
|
58467
|
+
backShape.alpha = 0.5; //横线
|
|
58471
58468
|
|
|
58472
58469
|
var horizontalLine = new createjs.Shape();
|
|
58473
58470
|
horizontalLine.graphics.setStrokeDash([4, 1], 0).setStrokeStyle(1).beginStroke("rgba(255, 0, 0, 1)").moveTo(nodeX, nodeY).lineTo(docWidth, nodeY);
|
|
@@ -65724,14 +65721,14 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65724
65721
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(16296);
|
|
65725
65722
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(83964);
|
|
65726
65723
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(46455);
|
|
65727
|
-
/* harmony import */ var
|
|
65728
|
-
/* harmony import */ var
|
|
65729
|
-
/* harmony import */ var
|
|
65730
|
-
/* harmony import */ var
|
|
65731
|
-
/* harmony import */ var
|
|
65732
|
-
/* harmony import */ var
|
|
65733
|
-
/* harmony import */ var
|
|
65734
|
-
/* harmony import */ var
|
|
65724
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(26699);
|
|
65725
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
65726
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(32023);
|
|
65727
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
65728
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(74916);
|
|
65729
|
+
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_5__);
|
|
65730
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(23123);
|
|
65731
|
+
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
65735
65732
|
/* harmony import */ var _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(69088);
|
|
65736
65733
|
/* harmony import */ var _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78975);
|
|
65737
65734
|
/* harmony import */ var _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(93777);
|
|
@@ -65753,7 +65750,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
65753
65750
|
/*
|
|
65754
65751
|
* @Author: your name
|
|
65755
65752
|
* @Date: 2021-09-01 16:51:49
|
|
65756
|
-
* @LastEditTime: 2022-08-
|
|
65753
|
+
* @LastEditTime: 2022-08-29 10:17:11
|
|
65757
65754
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
65758
65755
|
* @Description: In User Settings Edit
|
|
65759
65756
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -65792,9 +65789,20 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65792
65789
|
|
|
65793
65790
|
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_10__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
65794
65791
|
|
|
65795
|
-
_this._textStyle = cbStyle.getStyleKey();
|
|
65792
|
+
_this._textStyle = cbStyle.getStyleKey(); // 处理混乱的类型
|
|
65796
65793
|
|
|
65797
|
-
if (
|
|
65794
|
+
if (node.customProperty && node.customProperty.created_date) {
|
|
65795
|
+
// 区分图片签名和普通文本签名 并更新对应的值
|
|
65796
|
+
if ((imgSrc.includes('data:image/') || imgSrc.split("/").length > 1) && type == 3) {
|
|
65797
|
+
node.type = 1;
|
|
65798
|
+
_this.type = 1;
|
|
65799
|
+
} else if (!imgSrc.includes('data:image/') && !imgSrc.includes("/") && type == 3) {
|
|
65800
|
+
node.type = 2;
|
|
65801
|
+
_this.type = 2;
|
|
65802
|
+
}
|
|
65803
|
+
}
|
|
65804
|
+
|
|
65805
|
+
if (_this.number > 0 && _this.type === 2) {
|
|
65798
65806
|
var signArr = imgSrc.split('\n');
|
|
65799
65807
|
|
|
65800
65808
|
if (signArr.length > 1) {
|
|
@@ -65820,7 +65828,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65820
65828
|
var dText = new createjs.Text(_this.signName, _this._textStyle, '#000000');
|
|
65821
65829
|
_this.dWidth = dText.getMeasuredWidth();
|
|
65822
65830
|
} else {
|
|
65823
|
-
if (type === 1) {
|
|
65831
|
+
if (_this.type === 1) {
|
|
65824
65832
|
var scale = _this.dHeight / imgHeight;
|
|
65825
65833
|
|
|
65826
65834
|
if (number === 1) {
|
|
@@ -65835,7 +65843,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65835
65843
|
}
|
|
65836
65844
|
}
|
|
65837
65845
|
|
|
65838
|
-
if (type === 2) {
|
|
65846
|
+
if (_this.type === 2) {
|
|
65839
65847
|
var _signArr = imgSrc.split('\n');
|
|
65840
65848
|
|
|
65841
65849
|
var aText = new createjs.Text(_signArr[0], _this._textStyle, '#000000');
|
|
@@ -65865,31 +65873,12 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
65865
65873
|
}
|
|
65866
65874
|
}
|
|
65867
65875
|
}
|
|
65868
|
-
}
|
|
65876
|
+
} // if ((((imgSrc || fingerPrintSrc) && this.type == 1) || this.type == 3) && node.customProperty && !node.customProperty.created_date) {
|
|
65869
65877
|
|
|
65870
|
-
if ((imgSrc || fingerPrintSrc) && type == 1 || type == 3) {
|
|
65871
|
-
// 处理混乱的
|
|
65872
|
-
if (node.customProperty && node.customProperty.abi02) {
|
|
65873
|
-
// 区分图片签名和普通文本签名 并更新对应的值
|
|
65874
|
-
if ((imgSrc.includes('data:image/') || imgSrc.split("/").length > 1) && type == 3) {
|
|
65875
|
-
node.type = 1;
|
|
65876
|
-
_this.type = 1;
|
|
65877
|
-
} else if (!imgSrc.includes('data:image/') && !imgSrc.includes("/") && type == 3) {
|
|
65878
|
-
node.type = 2;
|
|
65879
|
-
_this.type = 2;
|
|
65880
|
-
}
|
|
65881
|
-
|
|
65882
|
-
console.warn('医生签名');
|
|
65883
|
-
|
|
65884
|
-
_this.drawSignNode();
|
|
65885
|
-
} else {
|
|
65886
|
-
console.warn('患者签名');
|
|
65887
65878
|
|
|
65888
|
-
|
|
65889
|
-
|
|
65879
|
+
if (fingerPrintSrc || imgSrc && !fingerPrintSrc && node.customProperty && !node.customProperty.created_date) {
|
|
65880
|
+
_this.drawWriteSignNode(node);
|
|
65890
65881
|
} else {
|
|
65891
|
-
console.warn('医生签名');
|
|
65892
|
-
|
|
65893
65882
|
_this.drawSignNode();
|
|
65894
65883
|
}
|
|
65895
65884
|
|
|
@@ -66194,6 +66183,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
66194
66183
|
image.src = _this3.imgSrc;
|
|
66195
66184
|
var bitmap = new createjs.Bitmap(image);
|
|
66196
66185
|
bitmap.y = -_this3.dHeight;
|
|
66186
|
+
bitmap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
66197
66187
|
|
|
66198
66188
|
if (_this3.number === 1) {
|
|
66199
66189
|
bitmap.x = 0;
|
|
@@ -71484,9 +71474,14 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
71484
71474
|
paragraphNode = this.clearDrawParagraphAfterDline(dline.paragraphNode, dline, inLineIndex, e.beforeChangePath);
|
|
71485
71475
|
dendDrawLine = this.drawDocInsert(paragraphNode, lineIndex, // inLineIndex,
|
|
71486
71476
|
node, startChildIndex + 1, e.afterChangePath);
|
|
71487
|
-
var endIndex = alines.
|
|
71477
|
+
var endIndex = alines.indexOf(dendDrawLine);
|
|
71478
|
+
|
|
71479
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
71480
|
+
endIndex = alines.length - 1;
|
|
71481
|
+
} // if (paragraphNode.parentNode === null) {
|
|
71488
71482
|
// const darea = this.getDrawA(dline);
|
|
71489
71483
|
|
|
71484
|
+
|
|
71490
71485
|
if (e.repaintImmediate) {
|
|
71491
71486
|
if (!dArea) {
|
|
71492
71487
|
return false;
|
|
@@ -212792,7 +212787,7 @@ var map = {
|
|
|
212792
212787
|
"./poperSelect/PoperMark.vue": 39959,
|
|
212793
212788
|
"./poperSelect/PoperSelect.vue": 10460,
|
|
212794
212789
|
"./poperTipText/PoperTipText.vue": 97824,
|
|
212795
|
-
"./popers/Poper.vue":
|
|
212790
|
+
"./popers/Poper.vue": 67574,
|
|
212796
212791
|
"./popers/Title.vue": 95196,
|
|
212797
212792
|
"./printstyle/PrintLineStyle.vue": 892,
|
|
212798
212793
|
"./qrCode/QrCode.vue": 7049,
|
|
@@ -212807,7 +212802,7 @@ var map = {
|
|
|
212807
212802
|
"./table/TableRowProperty.vue": 52032,
|
|
212808
212803
|
"./textDialog/TextDialog.vue": 87847,
|
|
212809
212804
|
"./upload/CanvasImageDialog.vue": 54485,
|
|
212810
|
-
"./upload/UploadImageDialog.vue":
|
|
212805
|
+
"./upload/UploadImageDialog.vue": 17621
|
|
212811
212806
|
};
|
|
212812
212807
|
|
|
212813
212808
|
|
|
@@ -214346,9 +214341,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214346
214341
|
var es_number_constructor = __webpack_require__(9653);
|
|
214347
214342
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214348
214343
|
var es_json_stringify = __webpack_require__(38862);
|
|
214349
|
-
;// 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/HoDoc.vue?vue&type=template&id=
|
|
214350
|
-
var
|
|
214351
|
-
var
|
|
214344
|
+
;// 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/HoDoc.vue?vue&type=template&id=5f466836&
|
|
214345
|
+
var HoDocvue_type_template_id_5f466836_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{class:_vm.docClassNames},[_c('div',{ref:"editorArea",staticClass:"editors"},[(_vm.drawPageLength > 0)?_c('div',{staticClass:"editor",on:{"click":function($event){return _vm.setActiveDocIndex(_vm.hoEditorId)}}},[_vm._l((_vm.drawPageCount.count),function(pgIndex){return [_c('HoPage',{key:pgIndex - 1,attrs:{"data-id":pgIndex - 1,"index":pgIndex - 1,"docIndex":_vm.docIndex,"canvasWidth":_vm.canvasParams.width,"canvasHeight":_vm.canvasParams.height,"currentActivePages":_vm.activePageIndex.index,"hoEditorId":_vm.hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"mouseMoveNodes":_vm.mouseMoveNodes,"viewableAreaObserver":_vm.viewableAreaObserver,"inViewPages":_vm.inViewPages,"canvasHeadFootPos":_vm.canvasHeadFootPos,"poperTipPos":_vm.poperTipPos,"textStyle":_vm.textStyle,"aiInfo":_vm.aiInfo},on:{"pageReady":_vm.pageReady,"canvasRightClick":_vm.mouseRightClickEvent},scopedSlots:_vm._u([{key:"hoPageHead",fn:function(){return [_vm._t("hoDocHead")]},proxy:true},{key:"hoPageFoot",fn:function(){return [_vm._t("hoDocFoot")]},proxy:true}],null,true)})]})],2):_vm._e()]),(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper')?_c('PoperSelectModal',{attrs:{"poperType":_vm.poperType,"poperSelectList":_vm.poperSelectList,"poperPos":_vm.poperPos,"hoEditorId":_vm.hoEditorId},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('PoperMark',{directives:[{name:"show",rawName:"v-show",value:(_vm.poperType === 'datePoper' || _vm.poperType === 'selectPoper' || _vm.poperType === 'table-cell-poper'),expression:"poperType === 'datePoper' || poperType === 'selectPoper' || poperType === 'table-cell-poper'"}]}),(_vm.poperType === 'table-cell-poper')?_c('TableCellPoper',{attrs:{"poperNode":_vm.nodeValue,"poperPos":_vm.poperPos},on:{"poperClose":_vm.poperClose}}):_vm._e(),_c('HoToPage',{attrs:{"hoEditorId":_vm.hoEditorId,"inViewPages":_vm.inViewPages}}),_c('PoperTipText',{attrs:{"isPoperText":_vm.isPoperText,"poperText":_vm.poperText,"poperPos":_vm.poperTextPos},on:{"poperTextClose":_vm.poperTextClose}}),_c('ul',{directives:[{name:"click-outside",rawName:"v-click-outside",value:(function () { return (_vm.isCreateRightMenuModal = false); }),expression:"() => (isCreateRightMenuModal = false)"},{name:"show",rawName:"v-show",value:(_vm.isCreateRightMenuModal),expression:"isCreateRightMenuModal"}],ref:"rightMenuModal",staticClass:"create-right-menu"},[(_vm.showCommentsBtn)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.hideComments}},[_vm._v(_vm._s(_vm.isHideComments ? '显示' : '隐藏')+"批注")]):_vm._e(),(_vm.showDeleteSignMenu)?_c('li',{staticClass:"mouse-menu-item",on:{"click":_vm.deleteSignNode}},[_vm._v("删除签名")]):_vm._e(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
214346
|
+
var HoDocvue_type_template_id_5f466836_staticRenderFns = []
|
|
214352
214347
|
|
|
214353
214348
|
|
|
214354
214349
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -217989,7 +217984,7 @@ var SignNode = __webpack_require__(78975);
|
|
|
217989
217984
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
217990
217985
|
var ParagraphNode = __webpack_require__(13880);
|
|
217991
217986
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
217992
|
-
/* harmony default export */ var version = ('2.0.
|
|
217987
|
+
/* harmony default export */ var version = ('2.0.96');
|
|
217993
217988
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
217994
217989
|
var PoperTipText = __webpack_require__(97824);
|
|
217995
217990
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -218475,7 +218470,7 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218475
218470
|
|
|
218476
218471
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
218477
218472
|
// 通过自定义属性内部字段判断是否属于患者签名 指纹签名只有患者签名才会有 同时患者签名不存在自定义属性可以用是否存在某个属性确定是否是患者签名(需要确定的是imgsrc要存在 imgsrc不存在是指空签名元素)
|
|
218478
|
-
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.
|
|
218473
|
+
if (node.fingerPrintSrc || node.imgSrc && !node.fingerPrintSrc && node.customProperty && !node.customProperty.created_date) return false;
|
|
218479
218474
|
this.$emit('dblNodeClick', {
|
|
218480
218475
|
node: this.getCurrentSelectNode,
|
|
218481
218476
|
type: 'sign'
|
|
@@ -218768,8 +218763,8 @@ var ImageNode = __webpack_require__(23778);
|
|
|
218768
218763
|
|
|
218769
218764
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
218770
218765
|
components_HoDocvue_type_script_lang_js_,
|
|
218771
|
-
|
|
218772
|
-
|
|
218766
|
+
HoDocvue_type_template_id_5f466836_render,
|
|
218767
|
+
HoDocvue_type_template_id_5f466836_staticRenderFns,
|
|
218773
218768
|
false,
|
|
218774
218769
|
null,
|
|
218775
218770
|
null,
|
|
@@ -219108,7 +219103,10 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219108
219103
|
return;
|
|
219109
219104
|
}
|
|
219110
219105
|
|
|
219111
|
-
|
|
219106
|
+
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
219107
|
+
this.clearAfterDTop(mainArea, dTop);
|
|
219108
|
+
}
|
|
219109
|
+
|
|
219112
219110
|
var nextLine = startLine;
|
|
219113
219111
|
var pageIsFull = new Map();
|
|
219114
219112
|
|
|
@@ -219164,7 +219162,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219164
219162
|
restHeight = drawArea.maxHeight - dTop;
|
|
219165
219163
|
}
|
|
219166
219164
|
|
|
219167
|
-
if (!isNew) {
|
|
219165
|
+
if (!isNew && hoEditorFactory.isUseDrawingOptimization) {
|
|
219168
219166
|
break;
|
|
219169
219167
|
}
|
|
219170
219168
|
}
|
|
@@ -219684,7 +219682,6 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219684
219682
|
}
|
|
219685
219683
|
}
|
|
219686
219684
|
|
|
219687
|
-
this.clearAfterDTop(drawArea, dTop);
|
|
219688
219685
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
219689
219686
|
this.afterAreaFinishPaint(drawArea);
|
|
219690
219687
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
@@ -233404,13 +233401,14 @@ var jspdf = __webpack_require__(7147);
|
|
|
233404
233401
|
|
|
233405
233402
|
|
|
233406
233403
|
|
|
233404
|
+
|
|
233407
233405
|
|
|
233408
233406
|
|
|
233409
233407
|
/*
|
|
233410
233408
|
* @Author: your name
|
|
233411
233409
|
* @Date: 2021-07-31 09:25:57
|
|
233412
|
-
* @LastEditTime:
|
|
233413
|
-
* @LastEditors:
|
|
233410
|
+
* @LastEditTime: 2022-08-26 13:53:54
|
|
233411
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
233414
233412
|
* @Description: In User Settings Edit
|
|
233415
233413
|
* @FilePath: \hoeditor-web\src\editor\externalCall\PrintController.ts
|
|
233416
233414
|
*/
|
|
@@ -233719,10 +233717,21 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233719
233717
|
});
|
|
233720
233718
|
|
|
233721
233719
|
return;
|
|
233722
|
-
}
|
|
233720
|
+
} // if (hoEditorFactory.isHideComments) {
|
|
233721
|
+
// hoEditorFactory.vueController.hideComments(true);
|
|
233722
|
+
// }
|
|
233723
|
+
|
|
233723
233724
|
|
|
233724
|
-
|
|
233725
|
-
|
|
233725
|
+
var drawMainDocs = hoEditorFactory.drawPageTree.drawMainDocs;
|
|
233726
|
+
|
|
233727
|
+
for (var k = 0; k < drawMainDocs.length; k++) {
|
|
233728
|
+
for (var s = drawMainDocs[k].children.length - 1; s >= 0; s--) {
|
|
233729
|
+
var child = drawMainDocs[k].children[s];
|
|
233730
|
+
|
|
233731
|
+
if (child.name && child.name.substring(0, 1) === "C" && child.name.length > 15) {
|
|
233732
|
+
drawMainDocs[k].removeChildAt(s);
|
|
233733
|
+
}
|
|
233734
|
+
}
|
|
233726
233735
|
}
|
|
233727
233736
|
|
|
233728
233737
|
if (printMode && printAppoint) {
|
|
@@ -235170,7 +235179,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235170
235179
|
|
|
235171
235180
|
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
235172
235181
|
|
|
235173
|
-
this._isUseDrawingOptimization =
|
|
235182
|
+
this._isUseDrawingOptimization = false; // 是否启用绘制优化 默认启用
|
|
235174
235183
|
|
|
235175
235184
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
235176
235185
|
|