hoeditor-web 2.0.99 → 2.0.100
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 +150 -54
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +150 -54
- package/lib/hoeditor.umd.min.js +8 -8
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -6000,7 +6000,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
6000
6000
|
|
|
6001
6001
|
/***/ }),
|
|
6002
6002
|
|
|
6003
|
-
/***/
|
|
6003
|
+
/***/ 2706:
|
|
6004
6004
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
6005
6005
|
|
|
6006
6006
|
"use strict";
|
|
@@ -6012,7 +6012,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
6012
6012
|
"default": function() { return /* binding */ PoperSelect; }
|
|
6013
6013
|
});
|
|
6014
6014
|
|
|
6015
|
-
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=
|
|
6015
|
+
;// 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/poperSelect/PoperSelect.vue?vue&type=template&id=39dd7333&scoped=true&
|
|
6016
6016
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"poperSelectedModal",staticClass:"poper-selected-modal animation-in"},[_c('div',{staticStyle:{"height":"0","overflow":"hidden"}},[_c('svg',{attrs:{"viewBox":"0 0 1303 1024","version":"1.1","xmlns":"http://www.w3.org/2000/svg","width":"16","height":"16"}},[_c('defs',[_c('g',{attrs:{"id":"selected"}},[_c('path',{attrs:{"d":"M498.688 1024c-26.996364 0-52.782545-11.636364-71.214545-32.395636L29.323636 536.017455a124.276364 124.276364 0 0 1 0-160.302546 89.181091 89.181091 0 0 1 132.747637-11.915636l11.264 11.915636L497.105455 749.288727 1133.102545 34.443636a88.994909 88.994909 0 0 1 129.489455-11.915636l11.357091 11.915636c39.098182 45.521455 39.098182 114.874182 0 160.395637l-705.629091 796.765091c-17.966545 20.48-43.194182 32.209455-69.632 32.395636","fill":"#2175FF"}})])])])]),(_vm.isCanSearch && !_vm.mutexSelect)?_c('div',{staticStyle:{"padding":"5px"}},[_c('el-input',{attrs:{"placeholder":_vm.currentListNameText + '搜索',"size":"mini"},on:{"input":_vm.searchList},model:{value:(_vm.input),callback:function ($$v) {_vm.input=$$v},expression:"input"}})],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.currentList.length >= 0)?_c('div',{staticClass:"select-poper"},[_c('div',{staticClass:"list-box"},[(_vm.currentList.length == 0)?_c('ul',{staticClass:"list"},[_c('li',{staticStyle:{"text-align":"center"}},[_vm._v("无选项")])]):_vm._e(),(_vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.currentList.length > 0)?_c('el-checkbox-group',{on:{"change":_vm.selectItemsChange},model:{value:(_vm.selectedIds),callback:function ($$v) {_vm.selectedIds=$$v},expression:"selectedIds"}},[_c('RecycleScroller',{staticClass:"scroller",attrs:{"items":_vm.currentList,"item-size":32,"key-field":"id"},scopedSlots:_vm._u([{key:"default",fn:function(ref){
|
|
6017
6017
|
var item = ref.item;
|
|
6018
6018
|
return [(item.title)?_c('p',{staticClass:"poper-select-title"},[_vm._v(_vm._s(item.text))]):_vm._e(),(!item.title)?_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")]):_vm._e()]}}],null,false,4143456003)})],1):_vm._e(),(_vm.isAllowMultiSelect && _vm.mutexSelect && _vm.currentList.length > 0)?[_c('el-checkbox-group',{on:{"change":_vm.mutexSelectItemsChange},model:{value:(_vm.mutexSelectedIds),callback:function ($$v) {_vm.mutexSelectedIds=$$v},expression:"mutexSelectedIds"}},[_vm._l((_vm.currentList),function(item,index){return [(index >= 1 && item.type != _vm.currentList[index - 1].type)?_c('p',{key:index + Math.random(),staticClass:"el-checkbox-mutex-line"}):_vm._e(),_c('el-checkbox',{key:item.id + Math.random(),attrs:{"label":item.id,"disabled":_vm.mutexType !== '' && _vm.mutexType != item.type}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])]})],2)]:_vm._e(),(!_vm.isAllowMultiSelect && _vm.currentList.length > 0)?_c('el-radio-group',{model:{value:(_vm.selectedId),callback:function ($$v) {_vm.selectedId=$$v},expression:"selectedId"}},_vm._l((_vm.currentList),function(item){return _c('el-radio',{key:item.id + Math.random(),attrs:{"label":item.id},nativeOn:{"~click":function($event){return _vm.selectItemsChange(item)}}},[_vm._v(" "+_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0])+" ")])}),1):_vm._e(),(_vm.selectedList.length > 0 && _vm.isAllowMultiSelect && !_vm.mutexSelect && _vm.isCanSearch)?_c('transition-group',{staticClass:"list",attrs:{"name":"drag","tag":"ul"}},[_c('li',{key:"已选择",staticStyle:{"position":"absolute","top":"0px","z-index":"111","background":"#fff"}},[_vm._v("已选择"+_vm._s(_vm.currentListNameText))]),_vm._l((_vm.selectedList),function(item,index){return [_c('li',{key:item.id + Math.random(),staticClass:"drag-item selected",attrs:{"draggable":""},on:{"dragenter":function($event){return _vm.dragenter($event, index)},"dragover":function($event){return _vm.dragover($event, index)},"dragstart":function($event){return _vm.dragstart(index)}}},[_c('span',[_vm._v(_vm._s(item.text && item.text.indexOf("<元素>") !== -1 ? item.text.split("<元素>")[0] : item.text.split("<搜索>")[0]))]),_c('i',{staticClass:"el-icon-delete",on:{"click":function($event){return _vm.deleteItems(item, index)}}})])]})],2):_vm._e()],2)]):_vm._e(),(_vm.poperType === 'selectPoper' && !_vm.isAllowMultiSelect)?_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("关闭")])],1):_vm._e(),(_vm.poperType === 'selectPoper' && _vm.isAllowMultiSelect)?_c('footer',[(!_vm.mutexSelect)?_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.allSelect}},[_vm._v("全选")]):_vm._e(),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureSelect}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.cancelSelect}},[_vm._v("清空")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1):_vm._e(),(_vm.poperType === 'datePoper')?_c('div',{staticClass:"date-poper"},[(_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('MM') && !_vm.dateTimeStyle.includes('dd'))?_c('DatePanel',{attrs:{"dateType":"month","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('yyyy') && !_vm.dateTimeStyle.includes('MM'))?_c('DatePanel',{attrs:{"dateType":"year","value":_vm.date},on:{"getValue":_vm.getTime}}):_vm._e(),(_vm.dateTimeStyle.includes('HH'))?_c('div',{staticClass:"timepicker",staticStyle:{"padding":"8px 0"}},[_c('el-time-picker',{staticStyle:{"width":"200px"},attrs:{"type":"time","format":_vm.timeStyle,"value-format":_vm.timeStyle,"size":"mini"},model:{value:(_vm.time),callback:function ($$v) {_vm.time=$$v},expression:"time"}})],1):_vm._e(),_c('footer',[_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.sureDate}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.currentDateTime}},[_vm._v("此刻")]),_c('el-button',{staticStyle:{"padding":"5px 13px"},attrs:{"size":"mini"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)],1):_vm._e()])}
|
|
@@ -8408,7 +8408,7 @@ var popper = __webpack_require__(14519);
|
|
|
8408
8408
|
if (_this2.poppernIstance) {
|
|
8409
8409
|
_this2.poppernIstance.update();
|
|
8410
8410
|
}
|
|
8411
|
-
},
|
|
8411
|
+
}, 100);
|
|
8412
8412
|
}
|
|
8413
8413
|
},
|
|
8414
8414
|
methods: {
|
|
@@ -8829,10 +8829,10 @@ var popper = __webpack_require__(14519);
|
|
|
8829
8829
|
});
|
|
8830
8830
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=js&
|
|
8831
8831
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_js_ = (PoperSelectvue_type_script_lang_js_);
|
|
8832
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].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=
|
|
8832
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-22[0].rules[0].use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].use[2]!./node_modules/sass-loader/dist/cjs.js??clonedRuleSet-22[0].rules[0].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=39dd7333&lang=scss&scoped=true&
|
|
8833
8833
|
// extracted by mini-css-extract-plugin
|
|
8834
8834
|
|
|
8835
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
8835
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=39dd7333&lang=scss&scoped=true&
|
|
8836
8836
|
|
|
8837
8837
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
8838
8838
|
var componentNormalizer = __webpack_require__(1001);
|
|
@@ -8851,7 +8851,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
8851
8851
|
staticRenderFns,
|
|
8852
8852
|
false,
|
|
8853
8853
|
null,
|
|
8854
|
-
"
|
|
8854
|
+
"39dd7333",
|
|
8855
8855
|
null
|
|
8856
8856
|
|
|
8857
8857
|
)
|
|
@@ -26872,10 +26872,18 @@ var DocController = /*#__PURE__*/function () {
|
|
|
26872
26872
|
|
|
26873
26873
|
if (node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_46__/* .TextInputFieldNode */ .re && parentNode.inputFieldType == 1 && isResetFieldText) {
|
|
26874
26874
|
var firstPath = parentNode.StartMarkNode.getNodePath();
|
|
26875
|
+
var lastPath = parentNode.EndMarkNode.getNodePath();
|
|
26875
26876
|
|
|
26876
26877
|
if (curRange.isEmpty && curRange.endPath == firstPath) {
|
|
26877
|
-
var
|
|
26878
|
-
curRange.endPath =
|
|
26878
|
+
var ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26879
|
+
curRange.endPath = ePath;
|
|
26880
|
+
}
|
|
26881
|
+
|
|
26882
|
+
if (!curRange.isEmpty && curRange.endPath == lastPath) {
|
|
26883
|
+
var _ePath = hoEditorFactory.docTree.getNodeLastPath(parentNode.EndMarkNode.previousLeaf());
|
|
26884
|
+
|
|
26885
|
+
curRange.startPath = firstPath;
|
|
26886
|
+
curRange.endPath = _ePath;
|
|
26879
26887
|
}
|
|
26880
26888
|
}
|
|
26881
26889
|
|
|
@@ -27094,13 +27102,16 @@ var DocController = /*#__PURE__*/function () {
|
|
|
27094
27102
|
});
|
|
27095
27103
|
}
|
|
27096
27104
|
} else {
|
|
27105
|
+
node = hoEditorFactory.docTree.findNodePositionByPath(strPath).node;
|
|
27106
|
+
|
|
27097
27107
|
if (aTextArray[0] == 0 && node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R && childIndex >= 0 && node.styleIndex == hoEditorFactory.docTree.curStyleIndex) {
|
|
27098
27108
|
if (hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && !curTextStyle.combineStyle.strikeout) {
|
|
27099
27109
|
var textNode = node;
|
|
27100
27110
|
|
|
27101
|
-
_this.insertNodeText(textNode, strPath, aText);
|
|
27111
|
+
_this.insertNodeText(textNode, strPath, aText); //strPath = hoEditorFactory.docTree.curDomRange.startPath;
|
|
27112
|
+
|
|
27102
27113
|
|
|
27103
|
-
strPath = hoEditorFactory.docTree.
|
|
27114
|
+
strPath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
27104
27115
|
} else {
|
|
27105
27116
|
var _textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_27__/* .TextNode */ .R(_this._hoEditorFactoryID, roots, pNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_24__/* .NodeType.ntText */ .Jq.ntText, aText, hoEditorFactory.docTree.curStyleIndex);
|
|
27106
27117
|
|
|
@@ -58157,6 +58168,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58157
58168
|
|
|
58158
58169
|
if (!canfit && this._allowAcrossPage) {
|
|
58159
58170
|
this._endDline = nextDline - 1;
|
|
58171
|
+
|
|
58172
|
+
if (this._endDline == -1) {
|
|
58173
|
+
this._endDline = -2;
|
|
58174
|
+
}
|
|
58175
|
+
|
|
58160
58176
|
this.clearOverDitem(dlines, nextDline);
|
|
58161
58177
|
isFull = true;
|
|
58162
58178
|
bFinishedPaint = false;
|
|
@@ -58322,6 +58338,11 @@ var DrawArea = /*#__PURE__*/function (_DrawRect) {
|
|
|
58322
58338
|
if (!canfit && dTop > 0 && this._allowAcrossPage) {
|
|
58323
58339
|
var nextArea = this.getNextDrawArea();
|
|
58324
58340
|
this._endDline = nextDline - 1;
|
|
58341
|
+
|
|
58342
|
+
if (this._endDline == -1) {
|
|
58343
|
+
this._endDline = -2;
|
|
58344
|
+
}
|
|
58345
|
+
|
|
58325
58346
|
isFull = true; // this.clearOverDitem(dlines, nextDline);
|
|
58326
58347
|
|
|
58327
58348
|
return [isFull, dTop, restHeight];
|
|
@@ -63019,6 +63040,8 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63019
63040
|
}, {
|
|
63020
63041
|
key: "paintArea",
|
|
63021
63042
|
value: function paintArea(dlines, startIndex, dTop) {
|
|
63043
|
+
startIndex = startIndex < -1 ? 0 : startIndex;
|
|
63044
|
+
|
|
63022
63045
|
var _get$call = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "paintArea", this).call(this, dlines, startIndex, dTop),
|
|
63023
63046
|
_get$call2 = (0,slicedToArray/* default */.Z)(_get$call, 3),
|
|
63024
63047
|
bret = _get$call2[0],
|
|
@@ -63424,9 +63447,9 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
63424
63447
|
// }
|
|
63425
63448
|
|
|
63426
63449
|
|
|
63427
|
-
this._startDline = startIndex;
|
|
63450
|
+
this._startDline = startIndex < -1 ? 0 : startIndex;
|
|
63428
63451
|
|
|
63429
|
-
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines,
|
|
63452
|
+
var ret = (0,get/* default */.Z)((0,getPrototypeOf/* default */.Z)(DrawPageCell.prototype), "update", this).call(this, prevDrawArea, dlines, this._startDline, valignTop, restHeight);
|
|
63430
63453
|
|
|
63431
63454
|
this._docHeight = Math.max(0, this._docHeight - valignTop);
|
|
63432
63455
|
this.updateDHeight();
|
|
@@ -64441,7 +64464,11 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
64441
64464
|
dHeight = _cell.drawCell.getCellRestHeight(_cell.drawCell.drawPageCells.indexOf(dPartCell) - 1);
|
|
64442
64465
|
|
|
64443
64466
|
if (dPartCell.isEndLineFinished()) {
|
|
64444
|
-
|
|
64467
|
+
if (dPartCell.endDline == -2) {
|
|
64468
|
+
startDline = 0;
|
|
64469
|
+
} else {
|
|
64470
|
+
startDline = dPartCell.endDline + 1;
|
|
64471
|
+
}
|
|
64445
64472
|
} else startDline = dPartCell.endDline;
|
|
64446
64473
|
}
|
|
64447
64474
|
} else if (_cell.drawCell.drawPageCells.length > 0) {
|
|
@@ -65178,7 +65205,13 @@ var DrawPageTable = /*#__PURE__*/function (_DrawRect) {
|
|
|
65178
65205
|
|
|
65179
65206
|
if (dPrevPartCell) {
|
|
65180
65207
|
partCellindex = _cell2.drawCell.drawPageCells.indexOf(dPrevPartCell);
|
|
65181
|
-
if (dPrevPartCell.isEndLineFinished())
|
|
65208
|
+
if (dPrevPartCell.isEndLineFinished()) {
|
|
65209
|
+
if (dPrevPartCell.endDline == -2) {
|
|
65210
|
+
startChildIndex = 0;
|
|
65211
|
+
} else {
|
|
65212
|
+
startChildIndex = dPrevPartCell.endDline + 1;
|
|
65213
|
+
}
|
|
65214
|
+
} else startChildIndex = dPrevPartCell.endDline;
|
|
65182
65215
|
}
|
|
65183
65216
|
}
|
|
65184
65217
|
|
|
@@ -213171,7 +213204,7 @@ var map = {
|
|
|
213171
213204
|
"./pageInfoes/PageInfoes.vue": 67977,
|
|
213172
213205
|
"./paragraph/ParagraphDialog.vue": 32679,
|
|
213173
213206
|
"./poperSelect/PoperMark.vue": 93069,
|
|
213174
|
-
"./poperSelect/PoperSelect.vue":
|
|
213207
|
+
"./poperSelect/PoperSelect.vue": 2706,
|
|
213175
213208
|
"./poperTipText/PoperTipText.vue": 91831,
|
|
213176
213209
|
"./popers/Poper.vue": 25425,
|
|
213177
213210
|
"./popers/Title.vue": 40168,
|
|
@@ -214727,9 +214760,9 @@ var es_string_match = __webpack_require__(4723);
|
|
|
214727
214760
|
var es_number_constructor = __webpack_require__(9653);
|
|
214728
214761
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
214729
214762
|
var es_json_stringify = __webpack_require__(38862);
|
|
214730
|
-
;// 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=
|
|
214731
|
-
var
|
|
214732
|
-
var
|
|
214763
|
+
;// 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=088d007e&
|
|
214764
|
+
var HoDocvue_type_template_id_088d007e_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)}
|
|
214765
|
+
var HoDocvue_type_template_id_088d007e_staticRenderFns = []
|
|
214733
214766
|
|
|
214734
214767
|
|
|
214735
214768
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
@@ -215386,7 +215419,7 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
215386
215419
|
var hoeditorfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215387
215420
|
var dPage = hoeditorfactory.drawTree.drawPages[this._pageIndex];
|
|
215388
215421
|
|
|
215389
|
-
if (!dPage.drawDomLevel) {
|
|
215422
|
+
if (!dPage || !dPage.drawDomLevel) {
|
|
215390
215423
|
return false;
|
|
215391
215424
|
}
|
|
215392
215425
|
|
|
@@ -216658,7 +216691,7 @@ var DrawPage = __webpack_require__(65870);
|
|
|
216658
216691
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
216659
216692
|
var util = __webpack_require__(33913);
|
|
216660
216693
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperSelect.vue + 8 modules
|
|
216661
|
-
var PoperSelect = __webpack_require__(
|
|
216694
|
+
var PoperSelect = __webpack_require__(2706);
|
|
216662
216695
|
// EXTERNAL MODULE: ./src/components/controls/poperSelect/PoperMark.vue + 5 modules
|
|
216663
216696
|
var PoperMark = __webpack_require__(93069);
|
|
216664
216697
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/index.ts
|
|
@@ -218370,7 +218403,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
218370
218403
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
218371
218404
|
var ParagraphNode = __webpack_require__(14208);
|
|
218372
218405
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
218373
|
-
/* harmony default export */ var version = ('2.0.
|
|
218406
|
+
/* harmony default export */ var version = ('2.0.100');
|
|
218374
218407
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
218375
218408
|
var PoperTipText = __webpack_require__(91831);
|
|
218376
218409
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -219153,8 +219186,8 @@ var ImageNode = __webpack_require__(88389);
|
|
|
219153
219186
|
|
|
219154
219187
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
219155
219188
|
components_HoDocvue_type_script_lang_js_,
|
|
219156
|
-
|
|
219157
|
-
|
|
219189
|
+
HoDocvue_type_template_id_088d007e_render,
|
|
219190
|
+
HoDocvue_type_template_id_088d007e_staticRenderFns,
|
|
219158
219191
|
false,
|
|
219159
219192
|
null,
|
|
219160
219193
|
null,
|
|
@@ -219421,6 +219454,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219421
219454
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219422
219455
|
|
|
219423
219456
|
if (aDrawArea instanceof DrawPageCell/* DrawPageCell */.k) {
|
|
219457
|
+
//单元格内的绘制单独调用paintDrawPageCell
|
|
219424
219458
|
this.paintDrawPageCell(aDrawArea, dRoots, startLine, endLine);
|
|
219425
219459
|
return;
|
|
219426
219460
|
}
|
|
@@ -219428,16 +219462,19 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219428
219462
|
var startUpdateLine = endLine;
|
|
219429
219463
|
var drawArea = aDrawArea;
|
|
219430
219464
|
this._oldPageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
219431
|
-
var restHeight = Infinity;
|
|
219465
|
+
var restHeight = Infinity; //-----------开始定位绘制起始行,绘制起始位置--------------------------
|
|
219466
|
+
|
|
219432
219467
|
var aline = dRoots[startLine];
|
|
219433
219468
|
var dLine;
|
|
219434
219469
|
var dTop = 0;
|
|
219435
219470
|
var mainDTop = 0;
|
|
219436
219471
|
|
|
219437
219472
|
if (aline instanceof DrawTable/* DrawTable */.t) {
|
|
219473
|
+
//表格在绘制时,只取最后一个分页表格,
|
|
219438
219474
|
if (aline.drawPageTables.length > 0) {
|
|
219439
219475
|
dLine = aline.drawPageTables[aline.drawPageTables.length - 1];
|
|
219440
219476
|
} else {
|
|
219477
|
+
//表格还未开始绘制,无起始行
|
|
219441
219478
|
dLine = null;
|
|
219442
219479
|
|
|
219443
219480
|
if (startLine > 0) {
|
|
@@ -219469,7 +219506,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219469
219506
|
} else {
|
|
219470
219507
|
dLine = aline;
|
|
219471
219508
|
dTop = aline.y;
|
|
219472
|
-
}
|
|
219509
|
+
} //----------------结束定位绘制起始行,绘制起始位置--------------------------
|
|
219510
|
+
|
|
219473
219511
|
|
|
219474
219512
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop; // let drawArea = this.getMainRootArea(dLine);
|
|
219475
219513
|
|
|
@@ -219487,12 +219525,13 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219487
219525
|
this.clearAreas([mainArea]);
|
|
219488
219526
|
}
|
|
219489
219527
|
|
|
219490
|
-
var nextLine = startLine;
|
|
219528
|
+
var nextLine = startLine; //用于判断是否页已经満页的map
|
|
219529
|
+
|
|
219491
219530
|
var pageIsFull = new Map();
|
|
219492
219531
|
|
|
219493
219532
|
try {
|
|
219494
219533
|
this._startNeedUpdatePage = -1;
|
|
219495
|
-
this._endNeedUpdatePage = -1;
|
|
219534
|
+
this._endNeedUpdatePage = -1; //------------开始将不分页绘制树中的绘制行,按页进行摆放--------------------------
|
|
219496
219535
|
|
|
219497
219536
|
while (nextLine <= endLine) {
|
|
219498
219537
|
var dline = dRoots[nextLine]; //如果需要新起一页,则新起一页
|
|
@@ -219505,7 +219544,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219505
219544
|
drawArea = this.getNextDrawArea(drawArea, true)[0];
|
|
219506
219545
|
dTop = 0;
|
|
219507
219546
|
if (drawArea.allowAcrossPage) restHeight = drawArea.maxHeight - dTop;
|
|
219508
|
-
}
|
|
219547
|
+
} // 判断是否已经满页
|
|
219548
|
+
|
|
219509
219549
|
|
|
219510
219550
|
if (dline instanceof DrawTable/* DrawTable */.t && restHeight < hoEditorFactory.defaultLineHeight || dline instanceof DrawLine/* DrawLine */.a && restHeight < dline.dHeight) {
|
|
219511
219551
|
if (dline instanceof DrawLine/* DrawLine */.a && restHeight >= hoEditorFactory.defaultLineHeight) {
|
|
@@ -219524,11 +219564,13 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219524
219564
|
|
|
219525
219565
|
|
|
219526
219566
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219527
|
-
|
|
219567
|
+
//当前已经満页,绘制批注页码等信息
|
|
219568
|
+
this.afterAreaFinishPaint(drawArea); // 计算重绘页范围 ,已废弃
|
|
219569
|
+
|
|
219528
219570
|
this._startNeedUpdatePage = Math.min(drawArea.pageIndex, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
219529
219571
|
this._endNeedUpdatePage = Math.max(drawArea.pageIndex, this._endNeedUpdatePage);
|
|
219530
219572
|
pageIsFull.set(drawArea.index, true);
|
|
219531
|
-
var isNew = false;
|
|
219573
|
+
var isNew = false; //获取下一个绘制页,并初始化绘制位置
|
|
219532
219574
|
|
|
219533
219575
|
var _this$getNextDrawArea = this.getNextDrawArea(drawArea);
|
|
219534
219576
|
|
|
@@ -219546,7 +219588,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219546
219588
|
break;
|
|
219547
219589
|
}
|
|
219548
219590
|
}
|
|
219549
|
-
}
|
|
219591
|
+
} //当前行不会触发满页,正常绘制
|
|
219592
|
+
|
|
219550
219593
|
|
|
219551
219594
|
var _dobj = dRoots[nextLine];
|
|
219552
219595
|
var cbParagraph = _dobj.paragraphNode.combineParagraph;
|
|
@@ -219555,10 +219598,12 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219555
219598
|
var bFinishedPaint = _dobj.drawPageTables.length > 0 && _dobj.isFinishedPaint();
|
|
219556
219599
|
|
|
219557
219600
|
if (bFinishedPaint) {
|
|
219601
|
+
//修改起始绘制点,已废弃
|
|
219558
219602
|
if (nextLine < startUpdateLine) {
|
|
219559
219603
|
startUpdateLine = nextLine > 0 ? nextLine - 1 : 0;
|
|
219560
219604
|
}
|
|
219561
219605
|
} else {
|
|
219606
|
+
//表格分页绘制,当表格分页绘制完成,但未达到最后一行绘制完时,需要新起一页,接着绘制,直到表格绘制完成
|
|
219562
219607
|
while (!bFinishedPaint) {
|
|
219563
219608
|
var startRow = 0;
|
|
219564
219609
|
|
|
@@ -219621,6 +219666,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219621
219666
|
dTop += cbParagraph.lineSpace;
|
|
219622
219667
|
}
|
|
219623
219668
|
} else {
|
|
219669
|
+
//普通行绘制,检查是否满页,満页后需要新起一页绘制
|
|
219624
219670
|
if (_dobj.dHeight > restHeight && dTop > 0) {
|
|
219625
219671
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
219626
219672
|
drawArea.endDline = nextLine - 1; // drawArea.stage.update();
|
|
@@ -219636,12 +219682,14 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219636
219682
|
restHeight = drawArea.maxHeight - dTop;
|
|
219637
219683
|
}
|
|
219638
219684
|
}
|
|
219639
|
-
}
|
|
219685
|
+
} //普通行正常绘制
|
|
219686
|
+
|
|
219640
219687
|
|
|
219641
219688
|
if (nextLine > startLine || nextLine === startLine && !drawArea.contains(_dobj)) {
|
|
219642
219689
|
drawArea.addChild(_dobj);
|
|
219643
219690
|
_dobj.y = dTop; // dobj.x = cbParagraph.leftMarginPixes;
|
|
219644
|
-
}
|
|
219691
|
+
} //修改下一行的绘制起始位置
|
|
219692
|
+
|
|
219645
219693
|
|
|
219646
219694
|
dTop = _dobj.y + _dobj.dHeight + _dobj.paragraphNode.combineParagraph.lineSpace;
|
|
219647
219695
|
mainArea.docHeight = dTop;
|
|
@@ -219654,7 +219702,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219654
219702
|
// }
|
|
219655
219703
|
|
|
219656
219704
|
|
|
219657
|
-
var mainIndex = Math.min(nextLine, endLine, startUpdateLine);
|
|
219705
|
+
var mainIndex = Math.min(nextLine, endLine, startUpdateLine); //绘制完成,清理多出来的绘制页
|
|
219658
219706
|
|
|
219659
219707
|
if (drawArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$ && mainIndex === dRoots.length - 1) {
|
|
219660
219708
|
drawArea.endDline = mainIndex;
|
|
@@ -219731,7 +219779,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219731
219779
|
|
|
219732
219780
|
if (startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && !mainArea.contains(startDrawLine) && startDrawLine instanceof DrawPageTable/* DrawPageTable */.ox && startDrawLine.table.drawTable.drawPageTables.indexOf(startDrawLine) > 0) {
|
|
219733
219781
|
drawTop = 0;
|
|
219734
|
-
}
|
|
219782
|
+
} //对于新插入的内容绘制完成后(一直到最后一个插入的段落结束),后续的段落需要进行移动位置,则调用update
|
|
219783
|
+
|
|
219735
219784
|
|
|
219736
219785
|
this.update(mainArea, dMainRoots, drawTop, mainIndex, mainIndex, true);
|
|
219737
219786
|
} finally {
|
|
@@ -219999,7 +220048,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
219999
220048
|
}
|
|
220000
220049
|
|
|
220001
220050
|
var startIndex = startLine;
|
|
220002
|
-
var bChangedInTable = false;
|
|
220051
|
+
var bChangedInTable = false; //计算绘制起始坐标
|
|
220052
|
+
|
|
220003
220053
|
var nextDlineTop = 0;
|
|
220004
220054
|
|
|
220005
220055
|
if (startIndex === endLine && dRoots[startIndex] instanceof DrawTable/* DrawTable */.t) {
|
|
@@ -220017,7 +220067,8 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220017
220067
|
|
|
220018
220068
|
nextDlineTop = dobj.y;
|
|
220019
220069
|
}
|
|
220020
|
-
}
|
|
220070
|
+
} //----------
|
|
220071
|
+
|
|
220021
220072
|
|
|
220022
220073
|
var aEndLine = dRoots.length - 1;
|
|
220023
220074
|
var restHeight = Infinity;
|
|
@@ -220050,6 +220101,7 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220050
220101
|
// dLine.paragraphNode.combineParagraph.lineSpace;
|
|
220051
220102
|
// startDline.dHeight +
|
|
220052
220103
|
// startDline.paragraphNode.combineParagraph.lineSpace;
|
|
220104
|
+
//启用绘制优化,如果当前页不可见,则缓存绘制调用,当页可见时再调用
|
|
220053
220105
|
|
|
220054
220106
|
|
|
220055
220107
|
if (hoEditorFactory.isUseDrawingOptimization) {
|
|
@@ -220060,13 +220112,14 @@ var DrawPageTree = /*#__PURE__*/function () {
|
|
|
220060
220112
|
return;
|
|
220061
220113
|
}
|
|
220062
220114
|
}
|
|
220063
|
-
}
|
|
220115
|
+
} //按区域调整区域内的所有坐标
|
|
220116
|
+
|
|
220064
220117
|
|
|
220065
220118
|
drawArea.update(prevArea, dRoots, startIndex, dTop, restHeight);
|
|
220066
220119
|
this.afterAreaFinishPaint(drawArea);
|
|
220067
220120
|
this._startNeedUpdatePage = Math.min(drawArea.index, this._startNeedUpdatePage === -1 ? 99999 : this._startNeedUpdatePage);
|
|
220068
220121
|
this._endNeedUpdatePage = Math.max(drawArea.index, this._endNeedUpdatePage);
|
|
220069
|
-
startIndex = drawArea.endDline;
|
|
220122
|
+
startIndex = drawArea.endDline; //如果绘制是在表格内,将下一个绘制对象切换到表格外(只遍历最外层绘制对象)
|
|
220070
220123
|
|
|
220071
220124
|
if (bChangedInTable && startIndex > endLine + 1) {
|
|
220072
220125
|
var _dItem = dRoots[endLine + 1];
|
|
@@ -224988,6 +225041,11 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
224988
225041
|
this._text = this._Convertor.toText();
|
|
224989
225042
|
|
|
224990
225043
|
if (clipboard) {
|
|
225044
|
+
if (this._json != "") {
|
|
225045
|
+
var patientID = hoEditorFactory.docTree.docProperty.patientID;
|
|
225046
|
+
this._json = patientID + ":" + this._json;
|
|
225047
|
+
}
|
|
225048
|
+
|
|
224991
225049
|
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
224992
225050
|
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
224993
225051
|
clipboard.setData(ClipboardType.ctText, this._text);
|
|
@@ -232724,6 +232782,10 @@ var message_default = /*#__PURE__*/__webpack_require__.n(message);
|
|
|
232724
232782
|
|
|
232725
232783
|
|
|
232726
232784
|
|
|
232785
|
+
|
|
232786
|
+
|
|
232787
|
+
|
|
232788
|
+
|
|
232727
232789
|
|
|
232728
232790
|
|
|
232729
232791
|
|
|
@@ -233059,10 +233121,28 @@ var EditController = /*#__PURE__*/function () {
|
|
|
233059
233121
|
|
|
233060
233122
|
var nodes;
|
|
233061
233123
|
|
|
233124
|
+
if (!jsonData) {
|
|
233125
|
+
if (hoeditorfactory.notAllowCrossPatiPaste && hoeditorfactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
233126
|
+
message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
|
|
233127
|
+
|
|
233128
|
+
return;
|
|
233129
|
+
}
|
|
233130
|
+
}
|
|
233131
|
+
|
|
233062
233132
|
if (jsonData) {
|
|
233133
|
+
var patientID = jsonData.split(":")[0];
|
|
233134
|
+
var index = jsonData.indexOf(":");
|
|
233135
|
+
jsonData = jsonData.substring(index + 1, jsonData.length);
|
|
233136
|
+
|
|
233063
233137
|
if (hoeditorfactory.drawTree.paintStatus === DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
233064
233138
|
nodes = hoeditorfactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
233065
233139
|
} else {
|
|
233140
|
+
if (hoeditorfactory.notAllowCrossPatiPaste && patientID !== hoeditorfactory.docTree.docProperty.patientID) {
|
|
233141
|
+
message_box_default().alert("不能粘贴他人病历内容到该患者病历中");
|
|
233142
|
+
|
|
233143
|
+
return;
|
|
233144
|
+
}
|
|
233145
|
+
|
|
233066
233146
|
var jsonObject = JSON.parse(jsonData);
|
|
233067
233147
|
|
|
233068
233148
|
if (jsonObject.length == 1 && jsonObject[0].nodeType === "ntTable" && parentNode instanceof CellNode/* CellNode */.D) {
|
|
@@ -235309,28 +235389,24 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235309
235389
|
// storeName: this._storeName,
|
|
235310
235390
|
// });
|
|
235311
235391
|
|
|
235312
|
-
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener(
|
|
235392
|
+
(_window = window) === null || _window === void 0 ? void 0 : (_window$chrome = _window.chrome) === null || _window$chrome === void 0 ? void 0 : (_window$chrome$webvie = _window$chrome.webview) === null || _window$chrome$webvie === void 0 ? void 0 : _window$chrome$webvie.addEventListener('message', function (e) {
|
|
235313
235393
|
var res = JSON.parse(e.data);
|
|
235314
235394
|
|
|
235315
|
-
if (res.result == true && res.res.cmd ==
|
|
235395
|
+
if (res.result == true && res.res.cmd == 'GetList') {
|
|
235316
235396
|
var _this$callBack;
|
|
235317
235397
|
|
|
235318
235398
|
_this._localXmlList = res.res.EMR;
|
|
235319
235399
|
(_this$callBack = _this.callBack) === null || _this$callBack === void 0 ? void 0 : _this$callBack.call(_this, _this._localXmlList);
|
|
235320
235400
|
}
|
|
235321
235401
|
|
|
235322
|
-
|
|
235323
|
-
|
|
235324
|
-
if (res.result == true && res.res.cmd == "Load") {
|
|
235402
|
+
if (res.result == true && res.res.cmd == 'Load') {
|
|
235325
235403
|
var _this$callBackForLoad;
|
|
235326
235404
|
|
|
235327
235405
|
_this._localXmlContent = res.res.EMR;
|
|
235328
235406
|
(_this$callBackForLoad = _this.callBackForLoad) === null || _this$callBackForLoad === void 0 ? void 0 : _this$callBackForLoad.call(_this, _this._localXmlContent);
|
|
235329
235407
|
}
|
|
235330
235408
|
|
|
235331
|
-
|
|
235332
|
-
|
|
235333
|
-
if (res.res.cmd == "save") {} else {
|
|
235409
|
+
if (res.res.cmd == 'save') {} else {
|
|
235334
235410
|
return false;
|
|
235335
235411
|
}
|
|
235336
235412
|
});
|
|
@@ -235364,9 +235440,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235364
235440
|
this.callBack = callBack;
|
|
235365
235441
|
var hoEitfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
235366
235442
|
var data = {
|
|
235367
|
-
exec:
|
|
235443
|
+
exec: 'emr',
|
|
235368
235444
|
data: {
|
|
235369
|
-
cmd:
|
|
235445
|
+
cmd: 'getlist',
|
|
235370
235446
|
content: {
|
|
235371
235447
|
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
235372
235448
|
EMRName: hoEitfactory.docTree.docProperty.title
|
|
@@ -235391,9 +235467,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235391
235467
|
|
|
235392
235468
|
this.callBackForLoad = callBack;
|
|
235393
235469
|
var data = {
|
|
235394
|
-
exec:
|
|
235470
|
+
exec: 'emr',
|
|
235395
235471
|
data: {
|
|
235396
|
-
cmd:
|
|
235472
|
+
cmd: 'load',
|
|
235397
235473
|
content: {
|
|
235398
235474
|
PatientID: item.PatientID,
|
|
235399
235475
|
FileName: item.FileName
|
|
@@ -235451,9 +235527,9 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235451
235527
|
|
|
235452
235528
|
if (hoEitfactory && hoEitfactory.vueController.isModifyDoc()) {
|
|
235453
235529
|
var data = {
|
|
235454
|
-
exec:
|
|
235530
|
+
exec: 'emr',
|
|
235455
235531
|
data: {
|
|
235456
|
-
cmd:
|
|
235532
|
+
cmd: 'save',
|
|
235457
235533
|
content: {
|
|
235458
235534
|
PatientID: hoEitfactory.docTree.docProperty.patientID,
|
|
235459
235535
|
EMRName: hoEitfactory.docTree.docProperty.title,
|
|
@@ -235540,10 +235616,18 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
235540
235616
|
key: "saveFontString",
|
|
235541
235617
|
value: function saveFontString(font) {
|
|
235542
235618
|
this._print_font.setItem('sunsim_font', font);
|
|
235619
|
+
|
|
235620
|
+
this._print_font.setItem('sunsim_font_cache', '1');
|
|
235543
235621
|
}
|
|
235544
235622
|
}, {
|
|
235545
235623
|
key: "loadFontString",
|
|
235546
|
-
value: function loadFontString() {
|
|
235624
|
+
value: function loadFontString(cache) {
|
|
235625
|
+
if (cache === '1') {
|
|
235626
|
+
return this._print_font.getItem('sunsim_font_cache');
|
|
235627
|
+
}
|
|
235628
|
+
|
|
235629
|
+
this._print_font.setItem('sunsim_font_cache', '1');
|
|
235630
|
+
|
|
235547
235631
|
return this._print_font.getItem('sunsim_font');
|
|
235548
235632
|
}
|
|
235549
235633
|
}]);
|
|
@@ -235625,6 +235709,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235625
235709
|
this._lastSaveTime = new Date(Date.now());
|
|
235626
235710
|
this._superiorSigns = []; //上级医生签名
|
|
235627
235711
|
|
|
235712
|
+
this._notAllowCrossPatiPaste = false; //不允许跨病人复制粘贴
|
|
235713
|
+
|
|
235628
235714
|
this._hoEditorFactoryId = id;
|
|
235629
235715
|
}
|
|
235630
235716
|
/**
|
|
@@ -236181,6 +236267,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
236181
236267
|
this._pasteBase = value;
|
|
236182
236268
|
}
|
|
236183
236269
|
}
|
|
236270
|
+
}, {
|
|
236271
|
+
key: "notAllowCrossPatiPaste",
|
|
236272
|
+
get: function get() {
|
|
236273
|
+
return this._notAllowCrossPatiPaste;
|
|
236274
|
+
},
|
|
236275
|
+
set: function set(value) {
|
|
236276
|
+
if (this._notAllowCrossPatiPaste !== value) {
|
|
236277
|
+
this._notAllowCrossPatiPaste = value;
|
|
236278
|
+
}
|
|
236279
|
+
}
|
|
236184
236280
|
}, {
|
|
236185
236281
|
key: "isHideComments",
|
|
236186
236282
|
get: function get() {
|