hoeditor-web 2.0.72 → 2.0.75
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 +656 -430
- package/lib/hoeditor.css +4 -4
- package/lib/hoeditor.umd.js +656 -430
- package/lib/hoeditor.umd.min.js +2 -2
- package/package.json +1 -1
package/lib/hoeditor.common.js
CHANGED
|
@@ -13484,7 +13484,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
13484
13484
|
|
|
13485
13485
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_77__/* .HOEditorFactorys.instance */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
13486
13486
|
|
|
13487
|
-
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview) {
|
|
13487
|
+
if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_28__/* .PaintState.psReview */ .Dh.psReview && oper !== "update") {
|
|
13488
13488
|
hoEditorFactory.undoService.begin();
|
|
13489
13489
|
hoEditorFactory.undoService.add(new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .NodeStyleUndoUnit */ .o(this._hoEditorFactoryID, aRange.startPath, aRange.endPath, new _undoRedo_NodeStyleUndoUnit__WEBPACK_IMPORTED_MODULE_34__/* .Operate */ .p("reviewDelete", "string")));
|
|
13490
13490
|
hoEditorFactory.undoService.commit();
|
|
@@ -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;
|
|
14789
|
+
|
|
14790
|
+
do {
|
|
14791
|
+
var _pnode;
|
|
14788
14792
|
|
|
14789
|
-
|
|
14790
|
-
|
|
14793
|
+
if (pnode && pnode.parentNode) {
|
|
14794
|
+
pnode = pnode.parentNode;
|
|
14795
|
+
}
|
|
14791
14796
|
|
|
14792
|
-
if (
|
|
14793
|
-
|
|
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,以处理编辑元素 卡慢问题
|
|
14804
|
+
|
|
14805
|
+
if (pnode.drawCell.drawPageCells.length > 1) {
|
|
14806
|
+
pnode.table.update();
|
|
14794
14807
|
}
|
|
14795
14808
|
}
|
|
14796
14809
|
|
|
@@ -16801,10 +16814,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
16801
16814
|
var startPath = domRange.startPath;
|
|
16802
16815
|
var parentNode = hoEditorFactory.docTree.getParentNode(startPath); // if (type == 1 && imgSrc != "" && imgWidth > 0 && parentNode instanceof CellNode) {
|
|
16803
16816
|
// const cellWidth = parentNode.drawCell.dWidth;
|
|
16804
|
-
// const cellHeight = parentNode.
|
|
16817
|
+
// //const cellHeight = parentNode.drawCell.dHeight;
|
|
16805
16818
|
// if (cellWidth < imgWidth) {
|
|
16806
|
-
// imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
|
|
16807
|
-
// imgWidth =
|
|
16819
|
+
// //imgHeight = ((cellWidth - 10) / imgWidth) * cellHeight;
|
|
16820
|
+
// imgWidth = cellWidth;
|
|
16808
16821
|
// }
|
|
16809
16822
|
// }
|
|
16810
16823
|
|
|
@@ -28601,8 +28614,8 @@ var SubDocManger = __webpack_require__(24113);
|
|
|
28601
28614
|
/*
|
|
28602
28615
|
* @Author: your name
|
|
28603
28616
|
* @Date: 2020-11-11 11:04:19
|
|
28604
|
-
* @LastEditTime:
|
|
28605
|
-
* @LastEditors:
|
|
28617
|
+
* @LastEditTime: 2022-07-26 10:41:01
|
|
28618
|
+
* @LastEditors: liyanan 2441631434@qq.com
|
|
28606
28619
|
* @Description: In User Settings Edit
|
|
28607
28620
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawImageNode.ts
|
|
28608
28621
|
*/
|
|
@@ -28659,6 +28672,9 @@ var DrawImageNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
28659
28672
|
this._bitMap.y = this._imageY;
|
|
28660
28673
|
this._bitMap.x = 0;
|
|
28661
28674
|
this._bitMap.name = this.node.id;
|
|
28675
|
+
|
|
28676
|
+
this._bitMap.setBounds(0, 0, drawNode.dWidth, drawNode.dHeight);
|
|
28677
|
+
|
|
28662
28678
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
28663
28679
|
hoEditorFactory.loadImageCount++;
|
|
28664
28680
|
|
|
@@ -50846,7 +50862,7 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
50846
50862
|
|
|
50847
50863
|
var boxwidth = _this._dBox.getMeasuredWidth();
|
|
50848
50864
|
|
|
50849
|
-
_this.dWidth = textWidth + boxwidth;
|
|
50865
|
+
_this.dWidth = textWidth + boxwidth + 6;
|
|
50850
50866
|
|
|
50851
50867
|
if (node.isEditText) {
|
|
50852
50868
|
var underLineLen = 40;
|
|
@@ -50858,9 +50874,9 @@ var DrawRadioAndCheckBox = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
50858
50874
|
|
|
50859
50875
|
_this._dUnderLine = new createjs.Shape();
|
|
50860
50876
|
|
|
50861
|
-
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth, 1).lineTo(_this.dWidth + underLineLen, 1);
|
|
50877
|
+
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth - 6, 1).lineTo(_this.dWidth - 6 + underLineLen, 1);
|
|
50862
50878
|
|
|
50863
|
-
_this.dWidth = _this.dWidth + underLineLen;
|
|
50879
|
+
_this.dWidth = _this.dWidth - 6 + underLineLen;
|
|
50864
50880
|
}
|
|
50865
50881
|
|
|
50866
50882
|
_this.dHeight = height;
|
|
@@ -51110,7 +51126,7 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51110
51126
|
var textWidth = _this._dText.getMeasuredWidth();
|
|
51111
51127
|
|
|
51112
51128
|
var boxwidth = height;
|
|
51113
|
-
_this.dWidth = textWidth + boxwidth;
|
|
51129
|
+
_this.dWidth = textWidth + boxwidth + 6;
|
|
51114
51130
|
|
|
51115
51131
|
if (node.isEditText) {
|
|
51116
51132
|
var underLineLen = 40;
|
|
@@ -51122,9 +51138,9 @@ var DrawRadioAndCheckBoxPrint = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51122
51138
|
|
|
51123
51139
|
_this._dUnderLine = new createjs.Shape();
|
|
51124
51140
|
|
|
51125
|
-
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth, 1).lineTo(_this.dWidth + underLineLen, 1);
|
|
51141
|
+
_this._dUnderLine.graphics.beginStroke(textStyle.color).moveTo(_this.dWidth - 6, 1).lineTo(_this.dWidth - 6 + underLineLen, 1);
|
|
51126
51142
|
|
|
51127
|
-
_this.dWidth = _this.dWidth + underLineLen;
|
|
51143
|
+
_this.dWidth = _this.dWidth - 6 + underLineLen;
|
|
51128
51144
|
}
|
|
51129
51145
|
|
|
51130
51146
|
_this.dHeight = height;
|
|
@@ -51455,17 +51471,19 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51455
51471
|
/* harmony export */ "V": function() { return /* binding */ DrawSignNode; }
|
|
51456
51472
|
/* harmony export */ });
|
|
51457
51473
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(35671);
|
|
51458
|
-
/* harmony import */ var
|
|
51474
|
+
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(22342);
|
|
51459
51475
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(99640);
|
|
51460
51476
|
/* harmony import */ var D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(28214);
|
|
51461
51477
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(74916);
|
|
51462
51478
|
/* harmony import */ var core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_regexp_exec_js__WEBPACK_IMPORTED_MODULE_3__);
|
|
51463
51479
|
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23123);
|
|
51464
51480
|
/* harmony import */ var core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_split_js__WEBPACK_IMPORTED_MODULE_4__);
|
|
51465
|
-
/* harmony import */ var
|
|
51466
|
-
/* harmony import */ var
|
|
51467
|
-
/* harmony import */ var
|
|
51468
|
-
/* harmony import */ var
|
|
51481
|
+
/* harmony import */ var _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(15798);
|
|
51482
|
+
/* harmony import */ var _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(34450);
|
|
51483
|
+
/* harmony import */ var _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(24113);
|
|
51484
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(41005);
|
|
51485
|
+
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(72392);
|
|
51486
|
+
|
|
51469
51487
|
|
|
51470
51488
|
|
|
51471
51489
|
|
|
@@ -51479,7 +51497,7 @@ var DrawRect = /*#__PURE__*/function (_DrawContainer) {
|
|
|
51479
51497
|
/*
|
|
51480
51498
|
* @Author: your name
|
|
51481
51499
|
* @Date: 2021-09-01 16:51:49
|
|
51482
|
-
* @LastEditTime: 2022-07-
|
|
51500
|
+
* @LastEditTime: 2022-07-26 12:00:22
|
|
51483
51501
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
51484
51502
|
* @Description: In User Settings Edit
|
|
51485
51503
|
* @FilePath: \hoeditor-web\src\editor\draw\drawNode\DrawSignNode.ts
|
|
@@ -51514,7 +51532,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51514
51532
|
_this._attribute = attribute;
|
|
51515
51533
|
_this._abi02 = customProperty && customProperty.abi02 ? customProperty.abi02 : ""; //this._textStyle = cbStyle.;
|
|
51516
51534
|
|
|
51517
|
-
_this.dHeight =
|
|
51535
|
+
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight; //this.dHeight = 40;
|
|
51518
51536
|
|
|
51519
51537
|
_this._textStyle = cbStyle.getStyleKey();
|
|
51520
51538
|
|
|
@@ -51522,7 +51540,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51522
51540
|
var signArr = imgSrc.split('\n');
|
|
51523
51541
|
|
|
51524
51542
|
if (signArr.length > 1) {
|
|
51525
|
-
_this.dHeight =
|
|
51543
|
+
_this.dHeight = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(hoeditfactoryID).signHeight * signArr.length; // const textStyle = new TextStyle(hoeditfactoryID);
|
|
51526
51544
|
// let curHeight = cbStyle.getFontHeightByFontSize(cbStyle.size) * signArr.length;
|
|
51527
51545
|
// if (curHeight > this.dHeight) {
|
|
51528
51546
|
// let fontSize = cbStyle.size;
|
|
@@ -51600,7 +51618,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51600
51618
|
return _this;
|
|
51601
51619
|
}
|
|
51602
51620
|
|
|
51603
|
-
(0,
|
|
51621
|
+
(0,D_project_go_emr_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_10__/* ["default"] */ .Z)(DrawSignNode, [{
|
|
51604
51622
|
key: "type",
|
|
51605
51623
|
get: function get() {
|
|
51606
51624
|
return this._type;
|
|
@@ -51697,7 +51715,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51697
51715
|
|
|
51698
51716
|
this.clear();
|
|
51699
51717
|
var drawNode = this;
|
|
51700
|
-
var hoEditorFactory =
|
|
51718
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51701
51719
|
|
|
51702
51720
|
var drawSign = function drawSign() {
|
|
51703
51721
|
if (_this2.type === 1 || _this2.type === 3) {
|
|
@@ -51705,7 +51723,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51705
51723
|
node.type = 3;
|
|
51706
51724
|
|
|
51707
51725
|
if (_this2.imgSrc == '' && _this2.fingerPrintSrc) {
|
|
51708
|
-
var fingerscale = drawNode.fingerPosition ==
|
|
51726
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51709
51727
|
var fingerWidth = 256;
|
|
51710
51728
|
_this2._dWidth = fingerWidth * fingerscale;
|
|
51711
51729
|
node.imgWidth = _this2._dWidth;
|
|
@@ -51769,7 +51787,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51769
51787
|
var hitHeight = image.naturalHeight !== 0 ? image.naturalHeight : image.height;
|
|
51770
51788
|
var scale = hoEditorFactory.signHeight / hitHeight < 0.4 ? 0.4 : hoEditorFactory.signHeight / hitHeight > 0.7 ? 1 : hoEditorFactory.signHeight / hitHeight;
|
|
51771
51789
|
|
|
51772
|
-
if (drawNode.fingerPosition ==
|
|
51790
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center && hoEditorFactory.signHeight / hitHeight < 0.2) {
|
|
51773
51791
|
scale = hoEditorFactory.signHeight * 1.5 / hitHeight;
|
|
51774
51792
|
}
|
|
51775
51793
|
|
|
@@ -51779,24 +51797,24 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51779
51797
|
_fingerImage.onload = function () {
|
|
51780
51798
|
var fingerWidth = 256;
|
|
51781
51799
|
var fingerHeight = _fingerImage.naturalHeight !== 0 ? _fingerImage.naturalHeight : _fingerImage.height;
|
|
51782
|
-
var fingerscale = drawNode.fingerPosition ==
|
|
51800
|
+
var fingerscale = drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center ? 0.3 : 0.15;
|
|
51783
51801
|
_fingerBitmap.scaleX = fingerscale;
|
|
51784
51802
|
_fingerBitmap.scaleY = fingerscale;
|
|
51785
51803
|
_fingerBitmap.y = -fingerHeight * fingerscale;
|
|
51786
51804
|
bitmap.y = -hitHeight * scale;
|
|
51787
51805
|
|
|
51788
|
-
if (drawNode.fingerPosition ==
|
|
51806
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.left */ .d.left) {
|
|
51789
51807
|
bitmap.x = fingerWidth * fingerscale + 5;
|
|
51790
51808
|
_fingerBitmap.x = 0;
|
|
51791
51809
|
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51792
51810
|
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
51793
51811
|
_this2._dHeight = node.imgHeight;
|
|
51794
|
-
} else if (drawNode.fingerPosition ==
|
|
51812
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center) {
|
|
51795
51813
|
_fingerBitmap.x = (hitWidth * scale - fingerWidth * fingerscale) / 2;
|
|
51796
51814
|
_fingerBitmap.y = -(fingerHeight * fingerscale + currentLineHeight) / 2;
|
|
51797
51815
|
bitmap.y = -(hitHeight * scale + currentLineHeight) / 2;
|
|
51798
51816
|
node.imgHeight = hoEditorFactory.signHeight;
|
|
51799
|
-
} else if (drawNode.fingerPosition ==
|
|
51817
|
+
} else if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.right */ .d.right) {
|
|
51800
51818
|
_fingerBitmap.x = hitWidth * scale + 5;
|
|
51801
51819
|
_this2._dWidth = hitWidth * scale + 5 + fingerWidth * fingerscale;
|
|
51802
51820
|
node.imgHeight = Math.floor(Math.max(fingerHeight * fingerscale, hitHeight * scale));
|
|
@@ -51805,7 +51823,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51805
51823
|
|
|
51806
51824
|
node.imgWidth = _this2._dWidth;
|
|
51807
51825
|
|
|
51808
|
-
if (drawNode.fingerPosition ==
|
|
51826
|
+
if (drawNode.fingerPosition == _editor_dom_treeNode_SignNode__WEBPACK_IMPORTED_MODULE_6__/* .FingerPosition.center */ .d.center) {
|
|
51809
51827
|
_this2._dWidth = 0;
|
|
51810
51828
|
_this2._dHeight = 0;
|
|
51811
51829
|
}
|
|
@@ -51839,10 +51857,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51839
51857
|
if (dArea) {
|
|
51840
51858
|
var atype = hoEditorFactory.subDocManger.getHeaderFooterType(drawNode.node.getNodePath());
|
|
51841
51859
|
|
|
51842
|
-
if (atype ===
|
|
51860
|
+
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__/* .HeaderFooterType.hftHead */ .pi.hftHead && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawHeader) {
|
|
51843
51861
|
hoEditorFactory.subDocManger.copySubDocToPages(dArea, dArea.index, atype);
|
|
51844
51862
|
} else {
|
|
51845
|
-
if (atype ===
|
|
51863
|
+
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__/* .HeaderFooterType.hftFoot */ .pi.hftFoot && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawFooter) {
|
|
51846
51864
|
hoEditorFactory.subDocManger.copySubDocToPages(dArea, dArea.index, atype);
|
|
51847
51865
|
}
|
|
51848
51866
|
} // hoEditorFactory.drawTree.updateDrawTreeFirstLine();
|
|
@@ -51901,7 +51919,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51901
51919
|
_this3.addChildAt(bitmap, 0);
|
|
51902
51920
|
}
|
|
51903
51921
|
|
|
51904
|
-
var hoEditorFactory =
|
|
51922
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_8__/* .HOEditorFactorys.instance */ .b.instance().getFactory(drawNode.node.hoEditorFactoryID);
|
|
51905
51923
|
hoEditorFactory.loadImageCount++;
|
|
51906
51924
|
|
|
51907
51925
|
image.onload = function () {
|
|
@@ -51919,6 +51937,15 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51919
51937
|
|
|
51920
51938
|
var width = hitWidth * hoEditorFactory.signHeight / image.naturalHeight; //+ this._drawText.getMeasuredWidth();
|
|
51921
51939
|
|
|
51940
|
+
if (node.parentNode instanceof _editor_dom_treeNode_CellNode__WEBPACK_IMPORTED_MODULE_5__/* .CellNode */ .D) {
|
|
51941
|
+
var cellWidth = node.parentNode.drawCell.dWidth;
|
|
51942
|
+
|
|
51943
|
+
if (width > cellWidth - 5) {
|
|
51944
|
+
drawNode.dHeight = (cellWidth - 5) * hoEditorFactory.signHeight / width;
|
|
51945
|
+
width = cellWidth - 5;
|
|
51946
|
+
}
|
|
51947
|
+
}
|
|
51948
|
+
|
|
51922
51949
|
drawNode.dWidth = width;
|
|
51923
51950
|
|
|
51924
51951
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
@@ -51930,9 +51957,9 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51930
51957
|
}
|
|
51931
51958
|
|
|
51932
51959
|
if (drawNode.attribute === 2 && drawNode.abi02 !== "") {
|
|
51933
|
-
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -
|
|
51960
|
+
bitmap.setTransform(drawNode._drawAbi02.getMeasuredWidth(), -drawNode.dHeight + 2, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51934
51961
|
} else {
|
|
51935
|
-
bitmap.setTransform(0, -
|
|
51962
|
+
bitmap.setTransform(0, -drawNode.dHeight, width / hitWidth, drawNode.dHeight / hitHeight);
|
|
51936
51963
|
}
|
|
51937
51964
|
|
|
51938
51965
|
var hitArea = new createjs.Shape();
|
|
@@ -51957,10 +51984,10 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
51957
51984
|
if (dArea) {
|
|
51958
51985
|
var atype = hoEditorFactory.subDocManger.getHeaderFooterType(_this3.node.getNodePath());
|
|
51959
51986
|
|
|
51960
|
-
if (atype ===
|
|
51987
|
+
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__/* .HeaderFooterType.hftHead */ .pi.hftHead && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawHeader) {
|
|
51961
51988
|
hoEditorFactory.subDocManger.copySubDocToPages(dArea, dArea.index, atype);
|
|
51962
51989
|
} else {
|
|
51963
|
-
if (atype ===
|
|
51990
|
+
if (atype === _editor_SubDocManger__WEBPACK_IMPORTED_MODULE_7__/* .HeaderFooterType.hftFoot */ .pi.hftFoot && dArea != hoEditorFactory.drawTree.drawPages[dArea.index].drawFooter) {
|
|
51964
51991
|
hoEditorFactory.subDocManger.copySubDocToPages(dArea, dArea.index, atype);
|
|
51965
51992
|
}
|
|
51966
51993
|
}
|
|
@@ -52099,7 +52126,7 @@ var DrawSignNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
52099
52126
|
}]);
|
|
52100
52127
|
|
|
52101
52128
|
return DrawSignNode;
|
|
52102
|
-
}(
|
|
52129
|
+
}(_DrawCombineNode__WEBPACK_IMPORTED_MODULE_9__/* .DrawCombineNode */ .o);
|
|
52103
52130
|
|
|
52104
52131
|
/***/ }),
|
|
52105
52132
|
|
|
@@ -199511,7 +199538,7 @@ var es_function_name = __webpack_require__(68309);
|
|
|
199511
199538
|
// EXTERNAL MODULE: external {"commonjs":"vue","commonjs2":"vue","root":"Vue"}
|
|
199512
199539
|
var external_commonjs_vue_commonjs2_vue_root_Vue_ = __webpack_require__(13797);
|
|
199513
199540
|
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=
|
|
199541
|
+
;// 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
199542
|
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
199543
|
var staticRenderFns = []
|
|
199517
199544
|
|
|
@@ -200437,9 +200464,9 @@ function isPromise(obj) {
|
|
|
200437
200464
|
return obj instanceof Promise || (obj && typeof obj.then === 'function');
|
|
200438
200465
|
}
|
|
200439
200466
|
|
|
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
|
|
200467
|
+
;// 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&
|
|
200468
|
+
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)}
|
|
200469
|
+
var HoDocvue_type_template_id_0d9b6522_staticRenderFns = []
|
|
200443
200470
|
|
|
200444
200471
|
|
|
200445
200472
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.string.includes.js
|
|
@@ -202295,11 +202322,11 @@ var HoToPage_component = normalizeComponent(
|
|
|
202295
202322
|
/* harmony default export */ var backToPage = (HoToPage);
|
|
202296
202323
|
// EXTERNAL MODULE: ./src/plugins/util.ts
|
|
202297
202324
|
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
|
|
202325
|
+
;// 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&
|
|
202326
|
+
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
202327
|
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
|
|
202328
|
+
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()])}
|
|
202329
|
+
var PoperSelectvue_type_template_id_5dfdd78c_scoped_true_staticRenderFns = []
|
|
202303
202330
|
|
|
202304
202331
|
|
|
202305
202332
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.assign.js
|
|
@@ -205269,7 +205296,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205269
205296
|
this.poperSelectList.forEach(function (v, index) {
|
|
205270
205297
|
v.selected = false;
|
|
205271
205298
|
|
|
205272
|
-
if (v.id == value) {
|
|
205299
|
+
if (v.id == value.id) {
|
|
205273
205300
|
item = v;
|
|
205274
205301
|
selectItemIndex = index;
|
|
205275
205302
|
}
|
|
@@ -205333,6 +205360,22 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205333
205360
|
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
205334
205361
|
if (this.isCanSearch) this.searchList(this.input);
|
|
205335
205362
|
}
|
|
205363
|
+
} // 全选
|
|
205364
|
+
|
|
205365
|
+
}, {
|
|
205366
|
+
key: "allSelect",
|
|
205367
|
+
value: function allSelect() {
|
|
205368
|
+
var _this8 = this;
|
|
205369
|
+
|
|
205370
|
+
this.selectedList = [];
|
|
205371
|
+
this.poperSelectList.forEach(function (v) {
|
|
205372
|
+
v.selected = true;
|
|
205373
|
+
|
|
205374
|
+
_this8.selectedList.push(v);
|
|
205375
|
+
|
|
205376
|
+
_this8.selectedIds.push(v.id);
|
|
205377
|
+
});
|
|
205378
|
+
this.currentList = (0,toConsumableArray/* default */.Z)(this.poperSelectList);
|
|
205336
205379
|
} // 取消选中
|
|
205337
205380
|
|
|
205338
205381
|
}, {
|
|
@@ -205357,7 +205400,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205357
205400
|
}, {
|
|
205358
205401
|
key: "sureSelect",
|
|
205359
205402
|
value: function sureSelect() {
|
|
205360
|
-
var
|
|
205403
|
+
var _this9 = this;
|
|
205361
205404
|
|
|
205362
205405
|
var text = "";
|
|
205363
205406
|
var keyValue = "";
|
|
@@ -205421,7 +205464,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205421
205464
|
currentPoperNode.text = text;
|
|
205422
205465
|
currentPoperNode.keyValue = keyValue;
|
|
205423
205466
|
Object.keys(this.textParam).map(function (v) {
|
|
205424
|
-
|
|
205467
|
+
_this9.textParam[v] = currentPoperNode[v];
|
|
205425
205468
|
});
|
|
205426
205469
|
|
|
205427
205470
|
if (this.textParam.downListProperty.allowMultiSelected) {
|
|
@@ -205434,7 +205477,7 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205434
205477
|
|
|
205435
205478
|
if (selected.length === 1 && selected[0].text.indexOf("<元素>") !== -1) {
|
|
205436
205479
|
setTimeout(function () {
|
|
205437
|
-
|
|
205480
|
+
_this9.handleClose();
|
|
205438
205481
|
}, 200);
|
|
205439
205482
|
} else {
|
|
205440
205483
|
this.handleClose();
|
|
@@ -205476,10 +205519,10 @@ var PoperSelectModal = /*#__PURE__*/function (_Mixins) {
|
|
|
205476
205519
|
}, {
|
|
205477
205520
|
key: "handleClose",
|
|
205478
205521
|
value: function handleClose() {
|
|
205479
|
-
var
|
|
205522
|
+
var _this10 = this;
|
|
205480
205523
|
|
|
205481
205524
|
this.$nextTick(function () {
|
|
205482
|
-
return
|
|
205525
|
+
return _this10.$emit("poperClose");
|
|
205483
205526
|
});
|
|
205484
205527
|
}
|
|
205485
205528
|
}, {
|
|
@@ -205521,10 +205564,10 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205521
205564
|
/* harmony default export */ var PoperSelectvue_type_script_lang_ts_ = (PoperSelectModal);
|
|
205522
205565
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=script&lang=ts&
|
|
205523
205566
|
/* 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=
|
|
205567
|
+
;// 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
205568
|
// extracted by mini-css-extract-plugin
|
|
205526
205569
|
|
|
205527
|
-
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=
|
|
205570
|
+
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue?vue&type=style&index=0&id=5dfdd78c&lang=scss&scoped=true&
|
|
205528
205571
|
|
|
205529
205572
|
;// CONCATENATED MODULE: ./src/components/controls/poperSelect/PoperSelect.vue
|
|
205530
205573
|
|
|
@@ -205537,11 +205580,11 @@ PoperSelectModal = __decorate([vue_class_component_esm({
|
|
|
205537
205580
|
|
|
205538
205581
|
var PoperSelect_component = normalizeComponent(
|
|
205539
205582
|
poperSelect_PoperSelectvue_type_script_lang_ts_,
|
|
205540
|
-
|
|
205541
|
-
|
|
205583
|
+
PoperSelectvue_type_template_id_5dfdd78c_scoped_true_render,
|
|
205584
|
+
PoperSelectvue_type_template_id_5dfdd78c_scoped_true_staticRenderFns,
|
|
205542
205585
|
false,
|
|
205543
205586
|
null,
|
|
205544
|
-
"
|
|
205587
|
+
"5dfdd78c",
|
|
205545
205588
|
null
|
|
205546
205589
|
|
|
205547
205590
|
)
|
|
@@ -207494,7 +207537,7 @@ var SignNode = __webpack_require__(34450);
|
|
|
207494
207537
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207495
207538
|
var ParagraphNode = __webpack_require__(14208);
|
|
207496
207539
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207497
|
-
/* harmony default export */ var version = ('2.0.
|
|
207540
|
+
/* harmony default export */ var version = ('2.0.75');
|
|
207498
207541
|
;// 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
207542
|
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
207543
|
var PoperTipTextvue_type_template_id_3fa4e4d3_scoped_true_staticRenderFns = []
|
|
@@ -208210,10 +208253,11 @@ var HoDoc = /*#__PURE__*/function (_Vue) {
|
|
|
208210
208253
|
_callback(undefined);
|
|
208211
208254
|
}
|
|
208212
208255
|
}
|
|
208213
|
-
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression) {
|
|
208256
|
+
} else if (node.parentNode instanceof CellNode/* CellNode */.D && node.nodeType !== BaseNode/* NodeType.ntMedicalExpression */.Jq.ntMedicalExpression && node.nodeType !== BaseNode/* NodeType.ntImage */.Jq.ntImage) {
|
|
208214
208257
|
this.handleCellNode(node, node.parentNode, pageIndex); // } else if (node instanceof GestationNode) {
|
|
208215
208258
|
// this.setDblclickNodeValue(node, 'dblclick');
|
|
208216
208259
|
} else if (node instanceof ImageNode/* ImageNode */.H) {
|
|
208260
|
+
this.poperType = '';
|
|
208217
208261
|
this.$emit('dblNodeClick', {
|
|
208218
208262
|
node: this.getCurrentSelectNode,
|
|
208219
208263
|
type: 'edit-image'
|
|
@@ -208443,8 +208487,8 @@ HoDoc = __decorate([vue_class_component_esm({
|
|
|
208443
208487
|
|
|
208444
208488
|
var HoDoc_component = normalizeComponent(
|
|
208445
208489
|
components_HoDocvue_type_script_lang_ts_,
|
|
208446
|
-
|
|
208447
|
-
|
|
208490
|
+
HoDocvue_type_template_id_0d9b6522_render,
|
|
208491
|
+
HoDocvue_type_template_id_0d9b6522_staticRenderFns,
|
|
208448
208492
|
false,
|
|
208449
208493
|
null,
|
|
208450
208494
|
null,
|
|
@@ -210842,6 +210886,20 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210842
210886
|
}, {
|
|
210843
210887
|
key: "TransHTMLTABLE",
|
|
210844
210888
|
value: function TransHTMLTABLE(jnode, style) {
|
|
210889
|
+
var pnode = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.normalize().startPath);
|
|
210890
|
+
|
|
210891
|
+
if (pnode instanceof TableNode/* TableNode */.Fh || pnode instanceof CellNode/* CellNode */.D) {
|
|
210892
|
+
message_box_default().alert("不能在表格中插入表格");
|
|
210893
|
+
|
|
210894
|
+
return [];
|
|
210895
|
+
}
|
|
210896
|
+
|
|
210897
|
+
if (pnode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
210898
|
+
message_box_default().alert("不能在文本域中插入表格");
|
|
210899
|
+
|
|
210900
|
+
return [];
|
|
210901
|
+
}
|
|
210902
|
+
|
|
210845
210903
|
var styleobj = this.mergestyle(jquery_default()(jnode).attr("style") || "", style); //1.取出表格信息
|
|
210846
210904
|
|
|
210847
210905
|
var tconstents = jquery_default()(jnode).children();
|
|
@@ -210863,7 +210921,6 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210863
210921
|
} //2.创建表格节点
|
|
210864
210922
|
|
|
210865
210923
|
|
|
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
210924
|
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
210925
|
|
|
210869
210926
|
this.SetTableProperty(jnode, lntable); //4:生成表格内容
|
|
@@ -215241,6 +215298,7 @@ var StagePosition = __webpack_require__(57674);
|
|
|
215241
215298
|
|
|
215242
215299
|
|
|
215243
215300
|
|
|
215301
|
+
|
|
215244
215302
|
|
|
215245
215303
|
|
|
215246
215304
|
var VueController = /*#__PURE__*/function () {
|
|
@@ -215345,8 +215403,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215345
215403
|
aCombineStyle = arrStyles[0].combineStyle;
|
|
215346
215404
|
}
|
|
215347
215405
|
|
|
215348
|
-
if (aCombineStyle.font !== firstCombineStyle.font && curTextStyle.font !==
|
|
215349
|
-
curTextStyle.font =
|
|
215406
|
+
if (aCombineStyle.font !== firstCombineStyle.font && curTextStyle.font !== '') {
|
|
215407
|
+
curTextStyle.font = '';
|
|
215350
215408
|
}
|
|
215351
215409
|
|
|
215352
215410
|
if (aCombineStyle.size !== firstCombineStyle.size && curTextStyle.size !== 0) {
|
|
@@ -215373,12 +215431,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215373
215431
|
curTextStyle.strikeout = false;
|
|
215374
215432
|
}
|
|
215375
215433
|
|
|
215376
|
-
if (aCombineStyle.color !== firstCombineStyle.color && curTextStyle.color !==
|
|
215377
|
-
curTextStyle.color =
|
|
215434
|
+
if (aCombineStyle.color !== firstCombineStyle.color && curTextStyle.color !== '') {
|
|
215435
|
+
curTextStyle.color = '';
|
|
215378
215436
|
}
|
|
215379
215437
|
|
|
215380
|
-
if (aCombineStyle.backColor !== firstCombineStyle.backColor && curTextStyle.backColor !==
|
|
215381
|
-
curTextStyle.backColor =
|
|
215438
|
+
if (aCombineStyle.backColor !== firstCombineStyle.backColor && curTextStyle.backColor !== '') {
|
|
215439
|
+
curTextStyle.backColor = '';
|
|
215382
215440
|
}
|
|
215383
215441
|
|
|
215384
215442
|
if (aCombineStyle.creatorIndex !== firstCombineStyle.creatorIndex && curTextStyle.creatorIndex !== -1) {
|
|
@@ -215389,8 +215447,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215389
215447
|
curTextStyle.deleterIndex = -1;
|
|
215390
215448
|
}
|
|
215391
215449
|
|
|
215392
|
-
if (aCombineStyle.commentID !== firstCombineStyle.commentID && curTextStyle.commentID !==
|
|
215393
|
-
curTextStyle.commentID =
|
|
215450
|
+
if (aCombineStyle.commentID !== firstCombineStyle.commentID && curTextStyle.commentID !== '0') {
|
|
215451
|
+
curTextStyle.commentID = '0';
|
|
215394
215452
|
}
|
|
215395
215453
|
}
|
|
215396
215454
|
}
|
|
@@ -215480,7 +215538,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215480
215538
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontFormat */.y.fontFormat);
|
|
215481
215539
|
|
|
215482
215540
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215483
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215541
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontFormat', _curDomRange, fontName);
|
|
215484
215542
|
}
|
|
215485
215543
|
}
|
|
215486
215544
|
/**
|
|
@@ -215522,7 +215580,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215522
215580
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSize */.y.fontSize);
|
|
215523
215581
|
|
|
215524
215582
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215525
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215583
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontSize', _curDomRange, size.toString());
|
|
215526
215584
|
}
|
|
215527
215585
|
}
|
|
215528
215586
|
/**
|
|
@@ -215541,7 +215599,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215541
215599
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSizeEnlarge */.y.fontSizeEnlarge);
|
|
215542
215600
|
|
|
215543
215601
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215544
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange(
|
|
215602
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange('fontSizeEnlarge', _curDomRange);
|
|
215545
215603
|
}
|
|
215546
215604
|
}
|
|
215547
215605
|
/**
|
|
@@ -215560,7 +215618,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215560
215618
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSizeDecrease */.y.fontSizeDecrease);
|
|
215561
215619
|
|
|
215562
215620
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215563
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange(
|
|
215621
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChange('fontSizeDecrease', _curDomRange);
|
|
215564
215622
|
}
|
|
215565
215623
|
}
|
|
215566
215624
|
/**
|
|
@@ -215580,7 +215638,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215580
215638
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSuperScript */.y.fontSuperScript);
|
|
215581
215639
|
|
|
215582
215640
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215583
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215641
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontSuperScript', _curDomRange, isHaveScript);
|
|
215584
215642
|
}
|
|
215585
215643
|
}
|
|
215586
215644
|
/**
|
|
@@ -215600,7 +215658,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215600
215658
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontSubScript */.y.fontSubScript);
|
|
215601
215659
|
|
|
215602
215660
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215603
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215661
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontSubScript', _curDomRange, isHaveScript);
|
|
215604
215662
|
}
|
|
215605
215663
|
}
|
|
215606
215664
|
/**
|
|
@@ -215620,7 +215678,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215620
215678
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontBold */.y.fontBold);
|
|
215621
215679
|
|
|
215622
215680
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215623
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215681
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontBold', _curDomRange, isHaveBold);
|
|
215624
215682
|
}
|
|
215625
215683
|
}
|
|
215626
215684
|
/**
|
|
@@ -215640,7 +215698,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215640
215698
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontItalic */.y.fontItalic);
|
|
215641
215699
|
|
|
215642
215700
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215643
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215701
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontItalic', _curDomRange, isHaveItalic);
|
|
215644
215702
|
}
|
|
215645
215703
|
}
|
|
215646
215704
|
/**
|
|
@@ -215660,7 +215718,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215660
215718
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontUnderline */.y.fontUnderline);
|
|
215661
215719
|
|
|
215662
215720
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215663
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215721
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontUnderline', _curDomRange, isHaveUnderline);
|
|
215664
215722
|
}
|
|
215665
215723
|
}
|
|
215666
215724
|
/**
|
|
@@ -215680,7 +215738,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215680
215738
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontStrikeout */.y.fontStrikeout);
|
|
215681
215739
|
|
|
215682
215740
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215683
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool(
|
|
215741
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeBool('fontStrikeout', _curDomRange, isHaveStrikeout);
|
|
215684
215742
|
}
|
|
215685
215743
|
}
|
|
215686
215744
|
/**
|
|
@@ -215700,7 +215758,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215700
215758
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontColor */.y.fontColor);
|
|
215701
215759
|
|
|
215702
215760
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215703
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215761
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontColor', _curDomRange, fontcolor);
|
|
215704
215762
|
}
|
|
215705
215763
|
}
|
|
215706
215764
|
/**
|
|
@@ -215720,7 +215778,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215720
215778
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daModifyStyle */.gk.daModifyStyle, startPath, endPath, NodeChangingEvent/* OperType.fontBackColor */.y.fontBackColor);
|
|
215721
215779
|
|
|
215722
215780
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215723
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr(
|
|
215781
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.fontStyleChangeStr('fontBackColor', _curDomRange, backColor);
|
|
215724
215782
|
}
|
|
215725
215783
|
} //----------------------------段落---------------------------------
|
|
215726
215784
|
|
|
@@ -215740,7 +215798,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215740
215798
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedLeft */.y.alignedLeft);
|
|
215741
215799
|
|
|
215742
215800
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215743
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215801
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedLeft', _curDomRange);
|
|
215744
215802
|
}
|
|
215745
215803
|
}
|
|
215746
215804
|
/**
|
|
@@ -215759,7 +215817,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215759
215817
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedCenter */.y.alignedCenter);
|
|
215760
215818
|
|
|
215761
215819
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215762
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215820
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedCenter', _curDomRange);
|
|
215763
215821
|
}
|
|
215764
215822
|
}
|
|
215765
215823
|
/**
|
|
@@ -215778,7 +215836,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215778
215836
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedRight */.y.alignedRight);
|
|
215779
215837
|
|
|
215780
215838
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215781
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215839
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedRight', _curDomRange);
|
|
215782
215840
|
}
|
|
215783
215841
|
}
|
|
215784
215842
|
/**
|
|
@@ -215797,7 +215855,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215797
215855
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.alignedBothEnds */.y.alignedBothEnds);
|
|
215798
215856
|
|
|
215799
215857
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215800
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215858
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('alignedBothEnds', _curDomRange);
|
|
215801
215859
|
}
|
|
215802
215860
|
}
|
|
215803
215861
|
/**
|
|
@@ -215816,7 +215874,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215816
215874
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.addIndent */.y.addIndent);
|
|
215817
215875
|
|
|
215818
215876
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215819
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215877
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('addIndent', _curDomRange);
|
|
215820
215878
|
}
|
|
215821
215879
|
}
|
|
215822
215880
|
/**
|
|
@@ -215835,7 +215893,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215835
215893
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.decreaseIndent */.y.decreaseIndent);
|
|
215836
215894
|
|
|
215837
215895
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215838
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215896
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('decreaseIndent', _curDomRange);
|
|
215839
215897
|
}
|
|
215840
215898
|
}
|
|
215841
215899
|
/**
|
|
@@ -215855,7 +215913,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
215855
215913
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daParaStyleChange */.gk.daParaStyleChange, startPath, endPath, NodeChangingEvent/* OperType.setLineHeight */.y.setLineHeight);
|
|
215856
215914
|
|
|
215857
215915
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
215858
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange(
|
|
215916
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.paraStyleChange('lineHeight', _curDomRange, lineHeight);
|
|
215859
215917
|
}
|
|
215860
215918
|
} //----------------------------表格---------------------------------
|
|
215861
215919
|
|
|
@@ -216154,7 +216212,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216154
216212
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216155
216213
|
|
|
216156
216214
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216157
|
-
hoEditorFactory.docController.insertMenstrualHistory(
|
|
216215
|
+
hoEditorFactory.docController.insertMenstrualHistory('add', _curDomRange, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
216158
216216
|
}
|
|
216159
216217
|
}
|
|
216160
216218
|
}
|
|
@@ -216179,7 +216237,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216179
216237
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216180
216238
|
|
|
216181
216239
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216182
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory(
|
|
216240
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertMenstrualHistory('update', _curDomRange, expressionStyle, menseDays, cycleDays, menarcheAge, menoPauseAge);
|
|
216183
216241
|
}
|
|
216184
216242
|
}
|
|
216185
216243
|
/**
|
|
@@ -216209,7 +216267,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216209
216267
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216210
216268
|
|
|
216211
216269
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216212
|
-
hoEditorFactory.docController.insertPupilMap(
|
|
216270
|
+
hoEditorFactory.docController.insertPupilMap('add', _curDomRange, value1, value2, value3, value4, value5, value6, value7);
|
|
216213
216271
|
}
|
|
216214
216272
|
}
|
|
216215
216273
|
}
|
|
@@ -216236,7 +216294,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216236
216294
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216237
216295
|
|
|
216238
216296
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216239
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap(
|
|
216297
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPupilMap('update', _curDomRange, value1, value2, value3, value4, value5, value6, value7);
|
|
216240
216298
|
}
|
|
216241
216299
|
}
|
|
216242
216300
|
/**
|
|
@@ -216268,7 +216326,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216268
216326
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216269
216327
|
|
|
216270
216328
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216271
|
-
hoEditorFactory.docController.insertLightLocation(
|
|
216329
|
+
hoEditorFactory.docController.insertLightLocation('add', _curDomRange, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
216272
216330
|
}
|
|
216273
216331
|
}
|
|
216274
216332
|
}
|
|
@@ -216297,7 +216355,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216297
216355
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216298
216356
|
|
|
216299
216357
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216300
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation(
|
|
216358
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertLightLocation('update', _curDomRange, value1, value2, value3, value4, value5, value6, value7, value8, value9);
|
|
216301
216359
|
}
|
|
216302
216360
|
}
|
|
216303
216361
|
/**
|
|
@@ -216326,7 +216384,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216326
216384
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216327
216385
|
|
|
216328
216386
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216329
|
-
hoEditorFactory.docController.insertFetalHeartMap(
|
|
216387
|
+
hoEditorFactory.docController.insertFetalHeartMap('add', _curDomRange, value1, value2, value3, value4, value5, value6);
|
|
216330
216388
|
}
|
|
216331
216389
|
}
|
|
216332
216390
|
}
|
|
@@ -216352,7 +216410,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216352
216410
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216353
216411
|
|
|
216354
216412
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216355
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap(
|
|
216413
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertFetalHeartMap('update', _curDomRange, value1, value2, value3, value4, value5, value6);
|
|
216356
216414
|
}
|
|
216357
216415
|
}
|
|
216358
216416
|
/**
|
|
@@ -216379,7 +216437,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216379
216437
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216380
216438
|
|
|
216381
216439
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216382
|
-
hoEditorFactory.docController.insertPermanentTeethMap(
|
|
216440
|
+
hoEditorFactory.docController.insertPermanentTeethMap('add', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216383
216441
|
}
|
|
216384
216442
|
}
|
|
216385
216443
|
}
|
|
@@ -216404,7 +216462,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216404
216462
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216405
216463
|
|
|
216406
216464
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216407
|
-
hoEditorFactory.docController.insertPermanentTeethMap(
|
|
216465
|
+
hoEditorFactory.docController.insertPermanentTeethMap('update', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216408
216466
|
}
|
|
216409
216467
|
}
|
|
216410
216468
|
/**
|
|
@@ -216431,7 +216489,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216431
216489
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertMedicalExpression */.y.insertMedicalExpression);
|
|
216432
216490
|
|
|
216433
216491
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216434
|
-
hoEditorFactory.docController.insertPrimaryTeethMap(
|
|
216492
|
+
hoEditorFactory.docController.insertPrimaryTeethMap('add', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216435
216493
|
}
|
|
216436
216494
|
}
|
|
216437
216495
|
}
|
|
@@ -216456,7 +216514,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216456
216514
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateMedicalExpression */.y.updateMedicalExpression);
|
|
216457
216515
|
|
|
216458
216516
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
216459
|
-
hoEditorFactory.docController.insertPrimaryTeethMap(
|
|
216517
|
+
hoEditorFactory.docController.insertPrimaryTeethMap('update', _curDomRange, topLeftSelected, topRightSelected, bottomLeftSelected, bottomRightSelected);
|
|
216460
216518
|
}
|
|
216461
216519
|
}
|
|
216462
216520
|
/**
|
|
@@ -216515,7 +216573,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216515
216573
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertTextInputField */.y.insertTextInputField);
|
|
216516
216574
|
|
|
216517
216575
|
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(
|
|
216576
|
+
var path = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField('add', _curDomRange, valuesObject);
|
|
216519
216577
|
return path;
|
|
216520
216578
|
}
|
|
216521
216579
|
|
|
@@ -216575,7 +216633,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216575
216633
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateTextInputField */.y.updateTextInputField);
|
|
216576
216634
|
|
|
216577
216635
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216578
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField(
|
|
216636
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertTextInputField('update', _curDomRange, valuesObject);
|
|
216579
216637
|
}
|
|
216580
216638
|
}
|
|
216581
216639
|
/**
|
|
@@ -216627,7 +216685,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216627
216685
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertBarcode */.y.insertBarcode);
|
|
216628
216686
|
|
|
216629
216687
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216630
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode(
|
|
216688
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('add', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
216631
216689
|
}
|
|
216632
216690
|
}
|
|
216633
216691
|
/**
|
|
@@ -216652,7 +216710,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216652
216710
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateBarcode */.y.updateBarcode);
|
|
216653
216711
|
|
|
216654
216712
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216655
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode(
|
|
216713
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertBarcode('update', _curDomRange, id, textContent, isDisplayText, imagePath, width, height, bandDataSource);
|
|
216656
216714
|
}
|
|
216657
216715
|
}
|
|
216658
216716
|
/**
|
|
@@ -216685,7 +216743,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216685
216743
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertQrcode */.y.insertQrcode);
|
|
216686
216744
|
|
|
216687
216745
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216688
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode(
|
|
216746
|
+
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
216747
|
}
|
|
216690
216748
|
}
|
|
216691
216749
|
/**
|
|
@@ -216717,7 +216775,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216717
216775
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateQrcode */.y.updateQrcode);
|
|
216718
216776
|
|
|
216719
216777
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216720
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertQrcode(
|
|
216778
|
+
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
216779
|
}
|
|
216722
216780
|
}
|
|
216723
216781
|
/**
|
|
@@ -216752,7 +216810,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216752
216810
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertRadioAndCheckBox */.y.insertRadioAndCheckBox);
|
|
216753
216811
|
|
|
216754
216812
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216755
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox(
|
|
216813
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('add', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216756
216814
|
}
|
|
216757
216815
|
}
|
|
216758
216816
|
/**
|
|
@@ -216786,7 +216844,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216786
216844
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateRadioAndCheckBox */.y.updateRadioAndCheckBox);
|
|
216787
216845
|
|
|
216788
216846
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216789
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox(
|
|
216847
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertRadioAndCheckBox('update', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216790
216848
|
}
|
|
216791
216849
|
}
|
|
216792
216850
|
/**
|
|
@@ -216850,7 +216908,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216850
216908
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertDateTime */.y.insertDateTime);
|
|
216851
216909
|
|
|
216852
216910
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216853
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime(
|
|
216911
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('add', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216854
216912
|
}
|
|
216855
216913
|
}
|
|
216856
216914
|
/**
|
|
@@ -216881,7 +216939,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216881
216939
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateDateTime */.y.updateDateTime);
|
|
216882
216940
|
|
|
216883
216941
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216884
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime(
|
|
216942
|
+
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDateTime('update', _curDomRange, valuesObject, HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.curStyleIndex);
|
|
216885
216943
|
}
|
|
216886
216944
|
}
|
|
216887
216945
|
/**
|
|
@@ -216915,7 +216973,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216915
216973
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertDownList */.y.insertDownList);
|
|
216916
216974
|
|
|
216917
216975
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216918
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList(
|
|
216976
|
+
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
216977
|
}
|
|
216920
216978
|
}
|
|
216921
216979
|
/**
|
|
@@ -216948,7 +217006,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
216948
217006
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.updateDownList */.y.updateDownList);
|
|
216949
217007
|
|
|
216950
217008
|
if (HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docTree.changing(changingEvent)) {
|
|
216951
|
-
HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertDownList(
|
|
217009
|
+
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
217010
|
}
|
|
216953
217011
|
}
|
|
216954
217012
|
/**
|
|
@@ -217010,7 +217068,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217010
217068
|
value: function openLocalFilesTest(file, callback) {
|
|
217011
217069
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217012
217070
|
hoEditorFactory.docController.initBlankDoc();
|
|
217013
|
-
hoEditorFactory.structureConvert.openFile(file, callback,
|
|
217071
|
+
hoEditorFactory.structureConvert.openFile(file, callback, 'test');
|
|
217014
217072
|
}
|
|
217015
217073
|
}, {
|
|
217016
217074
|
key: "uploadDataSet",
|
|
@@ -217055,29 +217113,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217055
217113
|
this.setDocCommentIsHandle();
|
|
217056
217114
|
|
|
217057
217115
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
217058
|
-
var ret =
|
|
217116
|
+
var ret = '';
|
|
217059
217117
|
|
|
217060
|
-
if (type ===
|
|
217061
|
-
ret = hoEditorFactory.structureConvert.doc2Xml(
|
|
217118
|
+
if (type === 'xml') {
|
|
217119
|
+
ret = hoEditorFactory.structureConvert.doc2Xml('xml', undefined, true);
|
|
217062
217120
|
}
|
|
217063
217121
|
|
|
217064
|
-
if (type ===
|
|
217122
|
+
if (type === 'plain') {
|
|
217065
217123
|
ret = hoEditorFactory.structureConvert.doc2Text();
|
|
217066
217124
|
}
|
|
217067
217125
|
|
|
217068
|
-
if (type ===
|
|
217069
|
-
this.saveAsPDF(
|
|
217126
|
+
if (type === 'html') {
|
|
217127
|
+
this.saveAsPDF('', 'html'); // ret = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Html();
|
|
217070
217128
|
}
|
|
217071
217129
|
|
|
217072
|
-
if (type ===
|
|
217073
|
-
ret = hoEditorFactory.structureConvert.doc2Xml(
|
|
217130
|
+
if (type === 'json') {
|
|
217131
|
+
ret = hoEditorFactory.structureConvert.doc2Xml('json', undefined, true);
|
|
217074
217132
|
ret = pretty_data.pd.json(ret);
|
|
217075
217133
|
}
|
|
217076
217134
|
|
|
217077
217135
|
return ret;
|
|
217078
217136
|
}
|
|
217079
217137
|
|
|
217080
|
-
return
|
|
217138
|
+
return '';
|
|
217081
217139
|
}
|
|
217082
217140
|
/**
|
|
217083
217141
|
* 文档标题
|
|
@@ -217123,7 +217181,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217123
217181
|
}, {
|
|
217124
217182
|
key: "getDocXml",
|
|
217125
217183
|
value: function getDocXml(beauty, isValidStyle, clearSign) {
|
|
217126
|
-
var ret = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml(
|
|
217184
|
+
var ret = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).structureConvert.doc2Xml('xml', beauty, isValidStyle, clearSign);
|
|
217127
217185
|
return ret;
|
|
217128
217186
|
}
|
|
217129
217187
|
/**
|
|
@@ -217282,11 +217340,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217282
217340
|
value: function newFile(type) {
|
|
217283
217341
|
var hoeditfactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217284
217342
|
|
|
217285
|
-
if (type ===
|
|
217343
|
+
if (type === 'caseHistory') {
|
|
217286
217344
|
hoeditfactory.docTree.docProperty.type = DocTree/* EmrType.etCaseHistory */.Fr.etCaseHistory;
|
|
217287
217345
|
}
|
|
217288
217346
|
|
|
217289
|
-
if (type ===
|
|
217347
|
+
if (type === 'form') {
|
|
217290
217348
|
hoeditfactory.docTree.docProperty.type = DocTree/* EmrType.etForm */.Fr.etForm;
|
|
217291
217349
|
}
|
|
217292
217350
|
|
|
@@ -217439,7 +217497,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217439
217497
|
var drawPage = hoEditorFactory.drawTree.drawPages[i];
|
|
217440
217498
|
|
|
217441
217499
|
for (var j = 0; j < drawPage.selectContainer.children.length; j++) {
|
|
217442
|
-
if (drawPage.selectContainer.children[j].name && drawPage.selectContainer.children[j].name.indexOf(
|
|
217500
|
+
if (drawPage.selectContainer.children[j].name && drawPage.selectContainer.children[j].name.indexOf('mask') >= 0) {
|
|
217443
217501
|
drawPage.selectContainer.children.splice(j, 1);
|
|
217444
217502
|
}
|
|
217445
217503
|
}
|
|
@@ -217461,22 +217519,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217461
217519
|
var selectContainer = drawPage.selectContainer;
|
|
217462
217520
|
|
|
217463
217521
|
for (var k = 0; k < selectContainer.children.length; k++) {
|
|
217464
|
-
if (selectContainer.children[k].name && selectContainer.children[k].name.indexOf(
|
|
217522
|
+
if (selectContainer.children[k].name && selectContainer.children[k].name.indexOf('mask') >= 0) {
|
|
217465
217523
|
selectContainer.children.splice(k, 1);
|
|
217466
217524
|
}
|
|
217467
217525
|
}
|
|
217468
217526
|
|
|
217469
217527
|
var mask = new createjs.Shape();
|
|
217470
217528
|
mask.graphics.clear();
|
|
217471
|
-
mask.graphics.beginFill(
|
|
217529
|
+
mask.graphics.beginFill('#000000').drawRect(0, 0, pageWidth, height).closePath();
|
|
217472
217530
|
mask.x = 0;
|
|
217473
217531
|
mask.y = 0;
|
|
217474
217532
|
mask.alpha = 0.1;
|
|
217475
217533
|
|
|
217476
217534
|
if (height < pageHeight) {
|
|
217477
|
-
mask.name =
|
|
217535
|
+
mask.name = 'mask0';
|
|
217478
217536
|
} else {
|
|
217479
|
-
mask.name =
|
|
217537
|
+
mask.name = 'mask' + (index + 1).toString();
|
|
217480
217538
|
}
|
|
217481
217539
|
|
|
217482
217540
|
selectContainer.addChild(mask); //selectContainer.stage.update();
|
|
@@ -217596,7 +217654,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217596
217654
|
if (np) {
|
|
217597
217655
|
return np;
|
|
217598
217656
|
} else {
|
|
217599
|
-
message_box_default().alert(
|
|
217657
|
+
message_box_default().alert('根据路径' + path + '未找到文档节点');
|
|
217600
217658
|
}
|
|
217601
217659
|
}
|
|
217602
217660
|
/**
|
|
@@ -217661,7 +217719,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217661
217719
|
key: "deleteText",
|
|
217662
217720
|
value: function deleteText() {
|
|
217663
217721
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
217664
|
-
hoEditorFactory.docController.keyBoardDelete(
|
|
217722
|
+
hoEditorFactory.docController.keyBoardDelete('Backspace');
|
|
217665
217723
|
}
|
|
217666
217724
|
/**
|
|
217667
217725
|
* 获取文本样式表
|
|
@@ -217823,7 +217881,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217823
217881
|
}
|
|
217824
217882
|
};
|
|
217825
217883
|
|
|
217826
|
-
if (scope ===
|
|
217884
|
+
if (scope === 'header') {
|
|
217827
217885
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217828
217886
|
|
|
217829
217887
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -217833,12 +217891,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217833
217891
|
}
|
|
217834
217892
|
}
|
|
217835
217893
|
|
|
217836
|
-
if (scope ===
|
|
217894
|
+
if (scope === 'main') {
|
|
217837
217895
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
217838
217896
|
iteratesNodes(mainNodes);
|
|
217839
217897
|
}
|
|
217840
217898
|
|
|
217841
|
-
if (scope ===
|
|
217899
|
+
if (scope === 'footer') {
|
|
217842
217900
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
217843
217901
|
|
|
217844
217902
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -217848,7 +217906,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217848
217906
|
}
|
|
217849
217907
|
}
|
|
217850
217908
|
|
|
217851
|
-
if (scope ===
|
|
217909
|
+
if (scope === 'all') {
|
|
217852
217910
|
var _headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217853
217911
|
|
|
217854
217912
|
for (var _h = 0; _h < _headerDocTree.length; _h++) {
|
|
@@ -217904,7 +217962,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217904
217962
|
}
|
|
217905
217963
|
};
|
|
217906
217964
|
|
|
217907
|
-
if (scope ===
|
|
217965
|
+
if (scope === 'header') {
|
|
217908
217966
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217909
217967
|
|
|
217910
217968
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -217914,12 +217972,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217914
217972
|
}
|
|
217915
217973
|
}
|
|
217916
217974
|
|
|
217917
|
-
if (scope ===
|
|
217975
|
+
if (scope === 'main') {
|
|
217918
217976
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
217919
217977
|
iteratesNodes(mainNodes);
|
|
217920
217978
|
}
|
|
217921
217979
|
|
|
217922
|
-
if (scope ===
|
|
217980
|
+
if (scope === 'footer') {
|
|
217923
217981
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
217924
217982
|
|
|
217925
217983
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -217929,7 +217987,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217929
217987
|
}
|
|
217930
217988
|
}
|
|
217931
217989
|
|
|
217932
|
-
if (scope ===
|
|
217990
|
+
if (scope === 'all') {
|
|
217933
217991
|
var _headerDocTree2 = hoEditorFactory.subDocManger.headerDocTree;
|
|
217934
217992
|
|
|
217935
217993
|
for (var _h2 = 0; _h2 < _headerDocTree2.length; _h2++) {
|
|
@@ -217989,7 +218047,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217989
218047
|
}
|
|
217990
218048
|
};
|
|
217991
218049
|
|
|
217992
|
-
if (scope ===
|
|
218050
|
+
if (scope === 'header') {
|
|
217993
218051
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
217994
218052
|
|
|
217995
218053
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -218001,12 +218059,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218001
218059
|
}
|
|
218002
218060
|
}
|
|
218003
218061
|
|
|
218004
|
-
if (scope ===
|
|
218062
|
+
if (scope === 'main') {
|
|
218005
218063
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
218006
218064
|
iteratesNodes(mainNodes);
|
|
218007
218065
|
}
|
|
218008
218066
|
|
|
218009
|
-
if (scope ===
|
|
218067
|
+
if (scope === 'footer') {
|
|
218010
218068
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
218011
218069
|
|
|
218012
218070
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -218018,7 +218076,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218018
218076
|
}
|
|
218019
218077
|
}
|
|
218020
218078
|
|
|
218021
|
-
if (scope ===
|
|
218079
|
+
if (scope === 'all') {
|
|
218022
218080
|
var _headerDocTree3 = hoEditorFactory.subDocManger.headerDocTree;
|
|
218023
218081
|
|
|
218024
218082
|
for (var _h3 = 0; _h3 < _headerDocTree3.length; _h3++) {
|
|
@@ -218082,7 +218140,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218082
218140
|
}
|
|
218083
218141
|
};
|
|
218084
218142
|
|
|
218085
|
-
if (scope ===
|
|
218143
|
+
if (scope === 'header') {
|
|
218086
218144
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
218087
218145
|
|
|
218088
218146
|
for (var h = 0; h < headerDocTree.length; h++) {
|
|
@@ -218094,12 +218152,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218094
218152
|
}
|
|
218095
218153
|
}
|
|
218096
218154
|
|
|
218097
|
-
if (scope ===
|
|
218155
|
+
if (scope === 'main') {
|
|
218098
218156
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
218099
218157
|
iteratesNodes(mainNodes);
|
|
218100
218158
|
}
|
|
218101
218159
|
|
|
218102
|
-
if (scope ===
|
|
218160
|
+
if (scope === 'footer') {
|
|
218103
218161
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
218104
218162
|
|
|
218105
218163
|
for (var f = 0; f < footerDocTree.length; f++) {
|
|
@@ -218111,7 +218169,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218111
218169
|
}
|
|
218112
218170
|
}
|
|
218113
218171
|
|
|
218114
|
-
if (scope ===
|
|
218172
|
+
if (scope === 'all') {
|
|
218115
218173
|
var _headerDocTree4 = hoEditorFactory.subDocManger.headerDocTree;
|
|
218116
218174
|
|
|
218117
218175
|
for (var _h4 = 0; _h4 < _headerDocTree4.length; _h4++) {
|
|
@@ -218260,7 +218318,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218260
218318
|
var styles = json.root.styles; //获取xml的所有文本样式
|
|
218261
218319
|
|
|
218262
218320
|
var defaultFontStyles = Array(styles.defaultFont);
|
|
218263
|
-
var textStyles = hoEditorFactory.structureConvert.getDocStyles(
|
|
218321
|
+
var textStyles = hoEditorFactory.structureConvert.getDocStyles('font', defaultFontStyles);
|
|
218264
218322
|
var fontStyles = styles.font ? styles.font : styles.fontStyle;
|
|
218265
218323
|
|
|
218266
218324
|
if (fontStyles) {
|
|
@@ -218276,13 +218334,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218276
218334
|
}
|
|
218277
218335
|
}
|
|
218278
218336
|
|
|
218279
|
-
var fontStylesArr = hoEditorFactory.structureConvert.getDocStyles(
|
|
218337
|
+
var fontStylesArr = hoEditorFactory.structureConvert.getDocStyles('font', fontStyles);
|
|
218280
218338
|
textStyles = textStyles.concat(fontStylesArr);
|
|
218281
218339
|
} //获取xml的所有段落样式
|
|
218282
218340
|
|
|
218283
218341
|
|
|
218284
218342
|
var defaultParaStyles = Array(styles.defaultPara);
|
|
218285
|
-
var parasStyles = hoEditorFactory.structureConvert.getDocStyles(
|
|
218343
|
+
var parasStyles = hoEditorFactory.structureConvert.getDocStyles('para', defaultParaStyles);
|
|
218286
218344
|
var paraStyles = styles.para ? styles.para : styles.paraStyle;
|
|
218287
218345
|
|
|
218288
218346
|
if (paraStyles) {
|
|
@@ -218290,7 +218348,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218290
218348
|
paraStyles = Array(paraStyles);
|
|
218291
218349
|
}
|
|
218292
218350
|
|
|
218293
|
-
var paraStylesArr = hoEditorFactory.structureConvert.getDocStyles(
|
|
218351
|
+
var paraStylesArr = hoEditorFactory.structureConvert.getDocStyles('para', paraStyles);
|
|
218294
218352
|
parasStyles = parasStyles.concat(paraStylesArr);
|
|
218295
218353
|
} //更新xml各节点在当前文档的样式索引
|
|
218296
218354
|
|
|
@@ -218299,13 +218357,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218299
218357
|
for (var _i2 = 0; _i2 < nodes.length; _i2++) {
|
|
218300
218358
|
var node = nodes[_i2];
|
|
218301
218359
|
|
|
218302
|
-
if (node.nodeType ===
|
|
218360
|
+
if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
|
|
218303
218361
|
if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
|
|
218304
218362
|
iteratesNode(node.childNodes.node);
|
|
218305
218363
|
}
|
|
218306
218364
|
}
|
|
218307
218365
|
|
|
218308
|
-
if (node.nodeType ===
|
|
218366
|
+
if (node.nodeType === 'ntTable') {
|
|
218309
218367
|
if (node.childNodes && node.childNodes.item) {
|
|
218310
218368
|
var items = node.childNodes.item;
|
|
218311
218369
|
|
|
@@ -218332,7 +218390,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218332
218390
|
if (node.styleIndex) {
|
|
218333
218391
|
var styleIndex = Number(node.styleIndex);
|
|
218334
218392
|
|
|
218335
|
-
if (node.nodeType ===
|
|
218393
|
+
if (node.nodeType === 'ntParagraph') {
|
|
218336
218394
|
//段落样式
|
|
218337
218395
|
var paragraph = parasStyles[styleIndex];
|
|
218338
218396
|
node.styleIndex = hoEditorFactory.docTree.styleCompare(paragraph);
|
|
@@ -218350,7 +218408,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218350
218408
|
return nodes;
|
|
218351
218409
|
};
|
|
218352
218410
|
|
|
218353
|
-
if (area ===
|
|
218411
|
+
if (area === 'header') {
|
|
218354
218412
|
var headersArray = json.root.headers.header;
|
|
218355
218413
|
|
|
218356
218414
|
if (headersArray.length === undefined) {
|
|
@@ -218366,7 +218424,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218366
218424
|
|
|
218367
218425
|
iteratesNode(headerNodes);
|
|
218368
218426
|
return [headerNodes, docId];
|
|
218369
|
-
} else if (area ===
|
|
218427
|
+
} else if (area === 'footer') {
|
|
218370
218428
|
var footersArray = json.root.footers.footer;
|
|
218371
218429
|
|
|
218372
218430
|
if (footersArray.length === undefined) {
|
|
@@ -218436,29 +218494,29 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218436
218494
|
var jsonData = JSON.stringify(areaNodes[0]);
|
|
218437
218495
|
var docId = areaNodes[1];
|
|
218438
218496
|
var pageCount = hoEditorFactory.drawTree.drawPages.length;
|
|
218439
|
-
var rootPath =
|
|
218497
|
+
var rootPath = 'main';
|
|
218440
218498
|
|
|
218441
|
-
if (area ===
|
|
218442
|
-
rootPath =
|
|
218499
|
+
if (area === 'header') {
|
|
218500
|
+
rootPath = 'header/' + hoEditorFactory.subDocManger.headerDocTree.length.toString();
|
|
218443
218501
|
}
|
|
218444
218502
|
|
|
218445
|
-
if (area ===
|
|
218446
|
-
rootPath =
|
|
218503
|
+
if (area === 'footer') {
|
|
218504
|
+
rootPath = 'footer/' + hoEditorFactory.subDocManger.footerDocTree.length.toString();
|
|
218447
218505
|
}
|
|
218448
218506
|
|
|
218449
218507
|
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData, rootPath, isNewPage);
|
|
218450
218508
|
|
|
218451
|
-
if (isDelBlockLine && area ===
|
|
218509
|
+
if (isDelBlockLine && area === 'main' && nodes.length > 1 && nodes[nodes.length - 1] instanceof ParagraphNode/* ParagraphNode */.C && !(nodes[nodes.length - 2] instanceof TableNode/* TableNode */.Fh)) {
|
|
218452
218510
|
nodes.splice(nodes.length - 1, 1);
|
|
218453
218511
|
} //console.log(nodes);
|
|
218454
218512
|
|
|
218455
218513
|
|
|
218456
|
-
if (area !==
|
|
218514
|
+
if (area !== 'main') {
|
|
218457
218515
|
var arrNodes = new Array();
|
|
218458
218516
|
|
|
218459
|
-
if (area ===
|
|
218517
|
+
if (area === 'header') {
|
|
218460
218518
|
var headerIndex = hoEditorFactory.subDocManger.headerDocTree.length;
|
|
218461
|
-
var arootPath =
|
|
218519
|
+
var arootPath = 'header/' + headerIndex.toString();
|
|
218462
218520
|
var dHeader = new DrawHeader/* DrawHeader */.g(this._hoEditorFactoryID, arootPath, pageCount);
|
|
218463
218521
|
hoEditorFactory.drawPageTree.drawHeaders.push(dHeader);
|
|
218464
218522
|
hoEditorFactory.drawTree.headerDNodes.push(new Array());
|
|
@@ -218466,11 +218524,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218466
218524
|
arrNodes.push(paragraphNode);
|
|
218467
218525
|
paragraphNode.rootPath = arootPath; //paragraphNode.rootNodes = arrNodes;
|
|
218468
218526
|
|
|
218469
|
-
var newHeader = new SubDocManger/* SubDocTree */.UJ(pageCount,
|
|
218527
|
+
var newHeader = new SubDocManger/* SubDocTree */.UJ(pageCount, '');
|
|
218470
218528
|
newHeader.subDocNodes = arrNodes;
|
|
218471
218529
|
hoEditorFactory.subDocManger.headerDocTree.push(newHeader);
|
|
218472
218530
|
hoEditorFactory.drawTree.initAreaFirstNode(arrNodes, hoEditorFactory.drawTree.headerDNodes[headerIndex]);
|
|
218473
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(arootPath +
|
|
218531
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(arootPath + '/0');
|
|
218474
218532
|
|
|
218475
218533
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
218476
218534
|
newHeader.subDocNodes[0].paraNo = nodes[0].paraNo;
|
|
@@ -218479,11 +218537,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218479
218537
|
}
|
|
218480
218538
|
|
|
218481
218539
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
218482
|
-
} else if (area ===
|
|
218540
|
+
} else if (area === 'footer') {
|
|
218483
218541
|
//hoEditorFactory.docTree.footerNodes[pageCount] = nodes;
|
|
218484
218542
|
var footerIndex = hoEditorFactory.subDocManger.footerDocTree.length;
|
|
218485
218543
|
|
|
218486
|
-
var _arootPath =
|
|
218544
|
+
var _arootPath = 'footer/' + footerIndex.toString();
|
|
218487
218545
|
|
|
218488
218546
|
var dFooter = new DrawFooter/* DrawFooter */.d(this._hoEditorFactoryID, _arootPath, pageCount);
|
|
218489
218547
|
hoEditorFactory.drawPageTree.drawFooters.push(dFooter);
|
|
@@ -218494,11 +218552,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218494
218552
|
arrNodes.push(_paragraphNode);
|
|
218495
218553
|
_paragraphNode.rootPath = _arootPath; //paragraphNode.rootNodes = arrNodes;
|
|
218496
218554
|
|
|
218497
|
-
var newFooter = new SubDocManger/* SubDocTree */.UJ(pageCount,
|
|
218555
|
+
var newFooter = new SubDocManger/* SubDocTree */.UJ(pageCount, '');
|
|
218498
218556
|
newFooter.subDocNodes = arrNodes;
|
|
218499
218557
|
hoEditorFactory.subDocManger.footerDocTree.push(newFooter);
|
|
218500
218558
|
hoEditorFactory.drawTree.initAreaFirstNode(arrNodes, hoEditorFactory.drawTree.footerDNodes[footerIndex]);
|
|
218501
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(rootPath +
|
|
218559
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(rootPath + '/0');
|
|
218502
218560
|
|
|
218503
218561
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
218504
218562
|
newFooter.subDocNodes[0].paraNo = nodes[0].paraNo;
|
|
@@ -218531,7 +218589,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218531
218589
|
var nodePath = hoEditorFactory.docTree.getNodeLastPath(mainNodes[mainNodes.length - 1]);
|
|
218532
218590
|
|
|
218533
218591
|
if (!printAsSinglePage && hoEditorFactory.docTree.mainNodes.length === 1) {
|
|
218534
|
-
hoEditorFactory.docTree.mainNodes[0].docId = docId && docId !==
|
|
218592
|
+
hoEditorFactory.docTree.mainNodes[0].docId = docId && docId !== '' ? docId : hoEditorFactory.gernerateCode.generateID('DocId');
|
|
218535
218593
|
|
|
218536
218594
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
218537
218595
|
hoEditorFactory.docTree.mainNodes[0].paraNo = nodes[0].paraNo;
|
|
@@ -218542,7 +218600,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218542
218600
|
|
|
218543
218601
|
if (printAsSinglePage) {
|
|
218544
218602
|
nodes[0].printAsSinglePage = printAsSinglePage;
|
|
218545
|
-
nodes[0].docId = docId && docId !==
|
|
218603
|
+
nodes[0].docId = docId && docId !== '' ? docId : hoEditorFactory.gernerateCode.generateID('DocId');
|
|
218546
218604
|
}
|
|
218547
218605
|
|
|
218548
218606
|
hoEditorFactory.docTree.curDomRange.setSamePath(nodePath);
|
|
@@ -218564,11 +218622,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218564
218622
|
switch (_context.prev = _context.next) {
|
|
218565
218623
|
case 0:
|
|
218566
218624
|
if (!printAsSinglePage) {
|
|
218567
|
-
this.insertXml(xml,
|
|
218625
|
+
this.insertXml(xml, 'main', undefined, isDelBlockLine);
|
|
218568
218626
|
} else {
|
|
218569
|
-
this.insertXml(xml,
|
|
218570
|
-
this.insertXml(xml,
|
|
218571
|
-
this.insertXml(xml,
|
|
218627
|
+
this.insertXml(xml, 'header');
|
|
218628
|
+
this.insertXml(xml, 'footer');
|
|
218629
|
+
this.insertXml(xml, 'main', printAsSinglePage, isDelBlockLine);
|
|
218572
218630
|
}
|
|
218573
218631
|
|
|
218574
218632
|
resolve && resolve();
|
|
@@ -218633,52 +218691,52 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218633
218691
|
var textStyleStr = JSON.stringify(defaultFontStyle);
|
|
218634
218692
|
var textStyle = JSON.parse(textStyleStr);
|
|
218635
218693
|
|
|
218636
|
-
if (typeof style[
|
|
218637
|
-
textStyle[
|
|
218694
|
+
if (typeof style['size'] !== 'undefined' && style['size'] !== defaultFontStyle.size.toString()) {
|
|
218695
|
+
textStyle['size'] = style['size'];
|
|
218638
218696
|
}
|
|
218639
218697
|
|
|
218640
|
-
if (typeof style[
|
|
218641
|
-
textStyle[
|
|
218698
|
+
if (typeof style['creatorIndex'] !== 'undefined' && style['creatorIndex'] !== defaultFontStyle.creatorIndex.toString()) {
|
|
218699
|
+
textStyle['creatorIndex'] = style['creatorIndex'];
|
|
218642
218700
|
}
|
|
218643
218701
|
|
|
218644
|
-
if (typeof style[
|
|
218645
|
-
textStyle[
|
|
218702
|
+
if (typeof style['deleterIndex'] !== 'undefined' && style['deleterIndex'] !== defaultFontStyle.deleterIndex.toString()) {
|
|
218703
|
+
textStyle['deleterIndex'] = style['deleterIndex'];
|
|
218646
218704
|
}
|
|
218647
218705
|
|
|
218648
|
-
if (typeof style[
|
|
218649
|
-
textStyle[
|
|
218706
|
+
if (typeof style['bold'] !== 'undefined' && style['bold'] !== defaultFontStyle.bold.toString()) {
|
|
218707
|
+
textStyle['bold'] = style['bold'];
|
|
218650
218708
|
}
|
|
218651
218709
|
|
|
218652
|
-
if (typeof style[
|
|
218653
|
-
textStyle[
|
|
218710
|
+
if (typeof style['italic'] !== 'undefined' && style['italic'] !== defaultFontStyle.italic.toString()) {
|
|
218711
|
+
textStyle['italic'] = style['italic'];
|
|
218654
218712
|
}
|
|
218655
218713
|
|
|
218656
|
-
if (typeof style[
|
|
218657
|
-
textStyle[
|
|
218714
|
+
if (typeof style['script'] !== 'undefined' && style['script'] !== defaultFontStyle.script.toString()) {
|
|
218715
|
+
textStyle['script'] = style['script'];
|
|
218658
218716
|
}
|
|
218659
218717
|
|
|
218660
|
-
if (typeof style[
|
|
218661
|
-
textStyle[
|
|
218718
|
+
if (typeof style['strikeout'] !== 'undefined' && style['strikeout'] !== defaultFontStyle.strikeout.toString()) {
|
|
218719
|
+
textStyle['strikeout'] = style['strikeout'];
|
|
218662
218720
|
}
|
|
218663
218721
|
|
|
218664
|
-
if (typeof style[
|
|
218665
|
-
textStyle[
|
|
218722
|
+
if (typeof style['underline'] !== 'undefined' && style['underline'] !== defaultFontStyle.underline.toString()) {
|
|
218723
|
+
textStyle['underline'] = style['underline'];
|
|
218666
218724
|
}
|
|
218667
218725
|
|
|
218668
|
-
if (typeof style[
|
|
218669
|
-
textStyle[
|
|
218726
|
+
if (typeof style['color'] !== 'undefined' && style['color'] !== defaultFontStyle.color) {
|
|
218727
|
+
textStyle['color'] = style['color'];
|
|
218670
218728
|
}
|
|
218671
218729
|
|
|
218672
|
-
if (typeof style[
|
|
218673
|
-
textStyle[
|
|
218730
|
+
if (typeof style['font'] !== 'undefined' && style['font'] !== defaultFontStyle.font) {
|
|
218731
|
+
textStyle['font'] = style['font'];
|
|
218674
218732
|
}
|
|
218675
218733
|
|
|
218676
|
-
if (typeof style[
|
|
218677
|
-
textStyle[
|
|
218734
|
+
if (typeof style['backColor'] !== 'undefined' && style['backColor'] !== defaultFontStyle.backColor) {
|
|
218735
|
+
textStyle['backColor'] = style['backColor'];
|
|
218678
218736
|
}
|
|
218679
218737
|
|
|
218680
|
-
if (typeof style[
|
|
218681
|
-
textStyle[
|
|
218738
|
+
if (typeof style['commentID'] !== 'undefined' && style['commentID'] !== defaultFontStyle.commentID) {
|
|
218739
|
+
textStyle['commentID'] = style['commentID'];
|
|
218682
218740
|
}
|
|
218683
218741
|
|
|
218684
218742
|
return textStyle;
|
|
@@ -218691,32 +218749,32 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218691
218749
|
arrFontString.push(JSON.stringify(mergeObject.styles.defaultFont));
|
|
218692
218750
|
arrParaString.push(JSON.stringify(mergeObject.styles.defaultPara));
|
|
218693
218751
|
tdefault = JSON.parse(arrFontString[0]);
|
|
218694
|
-
tdefault[
|
|
218695
|
-
tdefault[
|
|
218696
|
-
tdefault[
|
|
218697
|
-
tdefault[
|
|
218698
|
-
tdefault[
|
|
218699
|
-
tdefault[
|
|
218700
|
-
tdefault[
|
|
218701
|
-
tdefault[
|
|
218752
|
+
tdefault['size'] = tdefault['size'].toString();
|
|
218753
|
+
tdefault['creatorIndex'] = tdefault['creatorIndex'].toString();
|
|
218754
|
+
tdefault['deleterIndex'] = tdefault['deleterIndex'].toString();
|
|
218755
|
+
tdefault['bold'] = tdefault['bold'].toString();
|
|
218756
|
+
tdefault['italic'] = tdefault['italic'].toString();
|
|
218757
|
+
tdefault['script'] = tdefault['script'].toString();
|
|
218758
|
+
tdefault['strikeout'] = tdefault['strikeout'].toString();
|
|
218759
|
+
tdefault['underline'] = tdefault['underline'].toString();
|
|
218702
218760
|
arrFontString[0] = JSON.stringify(tdefault);
|
|
218703
218761
|
pdefault = JSON.parse(arrParaString[0]);
|
|
218704
|
-
pdefault[
|
|
218705
|
-
pdefault[
|
|
218706
|
-
pdefault[
|
|
218707
|
-
pdefault[
|
|
218708
|
-
pdefault[
|
|
218709
|
-
pdefault[
|
|
218710
|
-
pdefault[
|
|
218762
|
+
pdefault['charSpace'] = pdefault['charSpace'].toString();
|
|
218763
|
+
pdefault['lineSpace'] = pdefault['lineSpace'].toString();
|
|
218764
|
+
pdefault['leftMarginMm'] = pdefault['leftMarginMm'].toString();
|
|
218765
|
+
pdefault['topMarginMm'] = pdefault['topMarginMm'].toString();
|
|
218766
|
+
pdefault['bottomMarginMm'] = pdefault['bottomMarginMm'].toString();
|
|
218767
|
+
pdefault['rightMarginMm'] = pdefault['rightMarginMm'].toString();
|
|
218768
|
+
pdefault['align'] = pdefault['align'].toString();
|
|
218711
218769
|
arrParaString[0] = JSON.stringify(pdefault);
|
|
218712
218770
|
|
|
218713
|
-
if (mergeObject.styles.fontStyle ==
|
|
218771
|
+
if (mergeObject.styles.fontStyle == '') {
|
|
218714
218772
|
mergeObject.styles.fontStyle = [];
|
|
218715
218773
|
} else if (!Array.isArray(mergeObject.styles.fontStyle)) {
|
|
218716
218774
|
mergeObject.styles.fontStyle = [mergeObject.styles.fontStyle];
|
|
218717
218775
|
}
|
|
218718
218776
|
|
|
218719
|
-
if (mergeObject.styles.paraStyle ==
|
|
218777
|
+
if (mergeObject.styles.paraStyle == '') {
|
|
218720
218778
|
mergeObject.styles.paraStyle = [];
|
|
218721
218779
|
} else if (!Array.isArray(mergeObject.styles.paraStyle)) {
|
|
218722
218780
|
mergeObject.styles.paraStyle = [mergeObject.styles.paraStyle];
|
|
@@ -218764,7 +218822,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218764
218822
|
var node = nodes[s];
|
|
218765
218823
|
|
|
218766
218824
|
if (node.styleIndex) {
|
|
218767
|
-
if (node.nodeType ==
|
|
218825
|
+
if (node.nodeType == 'ntParagraph') {
|
|
218768
218826
|
var paraIndex = parseInt(node.styleIndex);
|
|
218769
218827
|
var newpIndex = paraStyleMap.get(paraIndex);
|
|
218770
218828
|
|
|
@@ -218809,13 +218867,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218809
218867
|
}
|
|
218810
218868
|
}
|
|
218811
218869
|
|
|
218812
|
-
if (node.nodeType ===
|
|
218870
|
+
if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
|
|
218813
218871
|
if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
|
|
218814
218872
|
updateNodesStyle(node.childNodes.node, fontStyleMap, paraStyleMap);
|
|
218815
218873
|
}
|
|
218816
218874
|
}
|
|
218817
218875
|
|
|
218818
|
-
if (node.nodeType ===
|
|
218876
|
+
if (node.nodeType === 'ntTable') {
|
|
218819
218877
|
if (node.childNodes && node.childNodes.item) {
|
|
218820
218878
|
var items = node.childNodes.item;
|
|
218821
218879
|
|
|
@@ -218860,7 +218918,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218860
218918
|
|
|
218861
218919
|
var jobjFontStyle = [];
|
|
218862
218920
|
|
|
218863
|
-
if (fontStyle !=
|
|
218921
|
+
if (fontStyle != '') {
|
|
218864
218922
|
if (!Array.isArray(fontStyle)) {
|
|
218865
218923
|
jobjFontStyle = [fontStyle];
|
|
218866
218924
|
} else {
|
|
@@ -218904,16 +218962,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218904
218962
|
var paraStyleStr = JSON.stringify(defaultParaStyle);
|
|
218905
218963
|
var paraStyle = JSON.parse(paraStyleStr);
|
|
218906
218964
|
|
|
218907
|
-
if (typeof style[
|
|
218908
|
-
paraStyle[
|
|
218965
|
+
if (typeof style['charSpace'] !== 'undefined' && style['charSpace'] !== defaultParaStyle.charSpace.toString()) {
|
|
218966
|
+
paraStyle['charSpace'] = style['charSpace'];
|
|
218909
218967
|
}
|
|
218910
218968
|
|
|
218911
|
-
if (typeof style[
|
|
218912
|
-
paraStyle[
|
|
218969
|
+
if (typeof style['lineSpace'] !== 'undefined' && style['lineSpace'] !== defaultParaStyle.lineSpace.toString()) {
|
|
218970
|
+
paraStyle['lineSpace'] = style['lineSpace'];
|
|
218913
218971
|
}
|
|
218914
218972
|
|
|
218915
|
-
if (typeof style[
|
|
218916
|
-
paraStyle[
|
|
218973
|
+
if (typeof style['align'] !== 'undefined' && style['align'] !== defaultParaStyle.align.toString()) {
|
|
218974
|
+
paraStyle['align'] = style['align'];
|
|
218917
218975
|
}
|
|
218918
218976
|
|
|
218919
218977
|
return paraStyle;
|
|
@@ -218921,7 +218979,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218921
218979
|
|
|
218922
218980
|
var jobjParaStyle = [];
|
|
218923
218981
|
|
|
218924
|
-
if (paraStyle !=
|
|
218982
|
+
if (paraStyle != '') {
|
|
218925
218983
|
if (paraStyle && !Array.isArray(paraStyle)) {
|
|
218926
218984
|
jobjParaStyle = [paraStyle];
|
|
218927
218985
|
} else {
|
|
@@ -218955,7 +219013,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218955
219013
|
if (list[i][0]) {
|
|
218956
219014
|
updateNodesStyle(xmlobj.header[0].subDocNodes, fontStyleMap, paraStyleMap); //生成随机数ID用于合并病历新起一页时,找到对应的页眉页脚
|
|
218957
219015
|
|
|
218958
|
-
var strID = hoEditorFactory.gernerateCode.generateID(
|
|
219016
|
+
var strID = hoEditorFactory.gernerateCode.generateID('cb');
|
|
218959
219017
|
xmlobj.header[0].beginPath = strID;
|
|
218960
219018
|
xmlobj.header[0].pageIndex = -1;
|
|
218961
219019
|
mergeObject.header.push(xmlobj.header[0]);
|
|
@@ -218963,7 +219021,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218963
219021
|
xmlobj.footer[0].beginPath = strID;
|
|
218964
219022
|
xmlobj.footer[0].pageIndex = -1;
|
|
218965
219023
|
mergeObject.footer.push(xmlobj.footer[0]);
|
|
218966
|
-
xmlobj.main[0].printAsSinglePage =
|
|
219024
|
+
xmlobj.main[0].printAsSinglePage = 'true';
|
|
218967
219025
|
xmlobj.main[0].docId = strID;
|
|
218968
219026
|
mergeObject.pageSettingsTree.push(xmlobj.pageSettings);
|
|
218969
219027
|
hoEditorFactory.printStatus.pageSettingMap.set(strID, {
|
|
@@ -219026,7 +219084,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219026
219084
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219027
219085
|
var firstHead = hoEditorFactory.subDocManger.getHeaderPageNodes()[0];
|
|
219028
219086
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(firstHead[firstHead.length - 1]);
|
|
219029
|
-
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID,
|
|
219087
|
+
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'header/0/0', endPath);
|
|
219030
219088
|
var json = hoEditorFactory.structureNode.Copy(domRange, null);
|
|
219031
219089
|
var image = this.getSubDocImg(hoEditorFactory.drawTree.activePageIndex.index, SubDocManger/* HeaderFooterType.hftHead */.pi.hftHead);
|
|
219032
219090
|
return [json, image];
|
|
@@ -219051,7 +219109,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219051
219109
|
index = 0;
|
|
219052
219110
|
headerNode = hoEditorFactory.subDocManger.headerDocTree[index].subDocNodes;
|
|
219053
219111
|
epath = hoEditorFactory.docTree.getNodeLastPath(headerNode[headerNode.length - 1]);
|
|
219054
|
-
sPath =
|
|
219112
|
+
sPath = 'header/' + index.toString() + '/0';
|
|
219055
219113
|
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, sPath, epath);
|
|
219056
219114
|
_context3.next = 8;
|
|
219057
219115
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
@@ -219113,7 +219171,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219113
219171
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219114
219172
|
var firstFoot = hoEditorFactory.subDocManger.getFooterPageNodes()[0];
|
|
219115
219173
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(firstFoot[firstFoot.length - 1]);
|
|
219116
|
-
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID,
|
|
219174
|
+
var domRange = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'footer/0/0', endPath);
|
|
219117
219175
|
var json = hoEditorFactory.structureNode.Copy(domRange, null);
|
|
219118
219176
|
var image = this.getSubDocImg(hoEditorFactory.drawTree.activePageIndex.index, SubDocManger/* HeaderFooterType.hftFoot */.pi.hftFoot);
|
|
219119
219177
|
return [json, image];
|
|
@@ -219137,12 +219195,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219137
219195
|
footerNodes = hoEditorFactory.subDocManger.getFooterPageNodes();
|
|
219138
219196
|
footerNode = footerNodes[0];
|
|
219139
219197
|
epath = hoEditorFactory.docTree.getNodeLastPath(footerNode[footerNode.length - 1]);
|
|
219140
|
-
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID,
|
|
219198
|
+
range = new DomRange/* DomRange */.a(this._hoEditorFactoryID, 'footer/0/0', epath);
|
|
219141
219199
|
_context4.next = 7;
|
|
219142
219200
|
return hoEditorFactory.docController.deleteRange(range, true);
|
|
219143
219201
|
|
|
219144
219202
|
case 7:
|
|
219145
|
-
hoEditorFactory.docTree.curDomRange.setSamePath(
|
|
219203
|
+
hoEditorFactory.docTree.curDomRange.setSamePath('footer/0/0');
|
|
219146
219204
|
nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
219147
219205
|
|
|
219148
219206
|
if (nodes[0] instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
@@ -219194,7 +219252,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219194
219252
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219195
219253
|
|
|
219196
219254
|
if (hoEditorFactory.docTree.curDomRange.isEmpty) {
|
|
219197
|
-
return
|
|
219255
|
+
return '';
|
|
219198
219256
|
}
|
|
219199
219257
|
|
|
219200
219258
|
var json = hoEditorFactory.structureNode.Copy(hoEditorFactory.docTree.curDomRange, null, isClearValue);
|
|
@@ -219211,7 +219269,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219211
219269
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
219212
219270
|
|
|
219213
219271
|
if (result) {
|
|
219214
|
-
if ((0,esm_typeof/* default */.Z)(JSON.parse(jsonData)) ===
|
|
219272
|
+
if ((0,esm_typeof/* default */.Z)(JSON.parse(jsonData)) === 'object') {
|
|
219215
219273
|
var nodes = hoEditorFactory.structureNode.Parse(ClipboardType.ctJSON, jsonData);
|
|
219216
219274
|
hoEditorFactory.docController.parseNodeData(nodes);
|
|
219217
219275
|
} else {
|
|
@@ -219270,7 +219328,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219270
219328
|
case 11:
|
|
219271
219329
|
hoEditorFactory.drawTree.inViewPages = [0];
|
|
219272
219330
|
|
|
219273
|
-
if (!(xml >
|
|
219331
|
+
if (!(xml > '')) {
|
|
219274
219332
|
_context5.next = 15;
|
|
219275
219333
|
break;
|
|
219276
219334
|
}
|
|
@@ -219304,14 +219362,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219304
219362
|
|
|
219305
219363
|
if (area && area.stage && area.stage.canvas) {
|
|
219306
219364
|
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(
|
|
219365
|
+
var ctx = area.stage.canvas.getContext('2d');
|
|
219308
219366
|
|
|
219309
219367
|
if (ctx) {
|
|
219310
219368
|
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(
|
|
219369
|
+
var oCanvas = document.createElement('canvas');
|
|
219312
219370
|
oCanvas.width = hoeditfactory.pageProperty.widthPixes * DrawConfig/* DrawConfig.instance */.f.instance().scaleXY;
|
|
219313
219371
|
oCanvas.height = dHeight;
|
|
219314
|
-
var oCtx = oCanvas.getContext(
|
|
219372
|
+
var oCtx = oCanvas.getContext('2d');
|
|
219315
219373
|
|
|
219316
219374
|
if (oCtx) {
|
|
219317
219375
|
oCtx.putImageData(oImgData, 0, 0);
|
|
@@ -219320,7 +219378,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219320
219378
|
}
|
|
219321
219379
|
}
|
|
219322
219380
|
|
|
219323
|
-
return
|
|
219381
|
+
return '';
|
|
219324
219382
|
}
|
|
219325
219383
|
/**
|
|
219326
219384
|
* 获取选区内文本
|
|
@@ -219331,13 +219389,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219331
219389
|
key: "getRangeText",
|
|
219332
219390
|
value: function getRangeText(range) {
|
|
219333
219391
|
range = range.normalize();
|
|
219334
|
-
var text =
|
|
219392
|
+
var text = '';
|
|
219335
219393
|
var nodes = [];
|
|
219336
219394
|
var sNodeChildIndex = range.npStart.childIndex;
|
|
219337
219395
|
var eNodeChildIndex = range.npEnd.childIndex;
|
|
219338
219396
|
|
|
219339
219397
|
var getNodeText = function getNodeText(node) {
|
|
219340
|
-
var nodeText =
|
|
219398
|
+
var nodeText = '';
|
|
219341
219399
|
|
|
219342
219400
|
if (node instanceof ControlNode/* ControlNode */.w) {
|
|
219343
219401
|
nodeText = node.text;
|
|
@@ -219348,7 +219406,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219348
219406
|
} else if (node instanceof CellNode/* CellNode */.D) {
|
|
219349
219407
|
nodeText = node.getCellText();
|
|
219350
219408
|
} else if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
219351
|
-
nodeText =
|
|
219409
|
+
nodeText = '\n';
|
|
219352
219410
|
}
|
|
219353
219411
|
|
|
219354
219412
|
return nodeText;
|
|
@@ -219416,14 +219474,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219416
219474
|
var signUserId = node.customProperty.bce01;
|
|
219417
219475
|
|
|
219418
219476
|
if (hoEditorFactory.userInfo.id != signUserId) {
|
|
219419
|
-
message_box_default().alert(
|
|
219477
|
+
message_box_default().alert('不是本人签名,不允许删除!');
|
|
219420
219478
|
|
|
219421
219479
|
return;
|
|
219422
219480
|
}
|
|
219423
219481
|
}
|
|
219424
219482
|
|
|
219425
219483
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign && node instanceof SignNode/* SignNode */.N && node.isTemplate && node.number === 0) {
|
|
219426
|
-
message_box_default().alert(
|
|
219484
|
+
message_box_default().alert('该签名元素不允许删除!', '系统提示');
|
|
219427
219485
|
|
|
219428
219486
|
return;
|
|
219429
219487
|
}
|
|
@@ -219431,8 +219489,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219431
219489
|
if (node instanceof SignNode/* SignNode */.N) {
|
|
219432
219490
|
var nextNode = node.nextLeaf();
|
|
219433
219491
|
|
|
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 ===
|
|
219492
|
+
if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate && !(preNode instanceof SignNode/* SignNode */.N) && !(nextNode instanceof SignNode/* SignNode */.N)) {
|
|
219493
|
+
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
219494
|
hoEditorFactory.undoService.begin();
|
|
219437
219495
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, ePath));
|
|
219438
219496
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, signNode));
|
|
@@ -219443,13 +219501,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219443
219501
|
if (preNode instanceof SignNode/* SignNode */.N) {
|
|
219444
219502
|
if (hoEditorFactory.drawTree.paintStatus !== DrawTree/* PaintState.psDesign */.Dh.psDesign) {
|
|
219445
219503
|
if (node.isTemplate && node.number === 0) {
|
|
219446
|
-
message_box_default().alert(
|
|
219504
|
+
message_box_default().alert('该签名元素不允许删除!', '系统提示');
|
|
219447
219505
|
|
|
219448
219506
|
return;
|
|
219449
219507
|
}
|
|
219450
219508
|
}
|
|
219451
219509
|
|
|
219452
|
-
var spath =
|
|
219510
|
+
var spath = '';
|
|
219453
219511
|
|
|
219454
219512
|
if (node.number === 2 || node.number === 1 && node.isTemplate) {
|
|
219455
219513
|
spath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
@@ -219459,7 +219517,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219459
219517
|
|
|
219460
219518
|
|
|
219461
219519
|
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 ===
|
|
219520
|
+
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
219521
|
node.styleIndex, preNode.connectMode, preNode.isFront, preNode.allowEditSignTime);
|
|
219464
219522
|
hoEditorFactory.undoService.begin();
|
|
219465
219523
|
hoEditorFactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(this._hoEditorFactoryID, spath, ePath));
|
|
@@ -219509,10 +219567,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219509
219567
|
}
|
|
219510
219568
|
}
|
|
219511
219569
|
/**
|
|
219512
|
-
|
|
219513
|
-
|
|
219514
|
-
|
|
219515
|
-
|
|
219570
|
+
* 插入孕周
|
|
219571
|
+
* @param lastMenstruationDate 末次月经日期
|
|
219572
|
+
* @param usedDate 用来计算的日期
|
|
219573
|
+
*/
|
|
219516
219574
|
|
|
219517
219575
|
}, {
|
|
219518
219576
|
key: "insertGestation",
|
|
@@ -219567,7 +219625,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219567
219625
|
value: function verifyTextFieldsDataFormat() {
|
|
219568
219626
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
219569
219627
|
var errorArray = [];
|
|
219570
|
-
var errorInfo =
|
|
219628
|
+
var errorInfo = '';
|
|
219571
219629
|
var headerDocTree = hoEditorFactory.subDocManger.headerDocTree;
|
|
219572
219630
|
var footerDocTree = hoEditorFactory.subDocManger.footerDocTree;
|
|
219573
219631
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
@@ -219577,51 +219635,51 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219577
219635
|
var node = filedNodes[h];
|
|
219578
219636
|
var dataVerifyFormat = node.dataVerifyFormat;
|
|
219579
219637
|
|
|
219580
|
-
if (dataVerifyFormat.mustInputValue && node.text ===
|
|
219581
|
-
errorInfo =
|
|
219638
|
+
if (dataVerifyFormat.mustInputValue && node.text === '') {
|
|
219639
|
+
errorInfo = '必须输入,不能为空';
|
|
219582
219640
|
errorArray.push([node, errorInfo]);
|
|
219583
219641
|
} else {
|
|
219584
219642
|
if (dataVerifyFormat.dataFormat === TextInputFieldNode/* DataFormat.text */.ZX.text) {
|
|
219585
219643
|
//文本格式
|
|
219586
219644
|
if (dataVerifyFormat.minLength > 0) {
|
|
219587
219645
|
if (node.text.length < dataVerifyFormat.minLength) {
|
|
219588
|
-
errorInfo =
|
|
219646
|
+
errorInfo = '内容不能少于' + dataVerifyFormat.minLength.toString() + '个字符';
|
|
219589
219647
|
errorArray.push([node, errorInfo]);
|
|
219590
219648
|
}
|
|
219591
219649
|
}
|
|
219592
219650
|
|
|
219593
219651
|
if (dataVerifyFormat.maxLength > 0) {
|
|
219594
219652
|
if (node.text.length > dataVerifyFormat.maxLength) {
|
|
219595
|
-
errorInfo =
|
|
219653
|
+
errorInfo = '内容不能多于' + dataVerifyFormat.maxLength.toString() + '个字符';
|
|
219596
219654
|
errorArray.push([node, errorInfo]);
|
|
219597
219655
|
}
|
|
219598
219656
|
}
|
|
219599
219657
|
} else {
|
|
219600
219658
|
//数值格式
|
|
219601
219659
|
if (!(0,type/* isNumber */.hj)(node.text)) {
|
|
219602
|
-
errorInfo =
|
|
219660
|
+
errorInfo = '内容必须为数值';
|
|
219603
219661
|
errorArray.push([node, errorInfo]);
|
|
219604
219662
|
} else {
|
|
219605
219663
|
if (dataVerifyFormat.onlyInputInt) {
|
|
219606
219664
|
//必须是整数
|
|
219607
219665
|
if (Number(node.text) % 1 !== 0) {
|
|
219608
|
-
errorInfo =
|
|
219666
|
+
errorInfo = '数值必须为整数';
|
|
219609
219667
|
errorArray.push([node, errorInfo]);
|
|
219610
219668
|
} else {
|
|
219611
219669
|
if (dataVerifyFormat.maxValue !== 0 && Number(node.text) > dataVerifyFormat.maxValue) {
|
|
219612
|
-
errorInfo =
|
|
219670
|
+
errorInfo = '数值不能大于' + dataVerifyFormat.maxValue.toString();
|
|
219613
219671
|
errorArray.push([node, errorInfo]);
|
|
219614
219672
|
}
|
|
219615
219673
|
|
|
219616
219674
|
if (dataVerifyFormat.minValue !== 0 && Number(node.text) < dataVerifyFormat.minValue) {
|
|
219617
|
-
errorInfo =
|
|
219675
|
+
errorInfo = '数值不能小于' + dataVerifyFormat.minValue.toString();
|
|
219618
219676
|
errorArray.push([node, errorInfo]);
|
|
219619
219677
|
}
|
|
219620
219678
|
}
|
|
219621
219679
|
} else {
|
|
219622
219680
|
//非必须是整数
|
|
219623
|
-
if (dataVerifyFormat.maxSmallBits !== 0 && node.text.split(
|
|
219624
|
-
errorInfo =
|
|
219681
|
+
if (dataVerifyFormat.maxSmallBits !== 0 && node.text.split('.')[1].length > dataVerifyFormat.maxSmallBits) {
|
|
219682
|
+
errorInfo = '小数位数不能多于' + dataVerifyFormat.maxSmallBits.toString() + '位';
|
|
219625
219683
|
errorArray.push([node, errorInfo]);
|
|
219626
219684
|
}
|
|
219627
219685
|
}
|
|
@@ -219762,7 +219820,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219762
219820
|
var endPath = curDomRange.endPath;
|
|
219763
219821
|
|
|
219764
219822
|
if (startPath == endPath) {
|
|
219765
|
-
message_box_default().alert(
|
|
219823
|
+
message_box_default().alert('请选中需要删除的内容进行删除');
|
|
219766
219824
|
|
|
219767
219825
|
return;
|
|
219768
219826
|
}
|
|
@@ -219805,11 +219863,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219805
219863
|
var curMainDocArea = hoEditorFactory.drawPageTree.drawMainDocs[pageIndex];
|
|
219806
219864
|
|
|
219807
219865
|
if (!darwPage || !curMainDocArea) {
|
|
219808
|
-
message_box_default().alert(
|
|
219866
|
+
message_box_default().alert('删除页的索引传入有误:' + pageIndex.toString());
|
|
219809
219867
|
}
|
|
219810
219868
|
|
|
219811
|
-
var sPath =
|
|
219812
|
-
var ePath =
|
|
219869
|
+
var sPath = '';
|
|
219870
|
+
var ePath = '';
|
|
219813
219871
|
var startPosition;
|
|
219814
219872
|
|
|
219815
219873
|
if (pageIndex !== 0) {
|
|
@@ -219859,7 +219917,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219859
219917
|
var headerNodes = hoEditorFactory.subDocManger.headerDocTree[0].subDocNodes;
|
|
219860
219918
|
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
219861
219919
|
var fooerNodes = hoEditorFactory.subDocManger.footerDocTree[0].subDocNodes;
|
|
219862
|
-
var docText =
|
|
219920
|
+
var docText = '';
|
|
219863
219921
|
|
|
219864
219922
|
var loopChildNodes = function loopChildNodes(nodes) {
|
|
219865
219923
|
nodes.forEach(function (node) {
|
|
@@ -219870,7 +219928,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219870
219928
|
} else if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
219871
219929
|
loopChildNodes(node.childNodes);
|
|
219872
219930
|
} else if (node instanceof ParagraphNode/* ParagraphNode */.C) {
|
|
219873
|
-
docText +=
|
|
219931
|
+
docText += '\n';
|
|
219874
219932
|
}
|
|
219875
219933
|
});
|
|
219876
219934
|
};
|
|
@@ -219878,11 +219936,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219878
219936
|
loopChildNodes(headerNodes);
|
|
219879
219937
|
loopChildNodes(mainNodes);
|
|
219880
219938
|
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,
|
|
219939
|
+
docText = docText.replace(/&/g, '&');
|
|
219940
|
+
docText = docText.replace(/</g, '<');
|
|
219941
|
+
docText = docText.replace(/>/g, '>');
|
|
219942
|
+
docText = docText.replace(/\'/g, ''');
|
|
219943
|
+
docText = docText.replace(/\"/g, '"');
|
|
219886
219944
|
return docText;
|
|
219887
219945
|
}
|
|
219888
219946
|
/**
|
|
@@ -220047,12 +220105,12 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220047
220105
|
return v.name == node.name;
|
|
220048
220106
|
}).length == 0) {
|
|
220049
220107
|
var elementObj = {
|
|
220050
|
-
id:
|
|
220051
|
-
name:
|
|
220052
|
-
text:
|
|
220053
|
-
json:
|
|
220054
|
-
innerIdentifier:
|
|
220055
|
-
controlStyle:
|
|
220108
|
+
id: '',
|
|
220109
|
+
name: '',
|
|
220110
|
+
text: '',
|
|
220111
|
+
json: '',
|
|
220112
|
+
innerIdentifier: '',
|
|
220113
|
+
controlStyle: '',
|
|
220056
220114
|
customProperty: {}
|
|
220057
220115
|
};
|
|
220058
220116
|
elementObj.id = node.id; //elementObj.dataid = node.dataId;
|
|
@@ -220113,7 +220171,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220113
220171
|
for (var i = 0; i < nodes.length; i++) {
|
|
220114
220172
|
var node = nodes[i];
|
|
220115
220173
|
|
|
220116
|
-
if (node instanceof SignNode/* SignNode */.N && node.customProperty && node.customProperty.isCaSign ==
|
|
220174
|
+
if (node instanceof SignNode/* SignNode */.N && node.customProperty && node.customProperty.isCaSign == '2') {
|
|
220117
220175
|
ret = true;
|
|
220118
220176
|
}
|
|
220119
220177
|
}
|
|
@@ -220131,7 +220189,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220131
220189
|
key: "updateElementById",
|
|
220132
220190
|
value: function updateElementById(id, eleJson) {
|
|
220133
220191
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
220134
|
-
var node = this.getNodeByID(
|
|
220192
|
+
var node = this.getNodeByID('all', id);
|
|
220135
220193
|
|
|
220136
220194
|
if (node) {
|
|
220137
220195
|
//eleJson = JSON.parse(eleJson);
|
|
@@ -220154,7 +220212,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220154
220212
|
|
|
220155
220213
|
node.isAllowDelete = true;
|
|
220156
220214
|
hoEditorFactory.undoService.begin();
|
|
220157
|
-
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, sPath,
|
|
220215
|
+
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.w(this._hoEditorFactoryID, node, sPath, 'update')); //hoEditorFactory.undoService.commit();
|
|
220158
220216
|
//hoEditorFactory.undoService.begin();
|
|
220159
220217
|
|
|
220160
220218
|
hoEditorFactory.undoService.add(new NodeInsertUndoUnit/* NodeInsertUndoUnit */.R(this._hoEditorFactoryID, sPath, newNode));
|
|
@@ -220162,10 +220220,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220162
220220
|
var toPath = hoEditorFactory.docTree.getNodeLastPath(newNode);
|
|
220163
220221
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
220164
220222
|
} else {
|
|
220165
|
-
throw new Error(
|
|
220223
|
+
throw new Error('根据元素id:' + id + '定位到的元素非可回填元素');
|
|
220166
220224
|
}
|
|
220167
220225
|
} else {
|
|
220168
|
-
throw new Error(
|
|
220226
|
+
throw new Error('根据元素id:' + id + '未找到对应的元素');
|
|
220169
220227
|
}
|
|
220170
220228
|
} //更新回填元素的文本内容
|
|
220171
220229
|
|
|
@@ -220178,7 +220236,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220178
220236
|
while (1) {
|
|
220179
220237
|
switch (_context6.prev = _context6.next) {
|
|
220180
220238
|
case 0:
|
|
220181
|
-
if (!(name ===
|
|
220239
|
+
if (!(name === '' || name === '请输入' || name === '请选择')) {
|
|
220182
220240
|
_context6.next = 2;
|
|
220183
220241
|
break;
|
|
220184
220242
|
}
|
|
@@ -220244,14 +220302,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220244
220302
|
break;
|
|
220245
220303
|
|
|
220246
220304
|
case 20:
|
|
220247
|
-
throw new Error(
|
|
220305
|
+
throw new Error('根据元素name:' + name + '定位到的元素非可回填元素');
|
|
220248
220306
|
|
|
220249
220307
|
case 21:
|
|
220250
220308
|
_context6.next = 24;
|
|
220251
220309
|
break;
|
|
220252
220310
|
|
|
220253
220311
|
case 23:
|
|
220254
|
-
throw new Error(
|
|
220312
|
+
throw new Error('根据元素name:' + name + '未找到对应的元素');
|
|
220255
220313
|
|
|
220256
220314
|
case 24:
|
|
220257
220315
|
i--;
|
|
@@ -220263,7 +220321,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220263
220321
|
break;
|
|
220264
220322
|
|
|
220265
220323
|
case 29:
|
|
220266
|
-
throw new Error(
|
|
220324
|
+
throw new Error('根据元素name:' + name + '未找到对应的元素');
|
|
220267
220325
|
|
|
220268
220326
|
case 30:
|
|
220269
220327
|
case "end":
|
|
@@ -220324,10 +220382,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220324
220382
|
|
|
220325
220383
|
var createElementNodes = function createElementNodes() {
|
|
220326
220384
|
var drawpages = hoEditorFactory.drawTree.drawPages;
|
|
220327
|
-
var pngBox = document.createElement(
|
|
220328
|
-
pngBox.id =
|
|
220385
|
+
var pngBox = document.createElement('div');
|
|
220386
|
+
pngBox.id = 'hoImageFileBox';
|
|
220329
220387
|
var imgQuality = quality ? quality : 0.8;
|
|
220330
|
-
var imgType = type ? type :
|
|
220388
|
+
var imgType = type ? type : 'image/jpeg';
|
|
220331
220389
|
drawpages.forEach(function (drawpage, index) {
|
|
220332
220390
|
var _drawpage$drawDomLeve;
|
|
220333
220391
|
|
|
@@ -220346,25 +220404,25 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220346
220404
|
drawpage.needUpdateStage = false;
|
|
220347
220405
|
}
|
|
220348
220406
|
|
|
220349
|
-
var png = document.createElement(
|
|
220407
|
+
var png = document.createElement('img');
|
|
220350
220408
|
var canvas = (_drawpage$drawDomLeve = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve === void 0 ? void 0 : _drawpage$drawDomLeve.domCanvas;
|
|
220351
220409
|
png.src = canvas.toDataURL(imgType, imgQuality);
|
|
220352
220410
|
pngBox.appendChild(png);
|
|
220353
220411
|
});
|
|
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 =
|
|
220412
|
+
pngBox.id = 'hoImageFileBox';
|
|
220413
|
+
var btn = document.createElement('button');
|
|
220414
|
+
btn.id = 'hoDownLoadImageBtn';
|
|
220415
|
+
btn.style.position = 'fixed';
|
|
220416
|
+
btn.style.left = '20px';
|
|
220417
|
+
btn.style.top = '200px';
|
|
220418
|
+
btn.style.padding = '10px 20px';
|
|
220419
|
+
btn.style.background = '#f2f4f7';
|
|
220420
|
+
btn.style.border = 'none';
|
|
220421
|
+
btn.style.outline = 'none';
|
|
220364
220422
|
document.body.appendChild(btn);
|
|
220365
220423
|
document.body.appendChild(pngBox);
|
|
220366
220424
|
|
|
220367
|
-
document.querySelector(
|
|
220425
|
+
document.querySelector('#hoDownLoadImageBtn').onclick = function () {
|
|
220368
220426
|
_this2.downLoadPNGHTML();
|
|
220369
220427
|
};
|
|
220370
220428
|
};
|
|
@@ -220400,7 +220458,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220400
220458
|
|
|
220401
220459
|
var canvas = (_drawpage$drawDomLeve2 = drawpage.drawDomLevel) === null || _drawpage$drawDomLeve2 === void 0 ? void 0 : _drawpage$drawDomLeve2.domCanvas;
|
|
220402
220460
|
var imgQuality = quality ? quality : 0.8;
|
|
220403
|
-
imageList.push(canvas.toDataURL(
|
|
220461
|
+
imageList.push(canvas.toDataURL('image/jpeg', imgQuality));
|
|
220404
220462
|
});
|
|
220405
220463
|
return imageList;
|
|
220406
220464
|
}
|
|
@@ -220413,18 +220471,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220413
220471
|
value: function createPDF() {
|
|
220414
220472
|
var _this3 = this;
|
|
220415
220473
|
|
|
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 =
|
|
220474
|
+
var btn = document.createElement('button');
|
|
220475
|
+
btn.id = 'hoDownLoadPDFBtn';
|
|
220476
|
+
btn.style.position = 'fixed';
|
|
220477
|
+
btn.style.left = '20px';
|
|
220478
|
+
btn.style.top = '300px';
|
|
220479
|
+
btn.style.padding = '10px 20px';
|
|
220480
|
+
btn.style.background = 'transparent';
|
|
220481
|
+
btn.style.border = 'none';
|
|
220482
|
+
btn.style.outline = 'none';
|
|
220425
220483
|
document.body.appendChild(btn);
|
|
220426
220484
|
|
|
220427
|
-
document.querySelector(
|
|
220485
|
+
document.querySelector('#hoDownLoadPDFBtn').onclick = function () {
|
|
220428
220486
|
_this3.saveAsPDF();
|
|
220429
220487
|
};
|
|
220430
220488
|
}
|
|
@@ -220435,22 +220493,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220435
220493
|
}, {
|
|
220436
220494
|
key: "downLoadPNGHTML",
|
|
220437
220495
|
value: function downLoadPNGHTML() {
|
|
220438
|
-
var pngBox = document.querySelector(
|
|
220439
|
-
var fileName = this.getDocTitle() ? this.getDocTitle() :
|
|
220496
|
+
var pngBox = document.querySelector('#hoImageFileBox');
|
|
220497
|
+
var fileName = this.getDocTitle() ? this.getDocTitle() : '电子病历文档';
|
|
220440
220498
|
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
220499
|
var url = window.URL.createObjectURL(new Blob([exportHtml], {
|
|
220442
220500
|
type: "text/html"
|
|
220443
220501
|
}));
|
|
220444
|
-
var link = document.createElement(
|
|
220445
|
-
link.style.display =
|
|
220502
|
+
var link = document.createElement('a');
|
|
220503
|
+
link.style.display = 'none';
|
|
220446
220504
|
link.href = url;
|
|
220447
|
-
link.setAttribute(
|
|
220505
|
+
link.setAttribute('download', fileName + '.html');
|
|
220448
220506
|
document.body.appendChild(link);
|
|
220449
220507
|
link.click();
|
|
220450
220508
|
setTimeout(function () {
|
|
220451
220509
|
link.remove();
|
|
220452
220510
|
document.body.removeChild(pngBox);
|
|
220453
|
-
document.body.removeChild(document.querySelector(
|
|
220511
|
+
document.body.removeChild(document.querySelector('#hoDownLoadImageBtn'));
|
|
220454
220512
|
}, 300);
|
|
220455
220513
|
}
|
|
220456
220514
|
}, {
|
|
@@ -220527,7 +220585,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220527
220585
|
while (1) {
|
|
220528
220586
|
switch (_context7.prev = _context7.next) {
|
|
220529
220587
|
case 0:
|
|
220530
|
-
if (!(type ===
|
|
220588
|
+
if (!(type === 'html')) {
|
|
220531
220589
|
_context7.next = 14;
|
|
220532
220590
|
break;
|
|
220533
220591
|
}
|
|
@@ -220611,7 +220669,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220611
220669
|
var newNode = newcurDomRange.npEnd.node;
|
|
220612
220670
|
|
|
220613
220671
|
if (newNode instanceof SignNode/* SignNode */.N) {
|
|
220614
|
-
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3,
|
|
220672
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(newNode, 3, '患者签名', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220615
220673
|
setTimeout(function () {
|
|
220616
220674
|
callback && callback();
|
|
220617
220675
|
}, 0);
|
|
@@ -220619,7 +220677,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220619
220677
|
}
|
|
220620
220678
|
}, 0);
|
|
220621
220679
|
} else {
|
|
220622
|
-
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3,
|
|
220680
|
+
Promise.all([hoEditorFactory.docController.updateSignNode(node, 3, '患者签名', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220623
220681
|
setTimeout(function () {
|
|
220624
220682
|
callback && callback();
|
|
220625
220683
|
}, 0);
|
|
@@ -220634,7 +220692,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220634
220692
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220635
220693
|
|
|
220636
220694
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220637
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 1,
|
|
220695
|
+
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
220696
|
setTimeout(function () {
|
|
220639
220697
|
callback && callback();
|
|
220640
220698
|
}, 0);
|
|
@@ -220646,7 +220704,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220646
220704
|
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction.daInsert */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType.insertSign */.y.insertSign);
|
|
220647
220705
|
|
|
220648
220706
|
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
220649
|
-
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3,
|
|
220707
|
+
Promise.all([hoEditorFactory.docController.insertSignNode(curDomRange, 3, '患者签名', '', '', '', imgSrc, 0, 0, {}, fingerPrintSrc, fingerPosition)]).then(function () {
|
|
220650
220708
|
setTimeout(function () {
|
|
220651
220709
|
callback && callback();
|
|
220652
220710
|
}, 0);
|
|
@@ -220685,13 +220743,13 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220685
220743
|
for (var m = 0, len = items.length - 1; m <= len; m++) {
|
|
220686
220744
|
var item = items[m];
|
|
220687
220745
|
|
|
220688
|
-
if (item.text !==
|
|
220746
|
+
if (item.text !== '' && item.name === anode.name && anode.text.indexOf(item.text) !== -1) {
|
|
220689
220747
|
var range = _this4.search(anode, item.text);
|
|
220690
220748
|
|
|
220691
220749
|
if (range.length > 0) {
|
|
220692
220750
|
selectRangeArr = selectRangeArr.concat(range);
|
|
220693
220751
|
}
|
|
220694
|
-
} else if (item.text ===
|
|
220752
|
+
} else if (item.text === '' && item.name === anode.name) {
|
|
220695
220753
|
var _range = _this4.search(anode, anode.text);
|
|
220696
220754
|
|
|
220697
220755
|
if (_range.length > 0) {
|
|
@@ -220720,7 +220778,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220720
220778
|
if (selectRangeArr.length > 0) {
|
|
220721
220779
|
hoEditorFactory.drawTree.drawMultiCustomRange(selectRangeArr, true, true);
|
|
220722
220780
|
} else {
|
|
220723
|
-
console.warn(
|
|
220781
|
+
console.warn('未搜索到符合条件的元素');
|
|
220724
220782
|
}
|
|
220725
220783
|
}
|
|
220726
220784
|
}, {
|
|
@@ -220752,7 +220810,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220752
220810
|
loopChildNodes(node.childNodes);
|
|
220753
220811
|
parasArray.forEach(function (value, index) {
|
|
220754
220812
|
var aNode = value.nextLeaf();
|
|
220755
|
-
var content =
|
|
220813
|
+
var content = '';
|
|
220756
220814
|
var mark = 0; //用来区分段落中的节点是否是文本节点 0是 -1不是
|
|
220757
220815
|
|
|
220758
220816
|
var textCount = 1; //该段的第几个文本串(其它节点隔开的)
|
|
@@ -220762,31 +220820,31 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220762
220820
|
if (aNode instanceof TextNode/* TextNode */.R) {
|
|
220763
220821
|
if (mark === -1) {
|
|
220764
220822
|
if (content.length > 0) {
|
|
220765
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220823
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content); //['第几段|该段的第几个文本串|文本串内容'] (一段里面可能有很多个文本串,一段里面会有除文本节点之外的其它节点)
|
|
220766
220824
|
|
|
220767
220825
|
textCount++;
|
|
220768
|
-
content =
|
|
220826
|
+
content = '';
|
|
220769
220827
|
mark = 0;
|
|
220770
220828
|
}
|
|
220771
220829
|
}
|
|
220772
220830
|
|
|
220773
220831
|
var nodePath = hoEditorFactory.docTree.getNodeFirstPath(aNode);
|
|
220774
|
-
nodesMap.set((index + 1).toString() +
|
|
220832
|
+
nodesMap.set((index + 1).toString() + '|' + textCount.toString() + '|' + content.length, nodePath); //nodesMap<第几段|该段的第几个文本串|节点文本在该文本串的位置,'节点路径'>
|
|
220775
220833
|
|
|
220776
220834
|
content = content + aNode.text;
|
|
220777
220835
|
} else if (aNode instanceof ControlNode/* ControlNode */.w) {
|
|
220778
220836
|
if (content.length > 0) {
|
|
220779
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220837
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content); //['第几段|该段的第几个文本串|文本串内容'] (一段里面可能有很多个文本串,一段里面会有除文本节点之外的其它节点)
|
|
220780
220838
|
|
|
220781
220839
|
textCount++;
|
|
220782
|
-
content =
|
|
220840
|
+
content = '';
|
|
220783
220841
|
}
|
|
220784
220842
|
|
|
220785
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220843
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + aNode.text);
|
|
220786
220844
|
|
|
220787
220845
|
var _nodePath = aNode.getNodePath();
|
|
220788
220846
|
|
|
220789
|
-
nodesMap.set((index + 1).toString() +
|
|
220847
|
+
nodesMap.set((index + 1).toString() + '|' + textCount.toString() + '|' + 0, _nodePath);
|
|
220790
220848
|
textCount++;
|
|
220791
220849
|
} else {
|
|
220792
220850
|
if (!(aNode instanceof ParagraphNode/* ParagraphNode */.C)) {
|
|
@@ -220801,14 +220859,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220801
220859
|
} while (aNode !== node.EndMarkNode);
|
|
220802
220860
|
|
|
220803
220861
|
if (content.length > 0) {
|
|
220804
|
-
paraTextStrArr.push((index + 1).toString() +
|
|
220862
|
+
paraTextStrArr.push((index + 1).toString() + '|' + textCount.toString() + '|' + content);
|
|
220805
220863
|
}
|
|
220806
220864
|
});
|
|
220807
220865
|
} else {
|
|
220808
220866
|
var nodePath = node.getNodePath();
|
|
220809
|
-
nodesMap.set(
|
|
220867
|
+
nodesMap.set('1|1|0', nodePath); //nodesMap<第几段|该段的第几个文本串|节点文本在该文本串的位置,'节点路径'>
|
|
220810
220868
|
|
|
220811
|
-
paraTextStrArr.push(
|
|
220869
|
+
paraTextStrArr.push('1|1|' + node.text);
|
|
220812
220870
|
}
|
|
220813
220871
|
|
|
220814
220872
|
selectRangeArr = this.getSelectRanges(paraTextStrArr, text, nodesMap);
|
|
@@ -220823,18 +220881,18 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220823
220881
|
var i = 0;
|
|
220824
220882
|
paraTextStrArr.forEach(function (value, index) {
|
|
220825
220883
|
//遍历每个段落的文本串 获取所有符合的段落和位置索引
|
|
220826
|
-
var paraIndex = value.split(
|
|
220884
|
+
var paraIndex = value.split('|')[0]; //第几段
|
|
220827
220885
|
|
|
220828
|
-
var textCount = value.split(
|
|
220886
|
+
var textCount = value.split('|')[1]; //第几串
|
|
220829
220887
|
|
|
220830
|
-
value = value.split(
|
|
220888
|
+
value = value.split('|')[2]; //从上往下
|
|
220831
220889
|
|
|
220832
220890
|
var indexValue = value.indexOf(text);
|
|
220833
220891
|
|
|
220834
220892
|
if (indexValue !== -1) {
|
|
220835
220893
|
do {
|
|
220836
220894
|
i++;
|
|
220837
|
-
indexsMap.set(i, paraIndex +
|
|
220895
|
+
indexsMap.set(i, paraIndex + '|' + textCount + '|' + indexValue.toString()); //indexsMap<第几个符合查找条件的,第几段|该段的第几个文本串|查找的字符串在该文本串的位置>
|
|
220838
220896
|
|
|
220839
220897
|
indexValue = value.indexOf(text, indexValue + 1);
|
|
220840
220898
|
} while (indexValue !== -1);
|
|
@@ -220843,10 +220901,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220843
220901
|
var textNodesPaths = [];
|
|
220844
220902
|
var controlNodesPaths = [];
|
|
220845
220903
|
indexsMap.forEach(function (valueStr, index) {
|
|
220846
|
-
var returnPath =
|
|
220847
|
-
var paraIndex = valueStr.split(
|
|
220848
|
-
var textCount = valueStr.split(
|
|
220849
|
-
var strIndex = parseInt(valueStr.split(
|
|
220904
|
+
var returnPath = '';
|
|
220905
|
+
var paraIndex = valueStr.split('|')[0];
|
|
220906
|
+
var textCount = valueStr.split('|')[1];
|
|
220907
|
+
var strIndex = parseInt(valueStr.split('|')[2]);
|
|
220850
220908
|
|
|
220851
220909
|
var _iterator = (0,createForOfIteratorHelper/* default */.Z)(nodesMap),
|
|
220852
220910
|
_step;
|
|
@@ -220857,9 +220915,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220857
220915
|
key = _step$value[0],
|
|
220858
220916
|
value = _step$value[1];
|
|
220859
220917
|
|
|
220860
|
-
var startIndex = parseInt(key.split(
|
|
220918
|
+
var startIndex = parseInt(key.split('|')[2]);
|
|
220861
220919
|
|
|
220862
|
-
if (key.split(
|
|
220920
|
+
if (key.split('|')[0] === paraIndex && key.split('|')[1] === textCount && strIndex >= startIndex) {
|
|
220863
220921
|
var np = hoEditorFactory.docTree.findNodePositionByPath(value);
|
|
220864
220922
|
|
|
220865
220923
|
if (np && np.node) {
|
|
@@ -220868,9 +220926,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220868
220926
|
var lastPath = strIndex - startIndex - 1;
|
|
220869
220927
|
|
|
220870
220928
|
if (lastPath >= 0) {
|
|
220871
|
-
var pathArr = value.split(
|
|
220929
|
+
var pathArr = value.split('/');
|
|
220872
220930
|
pathArr[pathArr.length - 1] = lastPath.toString();
|
|
220873
|
-
returnPath = pathArr.join(
|
|
220931
|
+
returnPath = pathArr.join('/');
|
|
220874
220932
|
} else {
|
|
220875
220933
|
//搜索文本在节点的开始位置 需要返回上一个节点的结束位置路径
|
|
220876
220934
|
var preNode = np.node.previousLeaf();
|
|
@@ -220916,10 +220974,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220916
220974
|
path = hoEditorFactory.docTree.getNodeFirstPath((_np$node = np.node) === null || _np$node === void 0 ? void 0 : _np$node.nextLeaf());
|
|
220917
220975
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath((_np$node2 = np.node) === null || _np$node2 === void 0 ? void 0 : _np$node2.nextLeaf());
|
|
220918
220976
|
} else {
|
|
220919
|
-
var pathArr = path.split(
|
|
220977
|
+
var pathArr = path.split('/');
|
|
220920
220978
|
var value = parseInt(pathArr[pathArr.length - 1]);
|
|
220921
220979
|
pathArr[pathArr.length - 1] = (value + 1).toString();
|
|
220922
|
-
path = pathArr.join(
|
|
220980
|
+
path = pathArr.join('/');
|
|
220923
220981
|
}
|
|
220924
220982
|
}
|
|
220925
220983
|
|
|
@@ -220959,8 +221017,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220959
221017
|
var selectRangeArr = [];
|
|
220960
221018
|
|
|
220961
221019
|
for (var i = 0; i < names.length; i++) {
|
|
220962
|
-
if (names[i] !==
|
|
220963
|
-
var nodes = this.getNodesByName(
|
|
221020
|
+
if (names[i] !== '') {
|
|
221021
|
+
var nodes = this.getNodesByName('all', true, names[i]);
|
|
220964
221022
|
elements = elements.concat(nodes);
|
|
220965
221023
|
}
|
|
220966
221024
|
}
|
|
@@ -221003,7 +221061,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221003
221061
|
if (hoEditorFactory.aiTextFunc) {
|
|
221004
221062
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221005
221063
|
var node = curDomRange.npEnd.node;
|
|
221006
|
-
var text =
|
|
221064
|
+
var text = '';
|
|
221007
221065
|
|
|
221008
221066
|
if (node instanceof TextNode/* TextNode */.R) {
|
|
221009
221067
|
text += node.text;
|
|
@@ -221057,7 +221115,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221057
221115
|
}
|
|
221058
221116
|
|
|
221059
221117
|
if (!isHaveParaNodes) {
|
|
221060
|
-
message_box_default().alert(
|
|
221118
|
+
message_box_default().alert('选区内没有换行符,无需清除.');
|
|
221061
221119
|
|
|
221062
221120
|
return;
|
|
221063
221121
|
}
|
|
@@ -221076,9 +221134,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221076
221134
|
var endPath = hoEditorFactory.docTree.getNodeLastPath(nodes[nodes.length - 1]);
|
|
221077
221135
|
|
|
221078
221136
|
if (result[2] > 0) {
|
|
221079
|
-
var arr = endPath.split(
|
|
221137
|
+
var arr = endPath.split('/');
|
|
221080
221138
|
arr[arr.length - 1] = result[2].toString();
|
|
221081
|
-
endPath = arr.join(
|
|
221139
|
+
endPath = arr.join('/');
|
|
221082
221140
|
}
|
|
221083
221141
|
|
|
221084
221142
|
var oldRange = curDomRange;
|
|
@@ -221099,7 +221157,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221099
221157
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221100
221158
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
221101
221159
|
var node = curDomRange.npEnd.node;
|
|
221102
|
-
var text =
|
|
221160
|
+
var text = '';
|
|
221103
221161
|
|
|
221104
221162
|
var getText = function getText(previousNode) {
|
|
221105
221163
|
if (previousNode instanceof TextNode/* TextNode */.R || previousNode instanceof LabelNode/* LabelNode */.P || previousNode instanceof DownListNode/* DownListNode */.yF) {
|
|
@@ -221198,6 +221256,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221198
221256
|
}, {
|
|
221199
221257
|
key: "setDocCommentIsHandle",
|
|
221200
221258
|
value: function setDocCommentIsHandle(status) {
|
|
221259
|
+
// 批量修改当前病历中批注处理状态
|
|
221201
221260
|
var drawTree = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID).drawTree;
|
|
221202
221261
|
var commentsMap = drawTree.commentsMap;
|
|
221203
221262
|
commentsMap.forEach(function (value, key) {
|
|
@@ -221227,7 +221286,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221227
221286
|
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
221228
221287
|
if (fieldNames.indexOf(node.name) === -1) {
|
|
221229
221288
|
fieldNames.push(node.name);
|
|
221230
|
-
var sameNameEles = this.getNodesByName(
|
|
221289
|
+
var sameNameEles = this.getNodesByName('all', true, node.name);
|
|
221231
221290
|
|
|
221232
221291
|
for (var j = 0; j < sameNameEles.length; j++) {
|
|
221233
221292
|
var ele = sameNameEles[j];
|
|
@@ -221244,7 +221303,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221244
221303
|
if (dateNames.indexOf(node.name) === -1) {
|
|
221245
221304
|
dateNames.push(node.name);
|
|
221246
221305
|
|
|
221247
|
-
var _sameNameEles = this.getNodesByName(
|
|
221306
|
+
var _sameNameEles = this.getNodesByName('all', true, node.name);
|
|
221248
221307
|
|
|
221249
221308
|
for (var _j = 0; _j < _sameNameEles.length; _j++) {
|
|
221250
221309
|
var _ele = _sameNameEles[_j];
|
|
@@ -221261,7 +221320,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221261
221320
|
if (downNames.indexOf(node.name) === -1) {
|
|
221262
221321
|
downNames.push(node.name);
|
|
221263
221322
|
|
|
221264
|
-
var _sameNameEles2 = this.getNodesByName(
|
|
221323
|
+
var _sameNameEles2 = this.getNodesByName('all', true, node.name);
|
|
221265
221324
|
|
|
221266
221325
|
for (var _j2 = 0; _j2 < _sameNameEles2.length; _j2++) {
|
|
221267
221326
|
var _ele2 = _sameNameEles2[_j2];
|
|
@@ -221288,11 +221347,11 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221288
221347
|
var object = objects[i];
|
|
221289
221348
|
var name = object.name;
|
|
221290
221349
|
var oldValue = object.oldValue;
|
|
221291
|
-
var elements = this.getNodesByName(
|
|
221350
|
+
var elements = this.getNodesByName('main', true, name);
|
|
221292
221351
|
|
|
221293
221352
|
for (var j = 0; j < elements.length; j++) {
|
|
221294
221353
|
var element = elements[j];
|
|
221295
|
-
var commentID = hoEditorFactory.gernerateCode.generateID(
|
|
221354
|
+
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
221296
221355
|
var comment = void 0;
|
|
221297
221356
|
|
|
221298
221357
|
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
@@ -221352,7 +221411,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221352
221411
|
for (var i = children.length - 1; i >= 0; i--) {
|
|
221353
221412
|
var child = children[i];
|
|
221354
221413
|
|
|
221355
|
-
if (child.name && child.name.indexOf(
|
|
221414
|
+
if (child.name && child.name.indexOf('recordC') >= 0) {
|
|
221356
221415
|
children.splice(i, 1);
|
|
221357
221416
|
}
|
|
221358
221417
|
}
|
|
@@ -221407,7 +221466,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221407
221466
|
} // 空的医生签名
|
|
221408
221467
|
|
|
221409
221468
|
|
|
221410
|
-
if (attribute
|
|
221469
|
+
if (attribute != 1 && node.attribute != 1 && node.imgSrc === '') {
|
|
221411
221470
|
hasEmptyDoctorSign = true;
|
|
221412
221471
|
break;
|
|
221413
221472
|
}
|
|
@@ -221418,7 +221477,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221418
221477
|
getAllNodes(node.childNodes);
|
|
221419
221478
|
}
|
|
221420
221479
|
|
|
221421
|
-
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute
|
|
221480
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V && attribute != 1 && !hasEmptyDoctorSign) {
|
|
221422
221481
|
// 医生签名不存在的情况不在深层调用深层遍历
|
|
221423
221482
|
getAllNodes(node.childNodes);
|
|
221424
221483
|
}
|
|
@@ -221469,6 +221528,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221469
221528
|
getAllNodes(mainNodes);
|
|
221470
221529
|
return isHasDoctorSign;
|
|
221471
221530
|
}
|
|
221531
|
+
}, {
|
|
221532
|
+
key: "setHoEditorFactoryParams",
|
|
221533
|
+
value: function setHoEditorFactoryParams(params) {
|
|
221534
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys.instance */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
221535
|
+
Object.keys(params).forEach(function (key) {
|
|
221536
|
+
hoEditorFactory[key] = params[key];
|
|
221537
|
+
});
|
|
221538
|
+
}
|
|
221472
221539
|
}]);
|
|
221473
221540
|
|
|
221474
221541
|
return VueController;
|
|
@@ -225138,6 +225205,12 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225138
225205
|
function HOEditorFactory(id) {
|
|
225139
225206
|
(0,classCallCheck/* default */.Z)(this, HOEditorFactory);
|
|
225140
225207
|
|
|
225208
|
+
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
225209
|
+
|
|
225210
|
+
this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
|
|
225211
|
+
|
|
225212
|
+
this._isCanUseTableProperty = false; //非设计模式下是否可以使用表格、单元格、行、列属性设置
|
|
225213
|
+
|
|
225141
225214
|
this._loadImageCount = 0; // 待加载的图片数量
|
|
225142
225215
|
|
|
225143
225216
|
this._loadImageCallback = null; // 图片加载完成回调
|
|
@@ -225155,10 +225228,6 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225155
225228
|
this._lastSaveTime = new Date(Date.now());
|
|
225156
225229
|
this._superiorSigns = []; //上级医生签名
|
|
225157
225230
|
|
|
225158
|
-
this._isEnabledGlobalColor = false; //是否启用全局颜色
|
|
225159
|
-
|
|
225160
|
-
this._isSameColorWithEmptyVlaue = false; //下拉列表元素的默认项颜色是否和空元素的颜色保持一致
|
|
225161
|
-
|
|
225162
225231
|
this._hoEditorFactoryId = id;
|
|
225163
225232
|
}
|
|
225164
225233
|
/**
|
|
@@ -225876,6 +225945,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
225876
225945
|
this._isSameColorWithEmptyVlaue = value;
|
|
225877
225946
|
}
|
|
225878
225947
|
}
|
|
225948
|
+
}, {
|
|
225949
|
+
key: "isCanUseTableProperty",
|
|
225950
|
+
get: function get() {
|
|
225951
|
+
return this._isCanUseTableProperty;
|
|
225952
|
+
},
|
|
225953
|
+
set: function set(value) {
|
|
225954
|
+
if (this._isCanUseTableProperty !== value) {
|
|
225955
|
+
this._isCanUseTableProperty = value;
|
|
225956
|
+
}
|
|
225957
|
+
}
|
|
225879
225958
|
}, {
|
|
225880
225959
|
key: "clear",
|
|
225881
225960
|
value: function clear() {
|
|
@@ -230322,15 +230401,16 @@ var UploadImageDialog_component = normalizeComponent(
|
|
|
230322
230401
|
)
|
|
230323
230402
|
|
|
230324
230403
|
/* 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
|
|
230404
|
+
;// 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&
|
|
230405
|
+
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)])}
|
|
230406
|
+
var CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_staticRenderFns = []
|
|
230328
230407
|
|
|
230329
230408
|
|
|
230330
230409
|
;// 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
230410
|
|
|
230332
230411
|
|
|
230333
230412
|
|
|
230413
|
+
|
|
230334
230414
|
//
|
|
230335
230415
|
//
|
|
230336
230416
|
//
|
|
@@ -230375,19 +230455,14 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230375
230455
|
canvasHeight: 400,
|
|
230376
230456
|
animationClassNames: 'control-modal-contents image-modal animation-in',
|
|
230377
230457
|
uploadLoading: false,
|
|
230378
|
-
eraserEnabled: false,
|
|
230379
|
-
activeBgColor: '#fff',
|
|
230380
|
-
ifPop: false,
|
|
230381
230458
|
lWidth: 2,
|
|
230382
|
-
opacity: 1,
|
|
230383
230459
|
strokeColor: '#FF0000',
|
|
230384
|
-
radius: 5,
|
|
230385
230460
|
canvasHistory: [],
|
|
230386
230461
|
step: -1,
|
|
230387
230462
|
canvas: null,
|
|
230388
|
-
textarea: null,
|
|
230389
|
-
canvasArea: null,
|
|
230390
230463
|
context: null,
|
|
230464
|
+
canvasArea: null,
|
|
230465
|
+
textarea: null,
|
|
230391
230466
|
painting: false,
|
|
230392
230467
|
// 定义一个变量初始化画笔状态
|
|
230393
230468
|
startPoint: {
|
|
@@ -230396,7 +230471,10 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230396
230471
|
},
|
|
230397
230472
|
// 记录画笔最后一次的位置
|
|
230398
230473
|
tool: 1,
|
|
230399
|
-
textAreaStyle: {}
|
|
230474
|
+
textAreaStyle: {},
|
|
230475
|
+
moveDrawCount: 0,
|
|
230476
|
+
quadraticCurvePoints: [] // 平滑曲线数组
|
|
230477
|
+
|
|
230400
230478
|
};
|
|
230401
230479
|
},
|
|
230402
230480
|
watch: {
|
|
@@ -230477,6 +230555,7 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230477
230555
|
x: e.offsetX,
|
|
230478
230556
|
y: e.offsetY
|
|
230479
230557
|
};
|
|
230558
|
+
this.quadraticCurvePoints.push(this.startPoint);
|
|
230480
230559
|
|
|
230481
230560
|
if (this.tool === 0) {
|
|
230482
230561
|
this.textAreaStyle = {
|
|
@@ -230505,16 +230584,50 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230505
230584
|
|
|
230506
230585
|
case 1:
|
|
230507
230586
|
{
|
|
230508
|
-
this.
|
|
230587
|
+
this.quadraticCurvePoints.push({
|
|
230588
|
+
x: e.offsetX,
|
|
230589
|
+
y: e.offsetY
|
|
230590
|
+
});
|
|
230591
|
+
|
|
230592
|
+
if (this.quadraticCurvePoints.length > 3) {
|
|
230593
|
+
var lastTwoPoints = this.quadraticCurvePoints.slice(-2);
|
|
230594
|
+
var controlPoint = lastTwoPoints[0];
|
|
230595
|
+
var endPoint = {
|
|
230596
|
+
x: (lastTwoPoints[0].x + lastTwoPoints[1].x) / 2,
|
|
230597
|
+
y: (lastTwoPoints[0].y + lastTwoPoints[1].y) / 2
|
|
230598
|
+
};
|
|
230599
|
+
this.drawLine(this.startPoint, controlPoint, endPoint);
|
|
230600
|
+
this.startPoint = endPoint;
|
|
230601
|
+
}
|
|
230602
|
+
|
|
230509
230603
|
break;
|
|
230510
230604
|
}
|
|
230511
230605
|
}
|
|
230606
|
+
|
|
230607
|
+
e.stopPropagation();
|
|
230608
|
+
e.preventDefault();
|
|
230512
230609
|
},
|
|
230513
230610
|
up: function up(e) {
|
|
230514
230611
|
if (this.tool === 0) {
|
|
230515
230612
|
this.canvas.removeEventListener('mousemove', this.move);
|
|
230516
230613
|
}
|
|
230517
230614
|
|
|
230615
|
+
this.quadraticCurvePoints.push({
|
|
230616
|
+
x: e.offsetX,
|
|
230617
|
+
y: e.offsetY
|
|
230618
|
+
});
|
|
230619
|
+
|
|
230620
|
+
if (this.quadraticCurvePoints.length > 3) {
|
|
230621
|
+
var lastTwoPoints = this.quadraticCurvePoints.slice(-2);
|
|
230622
|
+
var controlPoint = lastTwoPoints[0];
|
|
230623
|
+
var endPoint = {
|
|
230624
|
+
x: (lastTwoPoints[0].x + lastTwoPoints[1].x) / 2,
|
|
230625
|
+
y: (lastTwoPoints[0].y + lastTwoPoints[1].y) / 2
|
|
230626
|
+
};
|
|
230627
|
+
this.drawLine(this.startPoint, controlPoint, endPoint);
|
|
230628
|
+
}
|
|
230629
|
+
|
|
230630
|
+
this.quadraticCurvePoints = [];
|
|
230518
230631
|
this.painting = false;
|
|
230519
230632
|
|
|
230520
230633
|
if (this.tool === 1) {
|
|
@@ -230549,25 +230662,30 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230549
230662
|
this.textAreaStyle = {};
|
|
230550
230663
|
}
|
|
230551
230664
|
},
|
|
230552
|
-
drawLine: function drawLine(
|
|
230553
|
-
if (!this.painting)
|
|
230665
|
+
drawLine: function drawLine(startPoint, controlPoint, endPoint) {
|
|
230666
|
+
if (!this.painting) {
|
|
230667
|
+
this.moveDrawCount = 0;
|
|
230668
|
+
return;
|
|
230669
|
+
} // if (this.moveDrawCount === 0) {
|
|
230670
|
+
|
|
230671
|
+
|
|
230554
230672
|
this.context.beginPath();
|
|
230555
230673
|
this.context.lineWidth = this.lWidth;
|
|
230556
|
-
this.context.strokeStyle = this.strokeColor; //
|
|
230674
|
+
this.context.strokeStyle = this.strokeColor; // this.context.setLineDash([10]);
|
|
230675
|
+
// 设置线条末端样式。
|
|
230557
230676
|
|
|
230558
230677
|
this.context.lineCap = 'round'; // 设定线条与线条间接合处的样式
|
|
230559
230678
|
|
|
230560
230679
|
this.context.lineJoin = 'round';
|
|
230561
|
-
this.context.moveTo(
|
|
230562
|
-
|
|
230680
|
+
this.context.moveTo(startPoint.x, startPoint.y); // this.context.lineTo(e.offsetX, e.offsetY);
|
|
230681
|
+
|
|
230682
|
+
this.context.quadraticCurveTo(controlPoint.x, controlPoint.y, endPoint.x, endPoint.y);
|
|
230563
230683
|
this.context.stroke();
|
|
230564
|
-
this.context.closePath();
|
|
230565
|
-
this.
|
|
230566
|
-
|
|
230567
|
-
|
|
230568
|
-
}
|
|
230569
|
-
e.stopPropagation();
|
|
230570
|
-
e.preventDefault();
|
|
230684
|
+
this.context.closePath(); // }
|
|
230685
|
+
// this.moveDrawCount++;
|
|
230686
|
+
// if (this.moveDrawCount >= 3) {
|
|
230687
|
+
// this.moveDrawCount = 0;
|
|
230688
|
+
// }
|
|
230571
230689
|
},
|
|
230572
230690
|
// 绘制方法
|
|
230573
230691
|
canvasDraw: function canvasDraw() {
|
|
@@ -230636,10 +230754,10 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230636
230754
|
});
|
|
230637
230755
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=script&lang=js&
|
|
230638
230756
|
/* 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=
|
|
230757
|
+
;// 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
230758
|
// extracted by mini-css-extract-plugin
|
|
230641
230759
|
|
|
230642
|
-
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=
|
|
230760
|
+
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue?vue&type=style&index=0&id=1e0a2026&lang=scss&scoped=true&
|
|
230643
230761
|
|
|
230644
230762
|
;// CONCATENATED MODULE: ./src/components/controls/upload/CanvasImageDialog.vue
|
|
230645
230763
|
|
|
@@ -230652,11 +230770,11 @@ var CanvasImageDialogvue_type_template_id_4c7ad5a1_scoped_true_staticRenderFns =
|
|
|
230652
230770
|
|
|
230653
230771
|
var CanvasImageDialog_component = normalizeComponent(
|
|
230654
230772
|
upload_CanvasImageDialogvue_type_script_lang_js_,
|
|
230655
|
-
|
|
230656
|
-
|
|
230773
|
+
CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_render,
|
|
230774
|
+
CanvasImageDialogvue_type_template_id_1e0a2026_scoped_true_staticRenderFns,
|
|
230657
230775
|
false,
|
|
230658
230776
|
null,
|
|
230659
|
-
"
|
|
230777
|
+
"1e0a2026",
|
|
230660
230778
|
null
|
|
230661
230779
|
|
|
230662
230780
|
)
|
|
@@ -231241,9 +231359,9 @@ var TableProperty_component = normalizeComponent(
|
|
|
231241
231359
|
)
|
|
231242
231360
|
|
|
231243
231361
|
/* 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
|
|
231362
|
+
;// 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&
|
|
231363
|
+
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)])}
|
|
231364
|
+
var TableRowPropertyvue_type_template_id_c8198e42_scoped_true_staticRenderFns = []
|
|
231247
231365
|
|
|
231248
231366
|
|
|
231249
231367
|
;// 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 +231612,10 @@ TableRowPoperty = __decorate([vue_class_component_esm({
|
|
|
231494
231612
|
/* harmony default export */ var TableRowPropertyvue_type_script_lang_ts_ = (TableRowPoperty);
|
|
231495
231613
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=script&lang=ts&
|
|
231496
231614
|
/* 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=
|
|
231615
|
+
;// 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
231616
|
// extracted by mini-css-extract-plugin
|
|
231499
231617
|
|
|
231500
|
-
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
231618
|
+
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=c8198e42&lang=scss&scoped=true&
|
|
231501
231619
|
|
|
231502
231620
|
;// CONCATENATED MODULE: ./src/components/controls/table/TableRowProperty.vue
|
|
231503
231621
|
|
|
@@ -231510,11 +231628,11 @@ TableRowPoperty = __decorate([vue_class_component_esm({
|
|
|
231510
231628
|
|
|
231511
231629
|
var TableRowProperty_component = normalizeComponent(
|
|
231512
231630
|
table_TableRowPropertyvue_type_script_lang_ts_,
|
|
231513
|
-
|
|
231514
|
-
|
|
231631
|
+
TableRowPropertyvue_type_template_id_c8198e42_scoped_true_render,
|
|
231632
|
+
TableRowPropertyvue_type_template_id_c8198e42_scoped_true_staticRenderFns,
|
|
231515
231633
|
false,
|
|
231516
231634
|
null,
|
|
231517
|
-
"
|
|
231635
|
+
"c8198e42",
|
|
231518
231636
|
null
|
|
231519
231637
|
|
|
231520
231638
|
)
|
|
@@ -233684,6 +233802,10 @@ BackgroundMixins = __decorate([vue_class_component_esm], BackgroundMixins);
|
|
|
233684
233802
|
|
|
233685
233803
|
|
|
233686
233804
|
|
|
233805
|
+
|
|
233806
|
+
|
|
233807
|
+
|
|
233808
|
+
|
|
233687
233809
|
var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
233688
233810
|
(0,inherits/* default */.Z)(FontStyleMixin, _Vue);
|
|
233689
233811
|
|
|
@@ -233696,29 +233818,127 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233696
233818
|
|
|
233697
233819
|
_this = _super.apply(this, arguments);
|
|
233698
233820
|
_this.textStyle = {
|
|
233699
|
-
font:
|
|
233821
|
+
font: '宋体',
|
|
233700
233822
|
size: 14,
|
|
233701
233823
|
bold: false,
|
|
233702
233824
|
italic: false,
|
|
233703
233825
|
script: 0,
|
|
233704
233826
|
underline: false,
|
|
233705
233827
|
strikeout: false,
|
|
233706
|
-
backColor:
|
|
233707
|
-
color:
|
|
233828
|
+
backColor: 'transparent',
|
|
233829
|
+
color: '#000000',
|
|
233708
233830
|
aligned: 'both',
|
|
233709
233831
|
lineSpace: 1.25,
|
|
233710
233832
|
canAddRow: false,
|
|
233711
233833
|
canDeleteRow: false
|
|
233712
233834
|
};
|
|
233713
|
-
_this.aligned = [
|
|
233835
|
+
_this.aligned = ['left', 'right', 'center', 'both'];
|
|
233714
233836
|
return _this;
|
|
233715
233837
|
}
|
|
233716
233838
|
|
|
233717
233839
|
(0,createClass/* default */.Z)(FontStyleMixin, [{
|
|
233840
|
+
key: "getTableNodeInfo",
|
|
233841
|
+
value: function getTableNodeInfo(nodes) {
|
|
233842
|
+
var info = null;
|
|
233843
|
+
|
|
233844
|
+
var isFn = function isFn(nodes) {
|
|
233845
|
+
if ((nodes === null || nodes === void 0 ? void 0 : nodes.parentNode) !== null && nodes !== null && nodes !== void 0 && nodes.parentNode) {
|
|
233846
|
+
if (nodes.parentNode instanceof CellNode/* CellNode */.D) {
|
|
233847
|
+
info = {
|
|
233848
|
+
cellNode: nodes.parentNode,
|
|
233849
|
+
tableNode: nodes.parentNode.parentNode,
|
|
233850
|
+
colInfo: nodes.parentNode.table.colInfos[nodes.parentNode.row.indexOf(nodes.parentNode)],
|
|
233851
|
+
rowInfo: nodes.parentNode.table.rowInfos[nodes.parentNode.table.rows.indexOf(nodes.parentNode.row)]
|
|
233852
|
+
};
|
|
233853
|
+
} else {
|
|
233854
|
+
isFn(nodes.parentNode);
|
|
233855
|
+
}
|
|
233856
|
+
}
|
|
233857
|
+
|
|
233858
|
+
return;
|
|
233859
|
+
};
|
|
233860
|
+
|
|
233861
|
+
if (nodes instanceof CellNode/* CellNode */.D) {
|
|
233862
|
+
info = {
|
|
233863
|
+
cellNode: nodes,
|
|
233864
|
+
tableNode: nodes.parentNode,
|
|
233865
|
+
colInfo: nodes.table.colInfos[nodes.row.indexOf(nodes)],
|
|
233866
|
+
rowInfo: nodes.table.rowInfos[nodes.table.rows.indexOf(nodes.row)]
|
|
233867
|
+
};
|
|
233868
|
+
} else {
|
|
233869
|
+
isFn(nodes);
|
|
233870
|
+
}
|
|
233871
|
+
|
|
233872
|
+
return info;
|
|
233873
|
+
}
|
|
233874
|
+
}, {
|
|
233875
|
+
key: "createTable",
|
|
233876
|
+
value: function createTable(hoEditorFactory, nodes) {
|
|
233877
|
+
var tableNodeInfo = this.getTableNodeInfo(nodes === null || nodes === void 0 ? void 0 : nodes.node);
|
|
233878
|
+
|
|
233879
|
+
if (tableNodeInfo) {
|
|
233880
|
+
var _dPage$drawDomLevel;
|
|
233881
|
+
|
|
233882
|
+
var dPage = hoEditorFactory.drawTree.drawPages[hoEditorFactory.drawTree.caret.pageIndex];
|
|
233883
|
+
var dPageElementNode = (_dPage$drawDomLevel = dPage.drawDomLevel) === null || _dPage$drawDomLevel === void 0 ? void 0 : _dPage$drawDomLevel.domCanvas.parentElement;
|
|
233884
|
+
var tableBounds = {
|
|
233885
|
+
x: hoEditorFactory.pageProperty.leftMarginPixes + tableNodeInfo.tableNode.drawTable.x,
|
|
233886
|
+
y: 0,
|
|
233887
|
+
width: tableNodeInfo.tableNode.drawTable.dWidth,
|
|
233888
|
+
height: 0,
|
|
233889
|
+
cellWidth: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dWidth,
|
|
233890
|
+
cellHeight: tableNodeInfo === null || tableNodeInfo === void 0 ? void 0 : tableNodeInfo.cellNode.drawCell.dHeight,
|
|
233891
|
+
cellY: 20,
|
|
233892
|
+
cellX: 0
|
|
233893
|
+
}; // 取当前页的表格 处理跨页情况
|
|
233894
|
+
|
|
233895
|
+
var drawPageTables = tableNodeInfo.tableNode.drawTable.drawPageTables;
|
|
233896
|
+
var drawPageCells = tableNodeInfo.cellNode.drawCell.drawPageCells;
|
|
233897
|
+
tableBounds.cellX = drawPageCells[0].x + 20;
|
|
233898
|
+
tableBounds.cellY = drawPageCells[0].y + 20;
|
|
233899
|
+
tableBounds.cellWidth = drawPageCells[0].dWidth;
|
|
233900
|
+
tableBounds.cellHeight = drawPageCells[0].dHeight;
|
|
233901
|
+
drawPageTables.forEach(function (v, key) {
|
|
233902
|
+
if (v.parent.pageIndex === dPage.drawMainDoc.pageIndex) {
|
|
233903
|
+
tableBounds.height = v.dHeight;
|
|
233904
|
+
tableBounds.y = dPage.drawMainDoc.y + v.dTop;
|
|
233905
|
+
|
|
233906
|
+
if (drawPageCells.length === drawPageTables.length) {
|
|
233907
|
+
tableBounds.cellHeight = drawPageCells[key].dHeight;
|
|
233908
|
+
}
|
|
233909
|
+
}
|
|
233910
|
+
});
|
|
233911
|
+
var aDiv = document.createElement('div');
|
|
233912
|
+
aDiv.id = 'ho_table_auxiliary';
|
|
233913
|
+
aDiv.style.position = 'absolute';
|
|
233914
|
+
aDiv.style.left = hoEditorFactory.pageProperty.leftMarginPixes - 20 + 'px';
|
|
233915
|
+
aDiv.style.top = tableBounds.y - 20 + 'px';
|
|
233916
|
+
aDiv.style.height = hoEditorFactory.pageProperty.heightPixes - tableBounds.y - hoEditorFactory.pageProperty.footerYPixes + 'px';
|
|
233917
|
+
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 ");
|
|
233918
|
+
/**
|
|
233919
|
+
* 上方隐藏 只处理左侧提示
|
|
233920
|
+
`
|
|
233921
|
+
<div id="ho_table_auxiliary_top" style="width: ${tableBounds.width}px"></div>
|
|
233922
|
+
<div id="ho_table_auxiliary_top_active" style="width: ${tableBounds.cellWidth}px;left: ${tableBounds.cellX}px;"></div>
|
|
233923
|
+
`
|
|
233924
|
+
*/
|
|
233925
|
+
|
|
233926
|
+
dPageElementNode === null || dPageElementNode === void 0 ? void 0 : dPageElementNode.appendChild(aDiv);
|
|
233927
|
+
}
|
|
233928
|
+
}
|
|
233929
|
+
}, {
|
|
233718
233930
|
key: "setFontStyle",
|
|
233719
233931
|
value: function setFontStyle(hoEditorFactory) {
|
|
233720
233932
|
var _nodes$node;
|
|
233721
233933
|
|
|
233934
|
+
var elementNode = document.querySelector('#ho_table_auxiliary');
|
|
233935
|
+
|
|
233936
|
+
if (elementNode) {
|
|
233937
|
+
var _elementNode$parentEl;
|
|
233938
|
+
|
|
233939
|
+
(_elementNode$parentEl = elementNode.parentElement) === null || _elementNode$parentEl === void 0 ? void 0 : _elementNode$parentEl.removeChild(elementNode);
|
|
233940
|
+
}
|
|
233941
|
+
|
|
233722
233942
|
var vueControllers = hoEditorFactory.vueController;
|
|
233723
233943
|
var path = vueControllers.getCaretPosition();
|
|
233724
233944
|
var nodes = vueControllers.findNodebyPath(path);
|
|
@@ -233749,6 +233969,10 @@ var FontStyleMixin = /*#__PURE__*/function (_Vue) {
|
|
|
233749
233969
|
};
|
|
233750
233970
|
}
|
|
233751
233971
|
|
|
233972
|
+
if (hoEditorFactory.isCanUseTableProperty && nodes) {
|
|
233973
|
+
this.createTable(hoEditorFactory, nodes);
|
|
233974
|
+
}
|
|
233975
|
+
|
|
233752
233976
|
vueControllers.getCurTextStyle();
|
|
233753
233977
|
this.textStyle = _objectSpread2({
|
|
233754
233978
|
font: vueControllers.combineStyle.font !== undefined ? vueControllers.combineStyle.font : this.textStyle.font,
|
|
@@ -234223,6 +234447,7 @@ var HoDocs = /*#__PURE__*/function (_Mixins) {
|
|
|
234223
234447
|
return null;
|
|
234224
234448
|
};
|
|
234225
234449
|
|
|
234450
|
+
nodeInfoes.isCanUseTableProperty = hoEditorFactory.isCanUseTableProperty;
|
|
234226
234451
|
this.$emit('rightClickEvent', nodeInfoes);
|
|
234227
234452
|
}
|
|
234228
234453
|
/**
|
|
@@ -240178,7 +240403,8 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240178
240403
|
_this$rightNode14,
|
|
240179
240404
|
_this$rightNode15,
|
|
240180
240405
|
_this$rightNode16,
|
|
240181
|
-
_this$rightNode17
|
|
240406
|
+
_this$rightNode17,
|
|
240407
|
+
_this$rightNode18;
|
|
240182
240408
|
|
|
240183
240409
|
var h = arguments[0];
|
|
240184
240410
|
return h("div", {
|
|
@@ -240298,7 +240524,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240298
240524
|
return _this4.toUpdateNodes("text", event);
|
|
240299
240525
|
}
|
|
240300
240526
|
}
|
|
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", {
|
|
240527
|
+
}, ["\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
240528
|
"class": "mouse-right-menu"
|
|
240303
240529
|
}, [h("li", {
|
|
240304
240530
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -240330,7 +240556,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240330
240556
|
return _this4.toUpdateNodes("table-cell", event);
|
|
240331
240557
|
}
|
|
240332
240558
|
}
|
|
240333
|
-
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$
|
|
240559
|
+
}, ["\u5355\u5143\u683C\u5C5E\u6027"])]), ((_this$rightNode16 = this.rightNode) === null || _this$rightNode16 === void 0 ? void 0 : _this$rightNode16.rightTypeIsTable) && this.defaultTable && h("ul", {
|
|
240334
240560
|
"class": "mouse-right-menu"
|
|
240335
240561
|
}, [h("li", {
|
|
240336
240562
|
"class": "mouse-menu-item mouse-right-menu-line"
|
|
@@ -240344,7 +240570,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240344
240570
|
table: this.defaultTable,
|
|
240345
240571
|
tableProperty: this.rightNode.tableProperty
|
|
240346
240572
|
})
|
|
240347
|
-
})]), ((_this$
|
|
240573
|
+
})]), ((_this$rightNode17 = this.rightNode) === null || _this$rightNode17 === void 0 ? void 0 : _this$rightNode17.canShowComment) && h("ul", {
|
|
240348
240574
|
"class": "mouse-right-menu"
|
|
240349
240575
|
}, [h("li", {
|
|
240350
240576
|
"class": "mouse-menu-item",
|
|
@@ -240353,7 +240579,7 @@ var HoRightMenu = /*#__PURE__*/function (_Mixins) {
|
|
|
240353
240579
|
return _this4.hideComments();
|
|
240354
240580
|
}
|
|
240355
240581
|
}
|
|
240356
|
-
}, [(_this$
|
|
240582
|
+
}, [(_this$rightNode18 = this.rightNode) !== null && _this$rightNode18 !== void 0 && _this$rightNode18.isHideComments ? "显示" : "隐藏", "\u6279\u6CE8"])]), h("ul", {
|
|
240357
240583
|
"class": "mouse-right-menu"
|
|
240358
240584
|
}, [h("li", {
|
|
240359
240585
|
"class": "mouse-menu-item"
|