hoeditor-web 3.1.116 → 3.1.118
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.css +1 -17969
- package/lib/hoeditor.umd.js +663 -184
- package/lib/hoeditor.umd.min.js +12 -12
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -37150,7 +37150,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37150
37150
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(80543);
|
|
37151
37151
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(81448);
|
|
37152
37152
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(94310);
|
|
37153
|
-
/* harmony import */ var
|
|
37153
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__ = __webpack_require__(40735);
|
|
37154
37154
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(70280);
|
|
37155
37155
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(66298);
|
|
37156
37156
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(78255);
|
|
@@ -37267,6 +37267,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
37267
37267
|
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_97__ = __webpack_require__(63602);
|
|
37268
37268
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__ = __webpack_require__(51760);
|
|
37269
37269
|
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_99__ = __webpack_require__(62783);
|
|
37270
|
+
/* harmony import */ var _treeNode_PopQScoreNode__WEBPACK_IMPORTED_MODULE_100__ = __webpack_require__(12790);
|
|
37271
|
+
|
|
37270
37272
|
|
|
37271
37273
|
|
|
37272
37274
|
|
|
@@ -37513,7 +37515,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37513
37515
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
37514
37516
|
var domRange = hoEditorFactory.docTree.curDomRange;
|
|
37515
37517
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview) {
|
|
37516
|
-
|
|
37518
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37517
37519
|
return;
|
|
37518
37520
|
}
|
|
37519
37521
|
// alert(text);
|
|
@@ -37550,7 +37552,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37550
37552
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37551
37553
|
//const cellText = cellNode.getCellText();
|
|
37552
37554
|
if (!isAllowEdit) {
|
|
37553
|
-
|
|
37555
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37554
37556
|
return;
|
|
37555
37557
|
}
|
|
37556
37558
|
}
|
|
@@ -37558,7 +37560,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37558
37560
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37559
37561
|
//const cellText = cellNode.getCellText();
|
|
37560
37562
|
if (!_isAllowEdit) {
|
|
37561
|
-
|
|
37563
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37562
37564
|
return;
|
|
37563
37565
|
}
|
|
37564
37566
|
}
|
|
@@ -37980,7 +37982,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37980
37982
|
domRange = domRange.normalize();
|
|
37981
37983
|
} else if ((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
37982
37984
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_35__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
37983
|
-
|
|
37985
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
37984
37986
|
return;
|
|
37985
37987
|
}
|
|
37986
37988
|
}
|
|
@@ -38205,7 +38207,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38205
38207
|
_context.next = 86;
|
|
38206
38208
|
break;
|
|
38207
38209
|
}
|
|
38208
|
-
|
|
38210
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
38209
38211
|
return _context.abrupt("return");
|
|
38210
38212
|
case 86:
|
|
38211
38213
|
if (!((hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psReview || hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psTrace) && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
@@ -38217,21 +38219,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38217
38219
|
_context.next = 91;
|
|
38218
38220
|
break;
|
|
38219
38221
|
}
|
|
38220
|
-
|
|
38222
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
38221
38223
|
return _context.abrupt("return");
|
|
38222
38224
|
case 91:
|
|
38223
38225
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
38224
38226
|
_context.next = 94;
|
|
38225
38227
|
break;
|
|
38226
38228
|
}
|
|
38227
|
-
|
|
38229
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
38228
38230
|
return _context.abrupt("return");
|
|
38229
38231
|
case 94:
|
|
38230
38232
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
38231
38233
|
_context.next = 97;
|
|
38232
38234
|
break;
|
|
38233
38235
|
}
|
|
38234
|
-
|
|
38236
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
38235
38237
|
return _context.abrupt("return");
|
|
38236
38238
|
case 97:
|
|
38237
38239
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_91__/* .SignNode */ .N)) {
|
|
@@ -38666,6 +38668,44 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38666
38668
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, menstrualHistoryNode));
|
|
38667
38669
|
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38668
38670
|
}
|
|
38671
|
+
/**
|
|
38672
|
+
* 插入 Pop-Q评分
|
|
38673
|
+
* @param operType
|
|
38674
|
+
* @param curDomRange
|
|
38675
|
+
* @param expressionStyle
|
|
38676
|
+
* @param menseDays
|
|
38677
|
+
* @param cycleDays
|
|
38678
|
+
* @param menarcheAge
|
|
38679
|
+
* @param menoPauseAge
|
|
38680
|
+
*/
|
|
38681
|
+
}, {
|
|
38682
|
+
key: "insertPopQScore",
|
|
38683
|
+
value: function insertPopQScore(operType, curDomRange, popQScoreRequest) {
|
|
38684
|
+
var domRange = curDomRange.normalize();
|
|
38685
|
+
var startPath = domRange.endPath;
|
|
38686
|
+
if (operType === 'update') {
|
|
38687
|
+
var np = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.findNodePositionByPath(startPath);
|
|
38688
|
+
if (np) {
|
|
38689
|
+
var node = np.node;
|
|
38690
|
+
if (node instanceof _treeNode_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_52__/* .MedicalExpressionNode */ .H) {
|
|
38691
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38692
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_44__/* .NodeDeleteUndoUnit */ .w(this._hoEditorFactoryID, node, startPath));
|
|
38693
|
+
//HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38694
|
+
//startPath = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID).docTree.curDomRange.startPath;
|
|
38695
|
+
startPath = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getNodeLastPath(node.previousLeaf());
|
|
38696
|
+
}
|
|
38697
|
+
}
|
|
38698
|
+
}
|
|
38699
|
+
var parentNode = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).docTree.getParentNode(startPath);
|
|
38700
|
+
var popQScoreNode = new _treeNode_PopQScoreNode__WEBPACK_IMPORTED_MODULE_100__/* .PopQScoreNode */ .B(this._hoEditorFactoryID, domRange.npStart.roots, parentNode, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_32__/* .NodeType */ .Jq.nPopQScore, popQScoreRequest.Aa, popQScoreRequest.Ba, popQScoreRequest.C, popQScoreRequest.gh, popQScoreRequest.pb, popQScoreRequest.TVL, popQScoreRequest.Ap, popQScoreRequest.Bp, popQScoreRequest.D);
|
|
38701
|
+
debugger;
|
|
38702
|
+
//插入该表达式节点
|
|
38703
|
+
if (operType === 'add') {
|
|
38704
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.begin();
|
|
38705
|
+
}
|
|
38706
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .R(this._hoEditorFactoryID, startPath, popQScoreNode));
|
|
38707
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).undoService.commit();
|
|
38708
|
+
}
|
|
38669
38709
|
/**
|
|
38670
38710
|
* 瞳孔图
|
|
38671
38711
|
* @param 参数1
|
|
@@ -39118,11 +39158,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39118
39158
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
39119
39159
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
39120
39160
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_53__/* .TextInputFieldNode */ .re) {
|
|
39121
|
-
|
|
39161
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
39122
39162
|
return;
|
|
39123
39163
|
}
|
|
39124
39164
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) {
|
|
39125
|
-
|
|
39165
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
39126
39166
|
return;
|
|
39127
39167
|
}
|
|
39128
39168
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -39186,7 +39226,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39186
39226
|
c = _cell$table$getCellIn2[1];
|
|
39187
39227
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
39188
39228
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39189
|
-
|
|
39229
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39190
39230
|
return;
|
|
39191
39231
|
}
|
|
39192
39232
|
}
|
|
@@ -39328,7 +39368,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39328
39368
|
// );
|
|
39329
39369
|
// }
|
|
39330
39370
|
} else {
|
|
39331
|
-
|
|
39371
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39332
39372
|
return;
|
|
39333
39373
|
}
|
|
39334
39374
|
}
|
|
@@ -39349,7 +39389,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39349
39389
|
c = _cell$table$getCellIn4[1];
|
|
39350
39390
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_98__/* .PaintState */ .Dh.psEdit) {
|
|
39351
39391
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
39352
|
-
|
|
39392
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
39353
39393
|
return;
|
|
39354
39394
|
}
|
|
39355
39395
|
}
|
|
@@ -39450,7 +39490,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39450
39490
|
// );
|
|
39451
39491
|
// }
|
|
39452
39492
|
} else {
|
|
39453
|
-
|
|
39493
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
39454
39494
|
return;
|
|
39455
39495
|
}
|
|
39456
39496
|
}
|
|
@@ -39511,7 +39551,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39511
39551
|
// );
|
|
39512
39552
|
// }
|
|
39513
39553
|
} else {
|
|
39514
|
-
|
|
39554
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39515
39555
|
return;
|
|
39516
39556
|
}
|
|
39517
39557
|
}
|
|
@@ -39569,7 +39609,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39569
39609
|
// );
|
|
39570
39610
|
// }
|
|
39571
39611
|
} else {
|
|
39572
|
-
|
|
39612
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
39573
39613
|
return;
|
|
39574
39614
|
}
|
|
39575
39615
|
}
|
|
@@ -39586,7 +39626,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39586
39626
|
r2 = _TableNode$getSelectT2[3],
|
|
39587
39627
|
c2 = _TableNode$getSelectT2[4];
|
|
39588
39628
|
if (!table) {
|
|
39589
|
-
|
|
39629
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39590
39630
|
return;
|
|
39591
39631
|
}
|
|
39592
39632
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -39598,7 +39638,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39598
39638
|
for (var i = r1; i <= r2; i++) {
|
|
39599
39639
|
var rowInfo = table.rowInfos[i];
|
|
39600
39640
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39601
|
-
|
|
39641
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39602
39642
|
return;
|
|
39603
39643
|
}
|
|
39604
39644
|
}
|
|
@@ -39657,7 +39697,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39657
39697
|
r2 = _TableNode$getSelectT4[3],
|
|
39658
39698
|
c2 = _TableNode$getSelectT4[4];
|
|
39659
39699
|
if (!table) {
|
|
39660
|
-
|
|
39700
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39661
39701
|
return;
|
|
39662
39702
|
}
|
|
39663
39703
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -39710,7 +39750,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39710
39750
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39711
39751
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39712
39752
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39713
|
-
|
|
39753
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39714
39754
|
return;
|
|
39715
39755
|
}
|
|
39716
39756
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39762,7 +39802,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39762
39802
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39763
39803
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39764
39804
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_64__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39765
|
-
|
|
39805
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39766
39806
|
return;
|
|
39767
39807
|
}
|
|
39768
39808
|
var endPath = cell1.table.getNodePath();
|
|
@@ -40070,7 +40110,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40070
40110
|
}
|
|
40071
40111
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40072
40112
|
if (object.obj2.size === 0) {
|
|
40073
|
-
|
|
40113
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40074
40114
|
} else {
|
|
40075
40115
|
var nodesMap = object.obj1;
|
|
40076
40116
|
var indexsMap = object.obj2;
|
|
@@ -40131,7 +40171,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40131
40171
|
sNode = startNode.rootNodes[0];
|
|
40132
40172
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
40133
40173
|
if (object.obj2.size === 0) {
|
|
40134
|
-
|
|
40174
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
40135
40175
|
} else {
|
|
40136
40176
|
var nodesMap = object.obj1;
|
|
40137
40177
|
var indexsMap = object.obj2;
|
|
@@ -40183,7 +40223,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40183
40223
|
} finally {
|
|
40184
40224
|
_iterator.f();
|
|
40185
40225
|
}
|
|
40186
|
-
|
|
40226
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
40187
40227
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
40188
40228
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
40189
40229
|
}
|
|
@@ -40565,7 +40605,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40565
40605
|
} else {
|
|
40566
40606
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
40567
40607
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
40568
|
-
|
|
40608
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_101__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
40569
40609
|
return;
|
|
40570
40610
|
}
|
|
40571
40611
|
del(_comment);
|
|
@@ -40886,9 +40926,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40886
40926
|
return;
|
|
40887
40927
|
}
|
|
40888
40928
|
var hoeditorfactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_84__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40929
|
+
// const startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
40930
|
+
// const curNode = hoeditorfactory.docTree.findNodePositionByPath(startPos.path)?.node;
|
|
40889
40931
|
var curNode = hoeditorfactory.docTree.curDomRange.normalize().npStart.node;
|
|
40890
40932
|
//const parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
40891
|
-
var parentNode = curNode.parentNode;
|
|
40933
|
+
var parentNode = curNode === null || curNode === void 0 ? void 0 : curNode.parentNode;
|
|
40892
40934
|
if (parentNode) {
|
|
40893
40935
|
for (var i = 0; i < nodes.length; i++) {
|
|
40894
40936
|
var node = nodes[i];
|
|
@@ -49150,6 +49192,7 @@ var NodeType;
|
|
|
49150
49192
|
NodeType[NodeType["ntGestation"] = 16] = "ntGestation";
|
|
49151
49193
|
NodeType[NodeType["ntRareChar"] = 17] = "ntRareChar";
|
|
49152
49194
|
NodeType[NodeType["ntJumpButton"] = 18] = "ntJumpButton";
|
|
49195
|
+
NodeType[NodeType["nPopQScore"] = 19] = "nPopQScore";
|
|
49153
49196
|
})(NodeType || (NodeType = {}));
|
|
49154
49197
|
var ChildIndexRange = /*#__PURE__*/function () {
|
|
49155
49198
|
function ChildIndexRange(start, end) {
|
|
@@ -56621,6 +56664,299 @@ var PermanentTeethMapNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
|
56621
56664
|
|
|
56622
56665
|
/***/ }),
|
|
56623
56666
|
|
|
56667
|
+
/***/ 12790:
|
|
56668
|
+
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
56669
|
+
|
|
56670
|
+
"use strict";
|
|
56671
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
56672
|
+
/* harmony export */ B: function() { return /* binding */ PopQScoreNode; }
|
|
56673
|
+
/* harmony export */ });
|
|
56674
|
+
/* unused harmony export PopQScoreRequest */
|
|
56675
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(70280);
|
|
56676
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(66298);
|
|
56677
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(75808);
|
|
56678
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(11651);
|
|
56679
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19593);
|
|
56680
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(78255);
|
|
56681
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(40561);
|
|
56682
|
+
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
56683
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(57658);
|
|
56684
|
+
/* harmony import */ var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
56685
|
+
/* harmony import */ var _MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(80177);
|
|
56686
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62358);
|
|
56687
|
+
/* harmony import */ var _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(82260);
|
|
56688
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(74089);
|
|
56689
|
+
|
|
56690
|
+
|
|
56691
|
+
|
|
56692
|
+
|
|
56693
|
+
|
|
56694
|
+
|
|
56695
|
+
|
|
56696
|
+
|
|
56697
|
+
/*
|
|
56698
|
+
* @Author: zfq
|
|
56699
|
+
* @Description: Pop-Q评分
|
|
56700
|
+
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\PopQScoreNode.ts
|
|
56701
|
+
*/
|
|
56702
|
+
|
|
56703
|
+
|
|
56704
|
+
|
|
56705
|
+
|
|
56706
|
+
var PopQScoreNode = /*#__PURE__*/function (_MedicalExpressionNod) {
|
|
56707
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(PopQScoreNode, _MedicalExpressionNod);
|
|
56708
|
+
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(PopQScoreNode);
|
|
56709
|
+
function PopQScoreNode(hoEditorFactoryID, rootNodes, pNode, nodeType, aa, ba, c, gh, pb, tvl, ap, bp, d) {
|
|
56710
|
+
var _this;
|
|
56711
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, PopQScoreNode);
|
|
56712
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, nodeType);
|
|
56713
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_Aa", void 0);
|
|
56714
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_Ba", void 0);
|
|
56715
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_C", void 0);
|
|
56716
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_gh", void 0);
|
|
56717
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_pb", void 0);
|
|
56718
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_TVL", void 0);
|
|
56719
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_Ap", void 0);
|
|
56720
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_Bp", void 0);
|
|
56721
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this), "_D", void 0);
|
|
56722
|
+
_this._Aa = aa;
|
|
56723
|
+
_this._Ba = ba;
|
|
56724
|
+
_this._C = c;
|
|
56725
|
+
_this._gh = gh;
|
|
56726
|
+
_this._pb = pb;
|
|
56727
|
+
_this._TVL = tvl;
|
|
56728
|
+
_this._Ap = ap;
|
|
56729
|
+
_this._Bp = bp;
|
|
56730
|
+
_this._D = d;
|
|
56731
|
+
_this.node2DrawNodeRange(0, 0);
|
|
56732
|
+
return _this;
|
|
56733
|
+
}
|
|
56734
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(PopQScoreNode, [{
|
|
56735
|
+
key: "aa",
|
|
56736
|
+
get: function get() {
|
|
56737
|
+
return this._Aa;
|
|
56738
|
+
},
|
|
56739
|
+
set: function set(val) {
|
|
56740
|
+
if (val !== this._Aa) {
|
|
56741
|
+
this._Aa = val;
|
|
56742
|
+
}
|
|
56743
|
+
}
|
|
56744
|
+
}, {
|
|
56745
|
+
key: "ba",
|
|
56746
|
+
get: function get() {
|
|
56747
|
+
return this._Ba;
|
|
56748
|
+
},
|
|
56749
|
+
set: function set(val) {
|
|
56750
|
+
if (val !== this._Ba) {
|
|
56751
|
+
this._Ba = val;
|
|
56752
|
+
}
|
|
56753
|
+
}
|
|
56754
|
+
}, {
|
|
56755
|
+
key: "c",
|
|
56756
|
+
get: function get() {
|
|
56757
|
+
return this._C;
|
|
56758
|
+
},
|
|
56759
|
+
set: function set(val) {
|
|
56760
|
+
if (val !== this._Aa) {
|
|
56761
|
+
this._C = val;
|
|
56762
|
+
}
|
|
56763
|
+
}
|
|
56764
|
+
}, {
|
|
56765
|
+
key: "gh",
|
|
56766
|
+
get: function get() {
|
|
56767
|
+
return this._gh;
|
|
56768
|
+
},
|
|
56769
|
+
set: function set(val) {
|
|
56770
|
+
if (val !== this._gh) {
|
|
56771
|
+
this._gh = val;
|
|
56772
|
+
}
|
|
56773
|
+
}
|
|
56774
|
+
}, {
|
|
56775
|
+
key: "pb",
|
|
56776
|
+
get: function get() {
|
|
56777
|
+
return this._pb;
|
|
56778
|
+
},
|
|
56779
|
+
set: function set(val) {
|
|
56780
|
+
if (val !== this._pb) {
|
|
56781
|
+
this._pb = val;
|
|
56782
|
+
}
|
|
56783
|
+
}
|
|
56784
|
+
}, {
|
|
56785
|
+
key: "tVL",
|
|
56786
|
+
get: function get() {
|
|
56787
|
+
return this._TVL;
|
|
56788
|
+
},
|
|
56789
|
+
set: function set(val) {
|
|
56790
|
+
if (val !== this._TVL) {
|
|
56791
|
+
this._TVL = val;
|
|
56792
|
+
}
|
|
56793
|
+
}
|
|
56794
|
+
}, {
|
|
56795
|
+
key: "ap",
|
|
56796
|
+
get: function get() {
|
|
56797
|
+
return this._Ap;
|
|
56798
|
+
},
|
|
56799
|
+
set: function set(val) {
|
|
56800
|
+
if (val !== this._pb) {
|
|
56801
|
+
this._Ap = val;
|
|
56802
|
+
}
|
|
56803
|
+
}
|
|
56804
|
+
}, {
|
|
56805
|
+
key: "bp",
|
|
56806
|
+
get: function get() {
|
|
56807
|
+
return this._Bp;
|
|
56808
|
+
},
|
|
56809
|
+
set: function set(val) {
|
|
56810
|
+
if (val !== this._Bp) {
|
|
56811
|
+
this._Bp = val;
|
|
56812
|
+
}
|
|
56813
|
+
}
|
|
56814
|
+
}, {
|
|
56815
|
+
key: "d",
|
|
56816
|
+
get: function get() {
|
|
56817
|
+
return this._D;
|
|
56818
|
+
},
|
|
56819
|
+
set: function set(val) {
|
|
56820
|
+
if (val !== this._D) {
|
|
56821
|
+
this._D = val;
|
|
56822
|
+
}
|
|
56823
|
+
}
|
|
56824
|
+
}, {
|
|
56825
|
+
key: "node2Json",
|
|
56826
|
+
value: function node2Json(range, isCopy) {
|
|
56827
|
+
debugger;
|
|
56828
|
+
var retObj = {
|
|
56829
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_9__/* .NodeType */ .Jq[this.nodeType],
|
|
56830
|
+
expressType: "PopQScoreNode",
|
|
56831
|
+
Aa: this.aa,
|
|
56832
|
+
Ba: this.ba,
|
|
56833
|
+
C: this.c,
|
|
56834
|
+
gh: this.gh,
|
|
56835
|
+
pb: this.pb,
|
|
56836
|
+
TVL: this.tVL,
|
|
56837
|
+
Ap: this.ap,
|
|
56838
|
+
Bp: this.bp,
|
|
56839
|
+
D: this.d
|
|
56840
|
+
};
|
|
56841
|
+
if (this.remark !== "") {
|
|
56842
|
+
retObj.remark = this.remark;
|
|
56843
|
+
}
|
|
56844
|
+
if (isCopy) {
|
|
56845
|
+
return retObj;
|
|
56846
|
+
}
|
|
56847
|
+
return {
|
|
56848
|
+
"PopQScoreNode": retObj
|
|
56849
|
+
};
|
|
56850
|
+
}
|
|
56851
|
+
}, {
|
|
56852
|
+
key: "getTagNameCn",
|
|
56853
|
+
value: function getTagNameCn() {
|
|
56854
|
+
return "Pop-Q评分";
|
|
56855
|
+
}
|
|
56856
|
+
/**
|
|
56857
|
+
*
|
|
56858
|
+
* @param drawTree 绘制树
|
|
56859
|
+
* @param dline 绘制行
|
|
56860
|
+
*/
|
|
56861
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
56862
|
+
}, {
|
|
56863
|
+
key: "node2DrawNodeRange",
|
|
56864
|
+
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
56865
|
+
debugger;
|
|
56866
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_11__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
56867
|
+
var curStyleIndex = hoEditorFactory.docTree.curStyleIndex;
|
|
56868
|
+
var cbStyle;
|
|
56869
|
+
var textStyle = hoEditorFactory.docTree.styles[curStyleIndex];
|
|
56870
|
+
var newStyle;
|
|
56871
|
+
if (textStyle) {
|
|
56872
|
+
newStyle = textStyle.clone();
|
|
56873
|
+
newStyle.size = 10.5;
|
|
56874
|
+
} else {
|
|
56875
|
+
newStyle = hoEditorFactory.docTree.styles[0].clone();
|
|
56876
|
+
newStyle.size = 10.5;
|
|
56877
|
+
}
|
|
56878
|
+
cbStyle = newStyle.combineStyle;
|
|
56879
|
+
// if (textStyle) {
|
|
56880
|
+
// textStyle.size = 10.5;
|
|
56881
|
+
// cbStyle = textStyle.combineStyle;
|
|
56882
|
+
// } else {
|
|
56883
|
+
// cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
56884
|
+
// }
|
|
56885
|
+
var dHeight = hoEditorFactory.getFontHeightByFontSize(cbStyle.size);
|
|
56886
|
+
var lineHight = dHeight * 3;
|
|
56887
|
+
/* 注意绘制顺序 */
|
|
56888
|
+
var arrValues = ['Ap=' + this.ap, 'Bp=' + this.bp, 'D=' + this.d, 'gh=' + this.gh, 'pb=' + this.pb, 'TVL=' + this.tVL, 'Aa=' + this.aa, 'Ba=' + this.ba, 'C=' + this.c];
|
|
56889
|
+
var bIsInsert = startIndex < 0;
|
|
56890
|
+
var width = 240;
|
|
56891
|
+
debugger;
|
|
56892
|
+
var dNode = new _editor_draw_drawNode_DrawMedicalExpression__WEBPACK_IMPORTED_MODULE_10__/* .DrawMedicalExpression */ .T(this._hoEditorFactoryID, this._rootPath, this, 0, "pop-QScore", arrValues, cbStyle, lineHight, width);
|
|
56893
|
+
if (bIsInsert) {
|
|
56894
|
+
this._drawNodes.splice(0, 0, dNode);
|
|
56895
|
+
} else {
|
|
56896
|
+
this._drawNodes.push(dNode);
|
|
56897
|
+
}
|
|
56898
|
+
}
|
|
56899
|
+
}, {
|
|
56900
|
+
key: "node2DrawNode",
|
|
56901
|
+
value: function node2DrawNode() {
|
|
56902
|
+
this.clearDrawNodes(0, 0);
|
|
56903
|
+
this.node2DrawNodeRange(0, 0);
|
|
56904
|
+
}
|
|
56905
|
+
/**
|
|
56906
|
+
* @author xyl
|
|
56907
|
+
* @param dRoots 绘制根数组
|
|
56908
|
+
* @param paragraphNode 对应的段落
|
|
56909
|
+
* @param start 当前起始位置,绘制时不应含入
|
|
56910
|
+
* @param endIndex 结束位置 ,包含入
|
|
56911
|
+
*/
|
|
56912
|
+
//根据可放置的宽度,将普通组件转换成绘制组件
|
|
56913
|
+
}, {
|
|
56914
|
+
key: "placeDNode2DrawLine",
|
|
56915
|
+
value: function placeDNode2DrawLine(droots, paragraphNode, dline, start, endIndex) {
|
|
56916
|
+
debugger;
|
|
56917
|
+
var startIndex = start;
|
|
56918
|
+
if (startIndex >= 1) {
|
|
56919
|
+
return dline;
|
|
56920
|
+
}
|
|
56921
|
+
dline.addChild(this._drawNodes[0]);
|
|
56922
|
+
dline.drawItems.push(this._drawNodes[0]);
|
|
56923
|
+
dline.fitLines();
|
|
56924
|
+
return dline.paragraphNode.getLastDrawline();
|
|
56925
|
+
}
|
|
56926
|
+
}], [{
|
|
56927
|
+
key: "json2Node",
|
|
56928
|
+
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
56929
|
+
debugger;
|
|
56930
|
+
var rtn = new PopQScoreNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_9__/* .NodeType */ .Jq.nPopQScore, json.Aa, json.Ba, json.C, json.gh, json.pb, json.TVL, json.Ap, json.Bp, json.D);
|
|
56931
|
+
return rtn;
|
|
56932
|
+
}
|
|
56933
|
+
}]);
|
|
56934
|
+
return PopQScoreNode;
|
|
56935
|
+
}(_MedicalExpressionNode__WEBPACK_IMPORTED_MODULE_8__/* .MedicalExpressionNode */ .H);
|
|
56936
|
+
var PopQScoreRequest = /*#__PURE__*/(/* unused pure expression or super */ null && (_createClass(function PopQScoreRequest(aa, ba, c, gh, pb, tvl, ap, bp, d) {
|
|
56937
|
+
_classCallCheck(this, PopQScoreRequest);
|
|
56938
|
+
_defineProperty(this, "Aa", void 0);
|
|
56939
|
+
_defineProperty(this, "Ba", void 0);
|
|
56940
|
+
_defineProperty(this, "C", void 0);
|
|
56941
|
+
_defineProperty(this, "gh", void 0);
|
|
56942
|
+
_defineProperty(this, "pb", void 0);
|
|
56943
|
+
_defineProperty(this, "TVL", void 0);
|
|
56944
|
+
_defineProperty(this, "Ap", void 0);
|
|
56945
|
+
_defineProperty(this, "Bp", void 0);
|
|
56946
|
+
_defineProperty(this, "D", void 0);
|
|
56947
|
+
this.Aa = aa || '0';
|
|
56948
|
+
this.Ba = ba || '0';
|
|
56949
|
+
this.C = c || '0';
|
|
56950
|
+
this.gh = gh || '0';
|
|
56951
|
+
this.pb = pb || '0';
|
|
56952
|
+
this.TVL = tvl || '0';
|
|
56953
|
+
this.Ap = ap || '0';
|
|
56954
|
+
this.Bp = bp || '0';
|
|
56955
|
+
this.D = d || '0';
|
|
56956
|
+
})));
|
|
56957
|
+
|
|
56958
|
+
/***/ }),
|
|
56959
|
+
|
|
56624
56960
|
/***/ 11429:
|
|
56625
56961
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
56626
56962
|
|
|
@@ -60467,13 +60803,16 @@ var TableFormula = /*#__PURE__*/function (_ControlNode) {
|
|
|
60467
60803
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_33__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
60468
60804
|
var strValue = hoEditorFactory.unitConvert.replaceAll(cell.getCellText(), '\n', '');
|
|
60469
60805
|
//如果单元格存在下拉项,取值为下拉项的value,而非节点的text
|
|
60470
|
-
if (
|
|
60806
|
+
if (cell.cellProperty.downListProperty) {
|
|
60471
60807
|
var listItems = JSON.parse(cell.cellProperty.downListProperty.listItems);
|
|
60472
60808
|
var itemObject = listItems.find(function (item) {
|
|
60473
60809
|
return item.text === strValue;
|
|
60474
60810
|
});
|
|
60475
60811
|
if (itemObject) {
|
|
60476
60812
|
strValue = itemObject.value;
|
|
60813
|
+
if (strValue === '') {
|
|
60814
|
+
strValue = itemObject.text;
|
|
60815
|
+
}
|
|
60477
60816
|
}
|
|
60478
60817
|
}
|
|
60479
60818
|
strValue = hoEditorFactory.unitConvert.replaceAll(strValue, ' ', '');
|
|
@@ -74650,17 +74989,22 @@ var DrawMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74650
74989
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
74651
74990
|
/* harmony export */ T: function() { return /* binding */ DrawMedicalExpression; }
|
|
74652
74991
|
/* harmony export */ });
|
|
74653
|
-
/* harmony import */ var
|
|
74654
|
-
/* harmony import */ var
|
|
74655
|
-
/* harmony import */ var
|
|
74656
|
-
/* harmony import */ var
|
|
74657
|
-
/* harmony import */ var
|
|
74658
|
-
/* harmony import */ var
|
|
74659
|
-
/* harmony import */ var
|
|
74660
|
-
/* harmony import */ var
|
|
74661
|
-
/* harmony import */ var
|
|
74662
|
-
/* harmony import */ var
|
|
74663
|
-
/* harmony import */ var
|
|
74992
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(27222);
|
|
74993
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(70280);
|
|
74994
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(66298);
|
|
74995
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(75808);
|
|
74996
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(11651);
|
|
74997
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(19593);
|
|
74998
|
+
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(78255);
|
|
74999
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(92222);
|
|
75000
|
+
/* harmony import */ var core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_concat_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
75001
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(69600);
|
|
75002
|
+
/* harmony import */ var core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_join_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
75003
|
+
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(38205);
|
|
75004
|
+
/* harmony import */ var _yuki_createjs__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(_yuki_createjs__WEBPACK_IMPORTED_MODULE_9__);
|
|
75005
|
+
/* harmony import */ var _DrawCombineNode__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(66114);
|
|
75006
|
+
|
|
75007
|
+
|
|
74664
75008
|
|
|
74665
75009
|
|
|
74666
75010
|
|
|
@@ -74679,18 +75023,18 @@ var DrawMarkNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74679
75023
|
|
|
74680
75024
|
|
|
74681
75025
|
var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
74682
|
-
(0,
|
|
74683
|
-
var _super = (0,
|
|
75026
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_inherits_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .Z)(DrawMedicalExpression, _DrawCombineNode);
|
|
75027
|
+
var _super = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createSuper_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(DrawMedicalExpression);
|
|
74684
75028
|
function DrawMedicalExpression(hoeditfactoryID, rootPath, node, index, expressionStyle, arrValues, textStyle, dHeight, dWidth, line) {
|
|
74685
75029
|
var _this;
|
|
74686
|
-
(0,
|
|
75030
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, DrawMedicalExpression);
|
|
74687
75031
|
_this = _super.call(this, hoeditfactoryID, rootPath, node, index);
|
|
74688
|
-
(0,
|
|
74689
|
-
(0,
|
|
74690
|
-
(0,
|
|
74691
|
-
(0,
|
|
74692
|
-
(0,
|
|
74693
|
-
(0,
|
|
75032
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_expressionStyle", void 0);
|
|
75033
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_arrValues", void 0);
|
|
75034
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_textStyle", void 0);
|
|
75035
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_w", 0);
|
|
75036
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_h", 0);
|
|
75037
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_line", void 0);
|
|
74694
75038
|
_this._expressionStyle = expressionStyle;
|
|
74695
75039
|
_this._arrValues = arrValues;
|
|
74696
75040
|
_this.dWidth = dWidth;
|
|
@@ -74718,7 +75062,7 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74718
75062
|
_this.drawMedicalExpression(expressionStyle);
|
|
74719
75063
|
return _this;
|
|
74720
75064
|
}
|
|
74721
|
-
(0,
|
|
75065
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DrawMedicalExpression, [{
|
|
74722
75066
|
key: "expressionStyle",
|
|
74723
75067
|
get: function get() {
|
|
74724
75068
|
return this._expressionStyle;
|
|
@@ -74772,10 +75116,49 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
74772
75116
|
//乳牙牙位图
|
|
74773
75117
|
this.drawPrimaryTeeth();
|
|
74774
75118
|
}
|
|
75119
|
+
if (style === "pop-QScore") {
|
|
75120
|
+
//pop-Q 评分
|
|
75121
|
+
this.drawPopQScore();
|
|
75122
|
+
}
|
|
74775
75123
|
if (style === "5") {
|
|
74776
75124
|
this.drawSeparateChar();
|
|
74777
75125
|
}
|
|
74778
75126
|
}
|
|
75127
|
+
}, {
|
|
75128
|
+
key: "drawPopQScore",
|
|
75129
|
+
value: function drawPopQScore() {
|
|
75130
|
+
var cellWidth = this.dWidth / 3;
|
|
75131
|
+
var cellHeight = this.dHeight / 3;
|
|
75132
|
+
// 绘制9宫图文本
|
|
75133
|
+
for (var i = 0; i < 9; i++) {
|
|
75134
|
+
var scoreObj = this._arrValues[i];
|
|
75135
|
+
var _scoreObj$split = scoreObj.split('='),
|
|
75136
|
+
_scoreObj$split2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(_scoreObj$split, 2),
|
|
75137
|
+
name = _scoreObj$split2[0],
|
|
75138
|
+
scoreStr = _scoreObj$split2[1];
|
|
75139
|
+
var text = new createjs.Text("".concat(name, ": ").concat(scoreStr), this._textStyle.getStyleKey(), this._textStyle.color);
|
|
75140
|
+
text.textAlign = "center";
|
|
75141
|
+
text.textBaseline = "middle";
|
|
75142
|
+
var row = Math.floor(i / 3);
|
|
75143
|
+
var col = i % 3;
|
|
75144
|
+
text.x = col * cellWidth + cellWidth / 2; // 居中于格子
|
|
75145
|
+
text.y = -(row * cellHeight + cellHeight / 2); // 居中于格子
|
|
75146
|
+
this.addChild(text);
|
|
75147
|
+
}
|
|
75148
|
+
// 添加格子线
|
|
75149
|
+
for (var _i = 0; _i <= 3; _i++) {
|
|
75150
|
+
// 绘制水平线
|
|
75151
|
+
var hLine = new createjs.Shape();
|
|
75152
|
+
hLine.graphics.beginStroke(this._textStyle.color).moveTo(0, -_i * cellHeight).lineTo(this.dWidth, -_i * cellHeight);
|
|
75153
|
+
hLine.graphics.endStroke(); // 结束线条绘制
|
|
75154
|
+
this.addChild(hLine);
|
|
75155
|
+
// 绘制垂直线
|
|
75156
|
+
var vLine = new createjs.Shape();
|
|
75157
|
+
vLine.graphics.beginStroke(this._textStyle.color).moveTo(_i * cellWidth, 0).lineTo(_i * cellWidth, -this.dHeight);
|
|
75158
|
+
vLine.graphics.endStroke(); // 结束线条绘制
|
|
75159
|
+
this.addChild(vLine);
|
|
75160
|
+
}
|
|
75161
|
+
}
|
|
74779
75162
|
}, {
|
|
74780
75163
|
key: "drawMenstrualHistoryStyle1",
|
|
74781
75164
|
value: function drawMenstrualHistoryStyle1() {
|
|
@@ -75166,22 +75549,22 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
75166
75549
|
}
|
|
75167
75550
|
var len2 = this._arrValues[1].split(',').length;
|
|
75168
75551
|
if (len2 > 0) {
|
|
75169
|
-
for (var
|
|
75170
|
-
var topRight = new createjs.Text(this._arrValues[1].split(',')[
|
|
75552
|
+
for (var _i2 = 0; _i2 < 5; _i2++) {
|
|
75553
|
+
var topRight = new createjs.Text(this._arrValues[1].split(',')[_i2], this._textStyle.getStyleKey(), this._textStyle.color);
|
|
75171
75554
|
topRight.y = -this.dHeight / 2 - topRight.getMeasuredHeight() / 2;
|
|
75172
|
-
if (
|
|
75555
|
+
if (_i2 === 4) {
|
|
75173
75556
|
topRight.x = this.dWidth - topRight.getMeasuredWidth();
|
|
75174
75557
|
}
|
|
75175
|
-
if (
|
|
75558
|
+
if (_i2 === 3) {
|
|
75176
75559
|
topRight.x = this.dWidth - 12 - this.dWidth / 10;
|
|
75177
75560
|
}
|
|
75178
|
-
if (
|
|
75561
|
+
if (_i2 === 2) {
|
|
75179
75562
|
topRight.x = this.dWidth - 22 - this.dWidth / 10 * 2;
|
|
75180
75563
|
}
|
|
75181
|
-
if (
|
|
75564
|
+
if (_i2 === 1) {
|
|
75182
75565
|
topRight.x = this.dWidth - 24 - this.dWidth / 10 * 3;
|
|
75183
75566
|
}
|
|
75184
|
-
if (
|
|
75567
|
+
if (_i2 === 0) {
|
|
75185
75568
|
topRight.x = this.dWidth - 16 - this.dWidth / 10 * 4;
|
|
75186
75569
|
}
|
|
75187
75570
|
topRight.textAlign = "left";
|
|
@@ -75191,23 +75574,23 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
75191
75574
|
}
|
|
75192
75575
|
var len3 = this._arrValues[2].split(',').length;
|
|
75193
75576
|
if (len3 > 0) {
|
|
75194
|
-
for (var
|
|
75195
|
-
var bottomLeft = new createjs.Text(this._arrValues[2].split(',')[
|
|
75577
|
+
for (var _i3 = 0; _i3 < 5; _i3++) {
|
|
75578
|
+
var bottomLeft = new createjs.Text(this._arrValues[2].split(',')[_i3], this._textStyle.getStyleKey(), this._textStyle.color);
|
|
75196
75579
|
bottomLeft.y = 0;
|
|
75197
|
-
if (
|
|
75580
|
+
if (_i3 === 0) {
|
|
75198
75581
|
bottomLeft.x = 0;
|
|
75199
75582
|
}
|
|
75200
|
-
if (
|
|
75201
|
-
bottomLeft.x = this.dWidth / 10 *
|
|
75583
|
+
if (_i3 === 1) {
|
|
75584
|
+
bottomLeft.x = this.dWidth / 10 * _i3 * 0.7;
|
|
75202
75585
|
}
|
|
75203
|
-
if (
|
|
75204
|
-
bottomLeft.x = this.dWidth / 10 *
|
|
75586
|
+
if (_i3 === 2) {
|
|
75587
|
+
bottomLeft.x = this.dWidth / 10 * _i3 - 2;
|
|
75205
75588
|
}
|
|
75206
|
-
if (
|
|
75207
|
-
bottomLeft.x = this.dWidth / 10 *
|
|
75589
|
+
if (_i3 === 3) {
|
|
75590
|
+
bottomLeft.x = this.dWidth / 10 * _i3 + 8;
|
|
75208
75591
|
}
|
|
75209
|
-
if (
|
|
75210
|
-
bottomLeft.x = this.dWidth / 10 *
|
|
75592
|
+
if (_i3 === 4) {
|
|
75593
|
+
bottomLeft.x = this.dWidth / 10 * _i3 + 8;
|
|
75211
75594
|
}
|
|
75212
75595
|
bottomLeft.textAlign = "left";
|
|
75213
75596
|
bottomLeft.textBaseline = "alphabetic";
|
|
@@ -75216,22 +75599,22 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
75216
75599
|
}
|
|
75217
75600
|
var len4 = this._arrValues[3].split(',').length;
|
|
75218
75601
|
if (len4 > 0) {
|
|
75219
|
-
for (var
|
|
75220
|
-
var bottomRight = new createjs.Text(this._arrValues[3].split(',')[
|
|
75602
|
+
for (var _i4 = 0; _i4 < 5; _i4++) {
|
|
75603
|
+
var bottomRight = new createjs.Text(this._arrValues[3].split(',')[_i4], this._textStyle.getStyleKey(), this._textStyle.color);
|
|
75221
75604
|
bottomRight.y = 0;
|
|
75222
|
-
if (
|
|
75605
|
+
if (_i4 === 4) {
|
|
75223
75606
|
bottomRight.x = this.dWidth - bottomRight.getMeasuredWidth();
|
|
75224
75607
|
}
|
|
75225
|
-
if (
|
|
75608
|
+
if (_i4 === 3) {
|
|
75226
75609
|
bottomRight.x = this.dWidth - 12 - this.dWidth / 10;
|
|
75227
75610
|
}
|
|
75228
|
-
if (
|
|
75611
|
+
if (_i4 === 2) {
|
|
75229
75612
|
bottomRight.x = this.dWidth - 22 - this.dWidth / 10 * 2;
|
|
75230
75613
|
}
|
|
75231
|
-
if (
|
|
75614
|
+
if (_i4 === 1) {
|
|
75232
75615
|
bottomRight.x = this.dWidth - 24 - this.dWidth / 10 * 3;
|
|
75233
75616
|
}
|
|
75234
|
-
if (
|
|
75617
|
+
if (_i4 === 0) {
|
|
75235
75618
|
bottomRight.x = this.dWidth - 16 - this.dWidth / 10 * 4;
|
|
75236
75619
|
}
|
|
75237
75620
|
bottomRight.textAlign = "left";
|
|
@@ -75260,7 +75643,7 @@ var DrawMedicalExpression = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
75260
75643
|
}
|
|
75261
75644
|
}]);
|
|
75262
75645
|
return DrawMedicalExpression;
|
|
75263
|
-
}(
|
|
75646
|
+
}(_DrawCombineNode__WEBPACK_IMPORTED_MODULE_10__/* .DrawCombineNode */ .o);
|
|
75264
75647
|
|
|
75265
75648
|
/***/ }),
|
|
75266
75649
|
|
|
@@ -82810,11 +83193,11 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
82810
83193
|
this.editor.input.addEventListener('keypress', this._editKeyPress);
|
|
82811
83194
|
this.editor.input.addEventListener('keyup', this._editKeyUp);
|
|
82812
83195
|
this.editor.input.addEventListener('keydown', this._editKeyDown);
|
|
82813
|
-
document.addEventListener('visibilitychange',
|
|
82814
|
-
|
|
82815
|
-
|
|
82816
|
-
|
|
82817
|
-
})
|
|
83196
|
+
// document.addEventListener('visibilitychange', () => {
|
|
83197
|
+
// if(!document.hidden) {
|
|
83198
|
+
// this.editor.input.focus();
|
|
83199
|
+
// }
|
|
83200
|
+
// })
|
|
82818
83201
|
this.editor.input.addEventListener('cut', function (e) {
|
|
82819
83202
|
if (!e || !e.clipboardData) {
|
|
82820
83203
|
return;
|
|
@@ -82830,6 +83213,9 @@ var EditorController = /*#__PURE__*/function () {
|
|
|
82830
83213
|
hoeditorfactory.undoService.begin();
|
|
82831
83214
|
hoeditorfactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.F(_this2._hoEditorFactoryID, curRange.startPath, curRange.endPath));
|
|
82832
83215
|
hoeditorfactory.undoService.commit();
|
|
83216
|
+
} else if (hoeditorfactory.docTree.curDomRange.isEmpty) {
|
|
83217
|
+
message/* default */.Z.destroy();
|
|
83218
|
+
message/* default */.Z.warn('请选中剪切的内容');
|
|
82833
83219
|
}
|
|
82834
83220
|
e.preventDefault();
|
|
82835
83221
|
});
|
|
@@ -84740,9 +85126,11 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
84740
85126
|
if (dline instanceof DrawTable/* DrawTable */.t) {
|
|
84741
85127
|
throw new Error("错误的文档结构,表格后面需要放置一个段落节点");
|
|
84742
85128
|
} else {
|
|
84743
|
-
|
|
84744
|
-
|
|
84745
|
-
|
|
85129
|
+
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.customProperty.hidden == true)) {
|
|
85130
|
+
dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, startChildIndex, node.getLength() - 1, aEndPath);
|
|
85131
|
+
if (dline.paragraphNode !== paraNode) {
|
|
85132
|
+
paraNode = dline.paragraphNode;
|
|
85133
|
+
}
|
|
84746
85134
|
}
|
|
84747
85135
|
}
|
|
84748
85136
|
if (NodePosition/* NodePosition */.F.treePathCompare(aEndPath, hoeditorFactory.docTree.getNodeLastPath(node)) <= 0) break;
|
|
@@ -84902,16 +85290,18 @@ var DrawTree = /*#__PURE__*/function () {
|
|
|
84902
85290
|
if (dline instanceof DrawTable/* DrawTable */.t) {
|
|
84903
85291
|
throw new Error("错误的文档结构,表格前面需要放置一个段落节点");
|
|
84904
85292
|
} else {
|
|
84905
|
-
|
|
84906
|
-
|
|
84907
|
-
|
|
84908
|
-
|
|
84909
|
-
|
|
84910
|
-
|
|
84911
|
-
|
|
84912
|
-
_aCell
|
|
84913
|
-
|
|
84914
|
-
tables.
|
|
85293
|
+
if (!(node instanceof TextInputFieldNode/* TextInputFieldNode */.re && node.customProperty.hidden == true)) {
|
|
85294
|
+
dline = node.placeDNode2DrawLine(paraNode.drootNodes, paraNode, dline, 0, node.getLength() - 1, aEndPath);
|
|
85295
|
+
if (dline.paragraphNode !== paraNode) {
|
|
85296
|
+
paraNode = dline.paragraphNode;
|
|
85297
|
+
}
|
|
85298
|
+
if (dline.paragraphNode.parentNode instanceof CellNode/* CellNode */.D) {
|
|
85299
|
+
var _aCell = dline.paragraphNode.parentNode;
|
|
85300
|
+
if (_aCell) {
|
|
85301
|
+
_aCell.drawCell.needUpdate = true;
|
|
85302
|
+
if (tables.indexOf(_aCell.table) < 0) {
|
|
85303
|
+
tables.push(_aCell.table);
|
|
85304
|
+
}
|
|
84915
85305
|
}
|
|
84916
85306
|
}
|
|
84917
85307
|
}
|
|
@@ -88528,6 +88918,8 @@ var OperType;
|
|
|
88528
88918
|
OperType[OperType["insertGestation"] = 58] = "insertGestation";
|
|
88529
88919
|
OperType[OperType["insertRareChar"] = 59] = "insertRareChar";
|
|
88530
88920
|
OperType[OperType["insertJumpButton"] = 60] = "insertJumpButton";
|
|
88921
|
+
OperType[OperType["insertPopQScore"] = 61] = "insertPopQScore";
|
|
88922
|
+
OperType[OperType["updatePopQScore"] = 62] = "updatePopQScore";
|
|
88531
88923
|
})(OperType || (OperType = {}));
|
|
88532
88924
|
var NodeChangingEvent = /*#__PURE__*/function () {
|
|
88533
88925
|
function NodeChangingEvent(action, startPath, endPath, operType) {
|
|
@@ -94908,6 +95300,13 @@ var StructureNode = /*#__PURE__*/function () {
|
|
|
94908
95300
|
clipboard.setData(ClipboardType.ctJSON, this._json);
|
|
94909
95301
|
clipboard.setData(ClipboardType.ctHTML, this._html);
|
|
94910
95302
|
clipboard.setData(ClipboardType.ctText, this._text);
|
|
95303
|
+
if (type != "cut") {
|
|
95304
|
+
hoEditorFactory.drawTree.selectRange.beginRangeSelect = false;
|
|
95305
|
+
hoEditorFactory.drawTree.selectRange.clearAllSelectShape();
|
|
95306
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(hoEditorFactory.drawTree.selectRange.spStart.path);
|
|
95307
|
+
}
|
|
95308
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_32__/* ["default"] */ .Z.destroy();
|
|
95309
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_32__/* ["default"] */ .Z.success("".concat(type == 'cut' ? "剪切" : "复制", "\u6210\u529F"));
|
|
94911
95310
|
} else {
|
|
94912
95311
|
return this._json;
|
|
94913
95312
|
}
|
|
@@ -206576,8 +206975,8 @@ var es_string_match = __webpack_require__(4723);
|
|
|
206576
206975
|
var es_number_constructor = __webpack_require__(9653);
|
|
206577
206976
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.json.stringify.js
|
|
206578
206977
|
var es_json_stringify = __webpack_require__(38862);
|
|
206579
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
206580
|
-
var
|
|
206978
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=d9aef342&
|
|
206979
|
+
var HoDocvue_type_template_id_d9aef342_render = function render() {
|
|
206581
206980
|
var _vm = this,
|
|
206582
206981
|
_c = _vm._self._c;
|
|
206583
206982
|
return _c('div', {
|
|
@@ -206778,7 +207177,7 @@ var HoDocvue_type_template_id_51f49778_render = function render() {
|
|
|
206778
207177
|
}
|
|
206779
207178
|
}, [_vm._v("v " + _vm._s(_vm.version))])])])], 1);
|
|
206780
207179
|
};
|
|
206781
|
-
var
|
|
207180
|
+
var HoDocvue_type_template_id_d9aef342_staticRenderFns = [];
|
|
206782
207181
|
|
|
206783
207182
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
206784
207183
|
var es_array_filter = __webpack_require__(57327);
|
|
@@ -207386,9 +207785,11 @@ var DrawSelectLevel = /*#__PURE__*/function () {
|
|
|
207386
207785
|
}
|
|
207387
207786
|
hoeditorfactory.drawTree.selectRange.spStart = startPos;
|
|
207388
207787
|
hoeditorfactory.drawTree.selectRange.spEnd = startPos;
|
|
207389
|
-
|
|
207390
|
-
|
|
207391
|
-
|
|
207788
|
+
if (aevent.nativeEvent.button === 0) {
|
|
207789
|
+
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
207790
|
+
} else if (aevent.nativeEvent.button === 2 && hoeditorfactory.docTree.curDomRange.isEmpty) {
|
|
207791
|
+
hoeditorfactory.docTree.curDomRange.setSamePath(startPos.path);
|
|
207792
|
+
}
|
|
207392
207793
|
hoeditorfactory.drawTree.moveCaretToPath(startPos.path);
|
|
207393
207794
|
if (aevent.nativeEvent.button === 0) {
|
|
207394
207795
|
//鼠标点到文本域内容结尾时触发
|
|
@@ -209767,7 +210168,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
209767
210168
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
209768
210169
|
var ParagraphNode = __webpack_require__(67945);
|
|
209769
210170
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
209770
|
-
/* harmony default export */ var version = ('3.1.
|
|
210171
|
+
/* harmony default export */ var version = ('3.1.118');
|
|
209771
210172
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
209772
210173
|
var PoperTipText = __webpack_require__(50987);
|
|
209773
210174
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210233,27 +210634,35 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210233
210634
|
paintStatus: paintStatus
|
|
210234
210635
|
});
|
|
210235
210636
|
this.poperType = '';
|
|
210236
|
-
} else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
210637
|
+
} else if ((node instanceof TextNode/* TextNode */.R || node instanceof MarkNode/* MarkNode */.j || node instanceof DateTimeNode/* DateTimeNode */.Z) && node.parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
210237
210638
|
// 文本域
|
|
210238
210639
|
var parentNode = node.parentNode;
|
|
210239
210640
|
var customProperty = (parentNode === null || parentNode === void 0 ? void 0 : parentNode.customProperty) || {};
|
|
210240
210641
|
if (Number(parentNode.inputFieldType) === 0 && (customProperty.additionsEditor == 'true' || customProperty.additionsEditor == true)) {
|
|
210241
|
-
if (
|
|
210242
|
-
|
|
210243
|
-
|
|
210244
|
-
|
|
210245
|
-
|
|
210246
|
-
|
|
210247
|
-
});
|
|
210642
|
+
if (node instanceof DateTimeNode/* DateTimeNode */.Z) {
|
|
210643
|
+
if (node.isReadOnly && node.text.replace(/\s*/g, '') !== '') {
|
|
210644
|
+
return false;
|
|
210645
|
+
}
|
|
210646
|
+
this.computedPoperPosition(node, pageIndex);
|
|
210647
|
+
this.poperType = 'datePoper';
|
|
210248
210648
|
} else {
|
|
210249
|
-
|
|
210250
|
-
|
|
210251
|
-
|
|
210252
|
-
|
|
210253
|
-
|
|
210254
|
-
|
|
210649
|
+
if (parentNode.canModifyContent) {
|
|
210650
|
+
this.$emit('dblNodeClick', {
|
|
210651
|
+
setActiveDoc: this.setActiveDocIndex,
|
|
210652
|
+
node: this.getCurrentSelectNode,
|
|
210653
|
+
type: 'text',
|
|
210654
|
+
paintStatus: paintStatus
|
|
210655
|
+
});
|
|
210656
|
+
} else {
|
|
210657
|
+
this.$emit('dblNodeClick', {
|
|
210658
|
+
setActiveDoc: this.setActiveDocIndex,
|
|
210659
|
+
node: this.getCurrentSelectNode,
|
|
210660
|
+
type: 'modify_node',
|
|
210661
|
+
paintStatus: paintStatus
|
|
210662
|
+
});
|
|
210663
|
+
}
|
|
210664
|
+
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
210255
210665
|
}
|
|
210256
|
-
this.hoEditorProvider.setUpdateNodeValue(this.getCurrentSelectNode());
|
|
210257
210666
|
}
|
|
210258
210667
|
}
|
|
210259
210668
|
return false;
|
|
@@ -210783,10 +211192,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210783
211192
|
});
|
|
210784
211193
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=script&lang=js&
|
|
210785
211194
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js_ = (HoDocvue_type_script_lang_js_);
|
|
210786
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211195
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=d9aef342&prod&lang=less&
|
|
210787
211196
|
// extracted by mini-css-extract-plugin
|
|
210788
211197
|
|
|
210789
|
-
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
211198
|
+
;// CONCATENATED MODULE: ./src/components/HoDoc.vue?vue&type=style&index=0&id=d9aef342&prod&lang=less&
|
|
210790
211199
|
|
|
210791
211200
|
;// CONCATENATED MODULE: ./src/components/HoDoc.vue
|
|
210792
211201
|
|
|
@@ -210799,8 +211208,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
210799
211208
|
|
|
210800
211209
|
var HoDoc_component = (0,componentNormalizer/* default */.Z)(
|
|
210801
211210
|
components_HoDocvue_type_script_lang_js_,
|
|
210802
|
-
|
|
210803
|
-
|
|
211211
|
+
HoDocvue_type_template_id_d9aef342_render,
|
|
211212
|
+
HoDocvue_type_template_id_d9aef342_staticRenderFns,
|
|
210804
211213
|
false,
|
|
210805
211214
|
null,
|
|
210806
211215
|
null,
|
|
@@ -213815,6 +214224,8 @@ var GestationNode = __webpack_require__(73632);
|
|
|
213815
214224
|
var RareCharNode = __webpack_require__(34910);
|
|
213816
214225
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/JumpButtonNode.ts + 1 modules
|
|
213817
214226
|
var JumpButtonNode = __webpack_require__(330);
|
|
214227
|
+
// EXTERNAL MODULE: ./src/editor/dom/treeNode/PopQScoreNode.ts
|
|
214228
|
+
var PopQScoreNode = __webpack_require__(12790);
|
|
213818
214229
|
;// CONCATENATED MODULE: ./src/editor/utils/StructureConvert.ts
|
|
213819
214230
|
|
|
213820
214231
|
|
|
@@ -213898,6 +214309,7 @@ var JumpButtonNode = __webpack_require__(330);
|
|
|
213898
214309
|
|
|
213899
214310
|
|
|
213900
214311
|
|
|
214312
|
+
|
|
213901
214313
|
|
|
213902
214314
|
|
|
213903
214315
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -214780,7 +215192,7 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
214780
215192
|
key: "replaceNodesName",
|
|
214781
215193
|
value: function replaceNodesName(xml) {
|
|
214782
215194
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
214783
|
-
var reg = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|RareCharNode|JumpButtonNode/g);
|
|
215195
|
+
var reg = new RegExp(/\<\*([A-z]*)\>\/|TextNode|ParagraphNode|TableNode|ImageNode|BarcodeNode|QrcodeNode|DateTimeNode|DownListNode|RadioAndCheckBoxNode|TextInputFieldNode|SpecialCharsNode|MarkNode|PageCountNode|PageNumNode|CellNode|SeparateCharNode|LabelNode|SignNode|GestationNode|RareCharNode|JumpButtonNode|PopQScoreNode/g);
|
|
214784
215196
|
xml = xml.replace(reg, "node");
|
|
214785
215197
|
xml = hoEditorFactory.unitConvert.replaceAll(xml, '<TableFormula>', "<node>");
|
|
214786
215198
|
xml = hoEditorFactory.unitConvert.replaceAll(xml, '</TableFormula>', "</node>");
|
|
@@ -215717,6 +216129,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
215717
216129
|
return RareCharNode/* RareCharNode */.Q.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
215718
216130
|
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.ntJumpButton) {
|
|
215719
216131
|
return JumpButtonNode/* JumpButtonNode */.a.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
216132
|
+
} else if (temp.nodeType == BaseNode/* NodeType */.Jq.nPopQScore) {
|
|
216133
|
+
return PopQScoreNode/* PopQScoreNode */.B.json2Node(this._hoEditorFactoryID, temp, rootNodes, parentNode);
|
|
215720
216134
|
}
|
|
215721
216135
|
return undefined;
|
|
215722
216136
|
}
|
|
@@ -218505,6 +218919,40 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218505
218919
|
hoEditorFactory.docController.setCellProperty(objectValues, cellNode);
|
|
218506
218920
|
}
|
|
218507
218921
|
//------------------------------医学表达式----------------------------------
|
|
218922
|
+
/**
|
|
218923
|
+
* 插入Pop-Q评分
|
|
218924
|
+
* @param popQScoreRequest
|
|
218925
|
+
*/
|
|
218926
|
+
}, {
|
|
218927
|
+
key: "insertPopQScore",
|
|
218928
|
+
value: function insertPopQScore(popQScoreRequest) {
|
|
218929
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218930
|
+
if (hoEditorFactory.editController.canIsEdit(hoEditorFactory)) {
|
|
218931
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
218932
|
+
var startPath = _curDomRange.normalize().startPath;
|
|
218933
|
+
var endPath = _curDomRange.normalize().endPath;
|
|
218934
|
+
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.insertPopQScore);
|
|
218935
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
218936
|
+
hoEditorFactory.docController.insertPopQScore('add', _curDomRange, popQScoreRequest);
|
|
218937
|
+
}
|
|
218938
|
+
}
|
|
218939
|
+
}
|
|
218940
|
+
/**
|
|
218941
|
+
* 更新 Pop-Q评分
|
|
218942
|
+
* @param popQScoreRequest
|
|
218943
|
+
*/
|
|
218944
|
+
}, {
|
|
218945
|
+
key: "updatePopQScore",
|
|
218946
|
+
value: function updatePopQScore(popQScoreRequest) {
|
|
218947
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
218948
|
+
var _curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
218949
|
+
var startPath = _curDomRange.normalize().startPath;
|
|
218950
|
+
var endPath = _curDomRange.normalize().endPath;
|
|
218951
|
+
var changingEvent = new NodeChangingEvent/* NodeChangingEvent */.Q(DocTree/* DocAction */.gk.daInsert, startPath, endPath, NodeChangingEvent/* OperType */.y.updatePopQScore);
|
|
218952
|
+
if (hoEditorFactory.docTree.changing(changingEvent)) {
|
|
218953
|
+
HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID).docController.insertPopQScore('update', _curDomRange, popQScoreRequest);
|
|
218954
|
+
}
|
|
218955
|
+
}
|
|
218508
218956
|
/**
|
|
218509
218957
|
* 插入经期史
|
|
218510
218958
|
* @param operType 操作类型 "add"新增
|
|
@@ -227458,6 +227906,9 @@ var EditController = /*#__PURE__*/function () {
|
|
|
227458
227906
|
}
|
|
227459
227907
|
var startPath = hoeditorfactory.docTree.curDomRange.startPath;
|
|
227460
227908
|
var parentNode = hoeditorfactory.docTree.getParentNode(startPath);
|
|
227909
|
+
// 获取路径 docTree.curDomRange.startPath变更为 drawTree.selectRange.npStart.path
|
|
227910
|
+
// const startPos = hoeditorfactory.drawTree.selectRange.spStart;
|
|
227911
|
+
// const parentNode = hoeditorfactory.docTree.getParentNode(startPos.path);
|
|
227461
227912
|
if (parentNode instanceof TextInputFieldNode/* TextInputFieldNode */.re && !parentNode.canModifyContent) {
|
|
227462
227913
|
return;
|
|
227463
227914
|
}
|
|
@@ -238668,6 +239119,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238668
239119
|
(_window = window) === null || _window === void 0 || (_window = _window.chrome) === null || _window === void 0 || (_window = _window.webview) === null || _window === void 0 ? void 0 : _window.addEventListener('message', function (e) {
|
|
238669
239120
|
if (e && e.data) {
|
|
238670
239121
|
var res = JSON.parse(e.data);
|
|
239122
|
+
// console.log('res-----', res);
|
|
238671
239123
|
if (res.result == true && res.res.cmd == 'GetList') {
|
|
238672
239124
|
var _this$callBack;
|
|
238673
239125
|
_this._localXmlList = res.res.EMR;
|
|
@@ -238816,6 +239268,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
238816
239268
|
}
|
|
238817
239269
|
}
|
|
238818
239270
|
};
|
|
239271
|
+
// console.log('SaveEmrData', data);
|
|
238819
239272
|
window.chrome.webview.postMessage(data);
|
|
238820
239273
|
}
|
|
238821
239274
|
} else if (this._networkConnectionStatus) {
|
|
@@ -246989,6 +247442,10 @@ var popper = __webpack_require__(95551);
|
|
|
246989
247442
|
|
|
246990
247443
|
|
|
246991
247444
|
|
|
247445
|
+
|
|
247446
|
+
|
|
247447
|
+
|
|
247448
|
+
|
|
246992
247449
|
|
|
246993
247450
|
|
|
246994
247451
|
|
|
@@ -247068,10 +247525,15 @@ var popper = __webpack_require__(95551);
|
|
|
247068
247525
|
},
|
|
247069
247526
|
created: function created() {
|
|
247070
247527
|
var _this = this;
|
|
247528
|
+
// if(chrome?.webview?.postMessage) {
|
|
247529
|
+
// window?.chrome?.webview?.addEventListener('message', this.getMessage);
|
|
247530
|
+
// this.postMessage();
|
|
247531
|
+
// this.isWebview = true;
|
|
247532
|
+
// }
|
|
247533
|
+
// permissionStatus.state 的值是 'granted'、'denied'、'prompt':
|
|
247071
247534
|
navigator.permissions.query({
|
|
247072
247535
|
name: 'clipboard-read'
|
|
247073
247536
|
}).then(function (permissionStatus) {
|
|
247074
|
-
// permissionStatus.state 的值是 'granted'、'denied'、'prompt':
|
|
247075
247537
|
if (permissionStatus.state === 'denied') {
|
|
247076
247538
|
var _window, _chrome;
|
|
247077
247539
|
(_window = window) === null || _window === void 0 || (_window = _window.chrome) === null || _window === void 0 || (_window = _window.webview) === null || _window === void 0 ? void 0 : _window.addEventListener('message', _this.getMessage);
|
|
@@ -247265,95 +247727,112 @@ var popper = __webpack_require__(95551);
|
|
|
247265
247727
|
getClipboardContents: function getClipboardContents() {
|
|
247266
247728
|
var _this4 = this;
|
|
247267
247729
|
return (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee() {
|
|
247268
|
-
var clipboardItems, _iterator, _step, clipboardItem, _iterator2, _step2,
|
|
247269
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(
|
|
247270
|
-
while (1) switch (
|
|
247730
|
+
var clipboardItems, htmls, _iterator, _step, clipboardItem, _iterator2, _step2, _loop;
|
|
247731
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee$(_context2) {
|
|
247732
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
247271
247733
|
case 0:
|
|
247272
|
-
|
|
247273
|
-
|
|
247734
|
+
_context2.prev = 0;
|
|
247735
|
+
_context2.next = 3;
|
|
247274
247736
|
return navigator.clipboard.read();
|
|
247275
247737
|
case 3:
|
|
247276
|
-
clipboardItems =
|
|
247738
|
+
clipboardItems = _context2.sent;
|
|
247739
|
+
// console.log(clipboardItems)
|
|
247740
|
+
htmls = "";
|
|
247277
247741
|
_iterator = (0,createForOfIteratorHelper/* default */.Z)(clipboardItems);
|
|
247278
|
-
|
|
247742
|
+
_context2.prev = 6;
|
|
247279
247743
|
_iterator.s();
|
|
247280
|
-
case
|
|
247744
|
+
case 8:
|
|
247281
247745
|
if ((_step = _iterator.n()).done) {
|
|
247282
|
-
|
|
247746
|
+
_context2.next = 28;
|
|
247283
247747
|
break;
|
|
247284
247748
|
}
|
|
247285
247749
|
clipboardItem = _step.value;
|
|
247286
247750
|
_iterator2 = (0,createForOfIteratorHelper/* default */.Z)(clipboardItem.types);
|
|
247287
|
-
|
|
247751
|
+
_context2.prev = 11;
|
|
247752
|
+
_loop = /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _loop() {
|
|
247753
|
+
var type, blob, reader;
|
|
247754
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _loop$(_context) {
|
|
247755
|
+
while (1) switch (_context.prev = _context.next) {
|
|
247756
|
+
case 0:
|
|
247757
|
+
type = _step2.value;
|
|
247758
|
+
if (!(type === 'text/html')) {
|
|
247759
|
+
_context.next = 8;
|
|
247760
|
+
break;
|
|
247761
|
+
}
|
|
247762
|
+
_context.next = 4;
|
|
247763
|
+
return clipboardItem.getType(type);
|
|
247764
|
+
case 4:
|
|
247765
|
+
blob = _context.sent;
|
|
247766
|
+
// console.log(type, blob, '---------');
|
|
247767
|
+
reader = new FileReader();
|
|
247768
|
+
reader.readAsText(blob, 'UTF-8');
|
|
247769
|
+
reader.onload = function (e) {
|
|
247770
|
+
if (type === 'text/html' && !htmls.includes('<html><body>')) {
|
|
247771
|
+
htmls = '<html><body>' + e.target.result + '</body></html>';
|
|
247772
|
+
_this4.vueController.pasteInsertDocument('', htmls, '');
|
|
247773
|
+
} else if (type === 'text/plain') {
|
|
247774
|
+
// htmls = '<html><body><span>' + e.target.result + '</span></body></html>';
|
|
247775
|
+
}
|
|
247776
|
+
};
|
|
247777
|
+
case 8:
|
|
247778
|
+
case "end":
|
|
247779
|
+
return _context.stop();
|
|
247780
|
+
}
|
|
247781
|
+
}, _loop);
|
|
247782
|
+
});
|
|
247288
247783
|
_iterator2.s();
|
|
247289
|
-
case
|
|
247784
|
+
case 14:
|
|
247290
247785
|
if ((_step2 = _iterator2.n()).done) {
|
|
247291
|
-
|
|
247292
|
-
break;
|
|
247293
|
-
}
|
|
247294
|
-
type = _step2.value;
|
|
247295
|
-
if (!(type === 'text/html')) {
|
|
247296
|
-
_context.next = 21;
|
|
247786
|
+
_context2.next = 18;
|
|
247297
247787
|
break;
|
|
247298
247788
|
}
|
|
247299
|
-
|
|
247300
|
-
|
|
247301
|
-
|
|
247302
|
-
|
|
247303
|
-
|
|
247304
|
-
|
|
247305
|
-
reader.onload = function (e) {
|
|
247306
|
-
var htmls = e.target.result;
|
|
247307
|
-
if (!htmls.includes('<html><body>')) {
|
|
247308
|
-
htmls = '<html><body>' + e.target.result + '</body></html>';
|
|
247309
|
-
}
|
|
247310
|
-
_this4.vueController.pasteInsertDocument('', htmls, '');
|
|
247311
|
-
};
|
|
247312
|
-
case 21:
|
|
247313
|
-
_context.next = 12;
|
|
247789
|
+
return _context2.delegateYield(_loop(), "t0", 16);
|
|
247790
|
+
case 16:
|
|
247791
|
+
_context2.next = 14;
|
|
247792
|
+
break;
|
|
247793
|
+
case 18:
|
|
247794
|
+
_context2.next = 23;
|
|
247314
247795
|
break;
|
|
247796
|
+
case 20:
|
|
247797
|
+
_context2.prev = 20;
|
|
247798
|
+
_context2.t1 = _context2["catch"](11);
|
|
247799
|
+
_iterator2.e(_context2.t1);
|
|
247315
247800
|
case 23:
|
|
247316
|
-
|
|
247801
|
+
_context2.prev = 23;
|
|
247802
|
+
_iterator2.f();
|
|
247803
|
+
return _context2.finish(23);
|
|
247804
|
+
case 26:
|
|
247805
|
+
_context2.next = 8;
|
|
247317
247806
|
break;
|
|
247318
|
-
case 25:
|
|
247319
|
-
_context.prev = 25;
|
|
247320
|
-
_context.t0 = _context["catch"](10);
|
|
247321
|
-
_iterator2.e(_context.t0);
|
|
247322
247807
|
case 28:
|
|
247323
|
-
|
|
247324
|
-
_iterator2.f();
|
|
247325
|
-
return _context.finish(28);
|
|
247326
|
-
case 31:
|
|
247327
|
-
_context.next = 7;
|
|
247808
|
+
_context2.next = 33;
|
|
247328
247809
|
break;
|
|
247810
|
+
case 30:
|
|
247811
|
+
_context2.prev = 30;
|
|
247812
|
+
_context2.t2 = _context2["catch"](6);
|
|
247813
|
+
_iterator.e(_context2.t2);
|
|
247329
247814
|
case 33:
|
|
247330
|
-
|
|
247331
|
-
break;
|
|
247332
|
-
case 35:
|
|
247333
|
-
_context.prev = 35;
|
|
247334
|
-
_context.t1 = _context["catch"](5);
|
|
247335
|
-
_iterator.e(_context.t1);
|
|
247336
|
-
case 38:
|
|
247337
|
-
_context.prev = 38;
|
|
247815
|
+
_context2.prev = 33;
|
|
247338
247816
|
_iterator.f();
|
|
247339
|
-
return
|
|
247340
|
-
case
|
|
247341
|
-
|
|
247817
|
+
return _context2.finish(33);
|
|
247818
|
+
case 36:
|
|
247819
|
+
_context2.next = 43;
|
|
247342
247820
|
break;
|
|
247343
|
-
case
|
|
247344
|
-
|
|
247345
|
-
|
|
247821
|
+
case 38:
|
|
247822
|
+
_context2.prev = 38;
|
|
247823
|
+
_context2.t3 = _context2["catch"](0);
|
|
247824
|
+
console.warn(JSON.stringify(_context2.t3));
|
|
247346
247825
|
message/* default */.Z.destroy();
|
|
247347
247826
|
message/* default */.Z.error('当前浏览器不支持,请用 ctrl+ v 粘贴');
|
|
247348
|
-
case
|
|
247349
|
-
|
|
247827
|
+
case 43:
|
|
247828
|
+
_context2.prev = 43;
|
|
247350
247829
|
_this4.handleClose();
|
|
247351
|
-
return
|
|
247352
|
-
case
|
|
247830
|
+
return _context2.finish(43);
|
|
247831
|
+
case 46:
|
|
247353
247832
|
case "end":
|
|
247354
|
-
return
|
|
247833
|
+
return _context2.stop();
|
|
247355
247834
|
}
|
|
247356
|
-
}, _callee, null, [[0,
|
|
247835
|
+
}, _callee, null, [[0, 38, 43, 46], [6, 30, 33, 36], [11, 20, 23, 26]]);
|
|
247357
247836
|
}))();
|
|
247358
247837
|
},
|
|
247359
247838
|
hideComments: function hideComments() {
|
|
@@ -247395,7 +247874,7 @@ var popper = __webpack_require__(95551);
|
|
|
247395
247874
|
"class": 'mouse-menu-item',
|
|
247396
247875
|
"style": 'justify-content: space-between;',
|
|
247397
247876
|
"on": {
|
|
247398
|
-
"click": this.
|
|
247877
|
+
"click": this.hoPaste.bind(this)
|
|
247399
247878
|
}
|
|
247400
247879
|
}, [h("span", ["\u7C98\u8D34"]), h("span", ["Ctrl + V"])]), h("li", {
|
|
247401
247880
|
"class": 'mouse-menu-item mouse-right-menu-line'
|