hoeditor-web 3.1.69 → 3.1.71
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 +29 -84
- package/lib/hoeditor.umd.js +462 -232
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -13164,7 +13164,7 @@ var staticRenderFns = [];
|
|
|
13164
13164
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13165
13165
|
var es_function_name = __webpack_require__(68309);
|
|
13166
13166
|
// EXTERNAL MODULE: ./src/components/controls/popers/Title.vue + 5 modules
|
|
13167
|
-
var Title = __webpack_require__(
|
|
13167
|
+
var Title = __webpack_require__(31276);
|
|
13168
13168
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/popers/Poper.vue?vue&type=script&lang=js&
|
|
13169
13169
|
|
|
13170
13170
|
|
|
@@ -13265,7 +13265,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13265
13265
|
|
|
13266
13266
|
/***/ }),
|
|
13267
13267
|
|
|
13268
|
-
/***/
|
|
13268
|
+
/***/ 31276:
|
|
13269
13269
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13270
13270
|
|
|
13271
13271
|
"use strict";
|
|
@@ -13277,7 +13277,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13277
13277
|
"default": function() { return /* binding */ Title; }
|
|
13278
13278
|
});
|
|
13279
13279
|
|
|
13280
|
-
;// 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/controls/popers/Title.vue?vue&type=template&id=
|
|
13280
|
+
;// 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/controls/popers/Title.vue?vue&type=template&id=115f256a&scoped=true&
|
|
13281
13281
|
var render = function render() {
|
|
13282
13282
|
var _vm = this,
|
|
13283
13283
|
_c = _vm._self._c;
|
|
@@ -13313,10 +13313,10 @@ var appendToBody = __webpack_require__(95677);
|
|
|
13313
13313
|
});
|
|
13314
13314
|
;// CONCATENATED MODULE: ./src/components/controls/popers/Title.vue?vue&type=script&lang=js&
|
|
13315
13315
|
/* harmony default export */ var popers_Titlevue_type_script_lang_js_ = (Titlevue_type_script_lang_js_);
|
|
13316
|
-
;// 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/controls/popers/Title.vue?vue&type=style&index=0&id=
|
|
13316
|
+
;// 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/controls/popers/Title.vue?vue&type=style&index=0&id=115f256a&prod&lang=less&scoped=true&
|
|
13317
13317
|
// extracted by mini-css-extract-plugin
|
|
13318
13318
|
|
|
13319
|
-
;// CONCATENATED MODULE: ./src/components/controls/popers/Title.vue?vue&type=style&index=0&id=
|
|
13319
|
+
;// CONCATENATED MODULE: ./src/components/controls/popers/Title.vue?vue&type=style&index=0&id=115f256a&prod&lang=less&scoped=true&
|
|
13320
13320
|
|
|
13321
13321
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
13322
13322
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -13335,7 +13335,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13335
13335
|
staticRenderFns,
|
|
13336
13336
|
false,
|
|
13337
13337
|
null,
|
|
13338
|
-
"
|
|
13338
|
+
"115f256a",
|
|
13339
13339
|
null
|
|
13340
13340
|
|
|
13341
13341
|
)
|
|
@@ -13854,7 +13854,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13854
13854
|
|
|
13855
13855
|
/***/ }),
|
|
13856
13856
|
|
|
13857
|
-
/***/
|
|
13857
|
+
/***/ 22876:
|
|
13858
13858
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13859
13859
|
|
|
13860
13860
|
"use strict";
|
|
@@ -13868,7 +13868,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13868
13868
|
|
|
13869
13869
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13870
13870
|
var es_function_name = __webpack_require__(68309);
|
|
13871
|
-
;// 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/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13871
|
+
;// 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/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=7bf6d06e&
|
|
13872
13872
|
|
|
13873
13873
|
var render = function render() {
|
|
13874
13874
|
var _vm = this,
|
|
@@ -13939,6 +13939,13 @@ var render = function render() {
|
|
|
13939
13939
|
}
|
|
13940
13940
|
})], 1) : _vm._e(), _vm.boxGroup === 1 ? _c('li', {
|
|
13941
13941
|
staticClass: "control-item"
|
|
13942
|
+
}, [_c('span', {
|
|
13943
|
+
staticClass: "label",
|
|
13944
|
+
staticStyle: {
|
|
13945
|
+
"width": "130px"
|
|
13946
|
+
}
|
|
13947
|
+
}), _c('span', [_vm._v("设置名称属性时为同组" + _vm._s(_vm.controlType === 'RadioBox' ? '单选' : '复选') + ",同组属性正常生效,名称为空时批量生成的" + _vm._s(_vm.controlType === 'RadioBox' ? '单选' : '复选') + "元素非同组,同组属性不生效")])]) : _vm._e(), _vm.boxGroup === 1 ? _c('li', {
|
|
13948
|
+
staticClass: "control-item"
|
|
13942
13949
|
}, [_c('a-checkbox', {
|
|
13943
13950
|
model: {
|
|
13944
13951
|
value: _vm.groupHasOptions,
|
|
@@ -14603,7 +14610,7 @@ var render = function render() {
|
|
|
14603
14610
|
};
|
|
14604
14611
|
var staticRenderFns = [];
|
|
14605
14612
|
|
|
14606
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14613
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=7bf6d06e&
|
|
14607
14614
|
|
|
14608
14615
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14609
14616
|
var objectSpread2 = __webpack_require__(63442);
|
|
@@ -14914,10 +14921,10 @@ var defaultBox = {
|
|
|
14914
14921
|
});
|
|
14915
14922
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14916
14923
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
14917
|
-
;// 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/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14924
|
+
;// 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/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=7bf6d06e&prod&lang=less&
|
|
14918
14925
|
// extracted by mini-css-extract-plugin
|
|
14919
14926
|
|
|
14920
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14927
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=7bf6d06e&prod&lang=less&
|
|
14921
14928
|
|
|
14922
14929
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14923
14930
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -35786,15 +35793,7 @@ var Print = /*#__PURE__*/function () {
|
|
|
35786
35793
|
svgData = (_ctx4 = _ctx3) === null || _ctx4 === void 0 ? void 0 : _ctx4.getSvg();
|
|
35787
35794
|
svgData && (PDF === null || PDF === void 0 ? void 0 : PDF.appendChild(svgData));
|
|
35788
35795
|
_ctx3 = null;
|
|
35789
|
-
// if (formats.length == 2 && !hoEditorFactory.isFixedPrintToA4) {
|
|
35790
|
-
// PDF?.addPage(formats, orientation);
|
|
35791
|
-
// } else {
|
|
35792
|
-
// PDF?.addPage(format, orientation);
|
|
35793
|
-
// }
|
|
35794
|
-
// await svg2pdf(ctx?.getSvg(), PDF, svg2pdfOptions);
|
|
35795
|
-
// ctx = null;
|
|
35796
35796
|
}
|
|
35797
|
-
|
|
35798
35797
|
if (pageNumber) pageNumber.value++;
|
|
35799
35798
|
index > 0 && ((_cpage$drawDomLevel13 = cpage.drawDomLevel) === null || _cpage$drawDomLevel13 === void 0 ? void 0 : _cpage$drawDomLevel13.clearStage());
|
|
35800
35799
|
case 34:
|
|
@@ -36700,7 +36699,7 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
36700
36699
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_regeneratorRuntime_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(80543);
|
|
36701
36700
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_asyncToGenerator_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(81448);
|
|
36702
36701
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(94310);
|
|
36703
|
-
/* harmony import */ var
|
|
36702
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__ = __webpack_require__(40735);
|
|
36704
36703
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(70280);
|
|
36705
36704
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(66298);
|
|
36706
36705
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(78255);
|
|
@@ -36807,6 +36806,8 @@ var SubDocManger = /*#__PURE__*/function () {
|
|
|
36807
36806
|
/* harmony import */ var _utils_StructureNode__WEBPACK_IMPORTED_MODULE_91__ = __webpack_require__(63602);
|
|
36808
36807
|
/* harmony import */ var _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__ = __webpack_require__(51760);
|
|
36809
36808
|
/* harmony import */ var _draw_drawNode_DrawTable__WEBPACK_IMPORTED_MODULE_93__ = __webpack_require__(74298);
|
|
36809
|
+
/* harmony import */ var _plugins_util__WEBPACK_IMPORTED_MODULE_94__ = __webpack_require__(62783);
|
|
36810
|
+
|
|
36810
36811
|
|
|
36811
36812
|
|
|
36812
36813
|
|
|
@@ -37045,7 +37046,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37045
37046
|
if (!result) return;
|
|
37046
37047
|
}
|
|
37047
37048
|
if (hoEditorFactory.notAllowEditInReview && hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psReview) {
|
|
37048
|
-
|
|
37049
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('质控医生站的病历只可进行批注不可编辑修改');
|
|
37049
37050
|
return;
|
|
37050
37051
|
}
|
|
37051
37052
|
// alert(text);
|
|
@@ -37082,7 +37083,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37082
37083
|
var isAllowEdit = colProperty.downListProperty.canModifyContent;
|
|
37083
37084
|
//const cellText = cellNode.getCellText();
|
|
37084
37085
|
if (!isAllowEdit) {
|
|
37085
|
-
|
|
37086
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37086
37087
|
return;
|
|
37087
37088
|
}
|
|
37088
37089
|
}
|
|
@@ -37090,7 +37091,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37090
37091
|
var _isAllowEdit = cellProperty.downListProperty.canModifyContent;
|
|
37091
37092
|
//const cellText = cellNode.getCellText();
|
|
37092
37093
|
if (!_isAllowEdit) {
|
|
37093
|
-
|
|
37094
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许用户直接编辑,请双击单元格进行选择.');
|
|
37094
37095
|
return;
|
|
37095
37096
|
}
|
|
37096
37097
|
}
|
|
@@ -37459,7 +37460,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37459
37460
|
domRange = domRange.normalize();
|
|
37460
37461
|
} else if (hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psReview && !(domRange.npStart.node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
37461
37462
|
if (domRange.npStart.node instanceof _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== undefined && hoEditorFactory.docTree.styles[domRange.npStart.node.styleIndex].creatorIndex !== -1) {} else {
|
|
37462
|
-
|
|
37463
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('审阅模式下,只能选中文档内容进行删除');
|
|
37463
37464
|
return;
|
|
37464
37465
|
}
|
|
37465
37466
|
}
|
|
@@ -37684,7 +37685,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37684
37685
|
_context.next = 86;
|
|
37685
37686
|
break;
|
|
37686
37687
|
}
|
|
37687
|
-
|
|
37688
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('审阅模式下,只能对文本内容进行删除');
|
|
37688
37689
|
return _context.abrupt("return");
|
|
37689
37690
|
case 86:
|
|
37690
37691
|
if (!(hoEditorFactory.drawTree.paintStatus === _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psReview && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
@@ -37696,21 +37697,21 @@ var DocController = /*#__PURE__*/function () {
|
|
|
37696
37697
|
_context.next = 91;
|
|
37697
37698
|
break;
|
|
37698
37699
|
}
|
|
37699
|
-
|
|
37700
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不是本人签名,不允许删除!');
|
|
37700
37701
|
return _context.abrupt("return");
|
|
37701
37702
|
case 91:
|
|
37702
37703
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
37703
37704
|
_context.next = 94;
|
|
37704
37705
|
break;
|
|
37705
37706
|
}
|
|
37706
|
-
|
|
37707
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许使用删除键删除签名,请右键删除元素');
|
|
37707
37708
|
return _context.abrupt("return");
|
|
37708
37709
|
case 94:
|
|
37709
37710
|
if (!(hoEditorFactory.drawTree.paintStatus !== _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psDesign && node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N && node.isTemplate && node.number === 0)) {
|
|
37710
37711
|
_context.next = 97;
|
|
37711
37712
|
break;
|
|
37712
37713
|
}
|
|
37713
|
-
|
|
37714
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('该签名元素不允许删除!');
|
|
37714
37715
|
return _context.abrupt("return");
|
|
37715
37716
|
case 97:
|
|
37716
37717
|
if (!(node instanceof _treeNode_SignNode__WEBPACK_IMPORTED_MODULE_85__/* .SignNode */ .N)) {
|
|
@@ -38592,11 +38593,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38592
38593
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
38593
38594
|
var parentNode = hoEditorFactory.docTree.getParentNode(arange.startPath);
|
|
38594
38595
|
if (parentNode instanceof _treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_47__/* .TextInputFieldNode */ .re) {
|
|
38595
|
-
|
|
38596
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许在文本域内插入表格');
|
|
38596
38597
|
return;
|
|
38597
38598
|
}
|
|
38598
38599
|
if (parentNode instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) {
|
|
38599
|
-
|
|
38600
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许在表格内再插入表格');
|
|
38600
38601
|
return;
|
|
38601
38602
|
}
|
|
38602
38603
|
// const nextParaNode = new ParagraphNode(
|
|
@@ -38643,6 +38644,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38643
38644
|
}, {
|
|
38644
38645
|
key: "insertTableRowAbove",
|
|
38645
38646
|
value: function insertTableRowAbove(arange, count) {
|
|
38647
|
+
var _this4 = this;
|
|
38646
38648
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
38647
38649
|
var np = hoEditorFactory.docTree.findNodePositionByPath(arange.startPath);
|
|
38648
38650
|
if (np && np.node) {
|
|
@@ -38659,7 +38661,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38659
38661
|
c = _cell$table$getCellIn2[1];
|
|
38660
38662
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psEdit && r > 0) {
|
|
38661
38663
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r - 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
38662
|
-
|
|
38664
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
38663
38665
|
return;
|
|
38664
38666
|
}
|
|
38665
38667
|
}
|
|
@@ -38711,6 +38713,41 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38711
38713
|
}
|
|
38712
38714
|
}
|
|
38713
38715
|
}
|
|
38716
|
+
} else {
|
|
38717
|
+
var mark = false;
|
|
38718
|
+
var newTextNode = function newTextNode(text, c) {
|
|
38719
|
+
var textNode = new _treeNode_TextNode__WEBPACK_IMPORTED_MODULE_29__/* .TextNode */ .R(_this4._hoEditorFactoryID, cell.rootNodes, cell, _treeNode_BaseNode__WEBPACK_IMPORTED_MODULE_26__/* .NodeType */ .Jq.ntText, text, cell.childNodes[0].styleIndex);
|
|
38720
|
+
var fillCell = cell.table.rows[0][c];
|
|
38721
|
+
if (fillCell) {
|
|
38722
|
+
var path = fillCell.childNodes[0].getNodePath();
|
|
38723
|
+
hoEditorFactory.docTree.insertNodeAfterPath(path, textNode);
|
|
38724
|
+
fillCell.drawCell.needUpdate = true;
|
|
38725
|
+
}
|
|
38726
|
+
};
|
|
38727
|
+
for (var k = 0; k < cell.table.colCount; k++) {
|
|
38728
|
+
var colProperty = cell.table.colInfos[k].colProperty;
|
|
38729
|
+
if (colProperty.dateTimeProperty && colProperty.dateTimeProperty.isAutoInputCurDate) {
|
|
38730
|
+
var date = Date.now();
|
|
38731
|
+
var text = (0,_plugins_util__WEBPACK_IMPORTED_MODULE_94__/* .dateFormat */ .vc)(date, colProperty.dateTimeProperty.inputStyle);
|
|
38732
|
+
newTextNode(text, k);
|
|
38733
|
+
mark = true;
|
|
38734
|
+
}
|
|
38735
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .EditorProperty */ .YS.OrderNumber) {
|
|
38736
|
+
var acell = cell.table.rows[1][k];
|
|
38737
|
+
if (acell) {
|
|
38738
|
+
var ctext = acell.getCellText();
|
|
38739
|
+
var num = Number(ctext);
|
|
38740
|
+
if (!isNaN(num)) {
|
|
38741
|
+
var curOrder = (num + 1).toString();
|
|
38742
|
+
newTextNode(curOrder, k);
|
|
38743
|
+
mark = true;
|
|
38744
|
+
}
|
|
38745
|
+
}
|
|
38746
|
+
}
|
|
38747
|
+
}
|
|
38748
|
+
if (mark) {
|
|
38749
|
+
cell.table.update();
|
|
38750
|
+
}
|
|
38714
38751
|
}
|
|
38715
38752
|
var sCellNode = cell.table.rows[r][0];
|
|
38716
38753
|
if (!sCellNode) {
|
|
@@ -38756,7 +38793,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38756
38793
|
// );
|
|
38757
38794
|
// }
|
|
38758
38795
|
} else {
|
|
38759
|
-
|
|
38796
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
38760
38797
|
return;
|
|
38761
38798
|
}
|
|
38762
38799
|
}
|
|
@@ -38777,7 +38814,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38777
38814
|
c = _cell$table$getCellIn4[1];
|
|
38778
38815
|
if (hoEditorFactory.drawTree.paintStatus == _draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_92__/* .PaintState */ .Dh.psEdit) {
|
|
38779
38816
|
if (cell.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && cell.table.rowInfos[r + 1].rowProperty.repeatAsTitleAtPageTop) {
|
|
38780
|
-
|
|
38817
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许在表头行中间插入行');
|
|
38781
38818
|
return;
|
|
38782
38819
|
}
|
|
38783
38820
|
}
|
|
@@ -38874,7 +38911,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38874
38911
|
// );
|
|
38875
38912
|
// }
|
|
38876
38913
|
} else {
|
|
38877
|
-
|
|
38914
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('表格已设置不允许新增行');
|
|
38878
38915
|
return;
|
|
38879
38916
|
}
|
|
38880
38917
|
}
|
|
@@ -38935,7 +38972,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38935
38972
|
// );
|
|
38936
38973
|
// }
|
|
38937
38974
|
} else {
|
|
38938
|
-
|
|
38975
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
38939
38976
|
return;
|
|
38940
38977
|
}
|
|
38941
38978
|
}
|
|
@@ -38993,7 +39030,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
38993
39030
|
// );
|
|
38994
39031
|
// }
|
|
38995
39032
|
} else {
|
|
38996
|
-
|
|
39033
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('表格已设置不允许新增列');
|
|
38997
39034
|
return;
|
|
38998
39035
|
}
|
|
38999
39036
|
}
|
|
@@ -39010,7 +39047,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39010
39047
|
r2 = _TableNode$getSelectT2[3],
|
|
39011
39048
|
c2 = _TableNode$getSelectT2[4];
|
|
39012
39049
|
if (!table) {
|
|
39013
|
-
|
|
39050
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39014
39051
|
return;
|
|
39015
39052
|
}
|
|
39016
39053
|
// const eParentNode = (aRange.npEnd.node as BaseNode).parentNode;
|
|
@@ -39022,7 +39059,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39022
39059
|
for (var i = r1; i <= r2; i++) {
|
|
39023
39060
|
var rowInfo = table.rowInfos[i];
|
|
39024
39061
|
if (rowInfo.rowProperty.repeatAsTitleAtPageTop) {
|
|
39025
|
-
|
|
39062
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('表头行不允许删除');
|
|
39026
39063
|
return;
|
|
39027
39064
|
}
|
|
39028
39065
|
}
|
|
@@ -39081,7 +39118,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39081
39118
|
r2 = _TableNode$getSelectT4[3],
|
|
39082
39119
|
c2 = _TableNode$getSelectT4[4];
|
|
39083
39120
|
if (!table) {
|
|
39084
|
-
|
|
39121
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格才能删除');
|
|
39085
39122
|
return;
|
|
39086
39123
|
}
|
|
39087
39124
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
@@ -39134,7 +39171,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39134
39171
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39135
39172
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39136
39173
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || cell1.table !== cell2.table || cell1 === cell2) {
|
|
39137
|
-
|
|
39174
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的不同单元格才能合并');
|
|
39138
39175
|
return;
|
|
39139
39176
|
}
|
|
39140
39177
|
var _cell1$table$getCellI = cell1.table.getCellInfos(cell1),
|
|
@@ -39186,7 +39223,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39186
39223
|
var cell1 = hoEditorFactory.docTree.getParentRectNode(np1.node);
|
|
39187
39224
|
var cell2 = hoEditorFactory.docTree.getParentRectNode(np2.node);
|
|
39188
39225
|
if (!(cell1 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || !(cell2 instanceof _treeNode_CellNode__WEBPACK_IMPORTED_MODULE_58__/* .CellNode */ .D) || cell1.table !== cell2.table) {
|
|
39189
|
-
|
|
39226
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('选中区域在表格内,且为同一个表格的单元格才能取消合并');
|
|
39190
39227
|
return;
|
|
39191
39228
|
}
|
|
39192
39229
|
var endPath = cell1.table.getNodePath();
|
|
@@ -39249,7 +39286,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39249
39286
|
}, {
|
|
39250
39287
|
key: "setRowProperty",
|
|
39251
39288
|
value: function setRowProperty(curDomRange, objectValues, rowInfo) {
|
|
39252
|
-
var
|
|
39289
|
+
var _this5 = this;
|
|
39253
39290
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39254
39291
|
var setRowProps = function setRowProps(rowInfo) {
|
|
39255
39292
|
var rowProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .RowProperty */ .Nr(objectValues);
|
|
@@ -39261,7 +39298,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39261
39298
|
var r = rowInfo.table.rowInfos.indexOf(rowInfo);
|
|
39262
39299
|
if (r >= 0) {
|
|
39263
39300
|
hoEditorFactory.undoService.begin();
|
|
39264
|
-
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_75__/* .TableResizeRowUndoUnit */ .w(
|
|
39301
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeRowUndoUnit__WEBPACK_IMPORTED_MODULE_75__/* .TableResizeRowUndoUnit */ .w(_this5._hoEditorFactoryID, rowInfo.table, r, oldHeight, newHeight));
|
|
39265
39302
|
hoEditorFactory.undoService.commit();
|
|
39266
39303
|
}
|
|
39267
39304
|
}
|
|
@@ -39299,7 +39336,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39299
39336
|
}, {
|
|
39300
39337
|
key: "setColProperty",
|
|
39301
39338
|
value: function setColProperty(curDomRange, objectValues, colInfo) {
|
|
39302
|
-
var
|
|
39339
|
+
var _this6 = this;
|
|
39303
39340
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39304
39341
|
var setColProps = function setColProps(colInfo) {
|
|
39305
39342
|
var colProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_59__/* .ColProperty */ .Ti(objectValues);
|
|
@@ -39310,7 +39347,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39310
39347
|
var c = colInfo.table.colInfos.indexOf(colInfo);
|
|
39311
39348
|
if (c >= 0) {
|
|
39312
39349
|
hoEditorFactory.undoService.begin();
|
|
39313
|
-
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_74__/* .TableResizeColUndoUnit */ .D(
|
|
39350
|
+
hoEditorFactory.undoService.add(new _undoRedo_TableUndos_TableResizeColUndoUnit__WEBPACK_IMPORTED_MODULE_74__/* .TableResizeColUndoUnit */ .D(_this6._hoEditorFactoryID, colInfo.table, c, newHeight));
|
|
39314
39351
|
hoEditorFactory.undoService.commit();
|
|
39315
39352
|
}
|
|
39316
39353
|
}
|
|
@@ -39494,7 +39531,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39494
39531
|
}
|
|
39495
39532
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39496
39533
|
if (object.obj2.size === 0) {
|
|
39497
|
-
|
|
39534
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
39498
39535
|
} else {
|
|
39499
39536
|
var nodesMap = object.obj1;
|
|
39500
39537
|
var indexsMap = object.obj2;
|
|
@@ -39555,7 +39592,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39555
39592
|
sNode = startNode.rootNodes[0];
|
|
39556
39593
|
var object = hoEditorFactory.docTree.findNodes(sNode, findContent, direction, matchCase);
|
|
39557
39594
|
if (object.obj2.size === 0) {
|
|
39558
|
-
|
|
39595
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('未能找到指定内容。');
|
|
39559
39596
|
} else {
|
|
39560
39597
|
var nodesMap = object.obj1;
|
|
39561
39598
|
var indexsMap = object.obj2;
|
|
@@ -39607,7 +39644,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39607
39644
|
} finally {
|
|
39608
39645
|
_iterator.f();
|
|
39609
39646
|
}
|
|
39610
|
-
|
|
39647
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.info('成功替换了' + indexsMap.size.toString() + '处文档内容。');
|
|
39611
39648
|
var toPath = hoEditorFactory.docTree.curDomRange.endPath;
|
|
39612
39649
|
hoEditorFactory.drawTree.moveCaretToPath(toPath);
|
|
39613
39650
|
}
|
|
@@ -39927,7 +39964,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39927
39964
|
}, {
|
|
39928
39965
|
key: "deleteComment",
|
|
39929
39966
|
value: function deleteComment(type, commentID) {
|
|
39930
|
-
var
|
|
39967
|
+
var _this7 = this;
|
|
39931
39968
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
39932
39969
|
var delStyleComment = function delStyleComment(commentID) {
|
|
39933
39970
|
hoEditorFactory.docTree.styles.forEach(function (value, index) {
|
|
@@ -39946,7 +39983,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39946
39983
|
hoEditorFactory.drawTree.commentsMap.delete(comment.id);
|
|
39947
39984
|
var endPath = comment.eNode.getNodePath();
|
|
39948
39985
|
hoEditorFactory.undoService.begin();
|
|
39949
|
-
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(
|
|
39986
|
+
hoEditorFactory.undoService.add(new _undoRedo_NodeDeleteUndoUnit__WEBPACK_IMPORTED_MODULE_38__/* .NodeDeleteUndoUnit */ .w(_this7._hoEditorFactoryID, comment.eNode, endPath));
|
|
39950
39987
|
hoEditorFactory.undoService.commit();
|
|
39951
39988
|
hoEditorFactory.drawTree.rebuildAllDrawLine(false);
|
|
39952
39989
|
};
|
|
@@ -39968,7 +40005,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
39968
40005
|
} else {
|
|
39969
40006
|
var _comment = hoEditorFactory.drawTree.curOnSelectedComment;
|
|
39970
40007
|
if (_comment.userID != hoEditorFactory.userInfo.id) {
|
|
39971
|
-
|
|
40008
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_95__/* ["default"] */ .Z.warn('不允许删除其他用户创建的批注!');
|
|
39972
40009
|
return;
|
|
39973
40010
|
}
|
|
39974
40011
|
del(_comment);
|
|
@@ -40875,7 +40912,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40875
40912
|
}, {
|
|
40876
40913
|
key: "tabToNextElement",
|
|
40877
40914
|
value: function tabToNextElement() {
|
|
40878
|
-
var
|
|
40915
|
+
var _this8 = this;
|
|
40879
40916
|
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_78__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
40880
40917
|
var domRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
40881
40918
|
if (!domRange.npStart || !domRange.npStart.node || !domRange.npEnd || !domRange.npEnd.node) return;
|
|
@@ -40906,7 +40943,7 @@ var DocController = /*#__PURE__*/function () {
|
|
|
40906
40943
|
}
|
|
40907
40944
|
} while (1);
|
|
40908
40945
|
var setSelectRange = function setSelectRange(sPath, ePath) {
|
|
40909
|
-
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(
|
|
40946
|
+
var newRange = new _DomRange__WEBPACK_IMPORTED_MODULE_32__/* .DomRange */ .a(_this8._hoEditorFactoryID, sPath, ePath);
|
|
40910
40947
|
var cgEvent = new _events_SelectionChangeEvent__WEBPACK_IMPORTED_MODULE_36__/* .SelectionChangeEvent */ .r(domRange, newRange); //选中范围变化事件
|
|
40911
40948
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
40912
40949
|
hoEditorFactory.docTree.curDomRange = newRange;
|
|
@@ -44950,13 +44987,13 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
44950
44987
|
/*
|
|
44951
44988
|
* @Author: your name
|
|
44952
44989
|
* @Date: 2020-12-24 16:01:16
|
|
44953
|
-
* @LastEditTime:
|
|
44990
|
+
* @LastEditTime: 2024-02-28 10:24:12
|
|
44954
44991
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
44955
44992
|
* @Description: In User Settings Edit
|
|
44956
44993
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
44957
44994
|
*/
|
|
44958
44995
|
var TableProperty = /*#__PURE__*/function () {
|
|
44959
|
-
|
|
44996
|
+
//按顺序新增行
|
|
44960
44997
|
function TableProperty(objectValues) {
|
|
44961
44998
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, TableProperty);
|
|
44962
44999
|
//private _id!: string; //编号
|
|
@@ -44989,6 +45026,8 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
44989
45026
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isSignLock", false);
|
|
44990
45027
|
//签名后是否锁定
|
|
44991
45028
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isLock", false);
|
|
45029
|
+
//是否锁定
|
|
45030
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_addRowByOrder", false);
|
|
44992
45031
|
if (objectValues !== "") {
|
|
44993
45032
|
var valuesObj = eval('(' + objectValues + ')');
|
|
44994
45033
|
var assignvalue = function assignvalue(target, source) {
|
|
@@ -45133,6 +45172,14 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
45133
45172
|
set: function set(value) {
|
|
45134
45173
|
this._isLock = value;
|
|
45135
45174
|
}
|
|
45175
|
+
}, {
|
|
45176
|
+
key: "addRowByOrder",
|
|
45177
|
+
get: function get() {
|
|
45178
|
+
return this._addRowByOrder;
|
|
45179
|
+
},
|
|
45180
|
+
set: function set(value) {
|
|
45181
|
+
this._addRowByOrder = value;
|
|
45182
|
+
}
|
|
45136
45183
|
}]);
|
|
45137
45184
|
return TableProperty;
|
|
45138
45185
|
}();
|
|
@@ -45396,6 +45443,7 @@ var VAlign;
|
|
|
45396
45443
|
})(VAlign || (VAlign = {}));
|
|
45397
45444
|
var ColDownListProperty = /*#__PURE__*/function () {
|
|
45398
45445
|
//允许被删除 编辑器属性是DownList类型的情况
|
|
45446
|
+
//private _
|
|
45399
45447
|
function ColDownListProperty(objectValues) {
|
|
45400
45448
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, ColDownListProperty);
|
|
45401
45449
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_allowMultiSelected", true);
|
|
@@ -45470,9 +45518,9 @@ var DateTimeProperty = /*#__PURE__*/function () {
|
|
|
45470
45518
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_1__/* ["default"] */ .Z)(this, DateTimeProperty);
|
|
45471
45519
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_inputStyle", "yyyy-MM-dd HH:mm:ss");
|
|
45472
45520
|
//日期时间输入样式 编辑器属性是DateTime类型的情况
|
|
45473
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isAutoInputCurDate",
|
|
45521
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, "_isAutoInputCurDate", false);
|
|
45474
45522
|
this._inputStyle = objectValues["inputStyle"] ? objectValues["inputStyle"] : objectValues["_inputStyle"];
|
|
45475
|
-
this._isAutoInputCurDate = objectValues["isAutoInputCurDate"]
|
|
45523
|
+
this._isAutoInputCurDate = objectValues["isAutoInputCurDate"] === undefined ? objectValues["_isAutoInputCurDate"] === undefined ? false : objectValues["_isAutoInputCurDate"] : objectValues["isAutoInputCurDate"];
|
|
45476
45524
|
}
|
|
45477
45525
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(DateTimeProperty, [{
|
|
45478
45526
|
key: "inputStyle",
|
|
@@ -45548,7 +45596,8 @@ var EditorProperty;
|
|
|
45548
45596
|
EditorProperty[EditorProperty["Number"] = 3] = "Number";
|
|
45549
45597
|
EditorProperty[EditorProperty["Sign"] = 4] = "Sign";
|
|
45550
45598
|
EditorProperty[EditorProperty["Textarea"] = 5] = "Textarea";
|
|
45551
|
-
|
|
45599
|
+
EditorProperty[EditorProperty["OrderNumber"] = 6] = "OrderNumber";
|
|
45600
|
+
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域,次数}
|
|
45552
45601
|
var ColProperty = /*#__PURE__*/function () {
|
|
45553
45602
|
//是否锁定
|
|
45554
45603
|
function ColProperty(objectValues //, table: TableNode
|
|
@@ -55650,8 +55699,8 @@ var ParagraphNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
55650
55699
|
paragraphNode.docId = json.docId && json.docId !== "" ? json.docId : "";
|
|
55651
55700
|
paragraphNode.printAsSinglePage = json.printAsSinglePage ? json.printAsSinglePage === "true" ? true : false : false;
|
|
55652
55701
|
paragraphNode.forceChangeHeader = json.forceChangeHeader ? json.forceChangeHeader === "true" ? true : false : false;
|
|
55653
|
-
|
|
55654
|
-
paragraphNode.styleIndex = 0;
|
|
55702
|
+
paragraphNode.styleIndex = json.textStyleNo ? Number(json.textStyleNo) : 0;
|
|
55703
|
+
//paragraphNode.styleIndex = 0;
|
|
55655
55704
|
return paragraphNode;
|
|
55656
55705
|
}
|
|
55657
55706
|
}]);
|
|
@@ -62422,6 +62471,9 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
62422
62471
|
if (this.tableProperty.isLock) {
|
|
62423
62472
|
tableProperty.isLock = this.tableProperty.isLock;
|
|
62424
62473
|
}
|
|
62474
|
+
if (this.tableProperty.addRowByOrder) {
|
|
62475
|
+
tableProperty.addRowByOrder = this.tableProperty.addRowByOrder;
|
|
62476
|
+
}
|
|
62425
62477
|
if (this.tableProperty.customProperties.length > 0 && this.tableProperty.customProperties[0]) {
|
|
62426
62478
|
tableProperty.customProperties = customProperties;
|
|
62427
62479
|
}
|
|
@@ -63107,6 +63159,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63107
63159
|
tableProperty.isUsePopEdit = tp["isUsePopEdit"] === true || tp["isUsePopEdit"] === "true" ? true : false;
|
|
63108
63160
|
tableProperty.isSignLock = tp["isSignLock"] === true || tp["isSignLock"] === "true" ? true : false;
|
|
63109
63161
|
tableProperty.isLock = tp["isLock"] === true || tp["isLock"] === "true" ? true : false;
|
|
63162
|
+
tableProperty.addRowByOrder = tp["addRowByOrder"] === true || tp["addRowByOrder"] === "true" ? true : false;
|
|
63110
63163
|
tableProperty.customProperties = json.tableProperty.customProperties ? Array.isArray(json.tableProperty.customProperties.customProperty) ? json.tableProperty.customProperties.customProperty : Array(json.tableProperty.customProperties.customProperty) : "";
|
|
63111
63164
|
}
|
|
63112
63165
|
var tableNode = new TableNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, Number(json.rowCount), Number(json.colCount), tableProperty);
|
|
@@ -73609,7 +73662,7 @@ var DrawPageCell = /*#__PURE__*/function (_DrawArea) {
|
|
|
73609
73662
|
this.addChild(this._rightLine);
|
|
73610
73663
|
}
|
|
73611
73664
|
} else {
|
|
73612
|
-
if (c < this.cell.table.colCount - 1) {
|
|
73665
|
+
if (c < this.cell.table.colCount - 1 && c > 0) {
|
|
73613
73666
|
var _removeLine3 = function _removeLine3(row, col) {
|
|
73614
73667
|
var rightCell = _this2._cell.table.getMainCell(row, col)[0];
|
|
73615
73668
|
var drawPageCells = rightCell.drawCell.drawPageCells;
|
|
@@ -88069,7 +88122,6 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88069
88122
|
key: "ParentRepaint",
|
|
88070
88123
|
value: function ParentRepaint(Anode) {
|
|
88071
88124
|
if (Anode && Anode instanceof _dom_treeNode_TextInputFieldNode__WEBPACK_IMPORTED_MODULE_25__/* .TextInputFieldNode */ .re) {
|
|
88072
|
-
//const hoEditorFactory = HOEditorFactorys.instance().getFactory(this._hoEditorFactoryID);
|
|
88073
88125
|
if (Anode.childNodes.length === 2) {
|
|
88074
88126
|
var contentMark = Anode.childNodes2[1];
|
|
88075
88127
|
var styleIndex = Anode.childNodes[0].styleIndex;
|
|
@@ -88081,8 +88133,10 @@ var NodesDeleteUndoUnit = /*#__PURE__*/function () {
|
|
|
88081
88133
|
// );
|
|
88082
88134
|
// hoEditorFactory.undoService.commit();
|
|
88083
88135
|
Anode.childNodes.splice(1, 0, contentMarkNode);
|
|
88136
|
+
Anode.update(0);
|
|
88137
|
+
} else {
|
|
88138
|
+
Anode.update();
|
|
88084
88139
|
}
|
|
88085
|
-
Anode.update();
|
|
88086
88140
|
}
|
|
88087
88141
|
}
|
|
88088
88142
|
}, {
|
|
@@ -166255,10 +166309,10 @@ var map = {
|
|
|
166255
166309
|
"./poperSelect/PoperSelect.vue": 44629,
|
|
166256
166310
|
"./poperTipText/PoperTipText.vue": 50987,
|
|
166257
166311
|
"./popers/Poper.vue": 57937,
|
|
166258
|
-
"./popers/Title.vue":
|
|
166312
|
+
"./popers/Title.vue": 31276,
|
|
166259
166313
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
166260
166314
|
"./qrCode/QrCode.vue": 59805,
|
|
166261
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
166315
|
+
"./radioCheckBox/RadioCheckbox.vue": 22876,
|
|
166262
166316
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
166263
166317
|
"./sign/Sign.vue": 24193,
|
|
166264
166318
|
"./table/TableCellPoper.vue": 97628,
|
|
@@ -168633,7 +168687,7 @@ function _unsupportedIterableToArray(o, minLen) {
|
|
|
168633
168687
|
/***/ (function(module) {
|
|
168634
168688
|
|
|
168635
168689
|
"use strict";
|
|
168636
|
-
module.exports = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"arial","en":"arial","family":"arial"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"}],"CH":[{"name":"初号","value":42,"px":56},{"name":"小初","value":36,"px":48},{"name":"一号","value":26,"px":35},{"name":"小一","value":24,"px":32},{"name":"二号","value":22,"px":29},{"name":"小二","value":18,"px":24},{"name":"三号","value":16,"px":22},{"name":"小三","value":15,"px":21},{"name":"四号","value":14,"px":19},{"name":"小四","value":12,"px":16},{"name":"五号","value":10.5,"px":14},{"name":"小五","value":9,"px":12},{"name":"六号","value":7.5,"px":10},{"name":"小六","value":6.5,"px":8},{"name":"七号","value":5.5,"px":7},{"name":"八号","value":5,"px":6}]}');
|
|
168690
|
+
module.exports = JSON.parse('{"TN":[{"ch":"宋体","en":"SimSun","family":"宋体, SimSun"},{"ch":"arial","en":"arial","family":"arial"},{"ch":"Times New Roman","en":"Times New Roman","family":"Times New Roman"},{"ch":"himalaya","en":"himalaya","family":"himalaya(藏语字体)"}],"CH":[{"name":"初号","value":42,"px":56},{"name":"小初","value":36,"px":48},{"name":"一号","value":26,"px":35},{"name":"小一","value":24,"px":32},{"name":"二号","value":22,"px":29},{"name":"小二","value":18,"px":24},{"name":"三号","value":16,"px":22},{"name":"小三","value":15,"px":21},{"name":"四号","value":14,"px":19},{"name":"小四","value":12,"px":16},{"name":"五号","value":10.5,"px":14},{"name":"小五","value":9,"px":12},{"name":"六号","value":7.5,"px":10},{"name":"小六","value":6.5,"px":8},{"name":"七号","value":5.5,"px":7},{"name":"八号","value":5,"px":6}]}');
|
|
168637
168691
|
|
|
168638
168692
|
/***/ })
|
|
168639
168693
|
|
|
@@ -203581,7 +203635,7 @@ Input.install = function (Vue) {
|
|
|
203581
203635
|
|
|
203582
203636
|
|
|
203583
203637
|
/* harmony default export */ var antd = ([es_button, input, input_number, es_checkbox, date_picker, time_picker, es_radio, es_select, es_tabs, es_dropdown, es_menu, es_upload, tooltip, table, popover, es_icon/* default */.Z, config_provider]);
|
|
203584
|
-
;// 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/HoDocs.vue?vue&type=template&id=
|
|
203638
|
+
;// 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/HoDocs.vue?vue&type=template&id=b6d65e5c&
|
|
203585
203639
|
var render = function render() {
|
|
203586
203640
|
var _vm = this,
|
|
203587
203641
|
_c = _vm._self._c;
|
|
@@ -203905,8 +203959,8 @@ var es_array_sort = __webpack_require__(2707);
|
|
|
203905
203959
|
var es_string_replace = __webpack_require__(15306);
|
|
203906
203960
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.map.js
|
|
203907
203961
|
var es_array_map = __webpack_require__(21249);
|
|
203908
|
-
;// 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/HoPage.vue?vue&type=template&id=
|
|
203909
|
-
var
|
|
203962
|
+
;// 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/HoPage.vue?vue&type=template&id=7e15e978&
|
|
203963
|
+
var HoPagevue_type_template_id_7e15e978_render = function render() {
|
|
203910
203964
|
var _vm = this,
|
|
203911
203965
|
_c = _vm._self._c;
|
|
203912
203966
|
return _c('div', {
|
|
@@ -203947,7 +204001,6 @@ var HoPagevue_type_template_id_21b0a4d9_render = function render() {
|
|
|
203947
204001
|
class: _vm.commentCanvasName,
|
|
203948
204002
|
style: {
|
|
203949
204003
|
height: _vm.normalHeight + 'px',
|
|
203950
|
-
paddingTop: _vm.topMarginPixes + 'px',
|
|
203951
204004
|
width: _vm.commentWidth + 'px'
|
|
203952
204005
|
},
|
|
203953
204006
|
attrs: {
|
|
@@ -203980,7 +204033,7 @@ var HoPagevue_type_template_id_21b0a4d9_render = function render() {
|
|
|
203980
204033
|
}], null, true)
|
|
203981
204034
|
}) : _vm._e()], 2);
|
|
203982
204035
|
};
|
|
203983
|
-
var
|
|
204036
|
+
var HoPagevue_type_template_id_7e15e978_staticRenderFns = [];
|
|
203984
204037
|
|
|
203985
204038
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/regeneratorRuntime.js
|
|
203986
204039
|
var regeneratorRuntime = __webpack_require__(80543);
|
|
@@ -205275,10 +205328,10 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
205275
205328
|
});
|
|
205276
205329
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=script&lang=js&
|
|
205277
205330
|
/* harmony default export */ var components_HoPagevue_type_script_lang_js_ = (HoPagevue_type_script_lang_js_);
|
|
205278
|
-
;// 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/HoPage.vue?vue&type=style&index=0&id=
|
|
205331
|
+
;// 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/HoPage.vue?vue&type=style&index=0&id=7e15e978&prod&lang=less&
|
|
205279
205332
|
// extracted by mini-css-extract-plugin
|
|
205280
205333
|
|
|
205281
|
-
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=
|
|
205334
|
+
;// CONCATENATED MODULE: ./src/components/HoPage.vue?vue&type=style&index=0&id=7e15e978&prod&lang=less&
|
|
205282
205335
|
|
|
205283
205336
|
;// CONCATENATED MODULE: ./src/components/HoPage.vue
|
|
205284
205337
|
|
|
@@ -205291,8 +205344,8 @@ var AiModels_component = (0,componentNormalizer/* default */.Z)(
|
|
|
205291
205344
|
|
|
205292
205345
|
var HoPage_component = (0,componentNormalizer/* default */.Z)(
|
|
205293
205346
|
components_HoPagevue_type_script_lang_js_,
|
|
205294
|
-
|
|
205295
|
-
|
|
205347
|
+
HoPagevue_type_template_id_7e15e978_render,
|
|
205348
|
+
HoPagevue_type_template_id_7e15e978_staticRenderFns,
|
|
205296
205349
|
false,
|
|
205297
205350
|
null,
|
|
205298
205351
|
null,
|
|
@@ -206885,7 +206938,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
206885
206938
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
206886
206939
|
var ParagraphNode = __webpack_require__(67945);
|
|
206887
206940
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
206888
|
-
/* harmony default export */ var version = ('3.1.
|
|
206941
|
+
/* harmony default export */ var version = ('3.1.71');
|
|
206889
206942
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
206890
206943
|
var PoperTipText = __webpack_require__(50987);
|
|
206891
206944
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -210196,6 +210249,7 @@ var HTMLconverter2 = /*#__PURE__*/function () {
|
|
|
210196
210249
|
tableProperty.autoLineHeight = tableProperty['autoLineHeight'] || 0.53;
|
|
210197
210250
|
tableProperty.isSignLock = tableProperty['isSignLock'] || false;
|
|
210198
210251
|
tableProperty.isLock = tableProperty['isLock'] || false;
|
|
210252
|
+
tableProperty.addRowByOrder = tableProperty['addRowByOrder'] || false;
|
|
210199
210253
|
return tableProperty;
|
|
210200
210254
|
}
|
|
210201
210255
|
}, {
|
|
@@ -213962,11 +214016,13 @@ var commonParamList = new Map();
|
|
|
213962
214016
|
|
|
213963
214017
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.from.js
|
|
213964
214018
|
var es_array_from = __webpack_require__(91038);
|
|
213965
|
-
;// 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/common/history/index.vue?vue&type=template&id=
|
|
213966
|
-
var
|
|
214019
|
+
;// 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/common/history/index.vue?vue&type=template&id=cbb3a73a&
|
|
214020
|
+
var historyvue_type_template_id_cbb3a73a_render = function render() {
|
|
213967
214021
|
var _vm = this,
|
|
213968
214022
|
_c = _vm._self._c;
|
|
213969
|
-
return _c('section',
|
|
214023
|
+
return _c('section', {
|
|
214024
|
+
staticClass: "ho-history-box"
|
|
214025
|
+
}, [_vm._l(_vm.list, function (item, index) {
|
|
213970
214026
|
return [_c('div', {
|
|
213971
214027
|
ref: 'hoCommentItem' + item.id,
|
|
213972
214028
|
refInFor: true,
|
|
@@ -213979,37 +214035,40 @@ var historyvue_type_template_id_2ce27eca_render = function render() {
|
|
|
213979
214035
|
return _vm.selectComment(item);
|
|
213980
214036
|
}
|
|
213981
214037
|
}
|
|
213982
|
-
}, [_c('header', [_c('span',
|
|
214038
|
+
}, [_c('header', [_c('span', {
|
|
214039
|
+
staticStyle: {
|
|
214040
|
+
"text-align": "left"
|
|
214041
|
+
}
|
|
214042
|
+
}, [_vm._v(_vm._s(item.userName))]), _vm._v(" "), _c('span', {
|
|
214043
|
+
staticStyle: {
|
|
214044
|
+
"text-align": "right"
|
|
214045
|
+
}
|
|
214046
|
+
}, [_vm._v(_vm._s(item.date))])]), item.ipAddress ? _c('p', {
|
|
213983
214047
|
staticStyle: {
|
|
213984
214048
|
"text-align": "right",
|
|
213985
214049
|
"font-size": "12px"
|
|
213986
214050
|
}
|
|
213987
214051
|
}, [_vm._v(_vm._s(item.ipAddress))]) : _vm._e(), _c('section', {
|
|
213988
|
-
staticClass: "comment-content"
|
|
213989
|
-
|
|
213990
|
-
|
|
213991
|
-
"overlayClassName": "history-comment-tooltip"
|
|
214052
|
+
staticClass: "comment-content",
|
|
214053
|
+
staticStyle: {
|
|
214054
|
+
"border-bottom": "1px solid #ccc"
|
|
213992
214055
|
}
|
|
213993
|
-
}, [_c('
|
|
213994
|
-
slot: "title"
|
|
213995
|
-
}, [_vm._v(" 修改前:" + _vm._s(item.text) + " ")]), _vm._v(" 修改前:" + _vm._s(item.text) + " ")], 2) : [_vm._v(" 修改前:" + _vm._s(item.text) + " ")]], 2), _c('section', {
|
|
214056
|
+
}, [[_vm._v(" 修改前:" + _vm._s(item.text) + " ")]], 2), _c('section', {
|
|
213996
214057
|
staticClass: "comment-content"
|
|
213997
|
-
}, [_vm.
|
|
213998
|
-
attrs: {
|
|
213999
|
-
"overlayClassName": "history-comment-tooltip"
|
|
214000
|
-
}
|
|
214001
|
-
}, [_c('template', {
|
|
214002
|
-
slot: "title"
|
|
214003
|
-
}, [_vm._v(" 修改后:" + _vm._s(item.afterContent) + " ")]), _vm._v(" 修改后:" + _vm._s(item.afterContent) + " ")], 2) : [_vm._v(" 修改后:" + _vm._s(item.afterContent) + " ")]], 2)])];
|
|
214058
|
+
}, [[_vm._v(" 修改后:" + _vm._s(item.afterContent) + " ")]], 2)])];
|
|
214004
214059
|
})], 2);
|
|
214005
214060
|
};
|
|
214006
|
-
var
|
|
214061
|
+
var historyvue_type_template_id_cbb3a73a_staticRenderFns = [];
|
|
214007
214062
|
|
|
214008
214063
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
214009
214064
|
|
|
214010
214065
|
|
|
214011
214066
|
|
|
214012
214067
|
|
|
214068
|
+
|
|
214069
|
+
|
|
214070
|
+
|
|
214071
|
+
|
|
214013
214072
|
/* harmony default export */ var historyvue_type_script_lang_js_ = ({
|
|
214014
214073
|
data: function data() {
|
|
214015
214074
|
return {
|
|
@@ -214034,24 +214093,73 @@ var historyvue_type_template_id_2ce27eca_staticRenderFns = [];
|
|
|
214034
214093
|
(_element$parentNode = element.parentNode) === null || _element$parentNode === void 0 ? void 0 : _element$parentNode.removeChild(element);
|
|
214035
214094
|
});
|
|
214036
214095
|
}
|
|
214037
|
-
var hoCommentBox = document.querySelector("#ho-comment-box-".concat(this.pageIndex));
|
|
214038
|
-
hoCommentBox.removeEventListener('scroll', this.createLine, true);
|
|
214039
214096
|
},
|
|
214040
214097
|
selectComment: function selectComment(item) {
|
|
214098
|
+
var _this = this;
|
|
214041
214099
|
this.selectedId = item.id;
|
|
214042
214100
|
this.selectItem = item;
|
|
214043
|
-
var
|
|
214044
|
-
|
|
214045
|
-
|
|
214046
|
-
|
|
214047
|
-
|
|
214101
|
+
var hoCommentBoxList = Array.from(document.querySelectorAll("#".concat(item.editorId, " .ho-comment-box")));
|
|
214102
|
+
var hoCommentBox = null;
|
|
214103
|
+
hoCommentBoxList.forEach(function (box) {
|
|
214104
|
+
if (!box) return;
|
|
214105
|
+
if (box.id == "ho-comment-box-".concat(_this.pageIndex)) {
|
|
214106
|
+
hoCommentBox = box;
|
|
214107
|
+
if (!box.className.includes('ho-comment-history-selected')) {
|
|
214108
|
+
box.className += ' ho-comment-history-selected';
|
|
214109
|
+
}
|
|
214048
214110
|
} else {
|
|
214049
|
-
|
|
214050
|
-
|
|
214111
|
+
var boxNextSection = box.querySelector(".ho-history-box");
|
|
214112
|
+
var list = Array.from(box.querySelectorAll('.ho-comment-item'));
|
|
214113
|
+
box.style.transform = "translate(0, 0)";
|
|
214114
|
+
boxNextSection.style.paddingLeft = '0';
|
|
214115
|
+
list.forEach(function (element, index) {
|
|
214116
|
+
element.style.transform = "translate(0, 0)";
|
|
214117
|
+
element.style.boxShadow = '';
|
|
214118
|
+
if (!element.className.includes('history-comment')) {
|
|
214119
|
+
element.className += ' history-comment';
|
|
214120
|
+
}
|
|
214121
|
+
});
|
|
214122
|
+
box.className = box.className.replace('ho-comment-history-selected', '');
|
|
214051
214123
|
}
|
|
214052
214124
|
});
|
|
214053
|
-
|
|
214125
|
+
if (hoCommentBox) {
|
|
214126
|
+
var hoCommentHistoryBox = hoCommentBox.querySelector(".ho-history-box");
|
|
214127
|
+
var hoCommentItemList = Array.from(hoCommentHistoryBox.querySelectorAll('.ho-comment-item'));
|
|
214128
|
+
hoCommentBox.style.transform = "translate(-25px, 0)";
|
|
214129
|
+
hoCommentHistoryBox.style.paddingLeft = "25px";
|
|
214130
|
+
var key = 0;
|
|
214131
|
+
var translateY = 0;
|
|
214132
|
+
var selectElement = null;
|
|
214133
|
+
var scrollTop = 0;
|
|
214134
|
+
hoCommentItemList.forEach(function (element, index) {
|
|
214135
|
+
if (element.id === item.id) {
|
|
214136
|
+
key = index;
|
|
214137
|
+
selectElement = element;
|
|
214138
|
+
element.className = 'ho-comment-item';
|
|
214139
|
+
element.style.boxShadow = '0px 2px 12px 0px #9ea1a5';
|
|
214140
|
+
translateY = item.endNodeY - element.offsetTop + hoCommentHistoryBox.scrollTop;
|
|
214141
|
+
if (hoCommentBox.offsetHeight - item.endNodeY < element.offsetHeight) {
|
|
214142
|
+
translateY -= element.offsetHeight - (hoCommentBox.offsetHeight - item.endNodeY) + 60;
|
|
214143
|
+
}
|
|
214144
|
+
if (index == 0 && translateY < 0) {
|
|
214145
|
+
translateY = 0;
|
|
214146
|
+
}
|
|
214147
|
+
if (item.elementName) {
|
|
214148
|
+
item.vueController.findAndLightElementsByNames([item.elementName]);
|
|
214149
|
+
}
|
|
214150
|
+
element.style.transform = "translate(-25px, ".concat(translateY, "px)");
|
|
214151
|
+
} else {
|
|
214152
|
+
element.className = 'ho-comment-item history-comment';
|
|
214153
|
+
element.style.boxShadow = '';
|
|
214154
|
+
setTimeout(function () {
|
|
214155
|
+
element.style.transform = "translate(0, ".concat(translateY, "px)");
|
|
214156
|
+
}, 30);
|
|
214157
|
+
}
|
|
214158
|
+
});
|
|
214159
|
+
}
|
|
214160
|
+
// this.createLine();
|
|
214054
214161
|
},
|
|
214162
|
+
clearActive: function clearActive() {},
|
|
214055
214163
|
/**
|
|
214056
214164
|
* 创建连接线
|
|
214057
214165
|
*/
|
|
@@ -214062,29 +214170,29 @@ var historyvue_type_template_id_2ce27eca_staticRenderFns = [];
|
|
|
214062
214170
|
// return;
|
|
214063
214171
|
// }
|
|
214064
214172
|
var ids = 'hoCommentItem' + this.selectItem.id;
|
|
214065
|
-
|
|
214066
|
-
hoCommentBox.addEventListener('scroll', this.createLine, true);
|
|
214173
|
+
// hoCommentBox.addEventListener('scroll', this.createLine, true);
|
|
214067
214174
|
// 起点中心坐标
|
|
214068
214175
|
var pageProperty = vueController.pageProperty();
|
|
214069
214176
|
var startY = this.selectItem.endNodeY;
|
|
214070
214177
|
var startX = this.selectItem.endNodeX;
|
|
214071
214178
|
// 终点中心坐标
|
|
214072
|
-
|
|
214179
|
+
// const endY = this.$refs[ids][0].getBoundingClientRect().top - hoCommentBox.getBoundingClientRect().top;
|
|
214073
214180
|
var endX = pageProperty.widthPixes;
|
|
214074
214181
|
var lx = endX - startX;
|
|
214075
|
-
|
|
214182
|
+
// const ly = endY - startY;
|
|
214076
214183
|
// 计算连线长度
|
|
214077
|
-
|
|
214184
|
+
// const length = Math.sqrt(lx * lx + ly * ly);
|
|
214078
214185
|
// 弧度值转换为角度值
|
|
214079
|
-
|
|
214186
|
+
// const c = (360 * Math.atan2(ly, lx)) / (2 * Math.PI);
|
|
214080
214187
|
// 连线中心坐标
|
|
214081
|
-
|
|
214188
|
+
// const deg = c <= -90 ? 360 + c : c; // 负角转换为正角
|
|
214082
214189
|
var divNode = document.createElement('div');
|
|
214083
214190
|
divNode.className = "ho-comment-line ho-comment-line-".concat(this.selectItem.id);
|
|
214084
214191
|
divNode.style.top = startY + 'px';
|
|
214085
214192
|
divNode.style.left = startX + 'px';
|
|
214086
|
-
divNode.style.width = length + 'px';
|
|
214087
|
-
divNode.style.
|
|
214193
|
+
// divNode.style.width = length + 'px';
|
|
214194
|
+
divNode.style.width = lx + 'px';
|
|
214195
|
+
// divNode.style.transform = `rotate(${deg}deg)`;
|
|
214088
214196
|
divNode.style.borderColor = '#F00';
|
|
214089
214197
|
(_this$$refs$ids$0$par = this.$refs[ids][0].parentNode) === null || _this$$refs$ids$0$par === void 0 || (_this$$refs$ids$0$par = _this$$refs$ids$0$par.parentNode) === null || _this$$refs$ids$0$par === void 0 || (_this$$refs$ids$0$par = _this$$refs$ids$0$par.parentNode) === null || _this$$refs$ids$0$par === void 0 ? void 0 : _this$$refs$ids$0$par.appendChild(divNode);
|
|
214090
214198
|
}
|
|
@@ -214092,10 +214200,10 @@ var historyvue_type_template_id_2ce27eca_staticRenderFns = [];
|
|
|
214092
214200
|
});
|
|
214093
214201
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=script&lang=js&
|
|
214094
214202
|
/* harmony default export */ var common_historyvue_type_script_lang_js_ = (historyvue_type_script_lang_js_);
|
|
214095
|
-
;// 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/common/history/index.vue?vue&type=style&index=0&id=
|
|
214203
|
+
;// 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/common/history/index.vue?vue&type=style&index=0&id=cbb3a73a&prod&lang=less&
|
|
214096
214204
|
// extracted by mini-css-extract-plugin
|
|
214097
214205
|
|
|
214098
|
-
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=
|
|
214206
|
+
;// CONCATENATED MODULE: ./src/components/common/history/index.vue?vue&type=style&index=0&id=cbb3a73a&prod&lang=less&
|
|
214099
214207
|
|
|
214100
214208
|
;// CONCATENATED MODULE: ./src/components/common/history/index.vue
|
|
214101
214209
|
|
|
@@ -214108,8 +214216,8 @@ var historyvue_type_template_id_2ce27eca_staticRenderFns = [];
|
|
|
214108
214216
|
|
|
214109
214217
|
var history_component = (0,componentNormalizer/* default */.Z)(
|
|
214110
214218
|
common_historyvue_type_script_lang_js_,
|
|
214111
|
-
|
|
214112
|
-
|
|
214219
|
+
historyvue_type_template_id_cbb3a73a_render,
|
|
214220
|
+
historyvue_type_template_id_cbb3a73a_staticRenderFns,
|
|
214113
214221
|
false,
|
|
214114
214222
|
null,
|
|
214115
214223
|
null,
|
|
@@ -214126,6 +214234,10 @@ var history_component = (0,componentNormalizer/* default */.Z)(
|
|
|
214126
214234
|
|
|
214127
214235
|
|
|
214128
214236
|
|
|
214237
|
+
|
|
214238
|
+
|
|
214239
|
+
|
|
214240
|
+
|
|
214129
214241
|
var HistoryConstructor = external_commonjs_vue_commonjs2_vue_root_Vue_default().extend(common_history); // 获取组件的构造函数
|
|
214130
214242
|
var createHistoryInstance = function createHistoryInstance(options) {
|
|
214131
214243
|
// 组件的手动挂载:创建组件实例,挂载,添加在body上
|
|
@@ -214142,6 +214254,7 @@ var createHistoryInstance = function createHistoryInstance(options) {
|
|
|
214142
214254
|
instance.$mount();
|
|
214143
214255
|
var editorBox = document.querySelector("#".concat(options[0].editorId, " #ho-comment-box-").concat(options[0].pageIndex));
|
|
214144
214256
|
if (editorBox) {
|
|
214257
|
+
editorBox.style.background = 'transparent';
|
|
214145
214258
|
editorBox.appendChild(instance.$el);
|
|
214146
214259
|
} else {
|
|
214147
214260
|
document.body.appendChild(instance.$el);
|
|
@@ -214161,6 +214274,25 @@ var hoCreateHistory = {
|
|
|
214161
214274
|
});
|
|
214162
214275
|
}
|
|
214163
214276
|
},
|
|
214277
|
+
clearAvtive: function clearAvtive(list, vueController) {
|
|
214278
|
+
list.forEach(function (box) {
|
|
214279
|
+
if (!box) return;
|
|
214280
|
+
var boxNextSection = box.querySelector(".ho-history-box");
|
|
214281
|
+
var arr = Array.from(box.querySelectorAll('.ho-comment-item'));
|
|
214282
|
+
box.style.transform = "translate(0, 0)";
|
|
214283
|
+
if (boxNextSection) {
|
|
214284
|
+
boxNextSection.style.paddingLeft = '0';
|
|
214285
|
+
}
|
|
214286
|
+
arr.forEach(function (element, index) {
|
|
214287
|
+
element.style.transform = "translate(0, 0)";
|
|
214288
|
+
element.style.boxShadow = '';
|
|
214289
|
+
if (!element.className.includes('history-comment')) {
|
|
214290
|
+
element.className += ' history-comment';
|
|
214291
|
+
}
|
|
214292
|
+
});
|
|
214293
|
+
box.className = box.className.replace('ho-comment-history-selected', '');
|
|
214294
|
+
});
|
|
214295
|
+
},
|
|
214164
214296
|
clear: function clear() {
|
|
214165
214297
|
var hoHistoryBoxList = Array.from(document.querySelectorAll(".ho-comment-box"));
|
|
214166
214298
|
if (hoHistoryBoxList) {
|
|
@@ -214877,8 +215009,14 @@ var VueController = /*#__PURE__*/function () {
|
|
|
214877
215009
|
*/
|
|
214878
215010
|
}, {
|
|
214879
215011
|
key: "insertTableRowAbove",
|
|
214880
|
-
value: function insertTableRowAbove(count) {
|
|
215012
|
+
value: function insertTableRowAbove(count, table) {
|
|
214881
215013
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
215014
|
+
if (table) {
|
|
215015
|
+
var path = table.childNodes[0].childNodes[0].getNodePath();
|
|
215016
|
+
hoEditorFactory.docTree.curDomRange.setSamePath(path);
|
|
215017
|
+
hoEditorFactory.drawTree.moveCaretToPath(path);
|
|
215018
|
+
count = 1;
|
|
215019
|
+
}
|
|
214882
215020
|
var _curDomRange = hoEditorFactory.docTree.curDomRange.normalize(); //获取当前选中区域
|
|
214883
215021
|
var startPath = _curDomRange.normalize().startPath;
|
|
214884
215022
|
var endPath = _curDomRange.normalize().endPath;
|
|
@@ -219066,6 +219204,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
219066
219204
|
identifierFormat: node.identifierFormat,
|
|
219067
219205
|
dataMetaIdentifier: node.dataMetaIdentifier,
|
|
219068
219206
|
customProperty: node.customProperty,
|
|
219207
|
+
notReplaceElement: node.notReplaceElement,
|
|
219069
219208
|
keyValue: '',
|
|
219070
219209
|
value: '',
|
|
219071
219210
|
verifyTipList: []
|
|
@@ -220774,7 +220913,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220774
220913
|
var commentID = hoEditorFactory.gernerateCode.generateID('C');
|
|
220775
220914
|
var comment = void 0;
|
|
220776
220915
|
if (element instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
220777
|
-
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, object.oldValue, element.
|
|
220916
|
+
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, object.oldValue, element.StartMarkNode);
|
|
220778
220917
|
} else if (element instanceof DateTimeNode/* DateTimeNode */.Z || element instanceof DownListNode/* DownListNode */.yF) {
|
|
220779
220918
|
comment = new Comment/* Comment */.s(this._hoEditorFactoryID, commentID, object.oldValue, element);
|
|
220780
220919
|
}
|
|
@@ -220810,7 +220949,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220810
220949
|
reviewJson: hoEditorFactory.reviewJson,
|
|
220811
220950
|
selected: false,
|
|
220812
220951
|
ipAddress: comment.ipAddress,
|
|
220813
|
-
elementName: comment.elementName
|
|
220952
|
+
elementName: comment.elementName,
|
|
220953
|
+
vueController: hoEditorFactory.vueController
|
|
220814
220954
|
};
|
|
220815
220955
|
arr[pos[0]].push(obj);
|
|
220816
220956
|
});
|
|
@@ -220820,35 +220960,10 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220820
220960
|
});
|
|
220821
220961
|
return v;
|
|
220822
220962
|
});
|
|
220823
|
-
// let list = arr.flat();
|
|
220824
|
-
// console.log(list);
|
|
220825
220963
|
hoCreateHistory.clear();
|
|
220826
|
-
// hoCreateHistory.open(list);
|
|
220827
220964
|
arr.forEach(function (comment) {
|
|
220828
220965
|
hoCreateHistory.open(comment);
|
|
220829
220966
|
});
|
|
220830
|
-
// comments.forEach((comment, index) => {
|
|
220831
|
-
// console.log(comment, '??');
|
|
220832
|
-
// index++;
|
|
220833
|
-
// const endDrawNode = comment.eNode.drawNodes[0];
|
|
220834
|
-
// const drawArea = hoEditorFactory.drawPageTree.getMainRootArea(endDrawNode) as DrawPageMainDoc;
|
|
220835
|
-
// const dline = hoEditorFactory.drawTree.getDrawLineByDNode(endDrawNode); // 末尾标记节点所在行
|
|
220836
|
-
// const stagePos = dline.localToGlobal(endDrawNode.x, endDrawNode.y); // 末尾标记节点的stage坐标
|
|
220837
|
-
// const localPos = drawArea.globalToLocal(stagePos.x, stagePos.y); // 末尾标记节点的stage坐标
|
|
220838
|
-
// let spX = dline.parent instanceof DrawPageCell ? localPos.x : endDrawNode.x;
|
|
220839
|
-
// const spY = localPos.y;
|
|
220840
|
-
// drawArea.removeComment(comment, true);
|
|
220841
|
-
// const path = comment.eNode.getNodePath();
|
|
220842
|
-
// if (comment.eNode instanceof DateTimeNode || comment.eNode instanceof DownListNode) {
|
|
220843
|
-
// spX = spX + (comment.eNode.drawNodes[0] as DrawCombineNode).dWidth;
|
|
220844
|
-
// }
|
|
220845
|
-
// if (index === 1) {
|
|
220846
|
-
// drawArea.drawEditRecords(comment, spX, spY, spY);
|
|
220847
|
-
// }
|
|
220848
|
-
// if (index >= 2) {
|
|
220849
|
-
// drawArea.repaintRecored(comments, comment, path, spX, spY);
|
|
220850
|
-
// }
|
|
220851
|
-
// });
|
|
220852
220967
|
}
|
|
220853
220968
|
}, {
|
|
220854
220969
|
key: "clearEditRecords",
|
|
@@ -221380,7 +221495,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221380
221495
|
fixedOnePage: node.tableProperty.fixedOnePage,
|
|
221381
221496
|
isUsePopEdit: node.tableProperty.isUsePopEdit,
|
|
221382
221497
|
isSignLock: node.tableProperty.isSignLock,
|
|
221383
|
-
isLock: node.tableProperty.isLock
|
|
221498
|
+
isLock: node.tableProperty.isLock,
|
|
221499
|
+
addRowByOrder: node.tableProperty.addRowByOrder
|
|
221384
221500
|
};
|
|
221385
221501
|
var defaultRowProp = {
|
|
221386
221502
|
customProperties: '',
|
|
@@ -232998,14 +233114,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
232998
233114
|
function PrintController(hoEditorFactoryID) {
|
|
232999
233115
|
(0,esm_classCallCheck/* default */.Z)(this, PrintController);
|
|
233000
233116
|
(0,esm_defineProperty/* default */.Z)(this, "_hoEditorFactoryID", void 0);
|
|
233001
|
-
(0,esm_defineProperty/* default */.Z)(this, "_viewXmlList", []);
|
|
233002
|
-
(0,esm_defineProperty/* default */.Z)(this, "_xmlIndex", 0);
|
|
233003
233117
|
(0,esm_defineProperty/* default */.Z)(this, "_isSetFont", false);
|
|
233004
|
-
(0,esm_defineProperty/* default */.Z)(this, "_isFont", false);
|
|
233005
233118
|
(0,esm_defineProperty/* default */.Z)(this, "_waitPrint", false);
|
|
233006
233119
|
// 打印等待
|
|
233007
|
-
(0,esm_defineProperty/* default */.Z)(this, "_waitSavepdf", false);
|
|
233008
|
-
// 生成pdf等待
|
|
233009
233120
|
(0,esm_defineProperty/* default */.Z)(this, "_a4Size", {
|
|
233010
233121
|
p: [793, 1122],
|
|
233011
233122
|
l: [1122, 793]
|
|
@@ -233109,12 +233220,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233109
233220
|
while (1) switch (_context3.prev = _context3.next) {
|
|
233110
233221
|
case 0:
|
|
233111
233222
|
if (this._isSetFont) {
|
|
233112
|
-
_context3.next =
|
|
233223
|
+
_context3.next = 2;
|
|
233113
233224
|
break;
|
|
233114
233225
|
}
|
|
233115
|
-
this._waitSavepdf = true;
|
|
233116
233226
|
return _context3.abrupt("return");
|
|
233117
|
-
case
|
|
233227
|
+
case 2:
|
|
233118
233228
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID); // 保存打印前文档状态 和 内容
|
|
233119
233229
|
path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
233120
233230
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
@@ -233143,7 +233253,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233143
233253
|
PrintStatus/* Print */.Kh.createPDFBase64(_this2._hoEditorFactoryID, resolve, _this2.PDF);
|
|
233144
233254
|
});
|
|
233145
233255
|
});
|
|
233146
|
-
_context3.next =
|
|
233256
|
+
_context3.next = 16;
|
|
233147
233257
|
return hPromise.then(function (pageNumber) {
|
|
233148
233258
|
// 恢复文档状态 和 内容;
|
|
233149
233259
|
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
@@ -233171,10 +233281,10 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233171
233281
|
resolves(_this2.PDF.output('datauristring'));
|
|
233172
233282
|
});
|
|
233173
233283
|
});
|
|
233174
|
-
case
|
|
233284
|
+
case 16:
|
|
233175
233285
|
base64 = _context3.sent;
|
|
233176
233286
|
if (!base64) {
|
|
233177
|
-
_context3.next =
|
|
233287
|
+
_context3.next = 20;
|
|
233178
233288
|
break;
|
|
233179
233289
|
}
|
|
233180
233290
|
setTimeout(function () {
|
|
@@ -233182,9 +233292,9 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233182
233292
|
_this2.clearJsPDF();
|
|
233183
233293
|
}, 0);
|
|
233184
233294
|
return _context3.abrupt("return", base64.replace(/^data:application\/pdf;filename=generated.pdf;base64,/, ''));
|
|
233185
|
-
case
|
|
233295
|
+
case 20:
|
|
233186
233296
|
return _context3.abrupt("return", null);
|
|
233187
|
-
case
|
|
233297
|
+
case 21:
|
|
233188
233298
|
case "end":
|
|
233189
233299
|
return _context3.stop();
|
|
233190
233300
|
}
|
|
@@ -233202,26 +233312,40 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233202
233312
|
}, {
|
|
233203
233313
|
key: "setjsPDFFonts",
|
|
233204
233314
|
value: function setjsPDFFonts(font) {
|
|
233205
|
-
|
|
233206
|
-
|
|
233207
|
-
|
|
233208
|
-
|
|
233209
|
-
|
|
233315
|
+
var list = [];
|
|
233316
|
+
if (Array.isArray(font)) {
|
|
233317
|
+
list = (0,esm_toConsumableArray/* default */.Z)(font);
|
|
233318
|
+
} else {
|
|
233319
|
+
list = [{
|
|
233320
|
+
name: "SimSun",
|
|
233321
|
+
font: font
|
|
233322
|
+
}];
|
|
233323
|
+
}
|
|
233324
|
+
list.forEach(function (item) {
|
|
233325
|
+
jspdf.API.events.push(['addFonts', function () {
|
|
233326
|
+
this.addFileToVFS("".concat(item.name, "-normal.ttf"), item.font);
|
|
233327
|
+
this.addFont("".concat(item.name, "-normal.ttf"), item.name, 'normal');
|
|
233328
|
+
this.setFont(item.name, 'normal');
|
|
233329
|
+
}]);
|
|
233330
|
+
});
|
|
233210
233331
|
this._isSetFont = true;
|
|
233211
233332
|
if (this._waitPrint) {
|
|
233212
233333
|
this.printPromisePDF();
|
|
233213
233334
|
}
|
|
233214
|
-
// if (this._waitSavepdf) {
|
|
233215
|
-
// this.saveAsPDF();
|
|
233216
|
-
// }
|
|
233217
233335
|
}
|
|
233218
233336
|
}, {
|
|
233219
233337
|
key: "clearJsPDF",
|
|
233220
233338
|
value: function clearJsPDF() {
|
|
233221
|
-
if (this.PDF && this.PDF.internal.getFont('SimSun')) {
|
|
233222
|
-
|
|
233223
|
-
|
|
233224
|
-
|
|
233339
|
+
// if (this.PDF && this.PDF.internal.getFont('SimSun')) {
|
|
233340
|
+
// console.log(this.PDF.internal.getFont('SimSun'))
|
|
233341
|
+
// console.log(this.PDF.internal.getFont('2222'))
|
|
233342
|
+
// delete this.PDF.internal.getFont('SimSun').metadata;
|
|
233343
|
+
// delete this.PDF.internal.getFont('SimSun').data;
|
|
233344
|
+
// console.log(this.PDF.getFileFromVFS('SimSun-normal.ttf'))
|
|
233345
|
+
// console.log(this.PDF.getFileFromVFS('himalaya-normal.ttf'))
|
|
233346
|
+
// console.log(this.PDF.internal.getFont('himalaya'))
|
|
233347
|
+
// delete this.PDF.internal.vFS['SimSun-normal.ttf'];
|
|
233348
|
+
if (this.PDF) {
|
|
233225
233349
|
this.PDF = null;
|
|
233226
233350
|
}
|
|
233227
233351
|
}
|
|
@@ -233807,11 +233931,11 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233807
233931
|
}, {
|
|
233808
233932
|
key: "pintAllToPDFBase64",
|
|
233809
233933
|
value: function () {
|
|
233810
|
-
var _pintAllToPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function
|
|
233934
|
+
var _pintAllToPDFBase = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee13(xmlList, callback, params) {
|
|
233811
233935
|
var _this7 = this;
|
|
233812
|
-
var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, currentName, pdfList, options, toPrint, createSvg;
|
|
233813
|
-
return (0,regeneratorRuntime/* default */.Z)().wrap(function
|
|
233814
|
-
while (1) switch (
|
|
233936
|
+
var hoEditorFactory, beforePrintStatus, xml, xmlIndex, mergeList, position, continuousid, currentName, isPrint, pdfList, options, old_isUseImagePrint, toPrint, toJsonText, createSvg;
|
|
233937
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee13$(_context13) {
|
|
233938
|
+
while (1) switch (_context13.prev = _context13.next) {
|
|
233815
233939
|
case 0:
|
|
233816
233940
|
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
233817
233941
|
beforePrintStatus = hoEditorFactory.drawTree.paintStatus;
|
|
@@ -233823,50 +233947,85 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233823
233947
|
mergeList = [];
|
|
233824
233948
|
continuousid = '';
|
|
233825
233949
|
currentName = '';
|
|
233950
|
+
isPrint = params.type && !['json', 'txt'].includes(params.type);
|
|
233826
233951
|
pdfList = [];
|
|
233827
233952
|
options = {
|
|
233828
233953
|
unit: 'px',
|
|
233829
233954
|
hotfixes: ['px_scaling'],
|
|
233830
233955
|
compress: true
|
|
233831
233956
|
};
|
|
233957
|
+
old_isUseImagePrint = hoEditorFactory.isUseImagePrint;
|
|
233958
|
+
if (params.type == 'html') {
|
|
233959
|
+
hoEditorFactory.isUseImagePrint = false;
|
|
233960
|
+
} else {
|
|
233961
|
+
hoEditorFactory.isUseImagePrint = true;
|
|
233962
|
+
}
|
|
233832
233963
|
this.PDF = null;
|
|
233833
|
-
|
|
233964
|
+
if (isPrint) {
|
|
233965
|
+
if (hoEditorFactory.isUseImagePrint) {
|
|
233966
|
+
this.PDF = new jspdf(options);
|
|
233967
|
+
} else {
|
|
233968
|
+
this.PDF = document.createElement('div');
|
|
233969
|
+
this.PDF.className = 'ho-print-svg-box';
|
|
233970
|
+
}
|
|
233971
|
+
}
|
|
233972
|
+
// this.PDF = new jsPDF(options);
|
|
233834
233973
|
toPrint = /*#__PURE__*/function () {
|
|
233835
233974
|
var _ref5 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee10() {
|
|
233836
|
-
var emrOptions, _this7$PDF;
|
|
233975
|
+
var emrOptions, _this7$PDF, orientation, printStyle, html;
|
|
233837
233976
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee10$(_context10) {
|
|
233838
233977
|
while (1) switch (_context10.prev = _context10.next) {
|
|
233839
233978
|
case 0:
|
|
233979
|
+
if (isPrint) {
|
|
233980
|
+
_context10.next = 4;
|
|
233981
|
+
break;
|
|
233982
|
+
}
|
|
233983
|
+
_context10.next = 3;
|
|
233984
|
+
return toJsonText();
|
|
233985
|
+
case 3:
|
|
233986
|
+
return _context10.abrupt("return");
|
|
233987
|
+
case 4:
|
|
233840
233988
|
emrOptions = {
|
|
233841
233989
|
name: hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档',
|
|
233842
233990
|
continuousid: continuousid
|
|
233843
233991
|
};
|
|
233844
233992
|
if (!(params && continuousid && Array.isArray(params.notPrintDocId) && params.notPrintDocId.length > 0 && params.notPrintDocId.includes(continuousid))) {
|
|
233845
|
-
_context10.next =
|
|
233993
|
+
_context10.next = 10;
|
|
233846
233994
|
break;
|
|
233847
233995
|
}
|
|
233848
|
-
_context10.next = 4;
|
|
233849
|
-
return PrintStatus/* Print */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position, true);
|
|
233850
|
-
case 4:
|
|
233851
233996
|
_context10.next = 8;
|
|
233997
|
+
return PrintStatus/* Print */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position, true);
|
|
233998
|
+
case 8:
|
|
233999
|
+
_context10.next = 12;
|
|
233852
234000
|
break;
|
|
233853
|
-
case
|
|
233854
|
-
_context10.next =
|
|
234001
|
+
case 10:
|
|
234002
|
+
_context10.next = 12;
|
|
233855
234003
|
return PrintStatus/* Print */.Kh.printAllNew(_this7._hoEditorFactoryID, createSvg, _this7.PDF, position);
|
|
233856
|
-
case
|
|
233857
|
-
if (
|
|
233858
|
-
(
|
|
234004
|
+
case 12:
|
|
234005
|
+
if (hoEditorFactory.isUseImagePrint) {
|
|
234006
|
+
if (!params.mergePDF) {
|
|
234007
|
+
(_this7$PDF = _this7.PDF) === null || _this7$PDF === void 0 ? void 0 : _this7$PDF.deletePage(1);
|
|
234008
|
+
pdfList.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, emrOptions), {}, {
|
|
234009
|
+
exportName: currentName,
|
|
234010
|
+
pdf: _this7.PDF.output('datauristring')
|
|
234011
|
+
}));
|
|
234012
|
+
_this7.PDF = null;
|
|
234013
|
+
_this7.PDF = new jspdf(options);
|
|
234014
|
+
// const otherPageNumber = this.PDF.internal.getNumberOfPages();
|
|
234015
|
+
// this.PDF?.deletePage(otherPageNumber);
|
|
234016
|
+
// this.PDF.addPage();
|
|
234017
|
+
}
|
|
234018
|
+
} else {
|
|
234019
|
+
orientation = hoEditorFactory.pageProperty.widthMm > hoEditorFactory.pageProperty.heightMm ? 'l' : 'p';
|
|
234020
|
+
printStyle = (0,plugins_util/* createPrintHTMLStyle */.j_)(hoEditorFactory.pageProperty.pageSize, orientation);
|
|
234021
|
+
html = "\n <!DOCTYPE html>\n <html lang=\"en\">\n <head>\n <meta charset=\"utf-8\">\n <style>".concat(printStyle.innerHTML, "</style>\n </head>\n <body>").concat(_this7.PDF.innerHTML, "</body>\n </html>\n ");
|
|
233859
234022
|
pdfList.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, emrOptions), {}, {
|
|
233860
234023
|
exportName: currentName,
|
|
233861
|
-
pdf:
|
|
234024
|
+
pdf: html
|
|
233862
234025
|
}));
|
|
233863
|
-
_this7.PDF =
|
|
233864
|
-
_this7.PDF = new jspdf(options);
|
|
233865
|
-
// const otherPageNumber = this.PDF.internal.getNumberOfPages();
|
|
233866
|
-
// this.PDF?.deletePage(otherPageNumber);
|
|
233867
|
-
// this.PDF.addPage();
|
|
234026
|
+
_this7.PDF.innerHTML = "";
|
|
233868
234027
|
}
|
|
233869
|
-
case
|
|
234028
|
+
case 13:
|
|
233870
234029
|
case "end":
|
|
233871
234030
|
return _context10.stop();
|
|
233872
234031
|
}
|
|
@@ -233876,11 +234035,57 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233876
234035
|
return _ref5.apply(this, arguments);
|
|
233877
234036
|
};
|
|
233878
234037
|
}();
|
|
233879
|
-
|
|
234038
|
+
toJsonText = /*#__PURE__*/function () {
|
|
233880
234039
|
var _ref6 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee11() {
|
|
233881
|
-
var
|
|
234040
|
+
var emrOptions, text;
|
|
233882
234041
|
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee11$(_context11) {
|
|
233883
234042
|
while (1) switch (_context11.prev = _context11.next) {
|
|
234043
|
+
case 0:
|
|
234044
|
+
emrOptions = {
|
|
234045
|
+
name: hoEditorFactory.vueController.getDocTitle() ? hoEditorFactory.vueController.getDocTitle() : '电子病历文档',
|
|
234046
|
+
continuousid: continuousid,
|
|
234047
|
+
exportName: currentName
|
|
234048
|
+
};
|
|
234049
|
+
text = '';
|
|
234050
|
+
if (!(params.type == 'txt')) {
|
|
234051
|
+
_context11.next = 8;
|
|
234052
|
+
break;
|
|
234053
|
+
}
|
|
234054
|
+
_context11.next = 5;
|
|
234055
|
+
return hoEditorFactory.structureConvert.doc2Text();
|
|
234056
|
+
case 5:
|
|
234057
|
+
text = _context11.sent;
|
|
234058
|
+
_context11.next = 12;
|
|
234059
|
+
break;
|
|
234060
|
+
case 8:
|
|
234061
|
+
if (!(params.type == 'json')) {
|
|
234062
|
+
_context11.next = 12;
|
|
234063
|
+
break;
|
|
234064
|
+
}
|
|
234065
|
+
_context11.next = 11;
|
|
234066
|
+
return hoEditorFactory.vueController.saveAsFile('json');
|
|
234067
|
+
case 11:
|
|
234068
|
+
text = _context11.sent;
|
|
234069
|
+
case 12:
|
|
234070
|
+
pdfList.push((0,objectSpread2/* default */.Z)((0,objectSpread2/* default */.Z)({}, emrOptions), {}, {
|
|
234071
|
+
pdf: text
|
|
234072
|
+
}));
|
|
234073
|
+
createSvg();
|
|
234074
|
+
case 14:
|
|
234075
|
+
case "end":
|
|
234076
|
+
return _context11.stop();
|
|
234077
|
+
}
|
|
234078
|
+
}, _callee11);
|
|
234079
|
+
}));
|
|
234080
|
+
return function toJsonText() {
|
|
234081
|
+
return _ref6.apply(this, arguments);
|
|
234082
|
+
};
|
|
234083
|
+
}();
|
|
234084
|
+
createSvg = /*#__PURE__*/function () {
|
|
234085
|
+
var _ref7 = (0,asyncToGenerator/* default */.Z)( /*#__PURE__*/(0,regeneratorRuntime/* default */.Z)().mark(function _callee12() {
|
|
234086
|
+
var _this7$PDF2;
|
|
234087
|
+
return (0,regeneratorRuntime/* default */.Z)().wrap(function _callee12$(_context12) {
|
|
234088
|
+
while (1) switch (_context12.prev = _context12.next) {
|
|
233884
234089
|
case 0:
|
|
233885
234090
|
xmlIndex++;
|
|
233886
234091
|
currentName = xmlList[xmlIndex - 1] ? xmlList[xmlIndex - 1][5] : '';
|
|
@@ -233926,15 +234131,29 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233926
234131
|
});
|
|
233927
234132
|
}
|
|
233928
234133
|
} else if (xmlIndex > xmlList.length - 1) {
|
|
233929
|
-
if (
|
|
233930
|
-
(
|
|
234134
|
+
if (hoEditorFactory.isUseImagePrint && isPrint) {
|
|
234135
|
+
if (params && params.mergePDF) {
|
|
234136
|
+
(_this7$PDF2 = _this7.PDF) === null || _this7$PDF2 === void 0 ? void 0 : _this7$PDF2.deletePage(1);
|
|
234137
|
+
setTimeout(function () {
|
|
234138
|
+
hoEditorFactory.isUseImagePrint = old_isUseImagePrint;
|
|
234139
|
+
callback && callback({
|
|
234140
|
+
pdf: _this7.PDF.output('datauristring')
|
|
234141
|
+
});
|
|
234142
|
+
}, 0);
|
|
234143
|
+
} else {
|
|
234144
|
+
setTimeout(function () {
|
|
234145
|
+
hoEditorFactory.isUseImagePrint = old_isUseImagePrint;
|
|
234146
|
+
callback && callback({
|
|
234147
|
+
pdfList: pdfList
|
|
234148
|
+
});
|
|
234149
|
+
}, 0);
|
|
234150
|
+
}
|
|
233931
234151
|
setTimeout(function () {
|
|
233932
|
-
|
|
233933
|
-
|
|
233934
|
-
});
|
|
233935
|
-
}, 0);
|
|
234152
|
+
_this7.clearJsPDF();
|
|
234153
|
+
}, 1000);
|
|
233936
234154
|
} else {
|
|
233937
234155
|
setTimeout(function () {
|
|
234156
|
+
hoEditorFactory.isUseImagePrint = old_isUseImagePrint;
|
|
233938
234157
|
callback && callback({
|
|
233939
234158
|
pdfList: pdfList
|
|
233940
234159
|
});
|
|
@@ -233942,26 +234161,23 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233942
234161
|
}
|
|
233943
234162
|
hoEditorFactory.drawTree.paintStatus = beforePrintStatus;
|
|
233944
234163
|
hoEditorFactory.vueController.openXml(xml);
|
|
233945
|
-
setTimeout(function () {
|
|
233946
|
-
_this7.clearJsPDF();
|
|
233947
|
-
}, 1000);
|
|
233948
234164
|
}
|
|
233949
234165
|
case 3:
|
|
233950
234166
|
case "end":
|
|
233951
|
-
return
|
|
234167
|
+
return _context12.stop();
|
|
233952
234168
|
}
|
|
233953
|
-
},
|
|
234169
|
+
}, _callee12);
|
|
233954
234170
|
}));
|
|
233955
234171
|
return function createSvg() {
|
|
233956
|
-
return
|
|
234172
|
+
return _ref7.apply(this, arguments);
|
|
233957
234173
|
};
|
|
233958
234174
|
}();
|
|
233959
234175
|
createSvg();
|
|
233960
|
-
case
|
|
234176
|
+
case 21:
|
|
233961
234177
|
case "end":
|
|
233962
|
-
return
|
|
234178
|
+
return _context13.stop();
|
|
233963
234179
|
}
|
|
233964
|
-
},
|
|
234180
|
+
}, _callee13, this);
|
|
233965
234181
|
}));
|
|
233966
234182
|
function pintAllToPDFBase64(_x10, _x11, _x12) {
|
|
233967
234183
|
return _pintAllToPDFBase.apply(this, arguments);
|
|
@@ -233971,7 +234187,7 @@ var PrintController = /*#__PURE__*/function () {
|
|
|
233971
234187
|
/**
|
|
233972
234188
|
* 合并预览病历
|
|
233973
234189
|
* @param xmlList `xmlList: [{ xml: 'xml内容', isMerge: false }], // isMerge: false合并到上一页中 / isMerge: true新起一页`
|
|
233974
|
-
* @param mergeEnd
|
|
234190
|
+
* @param mergeEnd `病历数组全部传入后,等待加载完成后清空`
|
|
233975
234191
|
*/
|
|
233976
234192
|
}, {
|
|
233977
234193
|
key: "mergeViewAll",
|
|
@@ -234538,6 +234754,8 @@ var localforage_default = /*#__PURE__*/__webpack_require__.n(localforage);
|
|
|
234538
234754
|
|
|
234539
234755
|
|
|
234540
234756
|
|
|
234757
|
+
|
|
234758
|
+
|
|
234541
234759
|
var HoLocalStorage = /*#__PURE__*/function () {
|
|
234542
234760
|
// 增加页面刷新时缓存未保存的病历数据
|
|
234543
234761
|
function HoLocalStorage(hoEditorFactoryID) {
|
|
@@ -234805,22 +235023,32 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234805
235023
|
}, {
|
|
234806
235024
|
key: "saveFontString",
|
|
234807
235025
|
value: function saveFontString(font) {
|
|
234808
|
-
this
|
|
234809
|
-
this._print_font.
|
|
235026
|
+
var _this5 = this;
|
|
235027
|
+
this._print_font.keys().then(function (keys) {
|
|
235028
|
+
if (keys.includes("sunsim_font")) {
|
|
235029
|
+
_this5._print_font.removeItem('sunsim_font');
|
|
235030
|
+
}
|
|
235031
|
+
});
|
|
235032
|
+
this._print_font.setItem('ho_emr_font', font);
|
|
234810
235033
|
}
|
|
234811
235034
|
}, {
|
|
234812
235035
|
key: "loadFontString",
|
|
234813
235036
|
value: function loadFontString(cache) {
|
|
234814
|
-
|
|
234815
|
-
|
|
234816
|
-
|
|
234817
|
-
|
|
234818
|
-
|
|
235037
|
+
return this._print_font.getItem('ho_emr_font');
|
|
235038
|
+
}
|
|
235039
|
+
}, {
|
|
235040
|
+
key: "clearFontStorage",
|
|
235041
|
+
value: function clearFontStorage() {
|
|
235042
|
+
this._print_font.keys().then(function (keys) {});
|
|
235043
|
+
this._print_font.clear().then(function (value) {});
|
|
235044
|
+
// this._print_font.removeItem('sunsim_font');
|
|
235045
|
+
|
|
235046
|
+
// this._ho_web.removeItem(key)
|
|
234819
235047
|
}
|
|
234820
235048
|
}, {
|
|
234821
235049
|
key: "offLineIntervalCacheXml",
|
|
234822
235050
|
value: function offLineIntervalCacheXml() {
|
|
234823
|
-
var
|
|
235051
|
+
var _this6 = this;
|
|
234824
235052
|
var hoEditfactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
|
|
234825
235053
|
var cacheFunc = function cacheFunc() {
|
|
234826
235054
|
if (hoEditfactory.cachedModify) return;
|
|
@@ -234831,7 +235059,7 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234831
235059
|
} else {
|
|
234832
235060
|
key = (0,plugins_util/* dateFormat */.vc)(date, 'yyyy-MM-dd') + '_' + hoEditfactory.docTree.docProperty.docID;
|
|
234833
235061
|
}
|
|
234834
|
-
|
|
235062
|
+
_this6._offline_cache_list.getItem(key).then(function (cacheLogs) {
|
|
234835
235063
|
var arr = [];
|
|
234836
235064
|
arr.push({
|
|
234837
235065
|
xml: hoEditfactory.structureConvert.doc2Xml('xml', false, false),
|
|
@@ -234840,10 +235068,10 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234840
235068
|
});
|
|
234841
235069
|
if (Array.isArray(cacheLogs)) {
|
|
234842
235070
|
if (cacheLogs.length < 2) {
|
|
234843
|
-
|
|
235071
|
+
_this6._offline_cache_list.setItem(key, [].concat((0,esm_toConsumableArray/* default */.Z)(cacheLogs), arr));
|
|
234844
235072
|
}
|
|
234845
235073
|
} else if (!Array.isArray(cacheLogs)) {
|
|
234846
|
-
|
|
235074
|
+
_this6._offline_cache_list.setItem(key, arr);
|
|
234847
235075
|
}
|
|
234848
235076
|
hoEditfactory.cachedModify = true; // 缓存过后变更缓存状态 定时器运行期间未修改不在缓存
|
|
234849
235077
|
});
|
|
@@ -234868,16 +235096,16 @@ var HoLocalStorage = /*#__PURE__*/function () {
|
|
|
234868
235096
|
}, {
|
|
234869
235097
|
key: "networkEventListener",
|
|
234870
235098
|
value: function networkEventListener() {
|
|
234871
|
-
var
|
|
235099
|
+
var _this7 = this;
|
|
234872
235100
|
var navigators = navigator;
|
|
234873
235101
|
if (navigators && navigators.connection && navigators.connection.onchange === null) {
|
|
234874
235102
|
this._networkConnectionStatus = navigator.onLine;
|
|
234875
235103
|
navigators.connection.onchange = function () {
|
|
234876
|
-
|
|
235104
|
+
_this7._networkConnectionStatus = navigator.onLine;
|
|
234877
235105
|
if (navigator.onLine) {
|
|
234878
235106
|
// console.warn('网络连接状态变化:已连接', navigators.connection.rtt, navigator.onLine);
|
|
234879
235107
|
} else {
|
|
234880
|
-
|
|
235108
|
+
_this7.offLineIntervalCacheXml();
|
|
234881
235109
|
console.warn('网络连接状态变化:已中断', navigators.connection.rtt, navigator.onLine);
|
|
234882
235110
|
}
|
|
234883
235111
|
};
|
|
@@ -234945,7 +235173,7 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
234945
235173
|
(0,esm_defineProperty/* default */.Z)(this, "_allowEditCellInForm", false);
|
|
234946
235174
|
//表单模式下是否允许编辑单元格文本
|
|
234947
235175
|
(0,esm_defineProperty/* default */.Z)(this, "_isUseImagePrint", void 0);
|
|
234948
|
-
// 是否启用图片打印
|
|
235176
|
+
// 是否启用图片打印 默认启用即不使用svg打印
|
|
234949
235177
|
(0,esm_defineProperty/* default */.Z)(this, "_isFixedPrintToA4", void 0);
|
|
234950
235178
|
// 是否将病历固定打印到a4纸上 默认不启用,如果启用则不管什么病历都会在打印生成a4尺寸的pdf,将病历居中靠上绘制到pdf上面
|
|
234951
235179
|
(0,esm_defineProperty/* default */.Z)(this, "_isRotate", void 0);
|
|
@@ -236238,7 +236466,7 @@ var commondata = __webpack_require__(76285);
|
|
|
236238
236466
|
isUseImagePrint: {
|
|
236239
236467
|
default: true
|
|
236240
236468
|
},
|
|
236241
|
-
// 是否用图片形式打印 默认
|
|
236469
|
+
// 是否用图片形式打印 默认true即不使用svg格式打印
|
|
236242
236470
|
isUseForm: {
|
|
236243
236471
|
default: false
|
|
236244
236472
|
},
|
|
@@ -237234,10 +237462,10 @@ var commondata = __webpack_require__(76285);
|
|
|
237234
237462
|
});
|
|
237235
237463
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=script&lang=js&
|
|
237236
237464
|
/* harmony default export */ var components_HoDocsvue_type_script_lang_js_ = (HoDocsvue_type_script_lang_js_);
|
|
237237
|
-
;// 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/HoDocs.vue?vue&type=style&index=0&id=
|
|
237465
|
+
;// 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/HoDocs.vue?vue&type=style&index=0&id=b6d65e5c&prod&lang=less&media=print&
|
|
237238
237466
|
// extracted by mini-css-extract-plugin
|
|
237239
237467
|
|
|
237240
|
-
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=
|
|
237468
|
+
;// CONCATENATED MODULE: ./src/components/HoDocs.vue?vue&type=style&index=0&id=b6d65e5c&prod&lang=less&media=print&
|
|
237241
237469
|
|
|
237242
237470
|
;// CONCATENATED MODULE: ./src/components/HoDocs.vue
|
|
237243
237471
|
|
|
@@ -238455,6 +238683,9 @@ var HoColorPickers = __webpack_require__(98181);
|
|
|
238455
238683
|
}
|
|
238456
238684
|
}, [h("p", {
|
|
238457
238685
|
"class": "ant-dropdown-link ant-dropdown-link-text",
|
|
238686
|
+
"style": {
|
|
238687
|
+
width: '100%'
|
|
238688
|
+
},
|
|
238458
238689
|
"on": {
|
|
238459
238690
|
"click": function click(e) {
|
|
238460
238691
|
return e.preventDefault();
|
|
@@ -238481,7 +238712,7 @@ var HoColorPickers = __webpack_require__(98181);
|
|
|
238481
238712
|
return _this.fontFamilyClick(fontItem);
|
|
238482
238713
|
}
|
|
238483
238714
|
}
|
|
238484
|
-
}]), [fontItem.
|
|
238715
|
+
}]), [fontItem.family]);
|
|
238485
238716
|
})])])]) : null, family.size ? h(popers/* default */.Z, {
|
|
238486
238717
|
"props": (0,objectSpread2/* default */.Z)({}, {
|
|
238487
238718
|
title: '字号',
|
|
@@ -238926,7 +239157,6 @@ var ToolFamily_component = (0,componentNormalizer/* default */.Z)(
|
|
|
238926
239157
|
}
|
|
238927
239158
|
}]), [lineItem === 1.25 ? 1 : lineItem]);
|
|
238928
239159
|
})])])]) : null]);
|
|
238929
|
-
// );
|
|
238930
239160
|
}
|
|
238931
239161
|
}));
|
|
238932
239162
|
;// 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/UpdateDocument.vue?vue&type=template&id=e3e46190&
|