hoeditor-web 2.0.72 → 2.0.73
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 +611 -399
- package/lib/hoeditor.css +4 -4
- package/lib/hoeditor.umd.js +611 -399
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -14776,7 +14776,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14776
14776
|
node.childNodes.splice(1, node.childNodes.length - 2);
|
|
14777
14777
|
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);
|
|
14778
14778
|
node.childNodes.splice(1, 0, textNode);
|
|
14779
|
-
changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode);
|
|
14779
|
+
changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(textNode); //changeEvent.afterChangePath = ePath;
|
|
14780
14780
|
}
|
|
14781
14781
|
} else {
|
|
14782
14782
|
//changeEvent.afterChangePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
@@ -14785,12 +14785,25 @@ var DocController = /*#__PURE__*/function () {
|
|
|
14785
14785
|
|
|
14786
14786
|
hoEditorFactory.docTree.change(changeEvent);
|
|
14787
14787
|
node.update();
|
|
14788
|
+
var pnode = node.parentNode;
|
|
14788
14789
|
|
|
14789
|
-
|
|
14790
|
-
|
|
14790
|
+
do {
|
|
14791
|
+
var _pnode;
|
|
14792
|
+
|
|
14793
|
+
if (pnode && pnode.parentNode) {
|
|
14794
|
+
pnode = pnode.parentNode;
|
|
14795
|
+
}
|
|
14796
|
+
|
|
14797
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
14798
|
+
break;
|
|
14799
|
+
}
|
|
14800
|
+
} while ((_pnode = pnode) !== null && _pnode !== void 0 && _pnode.parentNode);
|
|
14801
|
+
|
|
14802
|
+
if (pnode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_57__/* .CellNode */ .D) {
|
|
14803
|
+
pnode.drawCell.needUpdate = true; //增加判断只有多页表格才更新table.update,以处理编辑元素 卡慢问题
|
|
14791
14804
|
|
|
14792
|
-
if (
|
|
14793
|
-
|
|
14805
|
+
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14806
|
+
pnode.table.update();
|
|
14794
14807
|
}
|
|
14795
14808
|
}
|
|
14796
14809
|
|
|
@@ -50846,7 +50859,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
50846
50859
|
|
|
50847
50860
|
var boxwidth = _this._dBox.getMeasuredWidth();
|
|
50848
50861
|
|
|
50849
|
-
_this.dWidth = textWidth + boxwidth;
|
|
50862
|
+
_this.dWidth = textWidth + boxwidth + 6;
|
|
50850
50863
|
|
|
50851
50864
|
if (node.isEditText) {
|
|
50852
50865
|
var underLineLen = 40;
|
|
@@ -50858,9 +50871,9 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
50858
50871
|
|
|
50859
50872
|
_this._dUnderLine = new createjs.Shape();
|
|
50860
50873
|
|
|
50861
|
-
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth, 1).lineTo(_this.dWidth + underLineLen, 1);
|
|
50874
|
+
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth - 6, 1).lineTo(_this.dWidth - 6 + underLineLen, 1);
|
|
50862
50875
|
|
|
50863
|
-
_this.dWidth = _this.dWidth + underLineLen;
|
|
50876
|
+
_this.dWidth = _this.dWidth - 6 + underLineLen;
|
|
50864
50877
|
}
|
|
50865
50878
|
|
|
50866
50879
|
_this.dHeight = height;
|
|
@@ -51110,7 +51123,7 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51110
51123
|
var textWidth = _this._dText.getMeasuredWidth();
|
|
51111
51124
|
|
|
51112
51125
|
var boxwidth = height;
|
|
51113
|
-
_this.dWidth = textWidth + boxwidth;
|
|
51126
|
+
_this.dWidth = textWidth + boxwidth + 6;
|
|
51114
51127
|
|
|
51115
51128
|
if (node.isEditText) {
|
|
51116
51129
|
var underLineLen = 40;
|
|
@@ -51122,9 +51135,9 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51122
51135
|
|
|
51123
51136
|
_this._dUnderLine = new createjs.Shape();
|
|
51124
51137
|
|
|
51125
|
-
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth, 1).lineTo(_this.dWidth + underLineLen, 1);
|
|
51138
|
+
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth - 6, 1).lineTo(_this.dWidth - 6 + underLineLen, 1);
|
|
51126
51139
|
|
|
51127
|
-
_this.dWidth = _this.dWidth + underLineLen;
|
|
51140
|
+
_this.dWidth = _this.dWidth - 6 + underLineLen;
|
|
51128
51141
|
}
|
|
51129
51142
|
|
|
51130
51143
|
_this.dHeight = height;
|
|
@@ -199511,7 +199524,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199511
199524
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199512
199525
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
199513
199526
|
var external_commonjs_vue_commonjs2_vue_root_Vue_default = /*#__PURE__*/__webpack_require__.n(external_commonjs_vue_commonjs2_vue_root_Vue_);
|
|
199514
|
-
;// 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/HoDocs.vue?vue&type=template&id=
|
|
199527
|
+
;// 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/HoDocs.vue?vue&type=template&id=120a3c14&
|
|
199515
199528
|
var render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return (_vm.hoEditorFactoryIdList.length > 0)?_c('div',{staticClass:"ho-docs"},[_c('section',{class:_vm.defaultEditJson.isFooter ? 'ho-editor-list' : 'ho-editor-list editor-no-footer',on:{"contextmenu":function($event){return _vm.blankAreaRightClick.apply(null, arguments)}}},[_vm._l((_vm.hoEditorFactoryIdList),function(hoEditorId,index){return [_c('HoDoc',{key:index,attrs:{"docIndex":index,"hoEditorId":hoEditorId,"hoEditorFactoryIdList":_vm.hoEditorFactoryIdList,"activeDocId":_vm.activeDocId,"editJson":_vm.defaultEditJson,"isUseTipText":_vm.isUseTipText,"textStyle":_vm.textStyle},on:{"dblNodeClick":_vm.dblNodeClick,"setFontStyles":_vm.setFontStyles,"rightClickEvent":_vm.rightClickEvent,"setActiveDocIndex":_vm.setActiveDocIndex,"setActivePageIndex":_vm.setActivePageIndex,"drawPagesLengthChange":_vm.drawPagesLengthChange},scopedSlots:_vm._u([{key:"hoDocHead",fn:function(){return [_vm._t("hoHead")]},proxy:true},{key:"hoDocFoot",fn:function(){return [_vm._t("hoFoot")]},proxy:true}],null,true)})]})],2),(_vm.notUseModal)?_c('ControlModal',{attrs:{"hoEditorFactoryId":_vm.activeDocId,"controlProperty":_vm.controlProperty,"isDataSource":_vm.isDataSource,"isCustoms":_vm.isCustoms,"isTableProperty":_vm.isTableProperty,"isListStyle":_vm.isListStyle,"uploadImageParams":_vm.uploadImageParams},on:{"insertComments":_vm.insertComments,"closeControlmodal":_vm.closeControlModal},scopedSlots:_vm._u([{key:"hoTextModal",fn:function(){return [_vm._t("hoTextField")]},proxy:true},{key:"hoParagraphModal",fn:function(){return [_vm._t("hoParagraphField")]},proxy:true},{key:"hoComment",fn:function(){return [_vm._t("hoTextComment")]},proxy:true}],null,true)}):_vm._e(),(_vm.controlFindType)?_c('FindReplaceDialog',{attrs:{"hoEditorFactoryId":_vm.activeDocId}}):_vm._e(),(_vm.defaultEditJson.isFooter)?_c('HoFooter',{attrs:{"docProperty":_vm.defaultDocProperty,"hoEditorFactoryId":_vm.activeDocId,"drawPages":_vm.drawPageLength,"currentActivePages":_vm.activePageIndex}}):_vm._e()],1):_vm._e()}
|
|
199516
199529
|
var staticRenderFns = []
|
|
199517
199530
|
|
|
@@ -200437,9 +200450,9 @@ function isPromise(obj) {
|
|
|
200437
200450
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200438
200451
|
}
|
|
200439
200452
|
|
|
200440
|
-
;// 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=
|
|
200441
|
-
var
|
|
200442
|
-
var
|
|
200453
|
+
;// 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=0d9b6522&
|
|
200454
|
+
var HoDocvue_type_template_id_0d9b6522_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(),_c('li',{staticClass:"mouse-menu-item"},[_vm._v(" 编辑器内核版本: "),_c('span',{staticStyle:{"font-size":"14px","color":"#0a77e3"}},[_vm._v("v "+_vm._s(_vm.version))])])])],1)}
|
|
200455
|
+
var HoDocvue_type_template_id_0d9b6522_staticRenderFns = []
|
|
200443
200456
|
|
|
200444
200457
|
|
|
200445
200458
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -202295,11 +202308,11 @@ var HoToPage_component = normalizeComponent(
|
|
|
202295
202308
|
/* harmony default export */ var backToPage = (HoToPage);
|
|
202296
202309
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
202297
202310
|
var util = __webpack_require__(33913);
|
|
202298
|
-
;// 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=
|
|
202299
|
-
var
|
|
202311
|
+
;// 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=5dfdd78c&scoped=true&
|
|
202312
|
+
var PoperSelectvue_type_template_id_5dfdd78c_scoped_true_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){
|
|
202300
202313
|
var item = ref.item;
|
|
202301
|
-
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',{
|
|
202302
|
-
var
|
|
202314
|
+
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()])}
|
|
202315
|
+
var PoperSelectvue_type_template_id_5dfdd78c_scoped_true_staticRenderFns = []
|
|
202303
202316
|
|
|
202304
202317
|
|
|
202305
202318
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -205269,7 +205282,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205269
205282
|
this.poperSelectList.forEach(function (v, index) {
|
|
205270
205283
|
v.selected = false;
|
|
205271
205284
|
|
|
205272
|
-
if (v.id == value) {
|
|
205285
|
+
if (v.id == value.id) {
|
|
205273
205286
|
item = v;
|
|
205274
205287
|
selectItemIndex = index;
|
|
205275
205288
|
}
|
|
@@ -205333,6 +205346,22 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205333
205346
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
205334
205347
|
if (this.isCanSearch) this.searchList(this.input);
|
|
205335
205348
|
}
|
|
205349
|
+
} // 全选
|
|
205350
|
+
|
|
205351
|
+
}, {
|
|
205352
|
+
key: "allSelect",
|
|
205353
|
+
value: function allSelect() {
|
|
205354
|
+
var _this8 = this;
|
|
205355
|
+
|
|
205356
|
+
this.selectedList = [];
|
|
205357
|
+
this.poperSelectList.forEach(function (v) {
|
|
205358
|
+
v.selected = true;
|
|
205359
|
+
|
|
205360
|
+
_this8.selectedList.push(v);
|
|
205361
|
+
|
|
205362
|
+
_this8.selectedIds.push(v.id);
|
|
205363
|
+
});
|
|
205364
|
+
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
205336
205365
|
} // 取消选中
|
|
205337
205366
|
|
|
205338
205367
|
}, {
|
|
@@ -205357,7 +205386,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205357
205386
|
}, {
|
|
205358
205387
|
key: "sureSelect",
|
|
205359
205388
|
value: function sureSelect() {
|
|
205360
|
-
var
|
|
205389
|
+
var _this9 = this;
|
|
205361
205390
|
|
|
205362
205391
|
var text = "";
|
|
205363
205392
|
var keyValue = "";
|
|
@@ -205421,7 +205450,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205421
205450
|
currentPoperNode.text = text;
|
|
205422
205451
|
currentPoperNode.keyValue = keyValue;
|
|
205423
205452
|
Object.keys(this.textParam).map(function (v) {
|
|
205424
|
-
|
|
205453
|
+
_this9.textParam[v] = currentPoperNode[v];
|
|
205425
205454
|
});
|
|
205426
205455
|
|
|
205427
205456
|
if (this.textParam.downListProperty.allowMultiSelected) {
|
|
@@ -205434,7 +205463,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205434
205463
|
|
|
205435
205464
|
if (selected.length === 1 && selected[0].text.indexOf("<元素>") !== -1) {
|
|
205436
205465
|
setTimeout(function () {
|
|
205437
|
-
|
|
205466
|
+
_this9.handleClose();
|
|
205438
205467
|
}, 200);
|
|
205439
205468
|
} else {
|
|
205440
205469
|
this.handleClose();
|
|
@@ -205476,10 +205505,10 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205476
205505
|
}, {
|
|
205477
205506
|
key: "handleClose",
|
|
205478
205507
|
value: function handleClose() {
|
|
205479
|
-
var
|
|
205508
|
+
var _this10 = this;
|
|
205480
205509
|
|
|
205481
205510
|
this.$nextTick(function () {
|
|
205482
|
-
return
|
|
205511
|
+
return _this10.$emit("poperClose");
|
|
205483
205512
|
});
|
|
205484
205513
|
}
|
|
205485
205514
|
}, {
|
|
@@ -205521,10 +205550,10 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205521
205550
|
/* harmony default export */ var PoperSelectvue_type_script_lang_ts_ = (PoperSelectModal);
|
|
205522
205551
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=ts&
|
|
205523
205552
|
/* harmony default export */ var poperSelect_PoperSelectvue_type_script_lang_ts_ = (PoperSelectvue_type_script_lang_ts_);
|
|
205524
|
-
;// 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=
|
|
205553
|
+
;// 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=5dfdd78c&lang=scss&scoped=true&
|
|
205525
205554
|
// extracted by mini-css-extract-plugin
|
|
205526
205555
|
|
|
205527
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
205556
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5dfdd78c&lang=scss&scoped=true&
|
|
205528
205557
|
|
|
205529
205558
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue
|
|
205530
205559
|
|
|
@@ -205537,11 +205566,11 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205537
205566
|
|
|
205538
205567
|
var PoperSelect_component = normalizeComponent(
|
|
205539
205568
|
poperSelect_PoperSelectvue_type_script_lang_ts_,
|
|
205540
|
-
|
|
205541
|
-
|
|
205569
|
+
PoperSelectvue_type_template_id_5dfdd78c_scoped_true_render,
|
|
205570
|
+
PoperSelectvue_type_template_id_5dfdd78c_scoped_true_staticRenderFns,
|
|
205542
205571
|
false,
|
|
205543
205572
|
null,
|
|
205544
|
-
"
|
|
205573
|
+
"5dfdd78c",
|
|
205545
205574
|
null
|
|
205546
205575
|
|
|
205547
205576
|
)
|
|
@@ -207494,7 +207523,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207494
207523
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207495
207524
|
var ParagraphNode = __webpack_require__(14208);
|
|
207496
207525
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207497
|
-
/* harmony default export */ var version = ('2.0.
|
|
207526
|
+
/* harmony default export */ var version = ('2.0.73');
|
|
207498
207527
|
;// 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/poperTipText/PoperTipText.vue?vue&type=template&id=3fa4e4d3&scoped=true&
|
|
207499
207528
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{directives:[{name:"show",rawName:"v-show",value:(_vm.isShow),expression:"isShow"},{name:"click-outside",rawName:"v-click-outside",value:(_vm.handleClose),expression:"handleClose"}],ref:"poperTextNode",staticClass:"poper-text-modal animation-in",style:(_vm.posStyle),on:{"mouseenter":_vm.mouseEnter,"mouseleave":_vm.mouseLeave}},_vm._l((_vm.poperText),function(text){return _c('div',{key:text + Math.random(0, 1),staticClass:"poper-text"},[_vm._v(" "+_vm._s(text)+" ")])}),0)}
|
|
207500
207529
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -208210,10 +208239,11 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
208210
208239
|
_callback(undefined);
|
|
208211
208240
|
}
|
|
208212
208241
|
}
|
|
208213
|
-
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression) {
|
|
208242
|
+
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType.ntImage */.Jq.ntImage) {
|
|
208214
208243
|
this.handleCellNode(node, node.parentNode, pageIndex); // } else if (node instanceof GestationNode) {
|
|
208215
208244
|
// this.setDblclickNodeValue(node, 'dblclick');
|
|
208216
208245
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
208246
|
+
this.poperType = '';
|
|
208217
208247
|
this.$emit('dblNodeClick', {
|
|
208218
208248
|
node: this.getCurrentSelectNode,
|
|
208219
208249
|
type: 'edit-image'
|
|
@@ -208443,8 +208473,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208443
208473
|
|
|
208444
208474
|
var HoDoc_component = normalizeComponent(
|
|
208445
208475
|
components_HoDocvue_type_script_lang_ts_,
|
|
208446
|
-
|
|
208447
|
-
|
|
208476
|
+
HoDocvue_type_template_id_0d9b6522_render,
|
|
208477
|
+
HoDocvue_type_template_id_0d9b6522_staticRenderFns,
|
|
208448
208478
|
false,
|
|
208449
208479
|
null,
|
|
208450
208480
|
null,
|
|
@@ -210842,6 +210872,20 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210842
210872
|
}, {
|
|
210843
210873
|
key: "TransHTMLTABLE",
|
|
210844
210874
|
value: function TransHTMLTABLE(jnode, style) {
|
|
210875
|
+
var pnode = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath);
|
|
210876
|
+
|
|
210877
|
+
if (pnode instanceof TableNode/* TableNode */.Fh || pnode instanceof CellNode/* CellNode */.D) {
|
|
210878
|
+
message_box_default().alert("不能在表格中插入表格");
|
|
210879
|
+
|
|
210880
|
+
return [];
|
|
210881
|
+
}
|
|
210882
|
+
|
|
210883
|
+
if (pnode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
210884
|
+
message_box_default().alert("不能在文本域中插入表格");
|
|
210885
|
+
|
|
210886
|
+
return [];
|
|
210887
|
+
}
|
|
210888
|
+
|
|
210845
210889
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style); //1.取出表格信息
|
|
210846
210890
|
|
|
210847
210891
|
var tconstents = jquery_default()(jnode).children();
|
|
@@ -210863,7 +210907,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210863
210907
|
} //2.创建表格节点
|
|
210864
210908
|
|
|
210865
210909
|
|
|
210866
|
-
var pnode = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath);
|
|
210867
210910
|
var lntable = new TableNode/* TableNode */.Fh(this._hoEditorFactoryID, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.activeNodes, pnode, irow, icol, this.generateTableProperty(jnode)); //3.设置表格属性
|
|
210868
210911
|
|
|
210869
210912
|
this.SetTableProperty(jnode, lntable); //4:生成表格内容
|
|
@@ -215241,6 +215284,7 @@ var StagePosition = __webpack_require__(57674);
|
|
|
215241
215284
|
|
|
215242
215285
|
|
|
215243
215286
|
|
|
215287
|
+
|
|
215244
215288
|
|
|
215245
215289
|
|
|
215246
215290
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -215345,8 +215389,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215345
215389
|
aCombineStyle = arrStyles[0].combineStyle;
|
|
215346
215390
|
}
|
|
215347
215391
|
|
|
215348
|
-
if (aCombineStyle.font !== firstCombineStyle.font && curTextStyle.font !==
|
|
215349
|
-
curTextStyle.font =
|
|
215392
|
+
if (aCombineStyle.font !== firstCombineStyle.font && curTextStyle.font !== '') {
|
|
215393
|
+
curTextStyle.font = '';
|
|
215350
215394
|
}
|
|
215351
215395
|
|
|
215352
215396
|
if (aCombineStyle.size !== firstCombineStyle.size && curTextStyle.size !== 0) {
|
|
@@ -215373,12 +215417,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215373
215417
|
curTextStyle.strikeout = false;
|
|
215374
215418
|
}
|
|
215375
215419
|
|
|
215376
|
-
if (aCombineStyle.color !== firstCombineStyle.color && curTextStyle.color !==
|
|
215377
|
-
curTextStyle.color =
|
|
215420
|
+
if (aCombineStyle.color !== firstCombineStyle.color && curTextStyle.color !== '') {
|
|
215421
|
+
curTextStyle.color = '';
|
|
215378
215422
|
}
|
|
215379
215423
|
|
|
215380
|
-
if (aCombineStyle.backColor !== firstCombineStyle.backColor && curTextStyle.backColor !==
|
|
215381
|
-
curTextStyle.backColor =
|
|
215424
|
+
if (aCombineStyle.backColor !== firstCombineStyle.backColor && curTextStyle.backColor !== '') {
|
|
215425
|
+
curTextStyle.backColor = '';
|
|
215382
215426
|
}
|
|
215383
215427
|
|
|
215384
215428
|
if (aCombineStyle.creatorIndex !== firstCombineStyle.creatorIndex && curTextStyle.creatorIndex !== -1) {
|
|
@@ -215389,8 +215433,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215389
215433
|
curTextStyle.deleterIndex = -1;
|
|
215390
215434
|
}
|
|
215391
215435
|
|
|
215392
|
-
if (aCombineStyle.commentID !== firstCombineStyle.commentID && curTextStyle.commentID !==
|
|
215393
|
-
curTextStyle.commentID =
|
|
215436
|
+
if (aCombineStyle.commentID !== firstCombineStyle.commentID && curTextStyle.commentID !== '0') {
|
|
215437
|
+
curTextStyle.commentID = '0';
|
|
215394
215438
|
}
|
|
215395
215439
|
}
|
|
215396
215440
|
}
|
|
@@ -215480,7 +215524,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215480
215524
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontFormat */.y.fontFormat);
|
|
215481
215525
|
|
|
215482
215526
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215483
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215527
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontFormat', _curDomRange, fontName);
|
|
215484
215528
|
}
|
|
215485
215529
|
}
|
|
215486
215530
|
/**
|
|
@@ -215522,7 +215566,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215522
215566
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSize */.y.fontSize);
|
|
215523
215567
|
|
|
215524
215568
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215525
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215569
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontSize', _curDomRange, size.toString());
|
|
215526
215570
|
}
|
|
215527
215571
|
}
|
|
215528
215572
|
/**
|
|
@@ -215541,7 +215585,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215541
215585
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSizeEnlarge */.y.fontSizeEnlarge);
|
|
215542
215586
|
|
|
215543
215587
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215544
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange(
|
|
215588
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange('fontSizeEnlarge', _curDomRange);
|
|
215545
215589
|
}
|
|
215546
215590
|
}
|
|
215547
215591
|
/**
|
|
@@ -215560,7 +215604,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215560
215604
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSizeDecrease */.y.fontSizeDecrease);
|
|
215561
215605
|
|
|
215562
215606
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215563
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange(
|
|
215607
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange('fontSizeDecrease', _curDomRange);
|
|
215564
215608
|
}
|
|
215565
215609
|
}
|
|
215566
215610
|
/**
|
|
@@ -215580,7 +215624,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215580
215624
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSuperScript */.y.fontSuperScript);
|
|
215581
215625
|
|
|
215582
215626
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215583
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215627
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontSuperScript', _curDomRange, isHaveScript);
|
|
215584
215628
|
}
|
|
215585
215629
|
}
|
|
215586
215630
|
/**
|
|
@@ -215600,7 +215644,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215600
215644
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSubScript */.y.fontSubScript);
|
|
215601
215645
|
|
|
215602
215646
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215603
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215647
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontSubScript', _curDomRange, isHaveScript);
|
|
215604
215648
|
}
|
|
215605
215649
|
}
|
|
215606
215650
|
/**
|
|
@@ -215620,7 +215664,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215620
215664
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontBold */.y.fontBold);
|
|
215621
215665
|
|
|
215622
215666
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215623
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215667
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontBold', _curDomRange, isHaveBold);
|
|
215624
215668
|
}
|
|
215625
215669
|
}
|
|
215626
215670
|
/**
|
|
@@ -215640,7 +215684,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215640
215684
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontItalic */.y.fontItalic);
|
|
215641
215685
|
|
|
215642
215686
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215643
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215687
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontItalic', _curDomRange, isHaveItalic);
|
|
215644
215688
|
}
|
|
215645
215689
|
}
|
|
215646
215690
|
/**
|
|
@@ -215660,7 +215704,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215660
215704
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontUnderline */.y.fontUnderline);
|
|
215661
215705
|
|
|
215662
215706
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215663
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215707
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontUnderline', _curDomRange, isHaveUnderline);
|
|
215664
215708
|
}
|
|
215665
215709
|
}
|
|
215666
215710
|
/**
|
|
@@ -215680,7 +215724,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215680
215724
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontStrikeout */.y.fontStrikeout);
|
|
215681
215725
|
|
|
215682
215726
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215683
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215727
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontStrikeout', _curDomRange, isHaveStrikeout);
|
|
215684
215728
|
}
|
|
215685
215729
|
}
|
|
215686
215730
|
/**
|
|
@@ -215700,7 +215744,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215700
215744
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontColor */.y.fontColor);
|
|
215701
215745
|
|
|
215702
215746
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215703
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215747
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontColor', _curDomRange, fontcolor);
|
|
215704
215748
|
}
|
|
215705
215749
|
}
|
|
215706
215750
|
/**
|
|
@@ -215720,7 +215764,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215720
215764
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontBackColor */.y.fontBackColor);
|
|
215721
215765
|
|
|
215722
215766
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215723
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215767
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontBackColor', _curDomRange, backColor);
|
|
215724
215768
|
}
|
|
215725
215769
|
} //----------------------------段落---------------------------------
|
|
215726
215770
|
|
|
@@ -215740,7 +215784,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215740
215784
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedLeft */.y.alignedLeft);
|
|
215741
215785
|
|
|
215742
215786
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215743
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215787
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedLeft', _curDomRange);
|
|
215744
215788
|
}
|
|
215745
215789
|
}
|
|
215746
215790
|
/**
|
|
@@ -215759,7 +215803,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215759
215803
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedCenter */.y.alignedCenter);
|
|
215760
215804
|
|
|
215761
215805
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215762
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215806
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedCenter', _curDomRange);
|
|
215763
215807
|
}
|
|
215764
215808
|
}
|
|
215765
215809
|
/**
|
|
@@ -215778,7 +215822,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215778
215822
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedRight */.y.alignedRight);
|
|
215779
215823
|
|
|
215780
215824
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215781
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215825
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedRight', _curDomRange);
|
|
215782
215826
|
}
|
|
215783
215827
|
}
|
|
215784
215828
|
/**
|
|
@@ -215797,7 +215841,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215797
215841
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedBothEnds */.y.alignedBothEnds);
|
|
215798
215842
|
|
|
215799
215843
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215800
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215844
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedBothEnds', _curDomRange);
|
|
215801
215845
|
}
|
|
215802
215846
|
}
|
|
215803
215847
|
/**
|
|
@@ -215816,7 +215860,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215816
215860
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.addIndent */.y.addIndent);
|
|
215817
215861
|
|
|
215818
215862
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215819
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215863
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('addIndent', _curDomRange);
|
|
215820
215864
|
}
|
|
215821
215865
|
}
|
|
215822
215866
|
/**
|
|
@@ -215835,7 +215879,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215835
215879
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.decreaseIndent */.y.decreaseIndent);
|
|
215836
215880
|
|
|
215837
215881
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215838
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215882
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('decreaseIndent', _curDomRange);
|
|
215839
215883
|
}
|
|
215840
215884
|
}
|
|
215841
215885
|
/**
|
|
@@ -215855,7 +215899,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215855
215899
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.setLineHeight */.y.setLineHeight);
|
|
215856
215900
|
|
|
215857
215901
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215858
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215902
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('lineHeight', _curDomRange, lineHeight);
|
|
215859
215903
|
}
|
|
215860
215904
|
} //----------------------------表格---------------------------------
|
|
215861
215905
|
|
|
@@ -216154,7 +216198,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216154
216198
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216155
216199
|
|
|
216156
216200
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216157
|
-
hoEditorFactory.docController.insertMenstrualHistory(
|
|
216201
|
+
hoEditorFactory.docController.insertMenstrualHistory('add', _curDomRange, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
216158
216202
|
}
|
|
216159
216203
|
}
|
|
216160
216204
|
}
|
|
@@ -216179,7 +216223,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216179
216223
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216180
216224
|
|
|
216181
216225
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216182
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory(
|
|
216226
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory('update', _curDomRange, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
216183
216227
|
}
|
|
216184
216228
|
}
|
|
216185
216229
|
/**
|
|
@@ -216209,7 +216253,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216209
216253
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216210
216254
|
|
|
216211
216255
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216212
|
-
hoEditorFactory.docController.insertPupilMap(
|
|
216256
|
+
hoEditorFactory.docController.insertPupilMap('add', _curDomRange, value1, value2, value3, value4, value5, value6, value7);
|
|
216213
216257
|
}
|
|
216214
216258
|
}
|
|
216215
216259
|
}
|
|
@@ -216236,7 +216280,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216236
216280
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216237
216281
|
|
|
216238
216282
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216239
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap(
|
|
216283
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap('update', _curDomRange, value1, value2, value3, value4, value5, value6, value7);
|
|
216240
216284
|
}
|
|
216241
216285
|
}
|
|
216242
216286
|
/**
|
|
@@ -216268,7 +216312,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216268
216312
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216269
216313
|
|
|
216270
216314
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216271
|
-
hoEditorFactory.docController.insertLightLocation(
|
|
216315
|
+
hoEditorFactory.docController.insertLightLocation('add', _curDomRange, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
216272
216316
|
}
|
|
216273
216317
|
}
|
|
216274
216318
|
}
|
|
@@ -216297,7 +216341,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216297
216341
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216298
216342
|
|
|
216299
216343
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216300
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation(
|
|
216344
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation('update', _curDomRange, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
216301
216345
|
}
|
|
216302
216346
|
}
|
|
216303
216347
|
/**
|
|
@@ -216326,7 +216370,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216326
216370
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216327
216371
|
|
|
216328
216372
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216329
|
-
hoEditorFactory.docController.insertFetalHeartMap(
|
|
216373
|
+
hoEditorFactory.docController.insertFetalHeartMap('add', _curDomRange, value1, value2, value3, value4, value5, value6);
|
|
216330
216374
|
}
|
|
216331
216375
|
}
|
|
216332
216376
|
}
|
|
@@ -216352,7 +216396,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216352
216396
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216353
216397
|
|
|
216354
216398
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216355
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap(
|
|
216399
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap('update', _curDomRange, value1, value2, value3, value4, value5, value6);
|
|
216356
216400
|
}
|
|
216357
216401
|
}
|
|
216358
216402
|
/**
|
|
@@ -216379,7 +216423,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216379
216423
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216380
216424
|
|
|
216381
216425
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216382
|
-
hoEditorFactory.docController.insertPermanentTeethMap(
|
|
216426
|
+
hoEditorFactory.docController.insertPermanentTeethMap('add', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216383
216427
|
}
|
|
216384
216428
|
}
|
|
216385
216429
|
}
|
|
@@ -216404,7 +216448,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216404
216448
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216405
216449
|
|
|
216406
216450
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216407
|
-
hoEditorFactory.docController.insertPermanentTeethMap(
|
|
216451
|
+
hoEditorFactory.docController.insertPermanentTeethMap('update', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216408
216452
|
}
|
|
216409
216453
|
}
|
|
216410
216454
|
/**
|
|
@@ -216431,7 +216475,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216431
216475
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216432
216476
|
|
|
216433
216477
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216434
|
-
hoEditorFactory.docController.insertPrimaryTeethMap(
|
|
216478
|
+
hoEditorFactory.docController.insertPrimaryTeethMap('add', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216435
216479
|
}
|
|
216436
216480
|
}
|
|
216437
216481
|
}
|
|
@@ -216456,7 +216500,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216456
216500
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216457
216501
|
|
|
216458
216502
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216459
|
-
hoEditorFactory.docController.insertPrimaryTeethMap(
|
|
216503
|
+
hoEditorFactory.docController.insertPrimaryTeethMap('update', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216460
216504
|
}
|
|
216461
216505
|
}
|
|
216462
216506
|
/**
|
|
@@ -216515,7 +216559,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216515
216559
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertTextInputField */.y.insertTextInputField);
|
|
216516
216560
|
|
|
216517
216561
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216518
|
-
var path = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField(
|
|
216562
|
+
var path = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField('add', _curDomRange, valuesObject);
|
|
216519
216563
|
return path;
|
|
216520
216564
|
}
|
|
216521
216565
|
|
|
@@ -216575,7 +216619,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216575
216619
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateTextInputField */.y.updateTextInputField);
|
|
216576
216620
|
|
|
216577
216621
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216578
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField(
|
|
216622
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField('update', _curDomRange, valuesObject);
|
|
216579
216623
|
}
|
|
216580
216624
|
}
|
|
216581
216625
|
/**
|
|
@@ -216627,7 +216671,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216627
216671
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertBarcode */.y.insertBarcode);
|
|
216628
216672
|
|
|
216629
216673
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216630
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode(
|
|
216674
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
216631
216675
|
}
|
|
216632
216676
|
}
|
|
216633
216677
|
/**
|
|
@@ -216652,7 +216696,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216652
216696
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateBarcode */.y.updateBarcode);
|
|
216653
216697
|
|
|
216654
216698
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216655
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode(
|
|
216699
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
216656
216700
|
}
|
|
216657
216701
|
}
|
|
216658
216702
|
/**
|
|
@@ -216685,7 +216729,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216685
216729
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertQrcode */.y.insertQrcode);
|
|
216686
216730
|
|
|
216687
216731
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216688
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode(
|
|
216732
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('add', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
216689
216733
|
}
|
|
216690
216734
|
}
|
|
216691
216735
|
/**
|
|
@@ -216717,7 +216761,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216717
216761
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateQrcode */.y.updateQrcode);
|
|
216718
216762
|
|
|
216719
216763
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216720
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode(
|
|
216764
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode('update', _curDomRange, id, textContent, type, correctLevel, dataSourceEnabled, dataSource, format, visitPath, isReadOnly, autoUpdate, execState, width, height);
|
|
216721
216765
|
}
|
|
216722
216766
|
}
|
|
216723
216767
|
/**
|
|
@@ -216752,7 +216796,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216752
216796
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertRadioAndCheckBox */.y.insertRadioAndCheckBox);
|
|
216753
216797
|
|
|
216754
216798
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216755
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox(
|
|
216799
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('add', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216756
216800
|
}
|
|
216757
216801
|
}
|
|
216758
216802
|
/**
|
|
@@ -216786,7 +216830,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216786
216830
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateRadioAndCheckBox */.y.updateRadioAndCheckBox);
|
|
216787
216831
|
|
|
216788
216832
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216789
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox(
|
|
216833
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('update', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216790
216834
|
}
|
|
216791
216835
|
}
|
|
216792
216836
|
/**
|
|
@@ -216850,7 +216894,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216850
216894
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertDateTime */.y.insertDateTime);
|
|
216851
216895
|
|
|
216852
216896
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216853
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime(
|
|
216897
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('add', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216854
216898
|
}
|
|
216855
216899
|
}
|
|
216856
216900
|
/**
|
|
@@ -216881,7 +216925,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216881
216925
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateDateTime */.y.updateDateTime);
|
|
216882
216926
|
|
|
216883
216927
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216884
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime(
|
|
216928
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('update', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216885
216929
|
}
|
|
216886
216930
|
}
|
|
216887
216931
|
/**
|
|
@@ -216915,7 +216959,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216915
216959
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertDownList */.y.insertDownList);
|
|
216916
216960
|
|
|
216917
216961
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216918
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList(
|
|
216962
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('add', _curDomRange, valuesObject, downListContent, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216919
216963
|
}
|
|
216920
216964
|
}
|
|
216921
216965
|
/**
|
|
@@ -216948,7 +216992,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216948
216992
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateDownList */.y.updateDownList);
|
|
216949
216993
|
|
|
216950
216994
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216951
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList(
|
|
216995
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList('update', _curDomRange, valuesObject, downListContent, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216952
216996
|
}
|
|
216953
216997
|
}
|
|
216954
216998
|
/**
|
|
@@ -217010,7 +217054,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217010
217054
|
value: function openLocalFilesTest(file, callback) {
|
|
217011
217055
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217012
217056
|
hoEditorFactory.docController.initBlankDoc();
|
|
217013
|
-
hoEditorFactory.structureConvert.openFile(file, callback,
|
|
217057
|
+
hoEditorFactory.structureConvert.openFile(file, callback, 'test');
|
|
217014
217058
|
}
|
|
217015
217059
|
}, {
|
|
217016
217060
|
key: "uploadDataSet",
|
|
@@ -217055,29 +217099,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217055
217099
|
this.setDocCommentIsHandle();
|
|
217056
217100
|
|
|
217057
217101
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
217058
|
-
var ret =
|
|
217102
|
+
var ret = '';
|
|
217059
217103
|
|
|
217060
|
-
if (type ===
|
|
217061
|
-
ret = hoEditorFactory.structureConvert.doc2Xml(
|
|
217104
|
+
if (type === 'xml') {
|
|
217105
|
+
ret = hoEditorFactory.structureConvert.doc2Xml('xml', undefined, true);
|
|
217062
217106
|
}
|
|
217063
217107
|
|
|
217064
|
-
if (type ===
|
|
217108
|
+
if (type === 'plain') {
|
|
217065
217109
|
ret = hoEditorFactory.structureConvert.doc2Text();
|
|
217066
217110
|
}
|
|
217067
217111
|
|
|
217068
|
-
if (type ===
|
|
217069
|
-
this.saveAsPDF(
|
|
217112
|
+
if (type === 'html') {
|
|
217113
|
+
this.saveAsPDF('', 'html'); // ret = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Html();
|
|
217070
217114
|
}
|
|
217071
217115
|
|
|
217072
|
-
if (type ===
|
|
217073
|
-
ret = hoEditorFactory.structureConvert.doc2Xml(
|
|
217116
|
+
if (type === 'json') {
|
|
217117
|
+
ret = hoEditorFactory.structureConvert.doc2Xml('json', undefined, true);
|
|
217074
217118
|
ret = pretty_data.pd.json(ret);
|
|
217075
217119
|
}
|
|
217076
217120
|
|
|
217077
217121
|
return ret;
|
|
217078
217122
|
}
|
|
217079
217123
|
|
|
217080
|
-
return
|
|
217124
|
+
return '';
|
|
217081
217125
|
}
|
|
217082
217126
|
/**
|
|
217083
217127
|
* 文档标题
|
|
@@ -217123,7 +217167,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217123
217167
|
}, {
|
|
217124
217168
|
key: "getDocXml",
|
|
217125
217169
|
value: function getDocXml(beauty, isValidStyle, clearSign) {
|
|
217126
|
-
var ret = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml(
|
|
217170
|
+
var ret = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml('xml', beauty, isValidStyle, clearSign);
|
|
217127
217171
|
return ret;
|
|
217128
217172
|
}
|
|
217129
217173
|
/**
|
|
@@ -217282,11 +217326,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217282
217326
|
value: function newFile(type) {
|
|
217283
217327
|
var hoeditfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217284
217328
|
|
|
217285
|
-
if (type ===
|
|
217329
|
+
if (type === 'caseHistory') {
|
|
217286
217330
|
hoeditfactory.docTree.docProperty.type = DocTree/* EmrType.etCaseHistory */.Fr.etCaseHistory;
|
|
217287
217331
|
}
|
|
217288
217332
|
|
|
217289
|
-
if (type ===
|
|
217333
|
+
if (type === 'form') {
|
|
217290
217334
|
hoeditfactory.docTree.docProperty.type = DocTree/* EmrType.etForm */.Fr.etForm;
|
|
217291
217335
|
}
|
|
217292
217336
|
|
|
@@ -217439,7 +217483,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217439
217483
|
var drawPage = hoEditorFactory.drawTree.drawPages[i];
|
|
217440
217484
|
|
|
217441
217485
|
for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
|
|
217442
|
-
if (drawPage.selectContainer.children[j].name && drawPage.selectContainer.children[j].name.indexOf(
|
|
217486
|
+
if (drawPage.selectContainer.children[j].name && drawPage.selectContainer.children[j].name.indexOf('mask') >= 0) {
|
|
217443
217487
|
drawPage.selectContainer.children.splice(j, 1);
|
|
217444
217488
|
}
|
|
217445
217489
|
}
|
|
@@ -217461,22 +217505,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217461
217505
|
var selectContainer = drawPage.selectContainer;
|
|
217462
217506
|
|
|
217463
217507
|
for (var k = 0; k < selectContainer.children.length; k++) {
|
|
217464
|
-
if (selectContainer.children[k].name && selectContainer.children[k].name.indexOf(
|
|
217508
|
+
if (selectContainer.children[k].name && selectContainer.children[k].name.indexOf('mask') >= 0) {
|
|
217465
217509
|
selectContainer.children.splice(k, 1);
|
|
217466
217510
|
}
|
|
217467
217511
|
}
|
|
217468
217512
|
|
|
217469
217513
|
var mask = new createjs.Shape();
|
|
217470
217514
|
mask.graphics.clear();
|
|
217471
|
-
mask.graphics.beginFill(
|
|
217515
|
+
mask.graphics.beginFill('#000000').drawRect(0, 0, pageWidth, height).closePath();
|
|
217472
217516
|
mask.x = 0;
|
|
217473
217517
|
mask.y = 0;
|
|
217474
217518
|
mask.alpha = 0.1;
|
|
217475
217519
|
|
|
217476
217520
|
if (height < pageHeight) {
|
|
217477
|
-
mask.name =
|
|
217521
|
+
mask.name = 'mask0';
|
|
217478
217522
|
} else {
|
|
217479
|
-
mask.name =
|
|
217523
|
+
mask.name = 'mask' + (index + 1).toString();
|
|
217480
217524
|
}
|
|
217481
217525
|
|
|
217482
217526
|
selectContainer.addChild(mask); //selectContainer.stage.update();
|
|
@@ -217596,7 +217640,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217596
217640
|
if (np) {
|
|
217597
217641
|
return np;
|
|
217598
217642
|
} else {
|
|
217599
|
-
message_box_default().alert(
|
|
217643
|
+
message_box_default().alert('根据路径' + path + '未找到文档节点');
|
|
217600
217644
|
}
|
|
217601
217645
|
}
|
|
217602
217646
|
/**
|
|
@@ -217661,7 +217705,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217661
217705
|
key: "deleteText",
|
|
217662
217706
|
value: function deleteText() {
|
|
217663
217707
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217664
|
-
hoEditorFactory.docController.keyBoardDelete(
|
|
217708
|
+
hoEditorFactory.docController.keyBoardDelete('Backspace');
|
|
217665
217709
|
}
|
|
217666
217710
|
/**
|
|
217667
217711
|
* 获取文本样式表
|
|
@@ -217823,7 +217867,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217823
217867
|
}
|
|
217824
217868
|
};
|
|
217825
217869
|
|
|
217826
|
-
if (scope ===
|
|
217870
|
+
if (scope === 'header') {
|
|
217827
217871
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217828
217872
|
|
|
217829
217873
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -217833,12 +217877,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217833
217877
|
}
|
|
217834
217878
|
}
|
|
217835
217879
|
|
|
217836
|
-
if (scope ===
|
|
217880
|
+
if (scope === 'main') {
|
|
217837
217881
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
217838
217882
|
iteratesNodes(mainNodes);
|
|
217839
217883
|
}
|
|
217840
217884
|
|
|
217841
|
-
if (scope ===
|
|
217885
|
+
if (scope === 'footer') {
|
|
217842
217886
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
217843
217887
|
|
|
217844
217888
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -217848,7 +217892,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217848
217892
|
}
|
|
217849
217893
|
}
|
|
217850
217894
|
|
|
217851
|
-
if (scope ===
|
|
217895
|
+
if (scope === 'all') {
|
|
217852
217896
|
var _headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217853
217897
|
|
|
217854
217898
|
for (var _h = 0; _h < _headerDocTree.length; _h++) {
|
|
@@ -217904,7 +217948,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217904
217948
|
}
|
|
217905
217949
|
};
|
|
217906
217950
|
|
|
217907
|
-
if (scope ===
|
|
217951
|
+
if (scope === 'header') {
|
|
217908
217952
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217909
217953
|
|
|
217910
217954
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -217914,12 +217958,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217914
217958
|
}
|
|
217915
217959
|
}
|
|
217916
217960
|
|
|
217917
|
-
if (scope ===
|
|
217961
|
+
if (scope === 'main') {
|
|
217918
217962
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
217919
217963
|
iteratesNodes(mainNodes);
|
|
217920
217964
|
}
|
|
217921
217965
|
|
|
217922
|
-
if (scope ===
|
|
217966
|
+
if (scope === 'footer') {
|
|
217923
217967
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
217924
217968
|
|
|
217925
217969
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -217929,7 +217973,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217929
217973
|
}
|
|
217930
217974
|
}
|
|
217931
217975
|
|
|
217932
|
-
if (scope ===
|
|
217976
|
+
if (scope === 'all') {
|
|
217933
217977
|
var _headerDocTree2 = hoEditorFactory.subDocManger.headerDocTree;
|
|
217934
217978
|
|
|
217935
217979
|
for (var _h2 = 0; _h2 < _headerDocTree2.length; _h2++) {
|
|
@@ -217989,7 +218033,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217989
218033
|
}
|
|
217990
218034
|
};
|
|
217991
218035
|
|
|
217992
|
-
if (scope ===
|
|
218036
|
+
if (scope === 'header') {
|
|
217993
218037
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217994
218038
|
|
|
217995
218039
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -218001,12 +218045,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218001
218045
|
}
|
|
218002
218046
|
}
|
|
218003
218047
|
|
|
218004
|
-
if (scope ===
|
|
218048
|
+
if (scope === 'main') {
|
|
218005
218049
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
218006
218050
|
iteratesNodes(mainNodes);
|
|
218007
218051
|
}
|
|
218008
218052
|
|
|
218009
|
-
if (scope ===
|
|
218053
|
+
if (scope === 'footer') {
|
|
218010
218054
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
218011
218055
|
|
|
218012
218056
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -218018,7 +218062,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218018
218062
|
}
|
|
218019
218063
|
}
|
|
218020
218064
|
|
|
218021
|
-
if (scope ===
|
|
218065
|
+
if (scope === 'all') {
|
|
218022
218066
|
var _headerDocTree3 = hoEditorFactory.subDocManger.headerDocTree;
|
|
218023
218067
|
|
|
218024
218068
|
for (var _h3 = 0; _h3 < _headerDocTree3.length; _h3++) {
|
|
@@ -218082,7 +218126,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218082
218126
|
}
|
|
218083
218127
|
};
|
|
218084
218128
|
|
|
218085
|
-
if (scope ===
|
|
218129
|
+
if (scope === 'header') {
|
|
218086
218130
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
218087
218131
|
|
|
218088
218132
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -218094,12 +218138,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218094
218138
|
}
|
|
218095
218139
|
}
|
|
218096
218140
|
|
|
218097
|
-
if (scope ===
|
|
218141
|
+
if (scope === 'main') {
|
|
218098
218142
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
218099
218143
|
iteratesNodes(mainNodes);
|
|
218100
218144
|
}
|
|
218101
218145
|
|
|
218102
|
-
if (scope ===
|
|
218146
|
+
if (scope === 'footer') {
|
|
218103
218147
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
218104
218148
|
|
|
218105
218149
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -218111,7 +218155,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218111
218155
|
}
|
|
218112
218156
|
}
|
|
218113
218157
|
|
|
218114
|
-
if (scope ===
|
|
218158
|
+
if (scope === 'all') {
|
|
218115
218159
|
var _headerDocTree4 = hoEditorFactory.subDocManger.headerDocTree;
|
|
218116
218160
|
|
|
218117
218161
|
for (var _h4 = 0; _h4 < _headerDocTree4.length; _h4++) {
|
|
@@ -218260,7 +218304,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218260
218304
|
var styles = json.root.styles; //获取xml的所有文本样式
|
|
218261
218305
|
|
|
218262
218306
|
var defaultFontStyles = Array(styles.defaultFont);
|
|
218263
|
-
var textStyles = hoEditorFactory.structureConvert.getDocStyles(
|
|
218307
|
+
var textStyles = hoEditorFactory.structureConvert.getDocStyles('font', defaultFontStyles);
|
|
218264
218308
|
var fontStyles = styles.font ? styles.font : styles.fontStyle;
|
|
218265
218309
|
|
|
218266
218310
|
if (fontStyles) {
|
|
@@ -218276,13 +218320,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218276
218320
|
}
|
|
218277
218321
|
}
|
|
218278
218322
|
|
|
218279
|
-
var fontStylesArr = hoEditorFactory.structureConvert.getDocStyles(
|
|
218323
|
+
var fontStylesArr = hoEditorFactory.structureConvert.getDocStyles('font', fontStyles);
|
|
218280
218324
|
textStyles = textStyles.concat(fontStylesArr);
|
|
218281
218325
|
} //获取xml的所有段落样式
|
|
218282
218326
|
|
|
218283
218327
|
|
|
218284
218328
|
var defaultParaStyles = Array(styles.defaultPara);
|
|
218285
|
-
var parasStyles = hoEditorFactory.structureConvert.getDocStyles(
|
|
218329
|
+
var parasStyles = hoEditorFactory.structureConvert.getDocStyles('para', defaultParaStyles);
|
|
218286
218330
|
var paraStyles = styles.para ? styles.para : styles.paraStyle;
|
|
218287
218331
|
|
|
218288
218332
|
if (paraStyles) {
|
|
@@ -218290,7 +218334,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218290
218334
|
paraStyles = Array(paraStyles);
|
|
218291
218335
|
}
|
|
218292
218336
|
|
|
218293
|
-
var paraStylesArr = hoEditorFactory.structureConvert.getDocStyles(
|
|
218337
|
+
var paraStylesArr = hoEditorFactory.structureConvert.getDocStyles('para', paraStyles);
|
|
218294
218338
|
parasStyles = parasStyles.concat(paraStylesArr);
|
|
218295
218339
|
} //更新xml各节点在当前文档的样式索引
|
|
218296
218340
|
|
|
@@ -218299,13 +218343,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218299
218343
|
for (var _i2 = 0; _i2 < nodes.length; _i2++) {
|
|
218300
218344
|
var node = nodes[_i2];
|
|
218301
218345
|
|
|
218302
|
-
if (node.nodeType ===
|
|
218346
|
+
if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
|
|
218303
218347
|
if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
|
|
218304
218348
|
iteratesNode(node.childNodes.node);
|
|
218305
218349
|
}
|
|
218306
218350
|
}
|
|
218307
218351
|
|
|
218308
|
-
if (node.nodeType ===
|
|
218352
|
+
if (node.nodeType === 'ntTable') {
|
|
218309
218353
|
if (node.childNodes && node.childNodes.item) {
|
|
218310
218354
|
var items = node.childNodes.item;
|
|
218311
218355
|
|
|
@@ -218332,7 +218376,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218332
218376
|
if (node.styleIndex) {
|
|
218333
218377
|
var styleIndex = Number(node.styleIndex);
|
|
218334
218378
|
|
|
218335
|
-
if (node.nodeType ===
|
|
218379
|
+
if (node.nodeType === 'ntParagraph') {
|
|
218336
218380
|
//段落样式
|
|
218337
218381
|
var paragraph = parasStyles[styleIndex];
|
|
218338
218382
|
node.styleIndex = hoEditorFactory.docTree.styleCompare(paragraph);
|
|
@@ -218350,7 +218394,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218350
218394
|
return nodes;
|
|
218351
218395
|
};
|
|
218352
218396
|
|
|
218353
|
-
if (area ===
|
|
218397
|
+
if (area === 'header') {
|
|
218354
218398
|
var headersArray = json.root.headers.header;
|
|
218355
218399
|
|
|
218356
218400
|
if (headersArray.length === undefined) {
|
|
@@ -218366,7 +218410,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218366
218410
|
|
|
218367
218411
|
iteratesNode(headerNodes);
|
|
218368
218412
|
return [headerNodes, docId];
|
|
218369
|
-
} else if (area ===
|
|
218413
|
+
} else if (area === 'footer') {
|
|
218370
218414
|
var footersArray = json.root.footers.footer;
|
|
218371
218415
|
|
|
218372
218416
|
if (footersArray.length === undefined) {
|
|
@@ -218436,29 +218480,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218436
218480
|
var jsonData = JSON.stringify(areaNodes[0]);
|
|
218437
218481
|
var docId = areaNodes[1];
|
|
218438
218482
|
var pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
218439
|
-
var rootPath =
|
|
218483
|
+
var rootPath = 'main';
|
|
218440
218484
|
|
|
218441
|
-
if (area ===
|
|
218442
|
-
rootPath =
|
|
218485
|
+
if (area === 'header') {
|
|
218486
|
+
rootPath = 'header/' + hoEditorFactory.subDocManger.headerDocTree.length.toString();
|
|
218443
218487
|
}
|
|
218444
218488
|
|
|
218445
|
-
if (area ===
|
|
218446
|
-
rootPath =
|
|
218489
|
+
if (area === 'footer') {
|
|
218490
|
+
rootPath = 'footer/' + hoEditorFactory.subDocManger.footerDocTree.length.toString();
|
|
218447
218491
|
}
|
|
218448
218492
|
|
|
218449
218493
|
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData, rootPath, isNewPage);
|
|
218450
218494
|
|
|
218451
|
-
if (isDelBlockLine && area ===
|
|
218495
|
+
if (isDelBlockLine && area === 'main' && nodes.length > 1 && nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C && !(nodes[nodes.length - 2] instanceof TableNode/* TableNode */.Fh)) {
|
|
218452
218496
|
nodes.splice(nodes.length - 1, 1);
|
|
218453
218497
|
} //console.log(nodes);
|
|
218454
218498
|
|
|
218455
218499
|
|
|
218456
|
-
if (area !==
|
|
218500
|
+
if (area !== 'main') {
|
|
218457
218501
|
var arrNodes = new Array();
|
|
218458
218502
|
|
|
218459
|
-
if (area ===
|
|
218503
|
+
if (area === 'header') {
|
|
218460
218504
|
var headerIndex = hoEditorFactory.subDocManger.headerDocTree.length;
|
|
218461
|
-
var arootPath =
|
|
218505
|
+
var arootPath = 'header/' + headerIndex.toString();
|
|
218462
218506
|
var dHeader = new DrawHeader/* DrawHeader */.g(this._hoEditorFactoryID, arootPath, pageCount);
|
|
218463
218507
|
hoEditorFactory.drawPageTree.drawHeaders.push(dHeader);
|
|
218464
218508
|
hoEditorFactory.drawTree.headerDNodes.push(new Array());
|
|
@@ -218466,11 +218510,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218466
218510
|
arrNodes.push(paragraphNode);
|
|
218467
218511
|
paragraphNode.rootPath = arootPath; //paragraphNode.rootNodes = arrNodes;
|
|
218468
218512
|
|
|
218469
|
-
var newHeader = new SubDocManger/* SubDocTree */.UJ(pageCount,
|
|
218513
|
+
var newHeader = new SubDocManger/* SubDocTree */.UJ(pageCount, '');
|
|
218470
218514
|
newHeader.subDocNodes = arrNodes;
|
|
218471
218515
|
hoEditorFactory.subDocManger.headerDocTree.push(newHeader);
|
|
218472
218516
|
hoEditorFactory.drawTree.initAreaFirstNode(arrNodes, hoEditorFactory.drawTree.headerDNodes[headerIndex]);
|
|
218473
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(arootPath +
|
|
218517
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(arootPath + '/0');
|
|
218474
218518
|
|
|
218475
218519
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
218476
218520
|
newHeader.subDocNodes[0].paraNo = nodes[0].paraNo;
|
|
@@ -218479,11 +218523,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218479
218523
|
}
|
|
218480
218524
|
|
|
218481
218525
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
218482
|
-
} else if (area ===
|
|
218526
|
+
} else if (area === 'footer') {
|
|
218483
218527
|
//hoEditorFactory.docTree.footerNodes[pageCount] = nodes;
|
|
218484
218528
|
var footerIndex = hoEditorFactory.subDocManger.footerDocTree.length;
|
|
218485
218529
|
|
|
218486
|
-
var _arootPath =
|
|
218530
|
+
var _arootPath = 'footer/' + footerIndex.toString();
|
|
218487
218531
|
|
|
218488
218532
|
var dFooter = new DrawFooter/* DrawFooter */.d(this._hoEditorFactoryID, _arootPath, pageCount);
|
|
218489
218533
|
hoEditorFactory.drawPageTree.drawFooters.push(dFooter);
|
|
@@ -218494,11 +218538,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218494
218538
|
arrNodes.push(_paragraphNode);
|
|
218495
218539
|
_paragraphNode.rootPath = _arootPath; //paragraphNode.rootNodes = arrNodes;
|
|
218496
218540
|
|
|
218497
|
-
var newFooter = new SubDocManger/* SubDocTree */.UJ(pageCount,
|
|
218541
|
+
var newFooter = new SubDocManger/* SubDocTree */.UJ(pageCount, '');
|
|
218498
218542
|
newFooter.subDocNodes = arrNodes;
|
|
218499
218543
|
hoEditorFactory.subDocManger.footerDocTree.push(newFooter);
|
|
218500
218544
|
hoEditorFactory.drawTree.initAreaFirstNode(arrNodes, hoEditorFactory.drawTree.footerDNodes[footerIndex]);
|
|
218501
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(rootPath +
|
|
218545
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(rootPath + '/0');
|
|
218502
218546
|
|
|
218503
218547
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
218504
218548
|
newFooter.subDocNodes[0].paraNo = nodes[0].paraNo;
|
|
@@ -218531,7 +218575,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218531
218575
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
|
|
218532
218576
|
|
|
218533
218577
|
if (!printAsSinglePage && hoEditorFactory.docTree.mainNodes.length === 1) {
|
|
218534
|
-
hoEditorFactory.docTree.mainNodes[0].docId = docId && docId !==
|
|
218578
|
+
hoEditorFactory.docTree.mainNodes[0].docId = docId && docId !== '' ? docId : hoEditorFactory.gernerateCode.generateID('DocId');
|
|
218535
218579
|
|
|
218536
218580
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
218537
218581
|
hoEditorFactory.docTree.mainNodes[0].paraNo = nodes[0].paraNo;
|
|
@@ -218542,7 +218586,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218542
218586
|
|
|
218543
218587
|
if (printAsSinglePage) {
|
|
218544
218588
|
nodes[0].printAsSinglePage = printAsSinglePage;
|
|
218545
|
-
nodes[0].docId = docId && docId !==
|
|
218589
|
+
nodes[0].docId = docId && docId !== '' ? docId : hoEditorFactory.gernerateCode.generateID('DocId');
|
|
218546
218590
|
}
|
|
218547
218591
|
|
|
218548
218592
|
hoEditorFactory.docTree.curDomRange.setSamePath(nodePath);
|
|
@@ -218564,11 +218608,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218564
218608
|
switch (_context.prev = _context.next) {
|
|
218565
218609
|
case 0:
|
|
218566
218610
|
if (!printAsSinglePage) {
|
|
218567
|
-
this.insertXml(xml,
|
|
218611
|
+
this.insertXml(xml, 'main', undefined, isDelBlockLine);
|
|
218568
218612
|
} else {
|
|
218569
|
-
this.insertXml(xml,
|
|
218570
|
-
this.insertXml(xml,
|
|
218571
|
-
this.insertXml(xml,
|
|
218613
|
+
this.insertXml(xml, 'header');
|
|
218614
|
+
this.insertXml(xml, 'footer');
|
|
218615
|
+
this.insertXml(xml, 'main', printAsSinglePage, isDelBlockLine);
|
|
218572
218616
|
}
|
|
218573
218617
|
|
|
218574
218618
|
resolve && resolve();
|
|
@@ -218633,52 +218677,52 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218633
218677
|
var textStyleStr = JSON.stringify(defaultFontStyle);
|
|
218634
218678
|
var textStyle = JSON.parse(textStyleStr);
|
|
218635
218679
|
|
|
218636
|
-
if (typeof style[
|
|
218637
|
-
textStyle[
|
|
218680
|
+
if (typeof style['size'] !== 'undefined' && style['size'] !== defaultFontStyle.size.toString()) {
|
|
218681
|
+
textStyle['size'] = style['size'];
|
|
218638
218682
|
}
|
|
218639
218683
|
|
|
218640
|
-
if (typeof style[
|
|
218641
|
-
textStyle[
|
|
218684
|
+
if (typeof style['creatorIndex'] !== 'undefined' && style['creatorIndex'] !== defaultFontStyle.creatorIndex.toString()) {
|
|
218685
|
+
textStyle['creatorIndex'] = style['creatorIndex'];
|
|
218642
218686
|
}
|
|
218643
218687
|
|
|
218644
|
-
if (typeof style[
|
|
218645
|
-
textStyle[
|
|
218688
|
+
if (typeof style['deleterIndex'] !== 'undefined' && style['deleterIndex'] !== defaultFontStyle.deleterIndex.toString()) {
|
|
218689
|
+
textStyle['deleterIndex'] = style['deleterIndex'];
|
|
218646
218690
|
}
|
|
218647
218691
|
|
|
218648
|
-
if (typeof style[
|
|
218649
|
-
textStyle[
|
|
218692
|
+
if (typeof style['bold'] !== 'undefined' && style['bold'] !== defaultFontStyle.bold.toString()) {
|
|
218693
|
+
textStyle['bold'] = style['bold'];
|
|
218650
218694
|
}
|
|
218651
218695
|
|
|
218652
|
-
if (typeof style[
|
|
218653
|
-
textStyle[
|
|
218696
|
+
if (typeof style['italic'] !== 'undefined' && style['italic'] !== defaultFontStyle.italic.toString()) {
|
|
218697
|
+
textStyle['italic'] = style['italic'];
|
|
218654
218698
|
}
|
|
218655
218699
|
|
|
218656
|
-
if (typeof style[
|
|
218657
|
-
textStyle[
|
|
218700
|
+
if (typeof style['script'] !== 'undefined' && style['script'] !== defaultFontStyle.script.toString()) {
|
|
218701
|
+
textStyle['script'] = style['script'];
|
|
218658
218702
|
}
|
|
218659
218703
|
|
|
218660
|
-
if (typeof style[
|
|
218661
|
-
textStyle[
|
|
218704
|
+
if (typeof style['strikeout'] !== 'undefined' && style['strikeout'] !== defaultFontStyle.strikeout.toString()) {
|
|
218705
|
+
textStyle['strikeout'] = style['strikeout'];
|
|
218662
218706
|
}
|
|
218663
218707
|
|
|
218664
|
-
if (typeof style[
|
|
218665
|
-
textStyle[
|
|
218708
|
+
if (typeof style['underline'] !== 'undefined' && style['underline'] !== defaultFontStyle.underline.toString()) {
|
|
218709
|
+
textStyle['underline'] = style['underline'];
|
|
218666
218710
|
}
|
|
218667
218711
|
|
|
218668
|
-
if (typeof style[
|
|
218669
|
-
textStyle[
|
|
218712
|
+
if (typeof style['color'] !== 'undefined' && style['color'] !== defaultFontStyle.color) {
|
|
218713
|
+
textStyle['color'] = style['color'];
|
|
218670
218714
|
}
|
|
218671
218715
|
|
|
218672
|
-
if (typeof style[
|
|
218673
|
-
textStyle[
|
|
218716
|
+
if (typeof style['font'] !== 'undefined' && style['font'] !== defaultFontStyle.font) {
|
|
218717
|
+
textStyle['font'] = style['font'];
|
|
218674
218718
|
}
|
|
218675
218719
|
|
|
218676
|
-
if (typeof style[
|
|
218677
|
-
textStyle[
|
|
218720
|
+
if (typeof style['backColor'] !== 'undefined' && style['backColor'] !== defaultFontStyle.backColor) {
|
|
218721
|
+
textStyle['backColor'] = style['backColor'];
|
|
218678
218722
|
}
|
|
218679
218723
|
|
|
218680
|
-
if (typeof style[
|
|
218681
|
-
textStyle[
|
|
218724
|
+
if (typeof style['commentID'] !== 'undefined' && style['commentID'] !== defaultFontStyle.commentID) {
|
|
218725
|
+
textStyle['commentID'] = style['commentID'];
|
|
218682
218726
|
}
|
|
218683
218727
|
|
|
218684
218728
|
return textStyle;
|
|
@@ -218691,32 +218735,32 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218691
218735
|
arrFontString.push(JSON.stringify(mergeObject.styles.defaultFont));
|
|
218692
218736
|
arrParaString.push(JSON.stringify(mergeObject.styles.defaultPara));
|
|
218693
218737
|
tdefault = JSON.parse(arrFontString[0]);
|
|
218694
|
-
tdefault[
|
|
218695
|
-
tdefault[
|
|
218696
|
-
tdefault[
|
|
218697
|
-
tdefault[
|
|
218698
|
-
tdefault[
|
|
218699
|
-
tdefault[
|
|
218700
|
-
tdefault[
|
|
218701
|
-
tdefault[
|
|
218738
|
+
tdefault['size'] = tdefault['size'].toString();
|
|
218739
|
+
tdefault['creatorIndex'] = tdefault['creatorIndex'].toString();
|
|
218740
|
+
tdefault['deleterIndex'] = tdefault['deleterIndex'].toString();
|
|
218741
|
+
tdefault['bold'] = tdefault['bold'].toString();
|
|
218742
|
+
tdefault['italic'] = tdefault['italic'].toString();
|
|
218743
|
+
tdefault['script'] = tdefault['script'].toString();
|
|
218744
|
+
tdefault['strikeout'] = tdefault['strikeout'].toString();
|
|
218745
|
+
tdefault['underline'] = tdefault['underline'].toString();
|
|
218702
218746
|
arrFontString[0] = JSON.stringify(tdefault);
|
|
218703
218747
|
pdefault = JSON.parse(arrParaString[0]);
|
|
218704
|
-
pdefault[
|
|
218705
|
-
pdefault[
|
|
218706
|
-
pdefault[
|
|
218707
|
-
pdefault[
|
|
218708
|
-
pdefault[
|
|
218709
|
-
pdefault[
|
|
218710
|
-
pdefault[
|
|
218748
|
+
pdefault['charSpace'] = pdefault['charSpace'].toString();
|
|
218749
|
+
pdefault['lineSpace'] = pdefault['lineSpace'].toString();
|
|
218750
|
+
pdefault['leftMarginMm'] = pdefault['leftMarginMm'].toString();
|
|
218751
|
+
pdefault['topMarginMm'] = pdefault['topMarginMm'].toString();
|
|
218752
|
+
pdefault['bottomMarginMm'] = pdefault['bottomMarginMm'].toString();
|
|
218753
|
+
pdefault['rightMarginMm'] = pdefault['rightMarginMm'].toString();
|
|
218754
|
+
pdefault['align'] = pdefault['align'].toString();
|
|
218711
218755
|
arrParaString[0] = JSON.stringify(pdefault);
|
|
218712
218756
|
|
|
218713
|
-
if (mergeObject.styles.fontStyle ==
|
|
218757
|
+
if (mergeObject.styles.fontStyle == '') {
|
|
218714
218758
|
mergeObject.styles.fontStyle = [];
|
|
218715
218759
|
} else if (!Array.isArray(mergeObject.styles.fontStyle)) {
|
|
218716
218760
|
mergeObject.styles.fontStyle = [mergeObject.styles.fontStyle];
|
|
218717
218761
|
}
|
|
218718
218762
|
|
|
218719
|
-
if (mergeObject.styles.paraStyle ==
|
|
218763
|
+
if (mergeObject.styles.paraStyle == '') {
|
|
218720
218764
|
mergeObject.styles.paraStyle = [];
|
|
218721
218765
|
} else if (!Array.isArray(mergeObject.styles.paraStyle)) {
|
|
218722
218766
|
mergeObject.styles.paraStyle = [mergeObject.styles.paraStyle];
|
|
@@ -218764,7 +218808,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218764
218808
|
var node = nodes[s];
|
|
218765
218809
|
|
|
218766
218810
|
if (node.styleIndex) {
|
|
218767
|
-
if (node.nodeType ==
|
|
218811
|
+
if (node.nodeType == 'ntParagraph') {
|
|
218768
218812
|
var paraIndex = parseInt(node.styleIndex);
|
|
218769
218813
|
var newpIndex = paraStyleMap.get(paraIndex);
|
|
218770
218814
|
|
|
@@ -218809,13 +218853,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218809
218853
|
}
|
|
218810
218854
|
}
|
|
218811
218855
|
|
|
218812
|
-
if (node.nodeType ===
|
|
218856
|
+
if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
|
|
218813
218857
|
if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
|
|
218814
218858
|
updateNodesStyle(node.childNodes.node, fontStyleMap, paraStyleMap);
|
|
218815
218859
|
}
|
|
218816
218860
|
}
|
|
218817
218861
|
|
|
218818
|
-
if (node.nodeType ===
|
|
218862
|
+
if (node.nodeType === 'ntTable') {
|
|
218819
218863
|
if (node.childNodes && node.childNodes.item) {
|
|
218820
218864
|
var items = node.childNodes.item;
|
|
218821
218865
|
|
|
@@ -218860,7 +218904,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218860
218904
|
|
|
218861
218905
|
var jobjFontStyle = [];
|
|
218862
218906
|
|
|
218863
|
-
if (fontStyle !=
|
|
218907
|
+
if (fontStyle != '') {
|
|
218864
218908
|
if (!Array.isArray(fontStyle)) {
|
|
218865
218909
|
jobjFontStyle = [fontStyle];
|
|
218866
218910
|
} else {
|
|
@@ -218904,16 +218948,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218904
218948
|
var paraStyleStr = JSON.stringify(defaultParaStyle);
|
|
218905
218949
|
var paraStyle = JSON.parse(paraStyleStr);
|
|
218906
218950
|
|
|
218907
|
-
if (typeof style[
|
|
218908
|
-
paraStyle[
|
|
218951
|
+
if (typeof style['charSpace'] !== 'undefined' && style['charSpace'] !== defaultParaStyle.charSpace.toString()) {
|
|
218952
|
+
paraStyle['charSpace'] = style['charSpace'];
|
|
218909
218953
|
}
|
|
218910
218954
|
|
|
218911
|
-
if (typeof style[
|
|
218912
|
-
paraStyle[
|
|
218955
|
+
if (typeof style['lineSpace'] !== 'undefined' && style['lineSpace'] !== defaultParaStyle.lineSpace.toString()) {
|
|
218956
|
+
paraStyle['lineSpace'] = style['lineSpace'];
|
|
218913
218957
|
}
|
|
218914
218958
|
|
|
218915
|
-
if (typeof style[
|
|
218916
|
-
paraStyle[
|
|
218959
|
+
if (typeof style['align'] !== 'undefined' && style['align'] !== defaultParaStyle.align.toString()) {
|
|
218960
|
+
paraStyle['align'] = style['align'];
|
|
218917
218961
|
}
|
|
218918
218962
|
|
|
218919
218963
|
return paraStyle;
|
|
@@ -218921,7 +218965,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218921
218965
|
|
|
218922
218966
|
var jobjParaStyle = [];
|
|
218923
218967
|
|
|
218924
|
-
if (paraStyle !=
|
|
218968
|
+
if (paraStyle != '') {
|
|
218925
218969
|
if (paraStyle && !Array.isArray(paraStyle)) {
|
|
218926
218970
|
jobjParaStyle = [paraStyle];
|
|
218927
218971
|
} else {
|
|
@@ -218955,7 +218999,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218955
218999
|
if (list[i][0]) {
|
|
218956
219000
|
updateNodesStyle(xmlobj.header[0].subDocNodes, fontStyleMap, paraStyleMap); //生成随机数ID用于合并病历新起一页时,找到对应的页眉页脚
|
|
218957
219001
|
|
|
218958
|
-
var strID = hoEditorFactory.gernerateCode.generateID(
|
|
219002
|
+
var strID = hoEditorFactory.gernerateCode.generateID('cb');
|
|
218959
219003
|
xmlobj.header[0].beginPath = strID;
|
|
218960
219004
|
xmlobj.header[0].pageIndex = -1;
|
|
218961
219005
|
mergeObject.header.push(xmlobj.header[0]);
|
|
@@ -218963,7 +219007,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218963
219007
|
xmlobj.footer[0].beginPath = strID;
|
|
218964
219008
|
xmlobj.footer[0].pageIndex = -1;
|
|
218965
219009
|
mergeObject.footer.push(xmlobj.footer[0]);
|
|
218966
|
-
xmlobj.main[0].printAsSinglePage =
|
|
219010
|
+
xmlobj.main[0].printAsSinglePage = 'true';
|
|
218967
219011
|
xmlobj.main[0].docId = strID;
|
|
218968
219012
|
mergeObject.pageSettingsTree.push(xmlobj.pageSettings);
|
|
218969
219013
|
hoEditorFactory.printStatus.pageSettingMap.set(strID, {
|
|
@@ -219026,7 +219070,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219026
219070
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219027
219071
|
var firstHead = hoEditorFactory.subDocManger.getHeaderPageNodes()[0];
|
|
219028
219072
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(firstHead[firstHead.length - 1]);
|
|
219029
|
-
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID,
|
|
219073
|
+
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'header/0/0', endPath);
|
|
219030
219074
|
var json = hoEditorFactory.structureNode.Copy(domRange, null);
|
|
219031
219075
|
var image = this.getSubDocImg(hoEditorFactory.drawTree.activePageIndex.index, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
219032
219076
|
return [json, image];
|
|
@@ -219051,7 +219095,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219051
219095
|
index = 0;
|
|
219052
219096
|
headerNode = hoEditorFactory.subDocManger.headerDocTree[index].subDocNodes;
|
|
219053
219097
|
epath = hoEditorFactory.docTree.getNodeLastPath(headerNode[headerNode.length - 1]);
|
|
219054
|
-
sPath =
|
|
219098
|
+
sPath = 'header/' + index.toString() + '/0';
|
|
219055
219099
|
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, sPath, epath);
|
|
219056
219100
|
_context3.next = 8;
|
|
219057
219101
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
@@ -219113,7 +219157,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219113
219157
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219114
219158
|
var firstFoot = hoEditorFactory.subDocManger.getFooterPageNodes()[0];
|
|
219115
219159
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(firstFoot[firstFoot.length - 1]);
|
|
219116
|
-
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID,
|
|
219160
|
+
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'footer/0/0', endPath);
|
|
219117
219161
|
var json = hoEditorFactory.structureNode.Copy(domRange, null);
|
|
219118
219162
|
var image = this.getSubDocImg(hoEditorFactory.drawTree.activePageIndex.index, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
219119
219163
|
return [json, image];
|
|
@@ -219137,12 +219181,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219137
219181
|
footerNodes = hoEditorFactory.subDocManger.getFooterPageNodes();
|
|
219138
219182
|
footerNode = footerNodes[0];
|
|
219139
219183
|
epath = hoEditorFactory.docTree.getNodeLastPath(footerNode[footerNode.length - 1]);
|
|
219140
|
-
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID,
|
|
219184
|
+
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'footer/0/0', epath);
|
|
219141
219185
|
_context4.next = 7;
|
|
219142
219186
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
219143
219187
|
|
|
219144
219188
|
case 7:
|
|
219145
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(
|
|
219189
|
+
hoEditorFactory.docTree.curDomRange.setSamePath('footer/0/0');
|
|
219146
219190
|
nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
219147
219191
|
|
|
219148
219192
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
@@ -219194,7 +219238,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219194
219238
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219195
219239
|
|
|
219196
219240
|
if (hoEditorFactory.docTree.curDomRange.isEmpty) {
|
|
219197
|
-
return
|
|
219241
|
+
return '';
|
|
219198
219242
|
}
|
|
219199
219243
|
|
|
219200
219244
|
var json = hoEditorFactory.structureNode.Copy(hoEditorFactory.docTree.curDomRange, null, isClearValue);
|
|
@@ -219211,7 +219255,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219211
219255
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
219212
219256
|
|
|
219213
219257
|
if (result) {
|
|
219214
|
-
if ((0,esm_typeof/* default */.Z)(JSON.parse(jsonData)) ===
|
|
219258
|
+
if ((0,esm_typeof/* default */.Z)(JSON.parse(jsonData)) === 'object') {
|
|
219215
219259
|
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
219216
219260
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
219217
219261
|
} else {
|
|
@@ -219270,7 +219314,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219270
219314
|
case 11:
|
|
219271
219315
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
219272
219316
|
|
|
219273
|
-
if (!(xml >
|
|
219317
|
+
if (!(xml > '')) {
|
|
219274
219318
|
_context5.next = 15;
|
|
219275
219319
|
break;
|
|
219276
219320
|
}
|
|
@@ -219304,14 +219348,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219304
219348
|
|
|
219305
219349
|
if (area && area.stage && area.stage.canvas) {
|
|
219306
219350
|
var dHeight = Math.max(Math.min(area.docHeight, area.maxHeight), area.dHeight) * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
219307
|
-
var ctx = area.stage.canvas.getContext(
|
|
219351
|
+
var ctx = area.stage.canvas.getContext('2d');
|
|
219308
219352
|
|
|
219309
219353
|
if (ctx) {
|
|
219310
219354
|
var oImgData = ctx.getImageData(0, area.y * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, hoeditfactory.pageProperty.widthPixes * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY, dHeight);
|
|
219311
|
-
var oCanvas = document.createElement(
|
|
219355
|
+
var oCanvas = document.createElement('canvas');
|
|
219312
219356
|
oCanvas.width = hoeditfactory.pageProperty.widthPixes * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
219313
219357
|
oCanvas.height = dHeight;
|
|
219314
|
-
var oCtx = oCanvas.getContext(
|
|
219358
|
+
var oCtx = oCanvas.getContext('2d');
|
|
219315
219359
|
|
|
219316
219360
|
if (oCtx) {
|
|
219317
219361
|
oCtx.putImageData(oImgData, 0, 0);
|
|
@@ -219320,7 +219364,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219320
219364
|
}
|
|
219321
219365
|
}
|
|
219322
219366
|
|
|
219323
|
-
return
|
|
219367
|
+
return '';
|
|
219324
219368
|
}
|
|
219325
219369
|
/**
|
|
219326
219370
|
* 获取选区内文本
|
|
@@ -219331,13 +219375,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219331
219375
|
key: "getRangeText",
|
|
219332
219376
|
value: function getRangeText(range) {
|
|
219333
219377
|
range = range.normalize();
|
|
219334
|
-
var text =
|
|
219378
|
+
var text = '';
|
|
219335
219379
|
var nodes = [];
|
|
219336
219380
|
var sNodeChildIndex = range.npStart.childIndex;
|
|
219337
219381
|
var eNodeChildIndex = range.npEnd.childIndex;
|
|
219338
219382
|
|
|
219339
219383
|
var getNodeText = function getNodeText(node) {
|
|
219340
|
-
var nodeText =
|
|
219384
|
+
var nodeText = '';
|
|
219341
219385
|
|
|
219342
219386
|
if (node instanceof ControlNode/* ControlNode */.w) {
|
|
219343
219387
|
nodeText = node.text;
|
|
@@ -219348,7 +219392,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219348
219392
|
} else if (node instanceof CellNode/* CellNode */.D) {
|
|
219349
219393
|
nodeText = node.getCellText();
|
|
219350
219394
|
} else if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
219351
|
-
nodeText =
|
|
219395
|
+
nodeText = '\n';
|
|
219352
219396
|
}
|
|
219353
219397
|
|
|
219354
219398
|
return nodeText;
|
|
@@ -219416,14 +219460,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219416
219460
|
var signUserId = node.customProperty.bce01;
|
|
219417
219461
|
|
|
219418
219462
|
if (hoEditorFactory.userInfo.id != signUserId) {
|
|
219419
|
-
message_box_default().alert(
|
|
219463
|
+
message_box_default().alert('不是本人签名,不允许删除!');
|
|
219420
219464
|
|
|
219421
219465
|
return;
|
|
219422
219466
|
}
|
|
219423
219467
|
}
|
|
219424
219468
|
|
|
219425
219469
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && node instanceof SignNode/* SignNode */.N && node.isTemplate && node.number === 0) {
|
|
219426
|
-
message_box_default().alert(
|
|
219470
|
+
message_box_default().alert('该签名元素不允许删除!', '系统提示');
|
|
219427
219471
|
|
|
219428
219472
|
return;
|
|
219429
219473
|
}
|
|
@@ -219431,8 +219475,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219431
219475
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219432
219476
|
var nextNode = node.nextLeaf();
|
|
219433
219477
|
|
|
219434
|
-
if ((node.imgSrc !==
|
|
219435
|
-
var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name ===
|
|
219478
|
+
if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219479
|
+
var signNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 0, 0, node.name === '' ? '签名' : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, '', undefined, node.attribute);
|
|
219436
219480
|
hoEditorFactory.undoService.begin();
|
|
219437
219481
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219438
219482
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219443,13 +219487,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219443
219487
|
if (preNode instanceof SignNode/* SignNode */.N) {
|
|
219444
219488
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
219445
219489
|
if (node.isTemplate && node.number === 0) {
|
|
219446
|
-
message_box_default().alert(
|
|
219490
|
+
message_box_default().alert('该签名元素不允许删除!', '系统提示');
|
|
219447
219491
|
|
|
219448
219492
|
return;
|
|
219449
219493
|
}
|
|
219450
219494
|
}
|
|
219451
219495
|
|
|
219452
|
-
var spath =
|
|
219496
|
+
var spath = '';
|
|
219453
219497
|
|
|
219454
219498
|
if (node.number === 2 || node.number === 1 && node.isTemplate) {
|
|
219455
219499
|
spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
@@ -219459,7 +219503,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219459
219503
|
|
|
219460
219504
|
|
|
219461
219505
|
var epath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
219462
|
-
var newSignNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 1, preNode.type, preNode.name ===
|
|
219506
|
+
var newSignNode = new SignNode/* SignNode */.N(this._hoEditorFactoryID, preNode.rootNodes, preNode.parentNode, BaseNode/* NodeType.ntSign */.Jq.ntSign, 1, preNode.type, preNode.name === '' ? '签名' : preNode.name, preNode.signType, preNode.signFormat, preNode.signor, preNode.signTime, preNode.signTimeFormat, preNode.imgSrc, preNode.imgWidth, preNode.imgHeight, preNode.customProperty, preNode.isTemplate ? preNode.isTemplate : node.isTemplate, //node.isTemplate,
|
|
219463
219507
|
node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime);
|
|
219464
219508
|
hoEditorFactory.undoService.begin();
|
|
219465
219509
|
hoEditorFactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, spath, ePath));
|
|
@@ -219509,10 +219553,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219509
219553
|
}
|
|
219510
219554
|
}
|
|
219511
219555
|
/**
|
|
219512
|
-
|
|
219513
|
-
|
|
219514
|
-
|
|
219515
|
-
|
|
219556
|
+
* 插入孕周
|
|
219557
|
+
* @param lastMenstruationDate 末次月经日期
|
|
219558
|
+
* @param usedDate 用来计算的日期
|
|
219559
|
+
*/
|
|
219516
219560
|
|
|
219517
219561
|
}, {
|
|
219518
219562
|
key: "insertGestation",
|
|
@@ -219567,7 +219611,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219567
219611
|
value: function verifyTextFieldsDataFormat() {
|
|
219568
219612
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219569
219613
|
var errorArray = [];
|
|
219570
|
-
var errorInfo =
|
|
219614
|
+
var errorInfo = '';
|
|
219571
219615
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
219572
219616
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
219573
219617
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
@@ -219577,51 +219621,51 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219577
219621
|
var node = filedNodes[h];
|
|
219578
219622
|
var dataVerifyFormat = node.dataVerifyFormat;
|
|
219579
219623
|
|
|
219580
|
-
if (dataVerifyFormat.mustInputValue && node.text ===
|
|
219581
|
-
errorInfo =
|
|
219624
|
+
if (dataVerifyFormat.mustInputValue && node.text === '') {
|
|
219625
|
+
errorInfo = '必须输入,不能为空';
|
|
219582
219626
|
errorArray.push([node, errorInfo]);
|
|
219583
219627
|
} else {
|
|
219584
219628
|
if (dataVerifyFormat.dataFormat === TextInputFieldNode/* DataFormat.text */.ZX.text) {
|
|
219585
219629
|
//文本格式
|
|
219586
219630
|
if (dataVerifyFormat.minLength > 0) {
|
|
219587
219631
|
if (node.text.length < dataVerifyFormat.minLength) {
|
|
219588
|
-
errorInfo =
|
|
219632
|
+
errorInfo = '内容不能少于' + dataVerifyFormat.minLength.toString() + '个字符';
|
|
219589
219633
|
errorArray.push([node, errorInfo]);
|
|
219590
219634
|
}
|
|
219591
219635
|
}
|
|
219592
219636
|
|
|
219593
219637
|
if (dataVerifyFormat.maxLength > 0) {
|
|
219594
219638
|
if (node.text.length > dataVerifyFormat.maxLength) {
|
|
219595
|
-
errorInfo =
|
|
219639
|
+
errorInfo = '内容不能多于' + dataVerifyFormat.maxLength.toString() + '个字符';
|
|
219596
219640
|
errorArray.push([node, errorInfo]);
|
|
219597
219641
|
}
|
|
219598
219642
|
}
|
|
219599
219643
|
} else {
|
|
219600
219644
|
//数值格式
|
|
219601
219645
|
if (!(0,type/* isNumber */.hj)(node.text)) {
|
|
219602
|
-
errorInfo =
|
|
219646
|
+
errorInfo = '内容必须为数值';
|
|
219603
219647
|
errorArray.push([node, errorInfo]);
|
|
219604
219648
|
} else {
|
|
219605
219649
|
if (dataVerifyFormat.onlyInputInt) {
|
|
219606
219650
|
//必须是整数
|
|
219607
219651
|
if (Number(node.text) % 1 !== 0) {
|
|
219608
|
-
errorInfo =
|
|
219652
|
+
errorInfo = '数值必须为整数';
|
|
219609
219653
|
errorArray.push([node, errorInfo]);
|
|
219610
219654
|
} else {
|
|
219611
219655
|
if (dataVerifyFormat.maxValue !== 0 && Number(node.text) > dataVerifyFormat.maxValue) {
|
|
219612
|
-
errorInfo =
|
|
219656
|
+
errorInfo = '数值不能大于' + dataVerifyFormat.maxValue.toString();
|
|
219613
219657
|
errorArray.push([node, errorInfo]);
|
|
219614
219658
|
}
|
|
219615
219659
|
|
|
219616
219660
|
if (dataVerifyFormat.minValue !== 0 && Number(node.text) < dataVerifyFormat.minValue) {
|
|
219617
|
-
errorInfo =
|
|
219661
|
+
errorInfo = '数值不能小于' + dataVerifyFormat.minValue.toString();
|
|
219618
219662
|
errorArray.push([node, errorInfo]);
|
|
219619
219663
|
}
|
|
219620
219664
|
}
|
|
219621
219665
|
} else {
|
|
219622
219666
|
//非必须是整数
|
|
219623
|
-
if (dataVerifyFormat.maxSmallBits !== 0 && node.text.split(
|
|
219624
|
-
errorInfo =
|
|
219667
|
+
if (dataVerifyFormat.maxSmallBits !== 0 && node.text.split('.')[1].length > dataVerifyFormat.maxSmallBits) {
|
|
219668
|
+
errorInfo = '小数位数不能多于' + dataVerifyFormat.maxSmallBits.toString() + '位';
|
|
219625
219669
|
errorArray.push([node, errorInfo]);
|
|
219626
219670
|
}
|
|
219627
219671
|
}
|
|
@@ -219762,7 +219806,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219762
219806
|
var endPath = curDomRange.endPath;
|
|
219763
219807
|
|
|
219764
219808
|
if (startPath == endPath) {
|
|
219765
|
-
message_box_default().alert(
|
|
219809
|
+
message_box_default().alert('请选中需要删除的内容进行删除');
|
|
219766
219810
|
|
|
219767
219811
|
return;
|
|
219768
219812
|
}
|
|
@@ -219805,11 +219849,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219805
219849
|
var curMainDocArea = hoEditorFactory.drawPageTree.drawMainDocs[pageIndex];
|
|
219806
219850
|
|
|
219807
219851
|
if (!darwPage || !curMainDocArea) {
|
|
219808
|
-
message_box_default().alert(
|
|
219852
|
+
message_box_default().alert('删除页的索引传入有误:' + pageIndex.toString());
|
|
219809
219853
|
}
|
|
219810
219854
|
|
|
219811
|
-
var sPath =
|
|
219812
|
-
var ePath =
|
|
219855
|
+
var sPath = '';
|
|
219856
|
+
var ePath = '';
|
|
219813
219857
|
var startPosition;
|
|
219814
219858
|
|
|
219815
219859
|
if (pageIndex !== 0) {
|
|
@@ -219859,7 +219903,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219859
219903
|
var headerNodes = hoEditorFactory.subDocManger.headerDocTree[0].subDocNodes;
|
|
219860
219904
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
219861
219905
|
var fooerNodes = hoEditorFactory.subDocManger.footerDocTree[0].subDocNodes;
|
|
219862
|
-
var docText =
|
|
219906
|
+
var docText = '';
|
|
219863
219907
|
|
|
219864
219908
|
var loopChildNodes = function loopChildNodes(nodes) {
|
|
219865
219909
|
nodes.forEach(function (node) {
|
|
@@ -219870,7 +219914,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219870
219914
|
} else if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
219871
219915
|
loopChildNodes(node.childNodes);
|
|
219872
219916
|
} else if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
219873
|
-
docText +=
|
|
219917
|
+
docText += '\n';
|
|
219874
219918
|
}
|
|
219875
219919
|
});
|
|
219876
219920
|
};
|
|
@@ -219878,11 +219922,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219878
219922
|
loopChildNodes(headerNodes);
|
|
219879
219923
|
loopChildNodes(mainNodes);
|
|
219880
219924
|
loopChildNodes(fooerNodes);
|
|
219881
|
-
docText = docText.replace(/&/g,
|
|
219882
|
-
docText = docText.replace(/</g,
|
|
219883
|
-
docText = docText.replace(/>/g,
|
|
219884
|
-
docText = docText.replace(/\'/g,
|
|
219885
|
-
docText = docText.replace(/\"/g,
|
|
219925
|
+
docText = docText.replace(/&/g, '&');
|
|
219926
|
+
docText = docText.replace(/</g, '<');
|
|
219927
|
+
docText = docText.replace(/>/g, '>');
|
|
219928
|
+
docText = docText.replace(/\'/g, ''');
|
|
219929
|
+
docText = docText.replace(/\"/g, '"');
|
|
219886
219930
|
return docText;
|
|
219887
219931
|
}
|
|
219888
219932
|
/**
|
|
@@ -220047,12 +220091,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220047
220091
|
return v.name == node.name;
|
|
220048
220092
|
}).length == 0) {
|
|
220049
220093
|
var elementObj = {
|
|
220050
|
-
id:
|
|
220051
|
-
name:
|
|
220052
|
-
text:
|
|
220053
|
-
json:
|
|
220054
|
-
innerIdentifier:
|
|
220055
|
-
controlStyle:
|
|
220094
|
+
id: '',
|
|
220095
|
+
name: '',
|
|
220096
|
+
text: '',
|
|
220097
|
+
json: '',
|
|
220098
|
+
innerIdentifier: '',
|
|
220099
|
+
controlStyle: '',
|
|
220056
220100
|
customProperty: {}
|
|
220057
220101
|
};
|
|
220058
220102
|
elementObj.id = node.id; //elementObj.dataid = node.dataId;
|
|
@@ -220113,7 +220157,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220113
220157
|
for (var i = 0; i < nodes.length; i++) {
|
|
220114
220158
|
var node = nodes[i];
|
|
220115
220159
|
|
|
220116
|
-
if (node instanceof SignNode/* SignNode */.N && node.customProperty && node.customProperty.isCaSign ==
|
|
220160
|
+
if (node instanceof SignNode/* SignNode */.N && node.customProperty && node.customProperty.isCaSign == '2') {
|
|
220117
220161
|
ret = true;
|
|
220118
220162
|
}
|
|
220119
220163
|
}
|
|
@@ -220131,7 +220175,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220131
220175
|
key: "updateElementById",
|
|
220132
220176
|
value: function updateElementById(id, eleJson) {
|
|
220133
220177
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220134
|
-
var node = this.getNodeByID(
|
|
220178
|
+
var node = this.getNodeByID('all', id);
|
|
220135
220179
|
|
|
220136
220180
|
if (node) {
|
|
220137
220181
|
//eleJson = JSON.parse(eleJson);
|
|
@@ -220154,7 +220198,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220154
220198
|
|
|
220155
220199
|
node.isAllowDelete = true;
|
|
220156
220200
|
hoEditorFactory.undoService.begin();
|
|
220157
|
-
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, sPath,
|
|
220201
|
+
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, sPath, 'update')); //hoEditorFactory.undoService.commit();
|
|
220158
220202
|
//hoEditorFactory.undoService.begin();
|
|
220159
220203
|
|
|
220160
220204
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, newNode));
|
|
@@ -220162,10 +220206,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220162
220206
|
var toPath = hoEditorFactory.docTree.getNodeLastPath(newNode);
|
|
220163
220207
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
220164
220208
|
} else {
|
|
220165
|
-
throw new Error(
|
|
220209
|
+
throw new Error('根据元素id:' + id + '定位到的元素非可回填元素');
|
|
220166
220210
|
}
|
|
220167
220211
|
} else {
|
|
220168
|
-
throw new Error(
|
|
220212
|
+
throw new Error('根据元素id:' + id + '未找到对应的元素');
|
|
220169
220213
|
}
|
|
220170
220214
|
} //更新回填元素的文本内容
|
|
220171
220215
|
|
|
@@ -220178,7 +220222,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220178
220222
|
while (1) {
|
|
220179
220223
|
switch (_context6.prev = _context6.next) {
|
|
220180
220224
|
case 0:
|
|
220181
|
-
if (!(name ===
|
|
220225
|
+
if (!(name === '' || name === '请输入' || name === '请选择')) {
|
|
220182
220226
|
_context6.next = 2;
|
|
220183
220227
|
break;
|
|
220184
220228
|
}
|
|
@@ -220244,14 +220288,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220244
220288
|
break;
|
|
220245
220289
|
|
|
220246
220290
|
case 20:
|
|
220247
|
-
throw new Error(
|
|
220291
|
+
throw new Error('根据元素name:' + name + '定位到的元素非可回填元素');
|
|
220248
220292
|
|
|
220249
220293
|
case 21:
|
|
220250
220294
|
_context6.next = 24;
|
|
220251
220295
|
break;
|
|
220252
220296
|
|
|
220253
220297
|
case 23:
|
|
220254
|
-
throw new Error(
|
|
220298
|
+
throw new Error('根据元素name:' + name + '未找到对应的元素');
|
|
220255
220299
|
|
|
220256
220300
|
case 24:
|
|
220257
220301
|
i--;
|
|
@@ -220263,7 +220307,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220263
220307
|
break;
|
|
220264
220308
|
|
|
220265
220309
|
case 29:
|
|
220266
|
-
throw new Error(
|
|
220310
|
+
throw new Error('根据元素name:' + name + '未找到对应的元素');
|
|
220267
220311
|
|
|
220268
220312
|
case 30:
|
|
220269
220313
|
case "end":
|
|
@@ -220324,10 +220368,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220324
220368
|
|
|
220325
220369
|
var createElementNodes = function createElementNodes() {
|
|
220326
220370
|
var drawpages = hoEditorFactory.drawTree.drawPages;
|
|
220327
|
-
var pngBox = document.createElement(
|
|
220328
|
-
pngBox.id =
|
|
220371
|
+
var pngBox = document.createElement('div');
|
|
220372
|
+
pngBox.id = 'hoImageFileBox';
|
|
220329
220373
|
var imgQuality = quality ? quality : 0.8;
|
|
220330
|
-
var imgType = type ? type :
|
|
220374
|
+
var imgType = type ? type : 'image/jpeg';
|
|
220331
220375
|
drawpages.forEach(function (drawpage, index) {
|
|
220332
220376
|
var _drawpage$drawDomLeve;
|
|
220333
220377
|
|
|
@@ -220346,25 +220390,25 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220346
220390
|
drawpage.needUpdateStage = false;
|
|
220347
220391
|
}
|
|
220348
220392
|
|
|
220349
|
-
var png = document.createElement(
|
|
220393
|
+
var png = document.createElement('img');
|
|
220350
220394
|
var canvas = (_drawpage$drawDomLeve = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve === void 0 ? void 0 : _drawpage$drawDomLeve.domCanvas;
|
|
220351
220395
|
png.src = canvas.toDataURL(imgType, imgQuality);
|
|
220352
220396
|
pngBox.appendChild(png);
|
|
220353
220397
|
});
|
|
220354
|
-
pngBox.id =
|
|
220355
|
-
var btn = document.createElement(
|
|
220356
|
-
btn.id =
|
|
220357
|
-
btn.style.position =
|
|
220358
|
-
btn.style.left =
|
|
220359
|
-
btn.style.top =
|
|
220360
|
-
btn.style.padding =
|
|
220361
|
-
btn.style.background =
|
|
220362
|
-
btn.style.border =
|
|
220363
|
-
btn.style.outline =
|
|
220398
|
+
pngBox.id = 'hoImageFileBox';
|
|
220399
|
+
var btn = document.createElement('button');
|
|
220400
|
+
btn.id = 'hoDownLoadImageBtn';
|
|
220401
|
+
btn.style.position = 'fixed';
|
|
220402
|
+
btn.style.left = '20px';
|
|
220403
|
+
btn.style.top = '200px';
|
|
220404
|
+
btn.style.padding = '10px 20px';
|
|
220405
|
+
btn.style.background = '#f2f4f7';
|
|
220406
|
+
btn.style.border = 'none';
|
|
220407
|
+
btn.style.outline = 'none';
|
|
220364
220408
|
document.body.appendChild(btn);
|
|
220365
220409
|
document.body.appendChild(pngBox);
|
|
220366
220410
|
|
|
220367
|
-
document.querySelector(
|
|
220411
|
+
document.querySelector('#hoDownLoadImageBtn').onclick = function () {
|
|
220368
220412
|
_this2.downLoadPNGHTML();
|
|
220369
220413
|
};
|
|
220370
220414
|
};
|
|
@@ -220400,7 +220444,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220400
220444
|
|
|
220401
220445
|
var canvas = (_drawpage$drawDomLeve2 = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve2 === void 0 ? void 0 : _drawpage$drawDomLeve2.domCanvas;
|
|
220402
220446
|
var imgQuality = quality ? quality : 0.8;
|
|
220403
|
-
imageList.push(canvas.toDataURL(
|
|
220447
|
+
imageList.push(canvas.toDataURL('image/jpeg', imgQuality));
|
|
220404
220448
|
});
|
|
220405
220449
|
return imageList;
|
|
220406
220450
|
}
|
|
@@ -220413,18 +220457,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220413
220457
|
value: function createPDF() {
|
|
220414
220458
|
var _this3 = this;
|
|
220415
220459
|
|
|
220416
|
-
var btn = document.createElement(
|
|
220417
|
-
btn.id =
|
|
220418
|
-
btn.style.position =
|
|
220419
|
-
btn.style.left =
|
|
220420
|
-
btn.style.top =
|
|
220421
|
-
btn.style.padding =
|
|
220422
|
-
btn.style.background =
|
|
220423
|
-
btn.style.border =
|
|
220424
|
-
btn.style.outline =
|
|
220460
|
+
var btn = document.createElement('button');
|
|
220461
|
+
btn.id = 'hoDownLoadPDFBtn';
|
|
220462
|
+
btn.style.position = 'fixed';
|
|
220463
|
+
btn.style.left = '20px';
|
|
220464
|
+
btn.style.top = '300px';
|
|
220465
|
+
btn.style.padding = '10px 20px';
|
|
220466
|
+
btn.style.background = 'transparent';
|
|
220467
|
+
btn.style.border = 'none';
|
|
220468
|
+
btn.style.outline = 'none';
|
|
220425
220469
|
document.body.appendChild(btn);
|
|
220426
220470
|
|
|
220427
|
-
document.querySelector(
|
|
220471
|
+
document.querySelector('#hoDownLoadPDFBtn').onclick = function () {
|
|
220428
220472
|
_this3.saveAsPDF();
|
|
220429
220473
|
};
|
|
220430
220474
|
}
|
|
@@ -220435,22 +220479,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220435
220479
|
}, {
|
|
220436
220480
|
key: "downLoadPNGHTML",
|
|
220437
220481
|
value: function downLoadPNGHTML() {
|
|
220438
|
-
var pngBox = document.querySelector(
|
|
220439
|
-
var fileName = this.getDocTitle() ? this.getDocTitle() :
|
|
220482
|
+
var pngBox = document.querySelector('#hoImageFileBox');
|
|
220483
|
+
var fileName = this.getDocTitle() ? this.getDocTitle() : '电子病历文档';
|
|
220440
220484
|
var exportHtml = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>\n body, html {\n margin: 0;\n background: #f2f4f7;\n text-align: center;\n }\n img {\n margin: 10px auto;\n display: block;\n border: 0;\n box-shadow: rgb(158 161 165 / 40%) 0px 2px 12px 0px;\n }\n </style>\n </head>\n <body>".concat(pngBox === null || pngBox === void 0 ? void 0 : pngBox.innerHTML, "</body>\n </html>\n ");
|
|
220441
220485
|
var url = window.URL.createObjectURL(new Blob([exportHtml], {
|
|
220442
220486
|
type: "text/html"
|
|
220443
220487
|
}));
|
|
220444
|
-
var link = document.createElement(
|
|
220445
|
-
link.style.display =
|
|
220488
|
+
var link = document.createElement('a');
|
|
220489
|
+
link.style.display = 'none';
|
|
220446
220490
|
link.href = url;
|
|
220447
|
-
link.setAttribute(
|
|
220491
|
+
link.setAttribute('download', fileName + '.html');
|
|
220448
220492
|
document.body.appendChild(link);
|
|
220449
220493
|
link.click();
|
|
220450
220494
|
setTimeout(function () {
|
|
220451
220495
|
link.remove();
|
|
220452
220496
|
document.body.removeChild(pngBox);
|
|
220453
|
-
document.body.removeChild(document.querySelector(
|
|
220497
|
+
document.body.removeChild(document.querySelector('#hoDownLoadImageBtn'));
|
|
220454
220498
|
}, 300);
|
|
220455
220499
|
}
|
|
220456
220500
|
}, {
|
|
@@ -220527,7 +220571,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220527
220571
|
while (1) {
|
|
220528
220572
|
switch (_context7.prev = _context7.next) {
|
|
220529
220573
|
case 0:
|
|
220530
|
-
if (!(type ===
|
|
220574
|
+
if (!(type === 'html')) {
|
|
220531
220575
|
_context7.next = 14;
|
|
220532
220576
|
break;
|
|
220533
220577
|
}
|
|
@@ -220611,7 +220655,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220611
220655
|
var newNode = newcurDomRange.npEnd.node;
|
|
220612
220656
|
|
|
220613
220657
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220614
|
-
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3,
|
|
220658
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, '患者签名', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220615
220659
|
setTimeout(function () {
|
|
220616
220660
|
callback && callback();
|
|
220617
220661
|
}, 0);
|
|
@@ -220619,7 +220663,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220619
220663
|
}
|
|
220620
220664
|
}, 0);
|
|
220621
220665
|
} else {
|
|
220622
|
-
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3,
|
|
220666
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, '患者签名', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220623
220667
|
setTimeout(function () {
|
|
220624
220668
|
callback && callback();
|
|
220625
220669
|
}, 0);
|
|
@@ -220634,7 +220678,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220634
220678
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220635
220679
|
|
|
220636
220680
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220637
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1,
|
|
220681
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1, '患者签名', node.signor, node.signTime, node.signTimeFormat, imgSrc, node.imgWidth, node.imgHeight, node.customProperty, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220638
220682
|
setTimeout(function () {
|
|
220639
220683
|
callback && callback();
|
|
220640
220684
|
}, 0);
|
|
@@ -220646,7 +220690,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220646
220690
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220647
220691
|
|
|
220648
220692
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220649
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3,
|
|
220693
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3, '患者签名', '', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220650
220694
|
setTimeout(function () {
|
|
220651
220695
|
callback && callback();
|
|
220652
220696
|
}, 0);
|
|
@@ -220685,13 +220729,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220685
220729
|
for (var m = 0, len = items.length - 1; m <= len; m++) {
|
|
220686
220730
|
var item = items[m];
|
|
220687
220731
|
|
|
220688
|
-
if (item.text !==
|
|
220732
|
+
if (item.text !== '' && item.name === anode.name && anode.text.indexOf(item.text) !== -1) {
|
|
220689
220733
|
var range = _this4.search(anode, item.text);
|
|
220690
220734
|
|
|
220691
220735
|
if (range.length > 0) {
|
|
220692
220736
|
selectRangeArr = selectRangeArr.concat(range);
|
|
220693
220737
|
}
|
|
220694
|
-
} else if (item.text ===
|
|
220738
|
+
} else if (item.text === '' && item.name === anode.name) {
|
|
220695
220739
|
var _range = _this4.search(anode, anode.text);
|
|
220696
220740
|
|
|
220697
220741
|
if (_range.length > 0) {
|
|
@@ -220720,7 +220764,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220720
220764
|
if (selectRangeArr.length > 0) {
|
|
220721
220765
|
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, true, true);
|
|
220722
220766
|
} else {
|
|
220723
|
-
console.warn(
|
|
220767
|
+
console.warn('未搜索到符合条件的元素');
|
|
220724
220768
|
}
|
|
220725
220769
|
}
|
|
220726
220770
|
}, {
|
|
@@ -220752,7 +220796,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220752
220796
|
loopChildNodes(node.childNodes);
|
|
220753
220797
|
parasArray.forEach(function (value, index) {
|
|
220754
220798
|
var aNode = value.nextLeaf();
|
|
220755
|
-
var content =
|
|
220799
|
+
var content = '';
|
|
220756
220800
|
var mark = 0; //用来区分段落中的节点是否是文本节点 0是 -1不是
|
|
220757
220801
|
|
|
220758
220802
|
var textCount = 1; //该段的第几个文本串(其它节点隔开的)
|
|
@@ -220762,31 +220806,31 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220762
220806
|
if (aNode instanceof TextNode/* TextNode */.R) {
|
|
220763
220807
|
if (mark === -1) {
|
|
220764
220808
|
if (content.length > 0) {
|
|
220765
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220809
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content); //['第几段|该段的第几个文本串|文本串内容'] (一段里面可能有很多个文本串,一段里面会有除文本节点之外的其它节点)
|
|
220766
220810
|
|
|
220767
220811
|
textCount++;
|
|
220768
|
-
content =
|
|
220812
|
+
content = '';
|
|
220769
220813
|
mark = 0;
|
|
220770
220814
|
}
|
|
220771
220815
|
}
|
|
220772
220816
|
|
|
220773
220817
|
var nodePath = hoEditorFactory.docTree.getNodeFirstPath(aNode);
|
|
220774
|
-
nodesMap.set((index + 1).toString() +
|
|
220818
|
+
nodesMap.set((index + 1).toString() + '|' + textCount.toString() + '|' + content.length, nodePath); //nodesMap<第几段|该段的第几个文本串|节点文本在该文本串的位置,'节点路径'>
|
|
220775
220819
|
|
|
220776
220820
|
content = content + aNode.text;
|
|
220777
220821
|
} else if (aNode instanceof ControlNode/* ControlNode */.w) {
|
|
220778
220822
|
if (content.length > 0) {
|
|
220779
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220823
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content); //['第几段|该段的第几个文本串|文本串内容'] (一段里面可能有很多个文本串,一段里面会有除文本节点之外的其它节点)
|
|
220780
220824
|
|
|
220781
220825
|
textCount++;
|
|
220782
|
-
content =
|
|
220826
|
+
content = '';
|
|
220783
220827
|
}
|
|
220784
220828
|
|
|
220785
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220829
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + aNode.text);
|
|
220786
220830
|
|
|
220787
220831
|
var _nodePath = aNode.getNodePath();
|
|
220788
220832
|
|
|
220789
|
-
nodesMap.set((index + 1).toString() +
|
|
220833
|
+
nodesMap.set((index + 1).toString() + '|' + textCount.toString() + '|' + 0, _nodePath);
|
|
220790
220834
|
textCount++;
|
|
220791
220835
|
} else {
|
|
220792
220836
|
if (!(aNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
@@ -220801,14 +220845,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220801
220845
|
} while (aNode !== node.EndMarkNode);
|
|
220802
220846
|
|
|
220803
220847
|
if (content.length > 0) {
|
|
220804
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220848
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content);
|
|
220805
220849
|
}
|
|
220806
220850
|
});
|
|
220807
220851
|
} else {
|
|
220808
220852
|
var nodePath = node.getNodePath();
|
|
220809
|
-
nodesMap.set(
|
|
220853
|
+
nodesMap.set('1|1|0', nodePath); //nodesMap<第几段|该段的第几个文本串|节点文本在该文本串的位置,'节点路径'>
|
|
220810
220854
|
|
|
220811
|
-
paraTextStrArr.push(
|
|
220855
|
+
paraTextStrArr.push('1|1|' + node.text);
|
|
220812
220856
|
}
|
|
220813
220857
|
|
|
220814
220858
|
selectRangeArr = this.getSelectRanges(paraTextStrArr, text, nodesMap);
|
|
@@ -220823,18 +220867,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220823
220867
|
var i = 0;
|
|
220824
220868
|
paraTextStrArr.forEach(function (value, index) {
|
|
220825
220869
|
//遍历每个段落的文本串 获取所有符合的段落和位置索引
|
|
220826
|
-
var paraIndex = value.split(
|
|
220870
|
+
var paraIndex = value.split('|')[0]; //第几段
|
|
220827
220871
|
|
|
220828
|
-
var textCount = value.split(
|
|
220872
|
+
var textCount = value.split('|')[1]; //第几串
|
|
220829
220873
|
|
|
220830
|
-
value = value.split(
|
|
220874
|
+
value = value.split('|')[2]; //从上往下
|
|
220831
220875
|
|
|
220832
220876
|
var indexValue = value.indexOf(text);
|
|
220833
220877
|
|
|
220834
220878
|
if (indexValue !== -1) {
|
|
220835
220879
|
do {
|
|
220836
220880
|
i++;
|
|
220837
|
-
indexsMap.set(i, paraIndex +
|
|
220881
|
+
indexsMap.set(i, paraIndex + '|' + textCount + '|' + indexValue.toString()); //indexsMap<第几个符合查找条件的,第几段|该段的第几个文本串|查找的字符串在该文本串的位置>
|
|
220838
220882
|
|
|
220839
220883
|
indexValue = value.indexOf(text, indexValue + 1);
|
|
220840
220884
|
} while (indexValue !== -1);
|
|
@@ -220843,10 +220887,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220843
220887
|
var textNodesPaths = [];
|
|
220844
220888
|
var controlNodesPaths = [];
|
|
220845
220889
|
indexsMap.forEach(function (valueStr, index) {
|
|
220846
|
-
var returnPath =
|
|
220847
|
-
var paraIndex = valueStr.split(
|
|
220848
|
-
var textCount = valueStr.split(
|
|
220849
|
-
var strIndex = parseInt(valueStr.split(
|
|
220890
|
+
var returnPath = '';
|
|
220891
|
+
var paraIndex = valueStr.split('|')[0];
|
|
220892
|
+
var textCount = valueStr.split('|')[1];
|
|
220893
|
+
var strIndex = parseInt(valueStr.split('|')[2]);
|
|
220850
220894
|
|
|
220851
220895
|
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(nodesMap),
|
|
220852
220896
|
_step;
|
|
@@ -220857,9 +220901,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220857
220901
|
key = _step$value[0],
|
|
220858
220902
|
value = _step$value[1];
|
|
220859
220903
|
|
|
220860
|
-
var startIndex = parseInt(key.split(
|
|
220904
|
+
var startIndex = parseInt(key.split('|')[2]);
|
|
220861
220905
|
|
|
220862
|
-
if (key.split(
|
|
220906
|
+
if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
|
|
220863
220907
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value);
|
|
220864
220908
|
|
|
220865
220909
|
if (np && np.node) {
|
|
@@ -220868,9 +220912,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220868
220912
|
var lastPath = strIndex - startIndex - 1;
|
|
220869
220913
|
|
|
220870
220914
|
if (lastPath >= 0) {
|
|
220871
|
-
var pathArr = value.split(
|
|
220915
|
+
var pathArr = value.split('/');
|
|
220872
220916
|
pathArr[pathArr.length - 1] = lastPath.toString();
|
|
220873
|
-
returnPath = pathArr.join(
|
|
220917
|
+
returnPath = pathArr.join('/');
|
|
220874
220918
|
} else {
|
|
220875
220919
|
//搜索文本在节点的开始位置 需要返回上一个节点的结束位置路径
|
|
220876
220920
|
var preNode = np.node.previousLeaf();
|
|
@@ -220916,10 +220960,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220916
220960
|
path = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
|
|
220917
220961
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
|
|
220918
220962
|
} else {
|
|
220919
|
-
var pathArr = path.split(
|
|
220963
|
+
var pathArr = path.split('/');
|
|
220920
220964
|
var value = parseInt(pathArr[pathArr.length - 1]);
|
|
220921
220965
|
pathArr[pathArr.length - 1] = (value + 1).toString();
|
|
220922
|
-
path = pathArr.join(
|
|
220966
|
+
path = pathArr.join('/');
|
|
220923
220967
|
}
|
|
220924
220968
|
}
|
|
220925
220969
|
|
|
@@ -220959,8 +221003,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220959
221003
|
var selectRangeArr = [];
|
|
220960
221004
|
|
|
220961
221005
|
for (var i = 0; i < names.length; i++) {
|
|
220962
|
-
if (names[i] !==
|
|
220963
|
-
var nodes = this.getNodesByName(
|
|
221006
|
+
if (names[i] !== '') {
|
|
221007
|
+
var nodes = this.getNodesByName('all', true, names[i]);
|
|
220964
221008
|
elements = elements.concat(nodes);
|
|
220965
221009
|
}
|
|
220966
221010
|
}
|
|
@@ -221003,7 +221047,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221003
221047
|
if (hoEditorFactory.aiTextFunc) {
|
|
221004
221048
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221005
221049
|
var node = curDomRange.npEnd.node;
|
|
221006
|
-
var text =
|
|
221050
|
+
var text = '';
|
|
221007
221051
|
|
|
221008
221052
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
221009
221053
|
text += node.text;
|
|
@@ -221057,7 +221101,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221057
221101
|
}
|
|
221058
221102
|
|
|
221059
221103
|
if (!isHaveParaNodes) {
|
|
221060
|
-
message_box_default().alert(
|
|
221104
|
+
message_box_default().alert('选区内没有换行符,无需清除.');
|
|
221061
221105
|
|
|
221062
221106
|
return;
|
|
221063
221107
|
}
|
|
@@ -221076,9 +221120,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221076
221120
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(nodes[nodes.length - 1]);
|
|
221077
221121
|
|
|
221078
221122
|
if (result[2] > 0) {
|
|
221079
|
-
var arr = endPath.split(
|
|
221123
|
+
var arr = endPath.split('/');
|
|
221080
221124
|
arr[arr.length - 1] = result[2].toString();
|
|
221081
|
-
endPath = arr.join(
|
|
221125
|
+
endPath = arr.join('/');
|
|
221082
221126
|
}
|
|
221083
221127
|
|
|
221084
221128
|
var oldRange = curDomRange;
|
|
@@ -221099,7 +221143,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221099
221143
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221100
221144
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221101
221145
|
var node = curDomRange.npEnd.node;
|
|
221102
|
-
var text =
|
|
221146
|
+
var text = '';
|
|
221103
221147
|
|
|
221104
221148
|
var getText = function getText(previousNode) {
|
|
221105
221149
|
if (previousNode instanceof TextNode/* TextNode */.R || previousNode instanceof LabelNode/* LabelNode */.P || previousNode instanceof DownListNode/* DownListNode */.yF) {
|
|
@@ -221198,6 +221242,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221198
221242
|
}, {
|
|
221199
221243
|
key: "setDocCommentIsHandle",
|
|
221200
221244
|
value: function setDocCommentIsHandle(status) {
|
|
221245
|
+
// 批量修改当前病历中批注处理状态
|
|
221201
221246
|
var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree;
|
|
221202
221247
|
var commentsMap = drawTree.commentsMap;
|
|
221203
221248
|
commentsMap.forEach(function (value, key) {
|
|
@@ -221227,7 +221272,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221227
221272
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221228
221273
|
if (fieldNames.indexOf(node.name) === -1) {
|
|
221229
221274
|
fieldNames.push(node.name);
|
|
221230
|
-
var sameNameEles = this.getNodesByName(
|
|
221275
|
+
var sameNameEles = this.getNodesByName('all', true, node.name);
|
|
221231
221276
|
|
|
221232
221277
|
for (var j = 0; j < sameNameEles.length; j++) {
|
|
221233
221278
|
var ele = sameNameEles[j];
|
|
@@ -221244,7 +221289,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221244
221289
|
if (dateNames.indexOf(node.name) === -1) {
|
|
221245
221290
|
dateNames.push(node.name);
|
|
221246
221291
|
|
|
221247
|
-
var _sameNameEles = this.getNodesByName(
|
|
221292
|
+
var _sameNameEles = this.getNodesByName('all', true, node.name);
|
|
221248
221293
|
|
|
221249
221294
|
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
221250
221295
|
var _ele = _sameNameEles[_j];
|
|
@@ -221261,7 +221306,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221261
221306
|
if (downNames.indexOf(node.name) === -1) {
|
|
221262
221307
|
downNames.push(node.name);
|
|
221263
221308
|
|
|
221264
|
-
var _sameNameEles2 = this.getNodesByName(
|
|
221309
|
+
var _sameNameEles2 = this.getNodesByName('all', true, node.name);
|
|
221265
221310
|
|
|
221266
221311
|
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
221267
221312
|
var _ele2 = _sameNameEles2[_j2];
|
|
@@ -221288,11 +221333,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221288
221333
|
var object = objects[i];
|
|
221289
221334
|
var name = object.name;
|
|
221290
221335
|
var oldValue = object.oldValue;
|
|
221291
|
-
var elements = this.getNodesByName(
|
|
221336
|
+
var elements = this.getNodesByName('main', true, name);
|
|
221292
221337
|
|
|
221293
221338
|
for (var j = 0; j < elements.length; j++) {
|
|
221294
221339
|
var element = elements[j];
|
|
221295
|
-
var commentID = hoEditorFactory.gernerateCode.generateID(
|
|
221340
|
+
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
221296
221341
|
var comment = void 0;
|
|
221297
221342
|
|
|
221298
221343
|
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -221352,7 +221397,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221352
221397
|
for (var i = children.length - 1; i >= 0; i--) {
|
|
221353
221398
|
var child = children[i];
|
|
221354
221399
|
|
|
221355
|
-
if (child.name && child.name.indexOf(
|
|
221400
|
+
if (child.name && child.name.indexOf('recordC') >= 0) {
|
|
221356
221401
|
children.splice(i, 1);
|
|
221357
221402
|
}
|
|
221358
221403
|
}
|
|
@@ -221407,7 +221452,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221407
221452
|
} // 空的医生签名
|
|
221408
221453
|
|
|
221409
221454
|
|
|
221410
|
-
if (attribute
|
|
221455
|
+
if (attribute != 1 && node.attribute != 1 && node.imgSrc === '') {
|
|
221411
221456
|
hasEmptyDoctorSign = true;
|
|
221412
221457
|
break;
|
|
221413
221458
|
}
|
|
@@ -221418,7 +221463,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221418
221463
|
getAllNodes(node.childNodes);
|
|
221419
221464
|
}
|
|
221420
221465
|
|
|
221421
|
-
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute
|
|
221466
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute != 0 && !hasEmptyDoctorSign) {
|
|
221422
221467
|
// 医生签名不存在的情况不在深层调用深层遍历
|
|
221423
221468
|
getAllNodes(node.childNodes);
|
|
221424
221469
|
}
|
|
@@ -221469,6 +221514,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221469
221514
|
getAllNodes(mainNodes);
|
|
221470
221515
|
return isHasDoctorSign;
|
|
221471
221516
|
}
|
|
221517
|
+
}, {
|
|
221518
|
+
key: "setHoEditorFactoryParams",
|
|
221519
|
+
value: function setHoEditorFactoryParams(params) {
|
|
221520
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221521
|
+
Object.keys(params).forEach(function (key) {
|
|
221522
|
+
hoEditorFactory[key] = params[key];
|
|
221523
|
+
});
|
|
221524
|
+
}
|
|
221472
221525
|
}]);
|
|
221473
221526
|
|
|
221474
221527
|
return VueController;
|
|
@@ -225138,6 +225191,12 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225138
225191
|
function HOEditorFactory(id) {
|
|
225139
225192
|
(0,classCallCheck/* default */.Z)(this, HOEditorFactory);
|
|
225140
225193
|
|
|
225194
|
+
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
225195
|
+
|
|
225196
|
+
this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
|
|
225197
|
+
|
|
225198
|
+
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
225199
|
+
|
|
225141
225200
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
225142
225201
|
|
|
225143
225202
|
this._loadImageCallback = null; // 图片加载完成回调
|
|
@@ -225155,10 +225214,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225155
225214
|
this._lastSaveTime = new Date(Date.now());
|
|
225156
225215
|
this._superiorSigns = []; //上级医生签名
|
|
225157
225216
|
|
|
225158
|
-
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
225159
|
-
|
|
225160
|
-
this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
|
|
225161
|
-
|
|
225162
225217
|
this._hoEditorFactoryId = id;
|
|
225163
225218
|
}
|
|
225164
225219
|
/**
|
|
@@ -225876,6 +225931,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225876
225931
|
this._isSameColorWithEmptyVlaue = value;
|
|
225877
225932
|
}
|
|
225878
225933
|
}
|
|
225934
|
+
}, {
|
|
225935
|
+
key: "isCanUseTableProperty",
|
|
225936
|
+
get: function get() {
|
|
225937
|
+
return this._isCanUseTableProperty;
|
|
225938
|
+
},
|
|
225939
|
+
set: function set(value) {
|
|
225940
|
+
if (this._isCanUseTableProperty !== value) {
|
|
225941
|
+
this._isCanUseTableProperty = value;
|
|
225942
|
+
}
|
|
225943
|
+
}
|
|
225879
225944
|
}, {
|
|
225880
225945
|
key: "clear",
|
|
225881
225946
|
value: function clear() {
|
|
@@ -230322,15 +230387,16 @@ var UploadImageDialog_component = normalizeComponent(
|
|
|
230322
230387
|
)
|
|
230323
230388
|
|
|
230324
230389
|
/* harmony default export */ var upload_UploadImageDialog = (UploadImageDialog_component.exports);
|
|
230325
|
-
;// 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/CanvasImageDialog.vue?vue&type=template&id=
|
|
230326
|
-
var
|
|
230327
|
-
var
|
|
230390
|
+
;// 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/CanvasImageDialog.vue?vue&type=template&id=1e0a2026&scoped=true&
|
|
230391
|
+
var CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"canvas-image",class:_vm.animationClassNames,style:({ width: _vm.canvasWidth + 250 + 'px', height: _vm.canvasHeight + 150 + 'px' })},[_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",attrs:{"id":"loon_canvas_editor"}},[_c('div',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"loon_canvas_editor_box"}},[_c('canvas',{style:({ width: _vm.canvasWidth + 'px', height: _vm.canvasHeight + 'px' }),attrs:{"id":"image_canvas","width":_vm.canvasWidth,"height":_vm.canvasHeight}}),(_vm.tool === 0 && _vm.textAreaStyle.width)?_c('textarea',{ref:"textCanvas",style:(_vm.textAreaStyle),attrs:{"id":"text_canvas"},on:{"blur":function($event){return _vm.drawText()}}}):_vm._e()])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"type":_vm.tool === 0 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 0}}},[_vm._v("文字")]),_c('el-button',{attrs:{"type":_vm.tool === 1 ? 'primary' : '',"size":"small"},on:{"click":function($event){_vm.tool = 1}}},[_vm._v("画笔")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasUndo()}}},[_vm._v("撤销")]),_c('el-button',{attrs:{"size":"small"},on:{"click":function($event){return _vm.canvasRedo()}}},[_vm._v("恢复")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small","loading":_vm.uploadLoading,"type":"primary"},on:{"click":_vm.sure}},[_vm._v("保存")]),_c('el-button',{attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
230392
|
+
var CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_staticRenderFns = []
|
|
230328
230393
|
|
|
230329
230394
|
|
|
230330
230395
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40[0].rules[0].use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
230331
230396
|
|
|
230332
230397
|
|
|
230333
230398
|
|
|
230399
|
+
|
|
230334
230400
|
//
|
|
230335
230401
|
//
|
|
230336
230402
|
//
|
|
@@ -230375,19 +230441,14 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230375
230441
|
canvasHeight: 400,
|
|
230376
230442
|
animationClassNames: 'control-modal-contents image-modal animation-in',
|
|
230377
230443
|
uploadLoading: false,
|
|
230378
|
-
eraserEnabled: false,
|
|
230379
|
-
activeBgColor: '#fff',
|
|
230380
|
-
ifPop: false,
|
|
230381
230444
|
lWidth: 2,
|
|
230382
|
-
opacity: 1,
|
|
230383
230445
|
strokeColor: '#FF0000',
|
|
230384
|
-
radius: 5,
|
|
230385
230446
|
canvasHistory: [],
|
|
230386
230447
|
step: -1,
|
|
230387
230448
|
canvas: null,
|
|
230388
|
-
textarea: null,
|
|
230389
|
-
canvasArea: null,
|
|
230390
230449
|
context: null,
|
|
230450
|
+
canvasArea: null,
|
|
230451
|
+
textarea: null,
|
|
230391
230452
|
painting: false,
|
|
230392
230453
|
// 定义一个变量初始化画笔状态
|
|
230393
230454
|
startPoint: {
|
|
@@ -230396,7 +230457,10 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230396
230457
|
},
|
|
230397
230458
|
// 记录画笔最后一次的位置
|
|
230398
230459
|
tool: 1,
|
|
230399
|
-
textAreaStyle: {}
|
|
230460
|
+
textAreaStyle: {},
|
|
230461
|
+
moveDrawCount: 0,
|
|
230462
|
+
quadraticCurvePoints: [] // 平滑曲线数组
|
|
230463
|
+
|
|
230400
230464
|
};
|
|
230401
230465
|
},
|
|
230402
230466
|
watch: {
|
|
@@ -230477,6 +230541,7 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230477
230541
|
x: e.offsetX,
|
|
230478
230542
|
y: e.offsetY
|
|
230479
230543
|
};
|
|
230544
|
+
this.quadraticCurvePoints.push(this.startPoint);
|
|
230480
230545
|
|
|
230481
230546
|
if (this.tool === 0) {
|
|
230482
230547
|
this.textAreaStyle = {
|
|
@@ -230505,16 +230570,50 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230505
230570
|
|
|
230506
230571
|
case 1:
|
|
230507
230572
|
{
|
|
230508
|
-
this.
|
|
230573
|
+
this.quadraticCurvePoints.push({
|
|
230574
|
+
x: e.offsetX,
|
|
230575
|
+
y: e.offsetY
|
|
230576
|
+
});
|
|
230577
|
+
|
|
230578
|
+
if (this.quadraticCurvePoints.length > 3) {
|
|
230579
|
+
var lastTwoPoints = this.quadraticCurvePoints.slice(-2);
|
|
230580
|
+
var controlPoint = lastTwoPoints[0];
|
|
230581
|
+
var endPoint = {
|
|
230582
|
+
x: (lastTwoPoints[0].x + lastTwoPoints[1].x) / 2,
|
|
230583
|
+
y: (lastTwoPoints[0].y + lastTwoPoints[1].y) / 2
|
|
230584
|
+
};
|
|
230585
|
+
this.drawLine(this.startPoint, controlPoint, endPoint);
|
|
230586
|
+
this.startPoint = endPoint;
|
|
230587
|
+
}
|
|
230588
|
+
|
|
230509
230589
|
break;
|
|
230510
230590
|
}
|
|
230511
230591
|
}
|
|
230592
|
+
|
|
230593
|
+
e.stopPropagation();
|
|
230594
|
+
e.preventDefault();
|
|
230512
230595
|
},
|
|
230513
230596
|
up: function up(e) {
|
|
230514
230597
|
if (this.tool === 0) {
|
|
230515
230598
|
this.canvas.removeEventListener('mousemove', this.move);
|
|
230516
230599
|
}
|
|
230517
230600
|
|
|
230601
|
+
this.quadraticCurvePoints.push({
|
|
230602
|
+
x: e.offsetX,
|
|
230603
|
+
y: e.offsetY
|
|
230604
|
+
});
|
|
230605
|
+
|
|
230606
|
+
if (this.quadraticCurvePoints.length > 3) {
|
|
230607
|
+
var lastTwoPoints = this.quadraticCurvePoints.slice(-2);
|
|
230608
|
+
var controlPoint = lastTwoPoints[0];
|
|
230609
|
+
var endPoint = {
|
|
230610
|
+
x: (lastTwoPoints[0].x + lastTwoPoints[1].x) / 2,
|
|
230611
|
+
y: (lastTwoPoints[0].y + lastTwoPoints[1].y) / 2
|
|
230612
|
+
};
|
|
230613
|
+
this.drawLine(this.startPoint, controlPoint, endPoint);
|
|
230614
|
+
}
|
|
230615
|
+
|
|
230616
|
+
this.quadraticCurvePoints = [];
|
|
230518
230617
|
this.painting = false;
|
|
230519
230618
|
|
|
230520
230619
|
if (this.tool === 1) {
|
|
@@ -230549,25 +230648,30 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230549
230648
|
this.textAreaStyle = {};
|
|
230550
230649
|
}
|
|
230551
230650
|
},
|
|
230552
|
-
drawLine: function drawLine(
|
|
230553
|
-
if (!this.painting)
|
|
230651
|
+
drawLine: function drawLine(startPoint, controlPoint, endPoint) {
|
|
230652
|
+
if (!this.painting) {
|
|
230653
|
+
this.moveDrawCount = 0;
|
|
230654
|
+
return;
|
|
230655
|
+
} // if (this.moveDrawCount === 0) {
|
|
230656
|
+
|
|
230657
|
+
|
|
230554
230658
|
this.context.beginPath();
|
|
230555
230659
|
this.context.lineWidth = this.lWidth;
|
|
230556
|
-
this.context.strokeStyle = this.strokeColor; //
|
|
230660
|
+
this.context.strokeStyle = this.strokeColor; // this.context.setLineDash([10]);
|
|
230661
|
+
// 设置线条末端样式。
|
|
230557
230662
|
|
|
230558
230663
|
this.context.lineCap = 'round'; // 设定线条与线条间接合处的样式
|
|
230559
230664
|
|
|
230560
230665
|
this.context.lineJoin = 'round';
|
|
230561
|
-
this.context.moveTo(
|
|
230562
|
-
|
|
230666
|
+
this.context.moveTo(startPoint.x, startPoint.y); // this.context.lineTo(e.offsetX, e.offsetY);
|
|
230667
|
+
|
|
230668
|
+
this.context.quadraticCurveTo(controlPoint.x, controlPoint.y, endPoint.x, endPoint.y);
|
|
230563
230669
|
this.context.stroke();
|
|
230564
|
-
this.context.closePath();
|
|
230565
|
-
this.
|
|
230566
|
-
|
|
230567
|
-
|
|
230568
|
-
}
|
|
230569
|
-
e.stopPropagation();
|
|
230570
|
-
e.preventDefault();
|
|
230670
|
+
this.context.closePath(); // }
|
|
230671
|
+
// this.moveDrawCount++;
|
|
230672
|
+
// if (this.moveDrawCount >= 3) {
|
|
230673
|
+
// this.moveDrawCount = 0;
|
|
230674
|
+
// }
|
|
230571
230675
|
},
|
|
230572
230676
|
// 绘制方法
|
|
230573
230677
|
canvasDraw: function canvasDraw() {
|
|
@@ -230636,10 +230740,10 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230636
230740
|
});
|
|
230637
230741
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
230638
230742
|
/* harmony default export */ var upload_CanvasImageDialogvue_type_script_lang_js_ = (CanvasImageDialogvue_type_script_lang_js_);
|
|
230639
|
-
;// 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/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=
|
|
230743
|
+
;// 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/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=1e0a2026&lang=scss&scoped=true&
|
|
230640
230744
|
// extracted by mini-css-extract-plugin
|
|
230641
230745
|
|
|
230642
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=
|
|
230746
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=1e0a2026&lang=scss&scoped=true&
|
|
230643
230747
|
|
|
230644
230748
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
|
|
230645
230749
|
|
|
@@ -230652,11 +230756,11 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230652
230756
|
|
|
230653
230757
|
var CanvasImageDialog_component = normalizeComponent(
|
|
230654
230758
|
upload_CanvasImageDialogvue_type_script_lang_js_,
|
|
230655
|
-
|
|
230656
|
-
|
|
230759
|
+
CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render,
|
|
230760
|
+
CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_staticRenderFns,
|
|
230657
230761
|
false,
|
|
230658
230762
|
null,
|
|
230659
|
-
"
|
|
230763
|
+
"1e0a2026",
|
|
230660
230764
|
null
|
|
230661
230765
|
|
|
230662
230766
|
)
|
|
@@ -231241,9 +231345,9 @@ var TableProperty_component = normalizeComponent(
|
|
|
231241
231345
|
)
|
|
231242
231346
|
|
|
231243
231347
|
/* harmony default export */ var table_TableProperty = (TableProperty_component.exports);
|
|
231244
|
-
;// 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/table/TableRowProperty.vue?vue&type=template&id=
|
|
231245
|
-
var
|
|
231246
|
-
var
|
|
231348
|
+
;// 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/table/TableRowProperty.vue?vue&type=template&id=c8198e42&scoped=true&
|
|
231349
|
+
var TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"control-modal-contents table-row-modal animation-in"},[_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-button',{attrs:{"size":"mini"},on:{"click":_vm.openCustomsModal}},[_vm._v("自定义属性")])],1),_c('li',{staticClass:"control-item"},[_c('span',{staticClass:"label"},[_vm._v("数据源")]),_c('el-button',{attrs:{"size":"mini"},on:{"click":_vm.openDataSourceModal}},[_vm._v("设置数据源")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"padding-right":"20px"}},[_c('el-checkbox',{on:{"change":_vm.watchParamsChange},model:{value:(_vm.isSpecifyHeight),callback:function ($$v) {_vm.isSpecifyHeight=$$v},expression:"isSpecifyHeight"}},[_vm._v("指定高度(厘米)")])],1),_c('el-input-number',{attrs:{"size":"mini","disabled":!_vm.isSpecifyHeight,"precision":2,"step":1,"min":0,"controls":false,"controls-position":"right"},model:{value:(_vm.rowHeight),callback:function ($$v) {_vm.rowHeight=$$v},expression:"rowHeight"}}),_c('span',{staticStyle:{"padding-left":"10px"}},[_vm._v("当前显示高度 "+_vm._s(_vm.rowHeightMm)+" 厘米")])],1),_c('li',{staticClass:"control-item",staticStyle:{"padding":"0 0 0 10px"}},[_c('el-checkbox',{attrs:{"disabled":!_vm.isSpecifyHeight},model:{value:(_vm.isLockRowHeight),callback:function ($$v) {_vm.isLockRowHeight=$$v},expression:"isLockRowHeight"}},[_vm._v("锁定行高")])],1),_c('li',{staticClass:"control-item"},[_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.repeatAsTitleAtPageTop),callback:function ($$v) {_vm.repeatAsTitleAtPageTop=$$v},expression:"repeatAsTitleAtPageTop"}},[_vm._v("在隔页顶端以标题行形式重复出现")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.sameLineCanAcrossPages),callback:function ($$v) {_vm.sameLineCanAcrossPages=$$v},expression:"sameLineCanAcrossPages"}},[_vm._v("同行内容能跨页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.forcedPageBreak),callback:function ($$v) {_vm.forcedPageBreak=$$v},expression:"forcedPageBreak"}},[_vm._v("强制分页")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBorders),callback:function ($$v) {_vm.printCellBorders=$$v},expression:"printCellBorders"}},[_vm._v("打印单元格边框线")])],1),_c('div',{staticStyle:{"width":"100%"}},[_c('el-checkbox',{model:{value:(_vm.printCellBg),callback:function ($$v) {_vm.printCellBg=$$v},expression:"printCellBg"}},[_vm._v("打印单元格背景")])],1)])])]),_c('footer',{staticClass:"ho-modal-footer"},[_c('el-button',{attrs:{"size":"small","type":"primary"},on:{"click":_vm.sure}},[_vm._v("确定")]),_c('el-button',{staticStyle:{"margin-left":"30px"},attrs:{"size":"small"},on:{"click":_vm.handleClose}},[_vm._v("取消")])],1)])}
|
|
231350
|
+
var TableRowPropertyvue_type_template_id_c8198e42_scoped_true_staticRenderFns = []
|
|
231247
231351
|
|
|
231248
231352
|
|
|
231249
231353
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/ts-loader/index.js??clonedRuleSet-41[0].rules[0].use[1]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=ts&
|
|
@@ -231494,10 +231598,10 @@ TableRowPoperty = __decorate([vue_class_component_esm({
|
|
|
231494
231598
|
/* harmony default export */ var TableRowPropertyvue_type_script_lang_ts_ = (TableRowPoperty);
|
|
231495
231599
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=ts&
|
|
231496
231600
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_ts_ = (TableRowPropertyvue_type_script_lang_ts_);
|
|
231497
|
-
;// 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/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
231601
|
+
;// 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/table/TableRowProperty.vue?vue&type=style&index=0&id=c8198e42&lang=scss&scoped=true&
|
|
231498
231602
|
// extracted by mini-css-extract-plugin
|
|
231499
231603
|
|
|
231500
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
231604
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=c8198e42&lang=scss&scoped=true&
|
|
231501
231605
|
|
|
231502
231606
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue
|
|
231503
231607
|
|
|
@@ -231510,11 +231614,11 @@ TableRowPoperty = __decorate([vue_class_component_esm({
|
|
|
231510
231614
|
|
|
231511
231615
|
var TableRowProperty_component = normalizeComponent(
|
|
231512
231616
|
table_TableRowPropertyvue_type_script_lang_ts_,
|
|
231513
|
-
|
|
231514
|
-
|
|
231617
|
+
TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render,
|
|
231618
|
+
TableRowPropertyvue_type_template_id_c8198e42_scoped_true_staticRenderFns,
|
|
231515
231619
|
false,
|
|
231516
231620
|
null,
|
|
231517
|
-
"
|
|
231621
|
+
"c8198e42",
|
|
231518
231622
|
null
|
|
231519
231623
|
|
|
231520
231624
|
)
|
|
@@ -233684,6 +233788,10 @@ BackgroundMixins = __decorate([vue_class_component_esm], BackgroundMixins);
|
|
|
233684
233788
|
|
|
233685
233789
|
|
|
233686
233790
|
|
|
233791
|
+
|
|
233792
|
+
|
|
233793
|
+
|
|
233794
|
+
|
|
233687
233795
|
var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
233688
233796
|
(0,inherits/* default */.Z)(FontStyleMixin, _Vue);
|
|
233689
233797
|
|
|
@@ -233696,29 +233804,127 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233696
233804
|
|
|
233697
233805
|
_this = _super.apply(this, arguments);
|
|
233698
233806
|
_this.textStyle = {
|
|
233699
|
-
font:
|
|
233807
|
+
font: '宋体',
|
|
233700
233808
|
size: 14,
|
|
233701
233809
|
bold: false,
|
|
233702
233810
|
italic: false,
|
|
233703
233811
|
script: 0,
|
|
233704
233812
|
underline: false,
|
|
233705
233813
|
strikeout: false,
|
|
233706
|
-
backColor:
|
|
233707
|
-
color:
|
|
233814
|
+
backColor: 'transparent',
|
|
233815
|
+
color: '#000000',
|
|
233708
233816
|
aligned: 'both',
|
|
233709
233817
|
lineSpace: 1.25,
|
|
233710
233818
|
canAddRow: false,
|
|
233711
233819
|
canDeleteRow: false
|
|
233712
233820
|
};
|
|
233713
|
-
_this.aligned = [
|
|
233821
|
+
_this.aligned = ['left', 'right', 'center', 'both'];
|
|
233714
233822
|
return _this;
|
|
233715
233823
|
}
|
|
233716
233824
|
|
|
233717
233825
|
(0,createClass/* default */.Z)(FontStyleMixin, [{
|
|
233826
|
+
key: "getTableNodeInfo",
|
|
233827
|
+
value: function getTableNodeInfo(nodes) {
|
|
233828
|
+
var info = null;
|
|
233829
|
+
|
|
233830
|
+
var isFn = function isFn(nodes) {
|
|
233831
|
+
if ((nodes === null || nodes === void 0 ? void 0 : nodes.parentNode) !== null && nodes !== null && nodes !== void 0 && nodes.parentNode) {
|
|
233832
|
+
if (nodes.parentNode instanceof CellNode/* CellNode */.D) {
|
|
233833
|
+
info = {
|
|
233834
|
+
cellNode: nodes.parentNode,
|
|
233835
|
+
tableNode: nodes.parentNode.parentNode,
|
|
233836
|
+
colInfo: nodes.parentNode.table.colInfos[nodes.parentNode.row.indexOf(nodes.parentNode)],
|
|
233837
|
+
rowInfo: nodes.parentNode.table.rowInfos[nodes.parentNode.table.rows.indexOf(nodes.parentNode.row)]
|
|
233838
|
+
};
|
|
233839
|
+
} else {
|
|
233840
|
+
isFn(nodes.parentNode);
|
|
233841
|
+
}
|
|
233842
|
+
}
|
|
233843
|
+
|
|
233844
|
+
return;
|
|
233845
|
+
};
|
|
233846
|
+
|
|
233847
|
+
if (nodes instanceof CellNode/* CellNode */.D) {
|
|
233848
|
+
info = {
|
|
233849
|
+
cellNode: nodes,
|
|
233850
|
+
tableNode: nodes.parentNode,
|
|
233851
|
+
colInfo: nodes.table.colInfos[nodes.row.indexOf(nodes)],
|
|
233852
|
+
rowInfo: nodes.table.rowInfos[nodes.table.rows.indexOf(nodes.row)]
|
|
233853
|
+
};
|
|
233854
|
+
} else {
|
|
233855
|
+
isFn(nodes);
|
|
233856
|
+
}
|
|
233857
|
+
|
|
233858
|
+
return info;
|
|
233859
|
+
}
|
|
233860
|
+
}, {
|
|
233861
|
+
key: "createTable",
|
|
233862
|
+
value: function createTable(hoEditorFactory, nodes) {
|
|
233863
|
+
var tableNodeInfo = this.getTableNodeInfo(nodes === null || nodes === void 0 ? void 0 : nodes.node);
|
|
233864
|
+
|
|
233865
|
+
if (tableNodeInfo) {
|
|
233866
|
+
var _dPage$drawDomLevel;
|
|
233867
|
+
|
|
233868
|
+
var dPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.caret.pageIndex];
|
|
233869
|
+
var dPageElementNode = (_dPage$drawDomLevel = dPage.drawDomLevel) === null || _dPage$drawDomLevel === void 0 ? void 0 : _dPage$drawDomLevel.domCanvas.parentElement;
|
|
233870
|
+
var tableBounds = {
|
|
233871
|
+
x: hoEditorFactory.pageProperty.leftMarginPixes + tableNodeInfo.tableNode.drawTable.x,
|
|
233872
|
+
y: 0,
|
|
233873
|
+
width: tableNodeInfo.tableNode.drawTable.dWidth,
|
|
233874
|
+
height: 0,
|
|
233875
|
+
cellWidth: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dWidth,
|
|
233876
|
+
cellHeight: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dHeight,
|
|
233877
|
+
cellY: 20,
|
|
233878
|
+
cellX: 0
|
|
233879
|
+
}; // 取当前页的表格 处理跨页情况
|
|
233880
|
+
|
|
233881
|
+
var drawPageTables = tableNodeInfo.tableNode.drawTable.drawPageTables;
|
|
233882
|
+
var drawPageCells = tableNodeInfo.cellNode.drawCell.drawPageCells;
|
|
233883
|
+
tableBounds.cellX = drawPageCells[0].x + 20;
|
|
233884
|
+
tableBounds.cellY = drawPageCells[0].y + 20;
|
|
233885
|
+
tableBounds.cellWidth = drawPageCells[0].dWidth;
|
|
233886
|
+
tableBounds.cellHeight = drawPageCells[0].dHeight;
|
|
233887
|
+
drawPageTables.forEach(function (v, key) {
|
|
233888
|
+
if (v.parent.pageIndex === dPage.drawMainDoc.pageIndex) {
|
|
233889
|
+
tableBounds.height = v.dHeight;
|
|
233890
|
+
tableBounds.y = dPage.drawMainDoc.y + v.dTop;
|
|
233891
|
+
|
|
233892
|
+
if (drawPageCells.length === drawPageTables.length) {
|
|
233893
|
+
tableBounds.cellHeight = drawPageCells[key].dHeight;
|
|
233894
|
+
}
|
|
233895
|
+
}
|
|
233896
|
+
});
|
|
233897
|
+
var aDiv = document.createElement('div');
|
|
233898
|
+
aDiv.id = 'ho_table_auxiliary';
|
|
233899
|
+
aDiv.style.position = 'absolute';
|
|
233900
|
+
aDiv.style.left = hoEditorFactory.pageProperty.leftMarginPixes - 20 + 'px';
|
|
233901
|
+
aDiv.style.top = tableBounds.y - 20 + 'px';
|
|
233902
|
+
aDiv.style.height = hoEditorFactory.pageProperty.heightPixes - tableBounds.y - hoEditorFactory.pageProperty.footerYPixes + 'px';
|
|
233903
|
+
aDiv.innerHTML = "\n <div id=\"ho_table_auxiliary_left\" style=\"height: ".concat(tableBounds.height, "px\"></div>\n <div id=\"ho_table_auxiliary_left_active\" style=\"height: ").concat(tableBounds.cellHeight, "px; top: ").concat(tableBounds.cellY, "px;\"></div>\n ");
|
|
233904
|
+
/**
|
|
233905
|
+
* 上方隐藏 只处理左侧提示
|
|
233906
|
+
`
|
|
233907
|
+
<div id="ho_table_auxiliary_top" style="width: ${tableBounds.width}px"></div>
|
|
233908
|
+
<div id="ho_table_auxiliary_top_active" style="width: ${tableBounds.cellWidth}px;left: ${tableBounds.cellX}px;"></div>
|
|
233909
|
+
`
|
|
233910
|
+
*/
|
|
233911
|
+
|
|
233912
|
+
dPageElementNode === null || dPageElementNode === void 0 ? void 0 : dPageElementNode.appendChild(aDiv);
|
|
233913
|
+
}
|
|
233914
|
+
}
|
|
233915
|
+
}, {
|
|
233718
233916
|
key: "setFontStyle",
|
|
233719
233917
|
value: function setFontStyle(hoEditorFactory) {
|
|
233720
233918
|
var _nodes$node;
|
|
233721
233919
|
|
|
233920
|
+
var elementNode = document.querySelector('#ho_table_auxiliary');
|
|
233921
|
+
|
|
233922
|
+
if (elementNode) {
|
|
233923
|
+
var _elementNode$parentEl;
|
|
233924
|
+
|
|
233925
|
+
(_elementNode$parentEl = elementNode.parentElement) === null || _elementNode$parentEl === void 0 ? void 0 : _elementNode$parentEl.removeChild(elementNode);
|
|
233926
|
+
}
|
|
233927
|
+
|
|
233722
233928
|
var vueControllers = hoEditorFactory.vueController;
|
|
233723
233929
|
var path = vueControllers.getCaretPosition();
|
|
233724
233930
|
var nodes = vueControllers.findNodebyPath(path);
|
|
@@ -233749,6 +233955,10 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233749
233955
|
};
|
|
233750
233956
|
}
|
|
233751
233957
|
|
|
233958
|
+
if (hoEditorFactory.isCanUseTableProperty && nodes) {
|
|
233959
|
+
this.createTable(hoEditorFactory, nodes);
|
|
233960
|
+
}
|
|
233961
|
+
|
|
233752
233962
|
vueControllers.getCurTextStyle();
|
|
233753
233963
|
this.textStyle = _objectSpread2({
|
|
233754
233964
|
font: vueControllers.combineStyle.font !== undefined ? vueControllers.combineStyle.font : this.textStyle.font,
|
|
@@ -234223,6 +234433,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
234223
234433
|
return null;
|
|
234224
234434
|
};
|
|
234225
234435
|
|
|
234436
|
+
nodeInfoes.isCanUseTableProperty = hoEditorFactory.isCanUseTableProperty;
|
|
234226
234437
|
this.$emit('rightClickEvent', nodeInfoes);
|
|
234227
234438
|
}
|
|
234228
234439
|
/**
|
|
@@ -240178,7 +240389,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240178
240389
|
_this$rightNode14,
|
|
240179
240390
|
_this$rightNode15,
|
|
240180
240391
|
_this$rightNode16,
|
|
240181
|
-
_this$rightNode17
|
|
240392
|
+
_this$rightNode17,
|
|
240393
|
+
_this$rightNode18;
|
|
240182
240394
|
|
|
240183
240395
|
var h = arguments[0];
|
|
240184
240396
|
return h("div", {
|
|
@@ -240298,7 +240510,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240298
240510
|
return _this4.toUpdateNodes("text", event);
|
|
240299
240511
|
}
|
|
240300
240512
|
}
|
|
240301
|
-
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$rightNode13 = this.rightNode) === null || _this$rightNode13 === void 0 ? void 0 : _this$rightNode13.rightTypeIsTable) && this.defaultTable && ((_this$rightNode14 = this.rightNode) === null || _this$rightNode14 === void 0 ? void 0 : _this$rightNode14.paintStatus) === 0 || this.emrDebug) && h("ul", {
|
|
240513
|
+
}, ["\u6587\u672C\u57DF\u5C5E\u6027"])]), (((_this$rightNode13 = this.rightNode) === null || _this$rightNode13 === void 0 ? void 0 : _this$rightNode13.rightTypeIsTable) && this.defaultTable && (((_this$rightNode14 = this.rightNode) === null || _this$rightNode14 === void 0 ? void 0 : _this$rightNode14.paintStatus) === 0 || ((_this$rightNode15 = this.rightNode) === null || _this$rightNode15 === void 0 ? void 0 : _this$rightNode15.isCanUseTableProperty)) || this.emrDebug) && h("ul", {
|
|
240302
240514
|
"class": "mouse-right-menu"
|
|
240303
240515
|
}, [h("li", {
|
|
240304
240516
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -240330,7 +240542,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240330
240542
|
return _this4.toUpdateNodes("table-cell", event);
|
|
240331
240543
|
}
|
|
240332
240544
|
}
|
|
240333
|
-
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$
|
|
240545
|
+
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode16 = this.rightNode) === null || _this$rightNode16 === void 0 ? void 0 : _this$rightNode16.rightTypeIsTable) && this.defaultTable && h("ul", {
|
|
240334
240546
|
"class": "mouse-right-menu"
|
|
240335
240547
|
}, [h("li", {
|
|
240336
240548
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -240344,7 +240556,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240344
240556
|
table: this.defaultTable,
|
|
240345
240557
|
tableProperty: this.rightNode.tableProperty
|
|
240346
240558
|
})
|
|
240347
|
-
})]), ((_this$
|
|
240559
|
+
})]), ((_this$rightNode17 = this.rightNode) === null || _this$rightNode17 === void 0 ? void 0 : _this$rightNode17.canShowComment) && h("ul", {
|
|
240348
240560
|
"class": "mouse-right-menu"
|
|
240349
240561
|
}, [h("li", {
|
|
240350
240562
|
"class": "mouse-menu-item",
|
|
@@ -240353,7 +240565,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240353
240565
|
return _this4.hideComments();
|
|
240354
240566
|
}
|
|
240355
240567
|
}
|
|
240356
|
-
}, [(_this$
|
|
240568
|
+
}, [(_this$rightNode18 = this.rightNode) !== null && _this$rightNode18 !== void 0 && _this$rightNode18.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
|
|
240357
240569
|
"class": "mouse-right-menu"
|
|
240358
240570
|
}, [h("li", {
|
|
240359
240571
|
"class": "mouse-menu-item"
|