hoeditor-web 3.1.184 → 3.1.185
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/hoeditor.css +1 -1
- package/lib/hoeditor.umd.js +493 -222
- package/lib/hoeditor.umd.min.js +3 -3
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -89641,7 +89641,7 @@ var EditorType = __webpack_require__(27195);
|
|
|
89641
89641
|
var _getAllNodes = function getAllNodes(nodes) {
|
|
89642
89642
|
for (var i = 0; i < nodes.length; i++) {
|
|
89643
89643
|
var node = nodes[i];
|
|
89644
|
-
if (node.nodeType == EditorType/* NodeType */.
|
|
89644
|
+
if (node.nodeType == EditorType/* NodeType */.Z6.ntField) {
|
|
89645
89645
|
if (_this3.figure.associatedElement && _this3.figure.associatedElement === node.id) {
|
|
89646
89646
|
_this3.figure.associatedElement = node.name + '___' + node.id + '___' + ret.length;
|
|
89647
89647
|
}
|
|
@@ -89669,7 +89669,7 @@ var EditorType = __webpack_require__(27195);
|
|
|
89669
89669
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryId);
|
|
89670
89670
|
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
89671
89671
|
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
89672
|
-
if (node.nodeType === EditorType/* NodeType */.
|
|
89672
|
+
if (node.nodeType === EditorType/* NodeType */.Z6.ntFigure) {
|
|
89673
89673
|
if (node.selectJson) {
|
|
89674
89674
|
this.figure.selectJson = JSON.parse(node.selectJson);
|
|
89675
89675
|
}
|
|
@@ -89713,7 +89713,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
89713
89713
|
|
|
89714
89714
|
/***/ }),
|
|
89715
89715
|
|
|
89716
|
-
/***/
|
|
89716
|
+
/***/ 77092:
|
|
89717
89717
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
89718
89718
|
|
|
89719
89719
|
"use strict";
|
|
@@ -89729,7 +89729,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
89729
89729
|
var es_function_name = __webpack_require__(62010);
|
|
89730
89730
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
89731
89731
|
var i18n = __webpack_require__(49850);
|
|
89732
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/figure/HoFigure.vue?vue&type=template&id=
|
|
89732
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/figure/HoFigure.vue?vue&type=template&id=88c1b12e
|
|
89733
89733
|
|
|
89734
89734
|
|
|
89735
89735
|
|
|
@@ -90902,7 +90902,7 @@ var render = function render() {
|
|
|
90902
90902
|
};
|
|
90903
90903
|
var staticRenderFns = [];
|
|
90904
90904
|
|
|
90905
|
-
;// ./src/components/controls/figure/HoFigure.vue?vue&type=template&id=
|
|
90905
|
+
;// ./src/components/controls/figure/HoFigure.vue?vue&type=template&id=88c1b12e
|
|
90906
90906
|
|
|
90907
90907
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.iterator.js
|
|
90908
90908
|
var es_array_iterator = __webpack_require__(23792);
|
|
@@ -91216,51 +91216,53 @@ var EditorType = __webpack_require__(27195);
|
|
|
91216
91216
|
this.setAttribute('fill', 'white'); // 鼠标离开变回白色
|
|
91217
91217
|
});
|
|
91218
91218
|
// 设置点击事件
|
|
91219
|
-
ellipse.addEventListener('click',
|
|
91220
|
-
|
|
91221
|
-
|
|
91222
|
-
// 复制id为svg2的节点
|
|
91223
|
-
var parent = this.parentNode; // 获取ellipse节点的父节点
|
|
91224
|
-
|
|
91225
|
-
var selectedG = document.getElementById(this.id + '-selected');
|
|
91226
|
-
if (selectedG) {
|
|
91227
|
-
selectedG.parentNode.removeChild(selectedG);
|
|
91228
|
-
return;
|
|
91229
|
-
}
|
|
91230
|
-
// 创建一个新的g节点
|
|
91231
|
-
var g = document.createElementNS('http://www.w3.org/2000/svg', 'g');
|
|
91232
|
-
// 设置g节点的id
|
|
91233
|
-
g.setAttribute('id', this.id + '-selected');
|
|
91234
|
-
// 继承fill和stroke属性
|
|
91235
|
-
g.setAttribute('fill', '#FFF');
|
|
91236
|
-
g.setAttribute('stroke', 'none');
|
|
91237
|
-
// 计算translateX和translateY
|
|
91238
|
-
var cx = parseFloat(this.getAttribute('cx')); // 获取cx属性值
|
|
91239
|
-
var cy = parseFloat(this.getAttribute('cy')); // 获取cy属性值
|
|
91240
|
-
var rx = parseFloat(this.getAttribute('rx')); // 获取rx属性值
|
|
91241
|
-
var ry = parseFloat(this.getAttribute('ry')); // 获取ry属性值
|
|
91242
|
-
var translateX = cx - rx * 0.4; // 计算translateX
|
|
91243
|
-
var translateY = cy - ry * 0.4; // 计算translateY
|
|
91244
|
-
g.setAttribute('transform', `translate(${translateX}, ${translateY})`);
|
|
91245
|
-
// 复制id为select-mark的节点内的path节点
|
|
91246
|
-
var selectMark = document.getElementById('ho-figure-select-mark');
|
|
91247
|
-
if (selectMark) {
|
|
91248
|
-
var pathElement = selectMark.querySelector('path');
|
|
91249
|
-
if (pathElement) {
|
|
91250
|
-
var clonedPath = pathElement.cloneNode(true); // 复制path节点
|
|
91251
|
-
g.appendChild(clonedPath); // 添加到g节点内
|
|
91252
|
-
}
|
|
91253
|
-
}
|
|
91254
|
-
// 将g节点添加到ellipse的父节点中
|
|
91255
|
-
parent.appendChild(g);
|
|
91256
|
-
var childG = document.getElementById(this.id + '-selected');
|
|
91257
|
-
childG.addEventListener('click', function () {
|
|
91258
|
-
childG.parentNode.removeChild(childG);
|
|
91259
|
-
});
|
|
91260
|
-
});
|
|
91219
|
+
// ellipse.addEventListener('click', () => {
|
|
91220
|
+
// this.createEllipse(ellipse)
|
|
91221
|
+
// });
|
|
91261
91222
|
});
|
|
91262
91223
|
// 确保svg2初始状态是隐藏
|
|
91263
91224
|
},
|
|
91225
|
+
createEllipse: function createEllipse(ellipse) {
|
|
91226
|
+
// 获取对应的svg节点的位置
|
|
91227
|
+
var bbox = ellipse.getBBox();
|
|
91228
|
+
// 复制id为svg2的节点
|
|
91229
|
+
var parent = ellipse.parentNode; // 获取ellipse节点的父节点
|
|
91230
|
+
var selectedG = document.getElementById(ellipse.id + '-selected');
|
|
91231
|
+
if (selectedG) {
|
|
91232
|
+
selectedG.parentNode.removeChild(selectedG);
|
|
91233
|
+
return;
|
|
91234
|
+
}
|
|
91235
|
+
// 创建一个新的g节点
|
|
91236
|
+
var g = document.createElementNS('http://www.w3.org/2000/svg', 'g');
|
|
91237
|
+
// 设置g节点的id
|
|
91238
|
+
g.setAttribute('id', ellipse.id + '-selected');
|
|
91239
|
+
// 继承fill和stroke属性
|
|
91240
|
+
g.setAttribute('fill', '#FFF');
|
|
91241
|
+
g.setAttribute('stroke', 'none');
|
|
91242
|
+
// 计算translateX和translateY
|
|
91243
|
+
var cx = parseFloat(ellipse.getAttribute('cx')); // 获取cx属性值
|
|
91244
|
+
var cy = parseFloat(ellipse.getAttribute('cy')); // 获取cy属性值
|
|
91245
|
+
var rx = parseFloat(ellipse.getAttribute('rx')); // 获取rx属性值
|
|
91246
|
+
var ry = parseFloat(ellipse.getAttribute('ry')); // 获取ry属性值
|
|
91247
|
+
var translateX = cx - rx * 0.4; // 计算translateX
|
|
91248
|
+
var translateY = cy - ry * 0.4; // 计算translateY
|
|
91249
|
+
g.setAttribute('transform', `translate(${translateX}, ${translateY})`);
|
|
91250
|
+
// 复制id为select-mark的节点内的path节点
|
|
91251
|
+
var selectMark = document.getElementById('ho-figure-select-mark');
|
|
91252
|
+
if (selectMark) {
|
|
91253
|
+
var pathElement = selectMark.querySelector('path');
|
|
91254
|
+
if (pathElement) {
|
|
91255
|
+
var clonedPath = pathElement.cloneNode(true); // 复制path节点
|
|
91256
|
+
g.appendChild(clonedPath); // 添加到g节点内
|
|
91257
|
+
}
|
|
91258
|
+
}
|
|
91259
|
+
// 将g节点添加到ellipse的父节点中
|
|
91260
|
+
parent.appendChild(g);
|
|
91261
|
+
var childG = document.getElementById(ellipse.id + '-selected');
|
|
91262
|
+
childG.addEventListener('click', function () {
|
|
91263
|
+
childG.parentNode.removeChild(childG);
|
|
91264
|
+
});
|
|
91265
|
+
},
|
|
91264
91266
|
zoomOut: function zoomOut() {
|
|
91265
91267
|
this.scale = Math.max(1, this.scale - 0.4); // 限制最小缩放比例
|
|
91266
91268
|
this.updateSVGSize();
|
|
@@ -91335,7 +91337,7 @@ var EditorType = __webpack_require__(27195);
|
|
|
91335
91337
|
var _getAllNodes = function getAllNodes(nodes) {
|
|
91336
91338
|
for (var i = 0; i < nodes.length; i++) {
|
|
91337
91339
|
var node = nodes[i];
|
|
91338
|
-
if (node.nodeType == EditorType/* NodeType */.
|
|
91340
|
+
if (node.nodeType == EditorType/* NodeType */.Z6.ntField) {
|
|
91339
91341
|
if (_this2.figure.associatedElement && _this2.figure.associatedElement === node.id) {
|
|
91340
91342
|
_this2.figure.associatedElement = node.name + '___' + node.id + '___' + ret.length;
|
|
91341
91343
|
}
|
|
@@ -91363,7 +91365,7 @@ var EditorType = __webpack_require__(27195);
|
|
|
91363
91365
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryId);
|
|
91364
91366
|
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
91365
91367
|
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
91366
|
-
if (node.nodeType === EditorType/* NodeType */.
|
|
91368
|
+
if (node.nodeType === EditorType/* NodeType */.Z6.ntFigure) {
|
|
91367
91369
|
this.figure.dataId = node.dataId;
|
|
91368
91370
|
this.figure.innerIdentifier = node.innerIdentifier;
|
|
91369
91371
|
this.figure.selectJson = node.selectJson;
|
|
@@ -91377,10 +91379,10 @@ var EditorType = __webpack_require__(27195);
|
|
|
91377
91379
|
|
|
91378
91380
|
/* harmony default export */ var figure_HoFigurevue_type_script_lang_js = (HoFigurevue_type_script_lang_js);
|
|
91379
91381
|
|
|
91380
|
-
;// ./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/figure/HoFigure.vue?vue&type=style&index=0&id=
|
|
91382
|
+
;// ./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/figure/HoFigure.vue?vue&type=style&index=0&id=88c1b12e&prod&lang=less
|
|
91381
91383
|
// extracted by mini-css-extract-plugin
|
|
91382
91384
|
|
|
91383
|
-
;// ./src/components/controls/figure/HoFigure.vue?vue&type=style&index=0&id=
|
|
91385
|
+
;// ./src/components/controls/figure/HoFigure.vue?vue&type=style&index=0&id=88c1b12e&prod&lang=less
|
|
91384
91386
|
|
|
91385
91387
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
91386
91388
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -100707,7 +100709,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
100707
100709
|
|
|
100708
100710
|
/***/ }),
|
|
100709
100711
|
|
|
100710
|
-
/***/
|
|
100712
|
+
/***/ 74858:
|
|
100711
100713
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
100712
100714
|
|
|
100713
100715
|
"use strict";
|
|
@@ -100723,7 +100725,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
100723
100725
|
var es_function_name = __webpack_require__(62010);
|
|
100724
100726
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
100725
100727
|
var i18n = __webpack_require__(49850);
|
|
100726
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/slider/Slider.vue?vue&type=template&id=
|
|
100728
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/slider/Slider.vue?vue&type=template&id=723c521d
|
|
100727
100729
|
|
|
100728
100730
|
|
|
100729
100731
|
|
|
@@ -100786,7 +100788,7 @@ var render = function render() {
|
|
|
100786
100788
|
}
|
|
100787
100789
|
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.561", null, "组件宽度"))]), _c('a-input-number', {
|
|
100788
100790
|
staticStyle: {
|
|
100789
|
-
"width": "
|
|
100791
|
+
"width": "160px",
|
|
100790
100792
|
"display": "flex",
|
|
100791
100793
|
"margin": "0 10px 0 0"
|
|
100792
100794
|
},
|
|
@@ -100812,7 +100814,7 @@ var render = function render() {
|
|
|
100812
100814
|
}
|
|
100813
100815
|
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.65", null, "最小值"))]), _c('a-input-number', {
|
|
100814
100816
|
staticStyle: {
|
|
100815
|
-
"width": "
|
|
100817
|
+
"width": "160px",
|
|
100816
100818
|
"display": "flex",
|
|
100817
100819
|
"margin": "0 10px 0 0"
|
|
100818
100820
|
},
|
|
@@ -100853,7 +100855,7 @@ var render = function render() {
|
|
|
100853
100855
|
}
|
|
100854
100856
|
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.64", null, "最大值"))]), _c('a-input-number', {
|
|
100855
100857
|
staticStyle: {
|
|
100856
|
-
"width": "
|
|
100858
|
+
"width": "160px",
|
|
100857
100859
|
"display": "flex",
|
|
100858
100860
|
"margin": "0 10px 0 0"
|
|
100859
100861
|
},
|
|
@@ -100894,7 +100896,7 @@ var render = function render() {
|
|
|
100894
100896
|
}
|
|
100895
100897
|
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.568", null, "默认值"))]), _c('a-input-number', {
|
|
100896
100898
|
staticStyle: {
|
|
100897
|
-
"width": "
|
|
100899
|
+
"width": "160px",
|
|
100898
100900
|
"display": "flex",
|
|
100899
100901
|
"margin": "0 10px 0 0"
|
|
100900
100902
|
},
|
|
@@ -100921,7 +100923,7 @@ var render = function render() {
|
|
|
100921
100923
|
}
|
|
100922
100924
|
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.562", null, "等分刻度数"))]), _c('a-input-number', {
|
|
100923
100925
|
staticStyle: {
|
|
100924
|
-
"width": "
|
|
100926
|
+
"width": "160px",
|
|
100925
100927
|
"display": "flex",
|
|
100926
100928
|
"margin": "0 10px 0 0"
|
|
100927
100929
|
},
|
|
@@ -100940,6 +100942,78 @@ var render = function render() {
|
|
|
100940
100942
|
expression: "slider.graduation"
|
|
100941
100943
|
}
|
|
100942
100944
|
})], 1), _c('li', {
|
|
100945
|
+
staticClass: "control-item control-item-radio"
|
|
100946
|
+
}, [_c('span', {
|
|
100947
|
+
staticClass: "label",
|
|
100948
|
+
staticStyle: {
|
|
100949
|
+
"width": "90px"
|
|
100950
|
+
}
|
|
100951
|
+
}, [_vm._v("结果值")]), _c('a-radio-group', {
|
|
100952
|
+
staticStyle: {
|
|
100953
|
+
"flex": "1"
|
|
100954
|
+
},
|
|
100955
|
+
attrs: {
|
|
100956
|
+
"name": "radioGroup"
|
|
100957
|
+
},
|
|
100958
|
+
on: {
|
|
100959
|
+
"change": _vm.decimalChange
|
|
100960
|
+
},
|
|
100961
|
+
model: {
|
|
100962
|
+
value: _vm.slider.decimal,
|
|
100963
|
+
callback: function callback($$v) {
|
|
100964
|
+
_vm.$set(_vm.slider, "decimal", $$v);
|
|
100965
|
+
},
|
|
100966
|
+
expression: "slider.decimal"
|
|
100967
|
+
}
|
|
100968
|
+
}, [_c('a-radio', {
|
|
100969
|
+
staticStyle: {
|
|
100970
|
+
"display": "flex",
|
|
100971
|
+
"align-items": "center",
|
|
100972
|
+
"line-height": "30px"
|
|
100973
|
+
},
|
|
100974
|
+
attrs: {
|
|
100975
|
+
"value": 0
|
|
100976
|
+
}
|
|
100977
|
+
}, [_c('div', {
|
|
100978
|
+
staticStyle: {
|
|
100979
|
+
"display": "flex",
|
|
100980
|
+
"justify-content": "space-between"
|
|
100981
|
+
}
|
|
100982
|
+
}, [_c('span', [_vm._v("保留小数")]), _c('span', {
|
|
100983
|
+
staticStyle: {
|
|
100984
|
+
"width": "70px",
|
|
100985
|
+
"padding": "0 0 0 10px"
|
|
100986
|
+
}
|
|
100987
|
+
}, [_vm._v("小数位数")]), _c('a-input-number', {
|
|
100988
|
+
staticStyle: {
|
|
100989
|
+
"width": "140px",
|
|
100990
|
+
"display": "flex",
|
|
100991
|
+
"margin": "0"
|
|
100992
|
+
},
|
|
100993
|
+
attrs: {
|
|
100994
|
+
"disabled": _vm.slider.decimal != 0,
|
|
100995
|
+
"size": "small",
|
|
100996
|
+
"precision": 0,
|
|
100997
|
+
"min": 0,
|
|
100998
|
+
"max": 10,
|
|
100999
|
+
"controls": false
|
|
101000
|
+
},
|
|
101001
|
+
model: {
|
|
101002
|
+
value: _vm.slider.places,
|
|
101003
|
+
callback: function callback($$v) {
|
|
101004
|
+
_vm.$set(_vm.slider, "places", $$v);
|
|
101005
|
+
},
|
|
101006
|
+
expression: "slider.places"
|
|
101007
|
+
}
|
|
101008
|
+
})], 1)]), _c('a-radio', {
|
|
101009
|
+
attrs: {
|
|
101010
|
+
"value": 1
|
|
101011
|
+
}
|
|
101012
|
+
}, [_vm._v("四舍五入")]), _c('a-radio', {
|
|
101013
|
+
attrs: {
|
|
101014
|
+
"value": 2
|
|
101015
|
+
}
|
|
101016
|
+
}, [_vm._v("去掉小数")])], 1)], 1), _c('li', {
|
|
100943
101017
|
staticClass: "control-item"
|
|
100944
101018
|
}, [_c('span', {
|
|
100945
101019
|
staticClass: "label",
|
|
@@ -100997,7 +101071,7 @@ var render = function render() {
|
|
|
100997
101071
|
};
|
|
100998
101072
|
var staticRenderFns = [];
|
|
100999
101073
|
|
|
101000
|
-
;// ./src/components/controls/slider/Slider.vue?vue&type=template&id=
|
|
101074
|
+
;// ./src/components/controls/slider/Slider.vue?vue&type=template&id=723c521d
|
|
101001
101075
|
|
|
101002
101076
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.push.js
|
|
101003
101077
|
var es_array_push = __webpack_require__(44114);
|
|
@@ -101036,6 +101110,8 @@ var EditorType = __webpack_require__(27195);
|
|
|
101036
101110
|
maxText: "",
|
|
101037
101111
|
value: 0,
|
|
101038
101112
|
graduation: 10,
|
|
101113
|
+
decimal: EditorType/* SliderDecimalType */.v2.Rounding,
|
|
101114
|
+
places: 0,
|
|
101039
101115
|
associatedElement: ""
|
|
101040
101116
|
},
|
|
101041
101117
|
nodeList: []
|
|
@@ -101067,7 +101143,7 @@ var EditorType = __webpack_require__(27195);
|
|
|
101067
101143
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this.hoEditorFactoryId);
|
|
101068
101144
|
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
101069
101145
|
var node = (_this$vueController$f = this.vueController.findNodebyPath(path)) === null || _this$vueController$f === void 0 ? void 0 : _this$vueController$f.node;
|
|
101070
|
-
if (node.nodeType === EditorType/* NodeType */.
|
|
101146
|
+
if (node.nodeType === EditorType/* NodeType */.Z6.ntSlider) {
|
|
101071
101147
|
this.slider.dataId = node.dataId;
|
|
101072
101148
|
this.slider.innerIdentifier = node.innerIdentifier;
|
|
101073
101149
|
this.slider.sWidth = node.sWidth;
|
|
@@ -101080,9 +101156,11 @@ var EditorType = __webpack_require__(27195);
|
|
|
101080
101156
|
this.slider.associatedElement = node.associatedElement;
|
|
101081
101157
|
}
|
|
101082
101158
|
},
|
|
101083
|
-
|
|
101084
|
-
|
|
101085
|
-
|
|
101159
|
+
decimalChange: function decimalChange() {
|
|
101160
|
+
if (this.slider.decimal != EditorType/* SliderDecimalType */.v2.Retain) {
|
|
101161
|
+
this.slider.places = 0;
|
|
101162
|
+
}
|
|
101163
|
+
},
|
|
101086
101164
|
insertDelimiter: function insertDelimiter() {
|
|
101087
101165
|
var associatedElement = this.slider.associatedElement.split("___")[1];
|
|
101088
101166
|
this.vueController.insertSliderNode(this.controlStatus, (0,objectSpread2/* default */.A)((0,objectSpread2/* default */.A)({}, this.slider), {}, {
|
|
@@ -101101,7 +101179,7 @@ var EditorType = __webpack_require__(27195);
|
|
|
101101
101179
|
var _getAllNodes = function getAllNodes(nodes) {
|
|
101102
101180
|
for (var i = 0; i < nodes.length; i++) {
|
|
101103
101181
|
var node = nodes[i];
|
|
101104
|
-
if (node.nodeType == EditorType/* NodeType */.
|
|
101182
|
+
if (node.nodeType == EditorType/* NodeType */.Z6.ntField) {
|
|
101105
101183
|
if (_this.slider.associatedElement && _this.slider.associatedElement === node.id) {
|
|
101106
101184
|
_this.slider.associatedElement = node.name + '___' + node.id + '___' + ret.length;
|
|
101107
101185
|
}
|
|
@@ -101130,10 +101208,10 @@ var EditorType = __webpack_require__(27195);
|
|
|
101130
101208
|
|
|
101131
101209
|
/* harmony default export */ var slider_Slidervue_type_script_lang_js = (Slidervue_type_script_lang_js);
|
|
101132
101210
|
|
|
101133
|
-
;// ./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/slider/Slider.vue?vue&type=style&index=0&id=
|
|
101211
|
+
;// ./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/slider/Slider.vue?vue&type=style&index=0&id=723c521d&prod&lang=less
|
|
101134
101212
|
// extracted by mini-css-extract-plugin
|
|
101135
101213
|
|
|
101136
|
-
;// ./src/components/controls/slider/Slider.vue?vue&type=style&index=0&id=
|
|
101214
|
+
;// ./src/components/controls/slider/Slider.vue?vue&type=style&index=0&id=723c521d&prod&lang=less
|
|
101137
101215
|
|
|
101138
101216
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
101139
101217
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -102838,7 +102916,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
102838
102916
|
|
|
102839
102917
|
/***/ }),
|
|
102840
102918
|
|
|
102841
|
-
/***/
|
|
102919
|
+
/***/ 68480:
|
|
102842
102920
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
102843
102921
|
|
|
102844
102922
|
"use strict";
|
|
@@ -102856,7 +102934,7 @@ var es_array_includes = __webpack_require__(74423);
|
|
|
102856
102934
|
var es_string_includes = __webpack_require__(21699);
|
|
102857
102935
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
102858
102936
|
var i18n = __webpack_require__(49850);
|
|
102859
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
102937
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=4396d84c
|
|
102860
102938
|
|
|
102861
102939
|
|
|
102862
102940
|
|
|
@@ -103221,7 +103299,15 @@ var render = function render() {
|
|
|
103221
103299
|
},
|
|
103222
103300
|
expression: "printGridLines"
|
|
103223
103301
|
}
|
|
103224
|
-
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.42", null, "打印边框"))])
|
|
103302
|
+
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.42", null, "打印边框"))]), _c('a-checkbox', {
|
|
103303
|
+
model: {
|
|
103304
|
+
value: _vm.isSignLock,
|
|
103305
|
+
callback: function callback($$v) {
|
|
103306
|
+
_vm.isSignLock = $$v;
|
|
103307
|
+
},
|
|
103308
|
+
expression: "isSignLock"
|
|
103309
|
+
}
|
|
103310
|
+
}, [_vm._v("签名完成后锁定单元格")])], 1)], 1)])])]), _c('a-tab-pane', {
|
|
103225
103311
|
key: "1",
|
|
103226
103312
|
attrs: {
|
|
103227
103313
|
"tab": /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.41", null, "双击属性")
|
|
@@ -103689,7 +103775,7 @@ var render = function render() {
|
|
|
103689
103775
|
};
|
|
103690
103776
|
var staticRenderFns = [];
|
|
103691
103777
|
|
|
103692
|
-
;// ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=
|
|
103778
|
+
;// ./src/components/controls/table/TableCellProperty.vue?vue&type=template&id=4396d84c
|
|
103693
103779
|
|
|
103694
103780
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
103695
103781
|
var es_array_concat = __webpack_require__(28706);
|
|
@@ -103844,6 +103930,8 @@ var columns = [{
|
|
|
103844
103930
|
// 文本行对齐到边框
|
|
103845
103931
|
printGridLines: true,
|
|
103846
103932
|
// 打印边框
|
|
103933
|
+
isSignLock: false,
|
|
103934
|
+
// 锁定单元格
|
|
103847
103935
|
cellTop: 0,
|
|
103848
103936
|
cellBottom: 0,
|
|
103849
103937
|
cellLeft: 0,
|
|
@@ -103914,6 +104002,7 @@ var columns = [{
|
|
|
103914
104002
|
this.span = cellNode.cellProperty.span;
|
|
103915
104003
|
this.alignTextToGridline = cellNode.cellProperty.alignTextToGridline;
|
|
103916
104004
|
this.printGridLines = cellNode.cellProperty.printGridLines;
|
|
104005
|
+
this.isSignLock = cellNode.cellProperty.isSignLock ? cellNode.cellProperty.isSignLock : false;
|
|
103917
104006
|
// 单元格内边距 上、下、左、右
|
|
103918
104007
|
var _ref = cellNode.cellProperty.cellInnerMargin ? cellNode.cellProperty.cellInnerMargin : [0, 0, 0, 0];
|
|
103919
104008
|
var _ref2 = (0,slicedToArray/* default */.A)(_ref, 4);
|
|
@@ -104049,8 +104138,6 @@ var columns = [{
|
|
|
104049
104138
|
},
|
|
104050
104139
|
sure: function sure() {
|
|
104051
104140
|
var _this2 = this;
|
|
104052
|
-
// this.gridLinesColor = [this.gridLinesColor[0], this.gridLinesColor[0], this.gridLinesColor[0], this.gridLinesColor[0]];
|
|
104053
|
-
|
|
104054
104141
|
var params = {
|
|
104055
104142
|
id: this.id,
|
|
104056
104143
|
lightCellBorders: this.lightCellBorders,
|
|
@@ -104068,6 +104155,7 @@ var columns = [{
|
|
|
104068
104155
|
span: this.span,
|
|
104069
104156
|
alignTextToGridline: this.alignTextToGridline,
|
|
104070
104157
|
printGridLines: this.printGridLines,
|
|
104158
|
+
isSignLock: this.isSignLock,
|
|
104071
104159
|
obliqueSplitLine: this.obliqueSplitLine,
|
|
104072
104160
|
editorProperty: this.editorProperty
|
|
104073
104161
|
};
|
|
@@ -104114,10 +104202,10 @@ var columns = [{
|
|
|
104114
104202
|
|
|
104115
104203
|
/* harmony default export */ var table_TableCellPropertyvue_type_script_lang_js = (TableCellPropertyvue_type_script_lang_js);
|
|
104116
104204
|
|
|
104117
|
-
;// ./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/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
104205
|
+
;// ./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/table/TableCellProperty.vue?vue&type=style&index=0&id=4396d84c&prod&lang=less
|
|
104118
104206
|
// extracted by mini-css-extract-plugin
|
|
104119
104207
|
|
|
104120
|
-
;// ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=
|
|
104208
|
+
;// ./src/components/controls/table/TableCellProperty.vue?vue&type=style&index=0&id=4396d84c&prod&lang=less
|
|
104121
104209
|
|
|
104122
104210
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
104123
104211
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -106865,7 +106953,7 @@ var component = (0,componentNormalizer/* default */.A)(
|
|
|
106865
106953
|
|
|
106866
106954
|
/***/ }),
|
|
106867
106955
|
|
|
106868
|
-
/***/
|
|
106956
|
+
/***/ 51653:
|
|
106869
106957
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
106870
106958
|
|
|
106871
106959
|
"use strict";
|
|
@@ -106879,7 +106967,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
106879
106967
|
|
|
106880
106968
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
106881
106969
|
var i18n = __webpack_require__(49850);
|
|
106882
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=
|
|
106970
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=ea7bc536
|
|
106883
106971
|
|
|
106884
106972
|
var render = function render() {
|
|
106885
106973
|
var _vm = this,
|
|
@@ -107047,7 +107135,19 @@ var render = function render() {
|
|
|
107047
107135
|
},
|
|
107048
107136
|
expression: "withFormula"
|
|
107049
107137
|
}
|
|
107050
|
-
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.53", null, "新增行带出计算公式"))])], 1)
|
|
107138
|
+
}, [_vm._v(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.53", null, "新增行带出计算公式"))])], 1), _c('div', {
|
|
107139
|
+
staticStyle: {
|
|
107140
|
+
"width": "100%"
|
|
107141
|
+
}
|
|
107142
|
+
}, [_c('a-checkbox', {
|
|
107143
|
+
model: {
|
|
107144
|
+
value: _vm.isSignLock,
|
|
107145
|
+
callback: function callback($$v) {
|
|
107146
|
+
_vm.isSignLock = $$v;
|
|
107147
|
+
},
|
|
107148
|
+
expression: "isSignLock"
|
|
107149
|
+
}
|
|
107150
|
+
}, [_vm._v("签名完成后锁定行")])], 1)])])]), _c('footer', {
|
|
107051
107151
|
staticClass: "ho-modal-footer"
|
|
107052
107152
|
}, [_c('a-button', {
|
|
107053
107153
|
attrs: {
|
|
@@ -107067,7 +107167,7 @@ var render = function render() {
|
|
|
107067
107167
|
};
|
|
107068
107168
|
var staticRenderFns = [];
|
|
107069
107169
|
|
|
107070
|
-
;// ./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=
|
|
107170
|
+
;// ./src/components/controls/table/TableRowProperty.vue?vue&type=template&id=ea7bc536
|
|
107071
107171
|
|
|
107072
107172
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
107073
107173
|
var es_array_concat = __webpack_require__(28706);
|
|
@@ -107145,19 +107245,11 @@ var TableNode = __webpack_require__(30486);
|
|
|
107145
107245
|
tabKeyInsNewLine: false,
|
|
107146
107246
|
newLineWithCellContent: false,
|
|
107147
107247
|
withFormula: false,
|
|
107248
|
+
isSignLock: false,
|
|
107148
107249
|
customProperties: [{
|
|
107149
107250
|
name: '',
|
|
107150
107251
|
value: ''
|
|
107151
107252
|
}]
|
|
107152
|
-
// dataSource: {
|
|
107153
|
-
// dataSourceEnabled: true,
|
|
107154
|
-
// dataSource: '',
|
|
107155
|
-
// format: '',
|
|
107156
|
-
// visitPath: '',
|
|
107157
|
-
// isReadOnly: false,
|
|
107158
|
-
// autoUpdate: false,
|
|
107159
|
-
// executeStatus: 0,
|
|
107160
|
-
// },
|
|
107161
107253
|
},
|
|
107162
107254
|
rowHeightMm: '0',
|
|
107163
107255
|
rowHeight: 0,
|
|
@@ -107173,7 +107265,8 @@ var TableNode = __webpack_require__(30486);
|
|
|
107173
107265
|
paramsChange: [],
|
|
107174
107266
|
rowInfos: null,
|
|
107175
107267
|
rowProperty: null,
|
|
107176
|
-
withFormula: false
|
|
107268
|
+
withFormula: false,
|
|
107269
|
+
isSignLock: false
|
|
107177
107270
|
};
|
|
107178
107271
|
},
|
|
107179
107272
|
inject: ['hoEditorProvider'],
|
|
@@ -107218,6 +107311,7 @@ var TableNode = __webpack_require__(30486);
|
|
|
107218
107311
|
this.rowHeightMm = (hoEditorFactory.unitConvert.pxConversionMm(rowInfos.rowHeight, false) / 10).toFixed(2);
|
|
107219
107312
|
this.newLineWithCellContent = this.rowProperty.newLineWithCellContent;
|
|
107220
107313
|
this.withFormula = this.rowProperty.withFormula;
|
|
107314
|
+
this.isSignLock = this.rowProperty.isSignLock ? this.rowProperty.isSignLock : false;
|
|
107221
107315
|
}
|
|
107222
107316
|
},
|
|
107223
107317
|
getCellNodes: function getCellNodes() {
|
|
@@ -107284,7 +107378,8 @@ var TableNode = __webpack_require__(30486);
|
|
|
107284
107378
|
printCellBg: this.printCellBg,
|
|
107285
107379
|
tabKeyInsNewLine: this.tabKeyInsNewLine,
|
|
107286
107380
|
newLineWithCellContent: this.newLineWithCellContent,
|
|
107287
|
-
withFormula: this.withFormula
|
|
107381
|
+
withFormula: this.withFormula,
|
|
107382
|
+
isSignLock: this.isSignLock
|
|
107288
107383
|
};
|
|
107289
107384
|
var param = {};
|
|
107290
107385
|
Object.keys(params).forEach(function (key) {
|
|
@@ -107314,10 +107409,10 @@ var TableNode = __webpack_require__(30486);
|
|
|
107314
107409
|
|
|
107315
107410
|
/* harmony default export */ var table_TableRowPropertyvue_type_script_lang_js = (TableRowPropertyvue_type_script_lang_js);
|
|
107316
107411
|
|
|
107317
|
-
;// ./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/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
107412
|
+
;// ./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/table/TableRowProperty.vue?vue&type=style&index=0&id=ea7bc536&prod&lang=less
|
|
107318
107413
|
// extracted by mini-css-extract-plugin
|
|
107319
107414
|
|
|
107320
|
-
;// ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=
|
|
107415
|
+
;// ./src/components/controls/table/TableRowProperty.vue?vue&type=style&index=0&id=ea7bc536&prod&lang=less
|
|
107321
107416
|
|
|
107322
107417
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
107323
107418
|
var componentNormalizer = __webpack_require__(81656);
|
|
@@ -121680,9 +121775,9 @@ var DocController = /*#__PURE__*/function () {
|
|
|
121680
121775
|
hoEditorFactory.undoService.begin();
|
|
121681
121776
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .Q(this._hoEditorFactoryID, startPath, signNode));
|
|
121682
121777
|
hoEditorFactory.undoService.commit();
|
|
121683
|
-
if (parentNode instanceof
|
|
121684
|
-
|
|
121685
|
-
}
|
|
121778
|
+
// if (parentNode instanceof CellNode) {
|
|
121779
|
+
// this.signLockCheck(parentNode);
|
|
121780
|
+
// }
|
|
121686
121781
|
this.drawMask(signNode);
|
|
121687
121782
|
}
|
|
121688
121783
|
/**
|
|
@@ -121719,15 +121814,10 @@ var DocController = /*#__PURE__*/function () {
|
|
|
121719
121814
|
node.fingerPosition = fingerPosition ? fingerPosition : 0;
|
|
121720
121815
|
node.otherProperties = otherProperties ? otherProperties : node.otherProperties;
|
|
121721
121816
|
node.imgSrc = imgSrc;
|
|
121722
|
-
// if (type == 1 && node.signType == 1) {
|
|
121723
|
-
// node.isFront = true;
|
|
121724
|
-
// }
|
|
121725
|
-
//node.connectMode = "/";
|
|
121726
121817
|
hoEditorFactory.docTree.change(changeEvent);
|
|
121727
|
-
if (
|
|
121728
|
-
|
|
121818
|
+
if (hoEditorFactory.useSignLockTable) {
|
|
121819
|
+
hoEditorFactory.vueController.updateTableSignLocked(node);
|
|
121729
121820
|
}
|
|
121730
|
-
this.drawMask(node);
|
|
121731
121821
|
} else {
|
|
121732
121822
|
//第二次更新签名
|
|
121733
121823
|
if (node.connectMode === /*#__PURE__*/(0,_i18n__WEBPACK_IMPORTED_MODULE_0__/* .i18nHelper */ .p)("04-001-009-EMR.3.3.119",null,"换行")) {
|
|
@@ -121749,8 +121839,11 @@ var DocController = /*#__PURE__*/function () {
|
|
|
121749
121839
|
hoEditorFactory.undoService.begin();
|
|
121750
121840
|
hoEditorFactory.undoService.add(new _undoRedo_NodeInsertUndoUnit__WEBPACK_IMPORTED_MODULE_33__/* .NodeInsertUndoUnit */ .Q(this._hoEditorFactoryID, sPath, newSignNode));
|
|
121751
121841
|
hoEditorFactory.undoService.commit();
|
|
121752
|
-
|
|
121842
|
+
if (hoEditorFactory.useSignLockTable) {
|
|
121843
|
+
hoEditorFactory.vueController.updateTableSignLocked(newSignNode);
|
|
121844
|
+
}
|
|
121753
121845
|
}
|
|
121846
|
+
this.drawMask(node);
|
|
121754
121847
|
}
|
|
121755
121848
|
}, {
|
|
121756
121849
|
key: "drawMask",
|
|
@@ -126004,16 +126097,34 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
126004
126097
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(34375);
|
|
126005
126098
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(1107);
|
|
126006
126099
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(68845);
|
|
126007
|
-
/* harmony import */ var
|
|
126008
|
-
/* harmony import */ var
|
|
126009
|
-
/* harmony import */ var
|
|
126010
|
-
/* harmony import */ var
|
|
126011
|
-
/* harmony import */ var
|
|
126012
|
-
/* harmony import */ var
|
|
126013
|
-
/* harmony import */ var
|
|
126014
|
-
/* harmony import */ var
|
|
126015
|
-
/* harmony import */ var
|
|
126016
|
-
/* harmony import */ var
|
|
126100
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__ = __webpack_require__(2008);
|
|
126101
|
+
/* harmony import */ var core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_filter_js__WEBPACK_IMPORTED_MODULE_6__);
|
|
126102
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_7__ = __webpack_require__(23418);
|
|
126103
|
+
/* harmony import */ var core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_7___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_from_js__WEBPACK_IMPORTED_MODULE_7__);
|
|
126104
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8__ = __webpack_require__(23792);
|
|
126105
|
+
/* harmony import */ var core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_iterator_js__WEBPACK_IMPORTED_MODULE_8__);
|
|
126106
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_9__ = __webpack_require__(62010);
|
|
126107
|
+
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_9___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_9__);
|
|
126108
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_10__ = __webpack_require__(36033);
|
|
126109
|
+
/* harmony import */ var core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_10___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_map_js__WEBPACK_IMPORTED_MODULE_10__);
|
|
126110
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__ = __webpack_require__(79432);
|
|
126111
|
+
/* harmony import */ var core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_keys_js__WEBPACK_IMPORTED_MODULE_11__);
|
|
126112
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__ = __webpack_require__(26099);
|
|
126113
|
+
/* harmony import */ var core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_object_to_string_js__WEBPACK_IMPORTED_MODULE_12__);
|
|
126114
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_13__ = __webpack_require__(47764);
|
|
126115
|
+
/* harmony import */ var core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_iterator_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
126116
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(23500);
|
|
126117
|
+
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
126118
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(62953);
|
|
126119
|
+
/* harmony import */ var core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_iterator_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
126120
|
+
/* harmony import */ var _utils_UnitConvert__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(11405);
|
|
126121
|
+
/* harmony import */ var _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(30486);
|
|
126122
|
+
|
|
126123
|
+
|
|
126124
|
+
|
|
126125
|
+
|
|
126126
|
+
|
|
126127
|
+
|
|
126017
126128
|
|
|
126018
126129
|
|
|
126019
126130
|
|
|
@@ -126034,7 +126145,7 @@ var PageProperty = /*#__PURE__*/function () {
|
|
|
126034
126145
|
* @FilePath: \hoeditor-web\src\editor\dom\TableProperty.ts
|
|
126035
126146
|
*/
|
|
126036
126147
|
var TableProperty = /*#__PURE__*/function () {
|
|
126037
|
-
|
|
126148
|
+
//是否已签名 运行时属性
|
|
126038
126149
|
function TableProperty(objectValues) {
|
|
126039
126150
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(this, TableProperty);
|
|
126040
126151
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_id", void 0);
|
|
@@ -126061,7 +126172,7 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
126061
126172
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_isAutoChangeLine", false);
|
|
126062
126173
|
//表格内是否自动换行
|
|
126063
126174
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_autoLineHeight", 0.53);
|
|
126064
|
-
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_autoLineHeightPx",
|
|
126175
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_autoLineHeightPx", _treeNode_TableNode__WEBPACK_IMPORTED_MODULE_17__/* .gDefaultRowHeight */ .ip);
|
|
126065
126176
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_fixedOnePage", false);
|
|
126066
126177
|
//表格固定在一页
|
|
126067
126178
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_isUsePopEdit", false);
|
|
@@ -126071,6 +126182,8 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
126071
126182
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_isLock", false);
|
|
126072
126183
|
//是否锁定
|
|
126073
126184
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_addRowByOrder", false);
|
|
126185
|
+
//按顺序新增行
|
|
126186
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "signed", new Map());
|
|
126074
126187
|
if (objectValues !== "") {
|
|
126075
126188
|
var valuesObj;
|
|
126076
126189
|
if (typeof objectValues === "string") {
|
|
@@ -126095,6 +126208,14 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
126095
126208
|
}
|
|
126096
126209
|
}
|
|
126097
126210
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(TableProperty, [{
|
|
126211
|
+
key: "isSigned",
|
|
126212
|
+
get: function get() {
|
|
126213
|
+
if (this.signed.size === 0) return false;
|
|
126214
|
+
return Array.from(this.signed).filter(function (v) {
|
|
126215
|
+
return !v[1];
|
|
126216
|
+
}).length == 0;
|
|
126217
|
+
}
|
|
126218
|
+
}, {
|
|
126098
126219
|
key: "id",
|
|
126099
126220
|
get: function get() {
|
|
126100
126221
|
return this._id;
|
|
@@ -126182,7 +126303,7 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
126182
126303
|
set: function set(value) {
|
|
126183
126304
|
if (value !== this._autoLineHeight) {
|
|
126184
126305
|
this._autoLineHeight = value;
|
|
126185
|
-
this._autoLineHeightPx =
|
|
126306
|
+
this._autoLineHeightPx = _utils_UnitConvert__WEBPACK_IMPORTED_MODULE_16__/* .UnitConvert */ .w.instance.mmConversionPx(value * 10, false);
|
|
126186
126307
|
}
|
|
126187
126308
|
}
|
|
126188
126309
|
}, {
|
|
@@ -126212,7 +126333,11 @@ var TableProperty = /*#__PURE__*/function () {
|
|
|
126212
126333
|
return this._isSignLock;
|
|
126213
126334
|
},
|
|
126214
126335
|
set: function set(value) {
|
|
126215
|
-
|
|
126336
|
+
if (value) {
|
|
126337
|
+
this._isSignLock = value;
|
|
126338
|
+
} else {
|
|
126339
|
+
this._isSignLock = false;
|
|
126340
|
+
}
|
|
126216
126341
|
}
|
|
126217
126342
|
}, {
|
|
126218
126343
|
key: "isLock",
|
|
@@ -126323,7 +126448,7 @@ var DataSource = /*#__PURE__*/function () {
|
|
|
126323
126448
|
}]);
|
|
126324
126449
|
}();
|
|
126325
126450
|
var RowProperty = /*#__PURE__*/function () {
|
|
126326
|
-
|
|
126451
|
+
//是否已签名 运行时属性
|
|
126327
126452
|
function RowProperty(objectValues //, table: TableNode
|
|
126328
126453
|
) {
|
|
126329
126454
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(this, RowProperty);
|
|
@@ -126353,6 +126478,10 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
126353
126478
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_newLineWithCellContent", false);
|
|
126354
126479
|
//新增行带着单元格元素
|
|
126355
126480
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_withFormula", false);
|
|
126481
|
+
//新增行是否带着计算公式
|
|
126482
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_isSignLock", false);
|
|
126483
|
+
//签名后是否锁定
|
|
126484
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "signed", new Map());
|
|
126356
126485
|
if (objectValues !== "") {
|
|
126357
126486
|
var valuesObj = eval('(' + objectValues + ')');
|
|
126358
126487
|
var _assignvalue2 = function assignvalue(target, source) {
|
|
@@ -126372,6 +126501,14 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
126372
126501
|
}
|
|
126373
126502
|
}
|
|
126374
126503
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(RowProperty, [{
|
|
126504
|
+
key: "isSigned",
|
|
126505
|
+
get: function get() {
|
|
126506
|
+
if (this.signed.size === 0) return false;
|
|
126507
|
+
return Array.from(this.signed).filter(function (v) {
|
|
126508
|
+
return !v[1];
|
|
126509
|
+
}).length == 0;
|
|
126510
|
+
}
|
|
126511
|
+
}, {
|
|
126375
126512
|
key: "customProperties",
|
|
126376
126513
|
get: function get() {
|
|
126377
126514
|
return this._customProperties;
|
|
@@ -126401,6 +126538,18 @@ var RowProperty = /*#__PURE__*/function () {
|
|
|
126401
126538
|
set: function set(value) {
|
|
126402
126539
|
this._rowHeight = value;
|
|
126403
126540
|
}
|
|
126541
|
+
}, {
|
|
126542
|
+
key: "isSignLock",
|
|
126543
|
+
get: function get() {
|
|
126544
|
+
return this._isSignLock;
|
|
126545
|
+
},
|
|
126546
|
+
set: function set(value) {
|
|
126547
|
+
if (value) {
|
|
126548
|
+
this._isSignLock = value;
|
|
126549
|
+
} else {
|
|
126550
|
+
this._isSignLock = false;
|
|
126551
|
+
}
|
|
126552
|
+
}
|
|
126404
126553
|
// get isAutoRaiseHeight(): boolean {
|
|
126405
126554
|
// return this._isAutoRaiseHeight;
|
|
126406
126555
|
// }
|
|
@@ -126664,7 +126813,7 @@ var EditorProperty;
|
|
|
126664
126813
|
EditorProperty[EditorProperty["Formula"] = 7] = "Formula";
|
|
126665
126814
|
})(EditorProperty || (EditorProperty = {})); //编辑器属性 {无,下拉列表,日期,数值,签名,输入域,次数,计算公式}
|
|
126666
126815
|
var ColProperty = /*#__PURE__*/function () {
|
|
126667
|
-
|
|
126816
|
+
//是否已签名 运行时属性
|
|
126668
126817
|
function ColProperty(objectValues) {
|
|
126669
126818
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(this, ColProperty);
|
|
126670
126819
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_editorProperty", EditorProperty.None);
|
|
@@ -126687,6 +126836,8 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
126687
126836
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_isLock", false);
|
|
126688
126837
|
//是否锁定
|
|
126689
126838
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "addWithDefaultValue", false);
|
|
126839
|
+
//新增行时是否使用默认值
|
|
126840
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "signed", new Map());
|
|
126690
126841
|
if (typeof objectValues != 'string') {
|
|
126691
126842
|
// const valuesObj = eval('(' + objectValues + ')');
|
|
126692
126843
|
var _assignvalue3 = function assignvalue(target, source) {
|
|
@@ -126720,6 +126871,14 @@ var ColProperty = /*#__PURE__*/function () {
|
|
|
126720
126871
|
}
|
|
126721
126872
|
}
|
|
126722
126873
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(ColProperty, [{
|
|
126874
|
+
key: "isSigned",
|
|
126875
|
+
get: function get() {
|
|
126876
|
+
if (this.signed.size === 0) return false;
|
|
126877
|
+
return Array.from(this.signed).filter(function (v) {
|
|
126878
|
+
return !v[1];
|
|
126879
|
+
}).length == 0;
|
|
126880
|
+
}
|
|
126881
|
+
}, {
|
|
126723
126882
|
key: "editorProperty",
|
|
126724
126883
|
get: function get() {
|
|
126725
126884
|
return this._editorProperty;
|
|
@@ -126837,6 +126996,7 @@ var DiagonalType;
|
|
|
126837
126996
|
DiagonalType[DiagonalType["Right"] = 2] = "Right";
|
|
126838
126997
|
})(DiagonalType || (DiagonalType = {}));
|
|
126839
126998
|
var CellProperty = /*#__PURE__*/function () {
|
|
126999
|
+
//是否已签名 运行时属性
|
|
126840
127000
|
function CellProperty(objectValues) {
|
|
126841
127001
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .A)(this, CellProperty);
|
|
126842
127002
|
//private _lightCellBorders = false;//突出显示单元格边框
|
|
@@ -126870,6 +127030,9 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
126870
127030
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_diagonalType", DiagonalType.None);
|
|
126871
127031
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_formula", "");
|
|
126872
127032
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_oldValue", "");
|
|
127033
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "_isSignLock", false);
|
|
127034
|
+
// 签名后是否锁定
|
|
127035
|
+
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .A)(this, "signed", new Map());
|
|
126873
127036
|
if (objectValues !== "") {
|
|
126874
127037
|
var valuesObj = eval('(' + objectValues + ')');
|
|
126875
127038
|
var _assignvalue4 = function assignvalue(target, source) {
|
|
@@ -126909,6 +127072,14 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
126909
127072
|
}
|
|
126910
127073
|
}
|
|
126911
127074
|
return (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__/* ["default"] */ .A)(CellProperty, [{
|
|
127075
|
+
key: "isSigned",
|
|
127076
|
+
get: function get() {
|
|
127077
|
+
if (this.signed.size === 0) return false;
|
|
127078
|
+
return Array.from(this.signed).filter(function (v) {
|
|
127079
|
+
return !v[1];
|
|
127080
|
+
}).length == 0;
|
|
127081
|
+
}
|
|
127082
|
+
}, {
|
|
126912
127083
|
key: "customProperties",
|
|
126913
127084
|
get: function get() {
|
|
126914
127085
|
return this._customProperties;
|
|
@@ -126924,6 +127095,18 @@ var CellProperty = /*#__PURE__*/function () {
|
|
|
126924
127095
|
set: function set(value) {
|
|
126925
127096
|
this._align = value;
|
|
126926
127097
|
}
|
|
127098
|
+
}, {
|
|
127099
|
+
key: "isSignLock",
|
|
127100
|
+
get: function get() {
|
|
127101
|
+
return this._isSignLock;
|
|
127102
|
+
},
|
|
127103
|
+
set: function set(value) {
|
|
127104
|
+
if (value) {
|
|
127105
|
+
this._isSignLock = value;
|
|
127106
|
+
} else {
|
|
127107
|
+
this._isSignLock = false;
|
|
127108
|
+
}
|
|
127109
|
+
}
|
|
126927
127110
|
}, {
|
|
126928
127111
|
key: "cellInnerMargin",
|
|
126929
127112
|
get: function get() {
|
|
@@ -130843,7 +131026,8 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
130843
131026
|
downListProperty: this.cellProperty.downListProperty,
|
|
130844
131027
|
dateTimeProperty: this.cellProperty.dateTimeProperty,
|
|
130845
131028
|
diagonalType: this.cellProperty.diagonalType,
|
|
130846
|
-
formula: this.cellProperty.formula
|
|
131029
|
+
formula: this.cellProperty.formula,
|
|
131030
|
+
isSignLock: this.cellProperty.isSignLock
|
|
130847
131031
|
};
|
|
130848
131032
|
var cellPropertyJson = JSON.parse(JSON.stringify(cellProperty));
|
|
130849
131033
|
var keysName = Object.keys(defaultCellPropJson);
|
|
@@ -131133,9 +131317,6 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
131133
131317
|
aRow = rowsMap.get(rowNo);
|
|
131134
131318
|
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_28__/* .CellProperty */ ._w(""));
|
|
131135
131319
|
var cellProperty = json.cellProperty;
|
|
131136
|
-
// if (cellProperty === "") {
|
|
131137
|
-
// cellProperty = JSON.parse("{}");
|
|
131138
|
-
// }
|
|
131139
131320
|
var _assignvalue = function assignvalue(target, source) {
|
|
131140
131321
|
Object.keys(source).forEach(function (value) {
|
|
131141
131322
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .A)(target[value]) == "object") {
|
|
@@ -140317,12 +140498,16 @@ var BaseNode = __webpack_require__(29269);
|
|
|
140317
140498
|
var toConsumableArray = __webpack_require__(79150);
|
|
140318
140499
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.concat.js
|
|
140319
140500
|
var es_array_concat = __webpack_require__(28706);
|
|
140501
|
+
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.number.to-fixed.js
|
|
140502
|
+
var es_number_to_fixed = __webpack_require__(9868);
|
|
140320
140503
|
// EXTERNAL MODULE: ./src/yuki-createjs/index.ts
|
|
140321
140504
|
var yuki_createjs = __webpack_require__(56419);
|
|
140322
140505
|
// EXTERNAL MODULE: ./src/editor/draw/drawNode/DrawCombineNode.ts
|
|
140323
140506
|
var DrawCombineNode = __webpack_require__(10431);
|
|
140324
140507
|
// EXTERNAL MODULE: ./src/HOEditorFactorys.ts
|
|
140325
140508
|
var HOEditorFactorys = __webpack_require__(57703);
|
|
140509
|
+
// EXTERNAL MODULE: ./src/types/EditorType.ts
|
|
140510
|
+
var EditorType = __webpack_require__(27195);
|
|
140326
140511
|
;// ./src/editor/draw/drawNode/DrawSliderNode.ts
|
|
140327
140512
|
|
|
140328
140513
|
|
|
@@ -140335,6 +140520,9 @@ var HOEditorFactorys = __webpack_require__(57703);
|
|
|
140335
140520
|
|
|
140336
140521
|
|
|
140337
140522
|
|
|
140523
|
+
|
|
140524
|
+
|
|
140525
|
+
|
|
140338
140526
|
var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
140339
140527
|
function DrawSliderNode(hoeditfactoryID, rootPath, node, index, textStyle, dHeight, dWidth) {
|
|
140340
140528
|
var _this;
|
|
@@ -140371,12 +140559,12 @@ var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
140371
140559
|
var _this2 = this;
|
|
140372
140560
|
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
140373
140561
|
var fontHeight = hoEditorFactory.unitConvert.fontPt2Pix(this._textStyle.size);
|
|
140374
|
-
var dWidth = this.dWidth +
|
|
140562
|
+
var dWidth = this.dWidth + 10;
|
|
140375
140563
|
// 计算左右两侧数值占用宽度 并更新总宽度 和设置left和right
|
|
140376
140564
|
var minValue = this.createText(this.dNode.minValue, 0, -fontHeight * 0.6, 0);
|
|
140377
140565
|
var minValueBounds = minValue.getBounds();
|
|
140378
140566
|
var left = minValueBounds.width < 30 ? 30 : minValueBounds.width;
|
|
140379
|
-
minValue.x = left / 2 - minValueBounds.width
|
|
140567
|
+
minValue.x = left / 2 - minValueBounds.width * 0.8;
|
|
140380
140568
|
if (this.dNode.minText) {
|
|
140381
140569
|
var minText = this.createText(this.dNode.minText, left, -this.dHeight + fontHeight, 0);
|
|
140382
140570
|
this.addChild(minText);
|
|
@@ -140384,7 +140572,7 @@ var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
140384
140572
|
var maxValue = this.createText(this.dNode.maxValue, left + dWidth, -fontHeight * 0.6, 1);
|
|
140385
140573
|
var maxValueBounds = maxValue.getBounds();
|
|
140386
140574
|
var right = maxValueBounds.width < 30 ? 30 : maxValueBounds.width;
|
|
140387
|
-
maxValue.x = left + dWidth + right / 2 - maxValueBounds.width
|
|
140575
|
+
maxValue.x = left + dWidth + right / 2 - maxValueBounds.width * 0.5;
|
|
140388
140576
|
if (this.dNode.maxText) {
|
|
140389
140577
|
var maxText = this.createText(this.dNode.maxText, dWidth, -this.dHeight + fontHeight, 0);
|
|
140390
140578
|
maxText.x = dWidth + left - maxText.getBounds().width;
|
|
@@ -140399,10 +140587,10 @@ var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
140399
140587
|
sliderContainer.y = -this.dHeight;
|
|
140400
140588
|
// 底线
|
|
140401
140589
|
var line = new createjs.Shape();
|
|
140402
|
-
line.graphics.beginStroke(this._textStyle.color).moveTo(
|
|
140590
|
+
line.graphics.beginStroke(this._textStyle.color).moveTo(0, this.dHeight - 15).lineTo(dWidth - 10, this.dHeight - 15);
|
|
140403
140591
|
// 滑块
|
|
140404
140592
|
var bitMap = new createjs.Shape();
|
|
140405
|
-
bitMap.graphics.beginFill('#000').moveTo(
|
|
140593
|
+
bitMap.graphics.beginFill('#000').moveTo(0, this.dHeight - 20).lineTo(10, this.dHeight).lineTo(-10, this.dHeight).closePath();
|
|
140406
140594
|
// bitMap.graphics.beginFill('#000').drawRect(0, this.dHeight - 24, 20, 20);
|
|
140407
140595
|
// 添加顺序 滑块放在后面
|
|
140408
140596
|
var pointList = this.createGraduation();
|
|
@@ -140410,11 +140598,23 @@ var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
140410
140598
|
sliderContainer.addChildAt(bitMap, sliderContainer.children.length - 1);
|
|
140411
140599
|
this.addChild(sliderContainer);
|
|
140412
140600
|
setTimeout(function () {
|
|
140413
|
-
// 延后设置滑块容器层级 放在最上层 避免被遮挡无法选中
|
|
140601
|
+
// 延后设置滑块容器层级 放在最上层 避免被遮挡无法选中 并初始化滑块位置
|
|
140414
140602
|
_this2.setChildIndex(sliderContainer, _this2.children.length - 1);
|
|
140603
|
+
if (_this2.dNode.value) {
|
|
140604
|
+
_this2.dNode.value = Math.min(Math.max(Number(_this2.dNode.value), _this2.dNode.minValue), _this2.dNode.maxValue);
|
|
140605
|
+
bitMap.x = (_this2.dNode.value - _this2.dNode.minValue) * _this2.dNode.sWidth / (_this2.dNode.maxValue - _this2.dNode.minValue);
|
|
140606
|
+
sliderContainer.stage.update();
|
|
140607
|
+
}
|
|
140415
140608
|
}, 0);
|
|
140416
140609
|
sliderContainer.addEventListener('pressup', function () {
|
|
140417
|
-
var value =
|
|
140610
|
+
var value = (_this2.dNode.maxValue - _this2.dNode.minValue) / _this2.dNode.sWidth * bitMap.x + _this2.dNode.minValue;
|
|
140611
|
+
if (_this2.dNode.decimal === EditorType/* SliderDecimalType */.v2.Rounding) {
|
|
140612
|
+
value = Math.round(value);
|
|
140613
|
+
} else if (_this2.dNode.decimal === EditorType/* SliderDecimalType */.v2.Remove) {
|
|
140614
|
+
value = Math.floor(value);
|
|
140615
|
+
} else if (_this2.dNode.decimal === EditorType/* SliderDecimalType */.v2.Retain) {
|
|
140616
|
+
value = value.toFixed(_this2.dNode.places);
|
|
140617
|
+
}
|
|
140418
140618
|
if (_this2.dNode.associatedElement) {
|
|
140419
140619
|
var textNode = hoEditorFactory.vueController.getNodeByDataID('main', _this2.dNode.associatedElement);
|
|
140420
140620
|
if (textNode) {
|
|
@@ -140427,8 +140627,8 @@ var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
140427
140627
|
var local = sliderContainer.globalToLocal(e.stageX, e.stageY);
|
|
140428
140628
|
if (local.x < 0) {
|
|
140429
140629
|
bitMap.x = 0;
|
|
140430
|
-
} else if (local.x > dWidth -
|
|
140431
|
-
bitMap.x = dWidth -
|
|
140630
|
+
} else if (local.x > dWidth - 10) {
|
|
140631
|
+
bitMap.x = dWidth - 10;
|
|
140432
140632
|
} else {
|
|
140433
140633
|
bitMap.x = local.x;
|
|
140434
140634
|
}
|
|
@@ -140447,7 +140647,7 @@ var DrawSliderNode = /*#__PURE__*/function (_DrawCombineNode) {
|
|
|
140447
140647
|
var ey = this.dHeight - 25;
|
|
140448
140648
|
for (var i = 0; i <= this.dNode.graduation; i++) {
|
|
140449
140649
|
var line = new createjs.Shape();
|
|
140450
|
-
var sx = this.dNode.sWidth / this.dNode.graduation * i
|
|
140650
|
+
var sx = this.dNode.sWidth / this.dNode.graduation * i;
|
|
140451
140651
|
var ex = sx;
|
|
140452
140652
|
line.graphics.beginStroke("#000").moveTo(sx, sy).lineTo(ex, ey);
|
|
140453
140653
|
pointList.push(line);
|
|
@@ -140482,6 +140682,7 @@ var DrawTree = __webpack_require__(28198);
|
|
|
140482
140682
|
|
|
140483
140683
|
|
|
140484
140684
|
|
|
140685
|
+
|
|
140485
140686
|
var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
140486
140687
|
function SliderNode(hoEditorFactoryID, rootNodes, pNode, nodeType, sliderAttr) {
|
|
140487
140688
|
var _this;
|
|
@@ -140506,6 +140707,10 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140506
140707
|
(0,defineProperty/* default */.A)(_this, "graduation", void 0);
|
|
140507
140708
|
// 刻度
|
|
140508
140709
|
(0,defineProperty/* default */.A)(_this, "associatedElement", void 0);
|
|
140710
|
+
// 关联元素ID
|
|
140711
|
+
(0,defineProperty/* default */.A)(_this, "decimal", void 0);
|
|
140712
|
+
// 小数类型
|
|
140713
|
+
(0,defineProperty/* default */.A)(_this, "places", void 0);
|
|
140509
140714
|
_this.dataId = sliderAttr.dataId;
|
|
140510
140715
|
_this.innerIdentifier = sliderAttr.innerIdentifier;
|
|
140511
140716
|
_this.minValue = sliderAttr.minValue;
|
|
@@ -140515,6 +140720,8 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140515
140720
|
_this.value = sliderAttr.value;
|
|
140516
140721
|
_this.sWidth = sliderAttr.sWidth;
|
|
140517
140722
|
_this.graduation = sliderAttr.graduation;
|
|
140723
|
+
_this.decimal = sliderAttr.decimal;
|
|
140724
|
+
_this.places = sliderAttr.places;
|
|
140518
140725
|
_this.associatedElement = sliderAttr.associatedElement;
|
|
140519
140726
|
_this.node2DrawNodeRange(0, 0);
|
|
140520
140727
|
return _this;
|
|
@@ -140529,7 +140736,7 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140529
140736
|
return (0,createClass/* default */.A)(SliderNode, [{
|
|
140530
140737
|
key: "hoEditorFactoryID",
|
|
140531
140738
|
get:
|
|
140532
|
-
//
|
|
140739
|
+
// 小数位数
|
|
140533
140740
|
function get() {
|
|
140534
140741
|
return this._hoEditorFactoryID;
|
|
140535
140742
|
}
|
|
@@ -140604,7 +140811,7 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140604
140811
|
key: "node2Json",
|
|
140605
140812
|
value: function node2Json(range, isCopy) {
|
|
140606
140813
|
var retObj = {
|
|
140607
|
-
nodeType:
|
|
140814
|
+
nodeType: EditorType/* NodeType */.Z6[this.nodeType],
|
|
140608
140815
|
type: "Slider",
|
|
140609
140816
|
dataId: this.dataId,
|
|
140610
140817
|
innerIdentifier: this.innerIdentifier,
|
|
@@ -140614,6 +140821,8 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140614
140821
|
maxValue: this.maxValue,
|
|
140615
140822
|
maxText: this.maxText,
|
|
140616
140823
|
value: this.value,
|
|
140824
|
+
decimal: this.decimal,
|
|
140825
|
+
places: this.places,
|
|
140617
140826
|
graduation: this.graduation,
|
|
140618
140827
|
associatedElement: this.associatedElement
|
|
140619
140828
|
};
|
|
@@ -140632,7 +140841,7 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140632
140841
|
}], [{
|
|
140633
140842
|
key: "json2Node",
|
|
140634
140843
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode) {
|
|
140635
|
-
var rtn = new SliderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
140844
|
+
var rtn = new SliderNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, EditorType/* NodeType */.Z6.ntSlider, {
|
|
140636
140845
|
dataId: json.dataId,
|
|
140637
140846
|
innerIdentifier: json.innerIdentifier,
|
|
140638
140847
|
sWidth: Number(json.sWidth),
|
|
@@ -140640,8 +140849,10 @@ var SliderNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
140640
140849
|
minText: json.minText,
|
|
140641
140850
|
maxValue: Number(json.maxValue),
|
|
140642
140851
|
maxText: json.maxText,
|
|
140643
|
-
value:
|
|
140852
|
+
value: json.value,
|
|
140644
140853
|
graduation: json.graduation,
|
|
140854
|
+
decimal: isNaN(Number(json.decimal)) ? 1 : Number(json.decimal),
|
|
140855
|
+
places: isNaN(Number(json.places)) ? 0 : Number(json.places),
|
|
140645
140856
|
associatedElement: json.associatedElement
|
|
140646
140857
|
});
|
|
140647
140858
|
return rtn;
|
|
@@ -143852,7 +144063,8 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
143852
144063
|
tabKeyInsNewLine: rowInfo.rowProperty.tabKeyInsNewLine,
|
|
143853
144064
|
isLockRowHeight: rowInfo.rowProperty.isLockRowHeight,
|
|
143854
144065
|
newLineWithCellContent: rowInfo.rowProperty.newLineWithCellContent,
|
|
143855
|
-
withFormula: rowInfo.rowProperty.withFormula
|
|
144066
|
+
withFormula: rowInfo.rowProperty.withFormula,
|
|
144067
|
+
isSignLock: rowInfo.rowProperty.isSignLock
|
|
143856
144068
|
};
|
|
143857
144069
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
143858
144070
|
var keysName = Object.keys(defaultRowProp);
|
|
@@ -143962,6 +144174,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
143962
144174
|
downListProperty: "",
|
|
143963
144175
|
dateTimeProperty: "",
|
|
143964
144176
|
diagonalType: _TableProperty__WEBPACK_IMPORTED_MODULE_35__/* .DiagonalType */ .Q_.None,
|
|
144177
|
+
isSignLock: false,
|
|
143965
144178
|
formula: ""
|
|
143966
144179
|
};
|
|
143967
144180
|
var defaultCellPropJson = JSON.parse(JSON.stringify(defaultCellProp));
|
|
@@ -143982,28 +144195,12 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
143982
144195
|
rowNo: _k2,
|
|
143983
144196
|
childNodes: (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .A)({}, `${nodeName}`, Array())
|
|
143984
144197
|
};
|
|
143985
|
-
// rowArray = {
|
|
143986
|
-
// nodeType: "ntRow",
|
|
143987
|
-
// rowNo: 0,
|
|
143988
|
-
// childNodes: { CellNode: Array<Record<string, any>>() },
|
|
143989
|
-
// };
|
|
143990
144198
|
var undefineArr = {
|
|
143991
144199
|
base: {},
|
|
143992
144200
|
childNodes: Array()
|
|
143993
144201
|
};
|
|
143994
144202
|
rowArrays.push(rowArray);
|
|
143995
144203
|
undefines.push(undefineArr);
|
|
143996
|
-
// let colNum=-1;
|
|
143997
|
-
// const hoEditorFactory=HOEditorFactorys.instance().getFactory(this.hoEditorFactoryID);
|
|
143998
|
-
// for(let s=0;s<=row.length-1;s++){
|
|
143999
|
-
// const aCell=row[s];
|
|
144000
|
-
// if(aCell){
|
|
144001
|
-
// if(aCell.isTotalSelected(hoEditorFactory.docTree.curDomRange.normalize(),true)){
|
|
144002
|
-
// colNum=colNum+1;
|
|
144003
|
-
// }
|
|
144004
|
-
// }
|
|
144005
|
-
// }
|
|
144006
|
-
// maxColNum=Math.max(maxColNum,colNum);
|
|
144007
144204
|
for (var j = pfrom.col; j <= cols; j++) {
|
|
144008
144205
|
var col = row[j];
|
|
144009
144206
|
if (col) {
|
|
@@ -144103,10 +144300,6 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
144103
144300
|
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_31__/* .NodeType */ .Z6[this.nodeType],
|
|
144104
144301
|
rowCount: rowCount,
|
|
144105
144302
|
colCount: colCount,
|
|
144106
|
-
//borderVisible: this.borderVisible.toString(),
|
|
144107
|
-
//borderWidth: this._borderWidth,
|
|
144108
|
-
//headerRowCount: this.headerRowCount,
|
|
144109
|
-
//tableProperty: tableProperty,
|
|
144110
144303
|
rowInfos: rowInfos,
|
|
144111
144304
|
colInfos: colInfos,
|
|
144112
144305
|
childNodes: childNodes
|
|
@@ -175282,7 +175475,8 @@ var createRarewordsCanvas = function createRarewordsCanvas(text, textStyle) {
|
|
|
175282
175475
|
|
|
175283
175476
|
"use strict";
|
|
175284
175477
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
175285
|
-
/* harmony export */
|
|
175478
|
+
/* harmony export */ Z6: function() { return /* binding */ NodeType; },
|
|
175479
|
+
/* harmony export */ v2: function() { return /* binding */ SliderDecimalType; }
|
|
175286
175480
|
/* harmony export */ });
|
|
175287
175481
|
/* unused harmony export FormularType */
|
|
175288
175482
|
var NodeType;
|
|
@@ -175310,6 +175504,12 @@ var NodeType;
|
|
|
175310
175504
|
NodeType[NodeType["ntSlider"] = 20] = "ntSlider";
|
|
175311
175505
|
NodeType[NodeType["ntFigure"] = 21] = "ntFigure";
|
|
175312
175506
|
})(NodeType || (NodeType = {}));
|
|
175507
|
+
var SliderDecimalType;
|
|
175508
|
+
(function (SliderDecimalType) {
|
|
175509
|
+
SliderDecimalType[SliderDecimalType["Retain"] = 0] = "Retain";
|
|
175510
|
+
SliderDecimalType[SliderDecimalType["Rounding"] = 1] = "Rounding";
|
|
175511
|
+
SliderDecimalType[SliderDecimalType["Remove"] = 2] = "Remove";
|
|
175512
|
+
})(SliderDecimalType || (SliderDecimalType = {}));
|
|
175313
175513
|
var FormularType;
|
|
175314
175514
|
(function (FormularType) {
|
|
175315
175515
|
FormularType[FormularType["ftSum"] = 0] = "ftSum";
|
|
@@ -176260,7 +176460,7 @@ var map = {
|
|
|
176260
176460
|
"./delimiter/Delimiter.vue": 28556,
|
|
176261
176461
|
"./expressionForm/ExpressionForm.vue": 40647,
|
|
176262
176462
|
"./figure/EditHoFigure.vue": 22297,
|
|
176263
|
-
"./figure/HoFigure.vue":
|
|
176463
|
+
"./figure/HoFigure.vue": 77092,
|
|
176264
176464
|
"./findReplace/FindReplace.vue": 12004,
|
|
176265
176465
|
"./gestation/Gestation.vue": 18132,
|
|
176266
176466
|
"./hoprint/HoPrint.vue": 46018,
|
|
@@ -176278,17 +176478,17 @@ var map = {
|
|
|
176278
176478
|
"./radioCheckBox/RadioCheckbox.vue": 49237,
|
|
176279
176479
|
"./selectDialog/SelectDialog.vue": 91934,
|
|
176280
176480
|
"./sign/Sign.vue": 69914,
|
|
176281
|
-
"./slider/Slider.vue":
|
|
176481
|
+
"./slider/Slider.vue": 74858,
|
|
176282
176482
|
"./specialChars/HoSpecialChars.vue": 33336,
|
|
176283
176483
|
"./table/TableCellPoper.vue": 12097,
|
|
176284
176484
|
"./table/TableCellPoper1.vue": 8813,
|
|
176285
|
-
"./table/TableCellProperty.vue":
|
|
176485
|
+
"./table/TableCellProperty.vue": 68480,
|
|
176286
176486
|
"./table/TableColProperty.vue": 81078,
|
|
176287
176487
|
"./table/TableForm.vue": 35121,
|
|
176288
176488
|
"./table/TableFormTree.vue": 75295,
|
|
176289
176489
|
"./table/TableFormula.vue": 63459,
|
|
176290
176490
|
"./table/TableProperty.vue": 65356,
|
|
176291
|
-
"./table/TableRowProperty.vue":
|
|
176491
|
+
"./table/TableRowProperty.vue": 51653,
|
|
176292
176492
|
"./textDialog/TextBorderDialog.vue": 80713,
|
|
176293
176493
|
"./textDialog/TextDialog.vue": 70628,
|
|
176294
176494
|
"./textDialog/TextToLabelDialog.vue": 90209,
|
|
@@ -229119,9 +229319,9 @@ var esm_toConsumableArray = __webpack_require__(79150);
|
|
|
229119
229319
|
var objectSpread2 = __webpack_require__(33217);
|
|
229120
229320
|
// EXTERNAL MODULE: ./src/i18n/index.ts + 1 modules
|
|
229121
229321
|
var i18n = __webpack_require__(49850);
|
|
229122
|
-
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=
|
|
229322
|
+
;// ./node_modules/babel-loader/lib/index.js??ruleSet[1].rules[3].use[0]!./node_modules/unplugin/dist/webpack/loaders/transform.js?unpluginName=vite-plugin-i18n-helper!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[5]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=template&id=526129d2
|
|
229123
229323
|
|
|
229124
|
-
var
|
|
229324
|
+
var HoDocvue_type_template_id_526129d2_render = function render() {
|
|
229125
229325
|
var _vm = this,
|
|
229126
229326
|
_c = _vm._self._c;
|
|
229127
229327
|
return _c('div', {
|
|
@@ -229322,9 +229522,9 @@ var HoDocvue_type_template_id_b5309e40_render = function render() {
|
|
|
229322
229522
|
}
|
|
229323
229523
|
}, [_vm._v("v " + _vm._s(_vm.version))])])], 2)], 1);
|
|
229324
229524
|
};
|
|
229325
|
-
var
|
|
229525
|
+
var HoDocvue_type_template_id_526129d2_staticRenderFns = [];
|
|
229326
229526
|
|
|
229327
|
-
;// ./src/components/HoDoc.vue?vue&type=template&id=
|
|
229527
|
+
;// ./src/components/HoDoc.vue?vue&type=template&id=526129d2
|
|
229328
229528
|
|
|
229329
229529
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.array.filter.js
|
|
229330
229530
|
var es_array_filter = __webpack_require__(2008);
|
|
@@ -232325,7 +232525,7 @@ var TextNode = __webpack_require__(32083);
|
|
|
232325
232525
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
232326
232526
|
var ParagraphNode = __webpack_require__(40504);
|
|
232327
232527
|
;// ./src/components/version.ts
|
|
232328
|
-
/* harmony default export */ var version = ('3.1.
|
|
232528
|
+
/* harmony default export */ var version = ('3.1.185');
|
|
232329
232529
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
232330
232530
|
var PoperTipText = __webpack_require__(57221);
|
|
232331
232531
|
;// ./src/components/controls/poperTipText/index.ts
|
|
@@ -232861,7 +233061,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
232861
233061
|
_hoEditorFactory$vueC3 = (0,esm_slicedToArray/* default */.A)(_hoEditorFactory$vueC2, 2),
|
|
232862
233062
|
isInTable = _hoEditorFactory$vueC3[0],
|
|
232863
233063
|
tableNode = _hoEditorFactory$vueC3[1];
|
|
232864
|
-
if (paintStatus == DrawTree/* PaintState */.ak.psEdit && isInTable) {
|
|
233064
|
+
if (paintStatus == DrawTree/* PaintState */.ak.psEdit && isInTable && !(node instanceof SignNode/* SignNode */.u)) {
|
|
232865
233065
|
var result = hoEditorFactory.editController.canIsEdit(hoEditorFactory);
|
|
232866
233066
|
if (!result) return;
|
|
232867
233067
|
}
|
|
@@ -232949,7 +233149,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
232949
233149
|
} else if (Number(_parentNode2.inputFieldType) === 1) {
|
|
232950
233150
|
this.createInputProper(node, _parentNode2, paintStatus, pageIndex);
|
|
232951
233151
|
}
|
|
232952
|
-
} else if (node.nodeType == EditorType/* NodeType */.
|
|
233152
|
+
} else if (node.nodeType == EditorType/* NodeType */.Z6.ntFigure) {
|
|
232953
233153
|
this.poperType = '';
|
|
232954
233154
|
this.$emit('dblNodeClick', {
|
|
232955
233155
|
setActiveDoc: this.setActiveDocIndex,
|
|
@@ -232957,7 +233157,7 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
232957
233157
|
type: 'edit-ho-figure',
|
|
232958
233158
|
paintStatus: paintStatus
|
|
232959
233159
|
});
|
|
232960
|
-
} else if (node.parentNode instanceof CellNode/* CellNode */.H && node.nodeType !== EditorType/* NodeType */.
|
|
233160
|
+
} else if (node.parentNode instanceof CellNode/* CellNode */.H && node.nodeType !== EditorType/* NodeType */.Z6.ntMedicalExpression && node.nodeType !== EditorType/* NodeType */.Z6.ntImage) {
|
|
232961
233161
|
this.handleCellNode(node, node.parentNode, pageIndex, paintStatus);
|
|
232962
233162
|
} else if (node instanceof CellNode/* CellNode */.H) {
|
|
232963
233163
|
this.handleForm('update');
|
|
@@ -233406,10 +233606,10 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
233406
233606
|
|
|
233407
233607
|
/* harmony default export */ var components_HoDocvue_type_script_lang_js = (HoDocvue_type_script_lang_js);
|
|
233408
233608
|
|
|
233409
|
-
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
233609
|
+
;// ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/HoDoc.vue?vue&type=style&index=0&id=526129d2&prod&lang=less
|
|
233410
233610
|
// extracted by mini-css-extract-plugin
|
|
233411
233611
|
|
|
233412
|
-
;// ./src/components/HoDoc.vue?vue&type=style&index=0&id=
|
|
233612
|
+
;// ./src/components/HoDoc.vue?vue&type=style&index=0&id=526129d2&prod&lang=less
|
|
233413
233613
|
|
|
233414
233614
|
;// ./src/components/HoDoc.vue
|
|
233415
233615
|
|
|
@@ -233422,8 +233622,8 @@ var defaultHeight = Math.floor(1122 * scaleXY) % 2 === 1 ? Math.floor(1122 * sca
|
|
|
233422
233622
|
|
|
233423
233623
|
var HoDoc_component = (0,componentNormalizer/* default */.A)(
|
|
233424
233624
|
components_HoDocvue_type_script_lang_js,
|
|
233425
|
-
|
|
233426
|
-
|
|
233625
|
+
HoDocvue_type_template_id_526129d2_render,
|
|
233626
|
+
HoDocvue_type_template_id_526129d2_staticRenderFns,
|
|
233427
233627
|
false,
|
|
233428
233628
|
null,
|
|
233429
233629
|
null,
|
|
@@ -243795,14 +243995,16 @@ var VueController = /*#__PURE__*/function () {
|
|
|
243795
243995
|
}
|
|
243796
243996
|
var xml = hoEditorFactory.structureConvert.doc2Xml('xml', beauty, isValidStyle, clearSign);
|
|
243797
243997
|
var charList = [];
|
|
243798
|
-
|
|
243799
|
-
|
|
243800
|
-
|
|
243801
|
-
|
|
243802
|
-
|
|
243803
|
-
|
|
243804
|
-
|
|
243805
|
-
|
|
243998
|
+
try {
|
|
243999
|
+
if (typeof hoEditorFactory.cleanUpChar === 'string') {
|
|
244000
|
+
charList = JSON.parse(hoEditorFactory.cleanUpChar);
|
|
244001
|
+
}
|
|
244002
|
+
if (Array.isArray(charList)) {
|
|
244003
|
+
charList.forEach(function (char) {
|
|
244004
|
+
xml = xml.replace(new RegExp(char, 'g'), '');
|
|
244005
|
+
});
|
|
244006
|
+
}
|
|
244007
|
+
} catch (error) {}
|
|
243806
244008
|
return xml;
|
|
243807
244009
|
}
|
|
243808
244010
|
/**
|
|
@@ -246566,11 +246768,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246566
246768
|
}
|
|
246567
246769
|
return _context8.abrupt("return");
|
|
246568
246770
|
case 2:
|
|
246569
|
-
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
246570
|
-
// if (fPage.drawDomLevel && !fPage.drawDomLevel.stage) {
|
|
246571
|
-
// fPage.drawDomLevel.bindStage();
|
|
246572
|
-
// fPage.drawDomLevel.domStageUpdate();
|
|
246573
|
-
// }
|
|
246771
|
+
hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
246574
246772
|
_curDomRange = hoEditorFactory.docTree.curDomRange; //获取当前选中区域
|
|
246575
246773
|
startPath = _curDomRange.normalize().startPath;
|
|
246576
246774
|
endPath = _curDomRange.normalize().endPath;
|
|
@@ -246713,16 +246911,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246713
246911
|
var preNode = node.previousLeaf();
|
|
246714
246912
|
var sPath = hoEditorFactory.docTree.getNodeLastPath(preNode);
|
|
246715
246913
|
var ePath = hoEditorFactory.docTree.getNodeLastPath(node);
|
|
246716
|
-
// const cgEvent = new NodeChangeEvent(
|
|
246717
|
-
// this._hoEditorFactoryID,
|
|
246718
|
-
// DocAction.daUndoInsert,
|
|
246719
|
-
// sPath,
|
|
246720
|
-
// ""
|
|
246721
|
-
// );
|
|
246722
|
-
// cgEvent.oldEndPath = ePath;
|
|
246723
|
-
// cgEvent.oldDrawTreeLines = new SelectRange(
|
|
246724
|
-
// this._hoEditorFactoryID
|
|
246725
|
-
// ).getRangeDrawTreeLines(sPath, ePath);
|
|
246726
246914
|
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.ak.psReview && node instanceof SignNode/* SignNode */.u) {
|
|
246727
246915
|
var signUserId = node.customProperty.bce01;
|
|
246728
246916
|
if (hoEditorFactory.userInfo.id != signUserId) {
|
|
@@ -246735,8 +246923,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246735
246923
|
return;
|
|
246736
246924
|
}
|
|
246737
246925
|
if (node instanceof SignNode/* SignNode */.u) {
|
|
246738
|
-
//const nextNode = node.nextLeaf();
|
|
246739
|
-
//if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate && !(preNode instanceof SignNode) && !(nextNode instanceof SignNode)) {
|
|
246740
246926
|
if ((node.imgSrc !== '' || node.fingerPrintSrc !== '') && node.isTemplate) {
|
|
246741
246927
|
var signNode = new SignNode/* SignNode */.u(this._hoEditorFactoryID, node.rootNodes, node.parentNode, BaseNode/* NodeType */.Z6.ntSign, 0, 0, node.name === '' ? /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.326",null,"签名") : node.name, node.signType, node.signFormat, '', '', node.signTimeFormat, '', 0, 0, {}, true, node.styleIndex, node.connectMode, node.isFront, node.allowEditSignTime, '', undefined, node.attribute, node.connectChar, node.otherProperties, '', node.associatedElement);
|
|
246742
246928
|
hoEditorFactory.undoService.begin();
|
|
@@ -246757,11 +246943,6 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246757
246943
|
}
|
|
246758
246944
|
}
|
|
246759
246945
|
}
|
|
246760
|
-
var superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
246761
|
-
if (superiorSign.length > 0) {
|
|
246762
|
-
this.updateHiddenMask();
|
|
246763
|
-
}
|
|
246764
|
-
return;
|
|
246765
246946
|
} else {
|
|
246766
246947
|
if (node.connectMode == /*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.119",null,"换行") && preNode instanceof ParagraphNode/* ParagraphNode */.f) {
|
|
246767
246948
|
sPath = hoEditorFactory.docTree.getNodeLastPath(preNode.previousLeaf());
|
|
@@ -246769,12 +246950,15 @@ var VueController = /*#__PURE__*/function () {
|
|
|
246769
246950
|
hoEditorFactory.undoService.begin();
|
|
246770
246951
|
hoEditorFactory.undoService.add(new NodesDeleteUndoUnit/* NodesDeleteUndoUnit */.p(this._hoEditorFactoryID, sPath, ePath, true));
|
|
246771
246952
|
hoEditorFactory.undoService.commit();
|
|
246772
|
-
var _superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
246773
|
-
if (_superiorSign.length > 0) {
|
|
246774
|
-
this.updateHiddenMask();
|
|
246775
|
-
}
|
|
246776
|
-
return;
|
|
246777
246953
|
}
|
|
246954
|
+
var superiorSign = hoEditorFactory.structureConvert._superiorSign;
|
|
246955
|
+
if (superiorSign.length > 0) {
|
|
246956
|
+
this.updateHiddenMask();
|
|
246957
|
+
}
|
|
246958
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.ak.psEdit && hoEditorFactory.useSignLockTable) {
|
|
246959
|
+
this.updateTableSignLocked(node);
|
|
246960
|
+
}
|
|
246961
|
+
return;
|
|
246778
246962
|
}
|
|
246779
246963
|
hoEditorFactory.undoService.begin();
|
|
246780
246964
|
hoEditorFactory.undoService.add(new NodeDeleteUndoUnit/* NodeDeleteUndoUnit */.s(this._hoEditorFactoryID, node));
|
|
@@ -251444,6 +251628,88 @@ var VueController = /*#__PURE__*/function () {
|
|
|
251444
251628
|
value: function initLanguages(language, languageList) {
|
|
251445
251629
|
initLanguage(language, languageList);
|
|
251446
251630
|
}
|
|
251631
|
+
}, {
|
|
251632
|
+
key: "getParentCellNode",
|
|
251633
|
+
value: function getParentCellNode(node) {
|
|
251634
|
+
if (node instanceof CellNode/* CellNode */.H) {
|
|
251635
|
+
return node;
|
|
251636
|
+
}
|
|
251637
|
+
var pNode = node.parentNode;
|
|
251638
|
+
if (pNode instanceof CellNode/* CellNode */.H) {
|
|
251639
|
+
return pNode;
|
|
251640
|
+
}
|
|
251641
|
+
do {
|
|
251642
|
+
if (pNode && pNode.parentNode) {
|
|
251643
|
+
pNode = pNode.parentNode;
|
|
251644
|
+
if (pNode instanceof CellNode/* CellNode */.H) {
|
|
251645
|
+
return pNode;
|
|
251646
|
+
}
|
|
251647
|
+
}
|
|
251648
|
+
} while (pNode && pNode.parentNode);
|
|
251649
|
+
return null;
|
|
251650
|
+
}
|
|
251651
|
+
}, {
|
|
251652
|
+
key: "updateTableSignLocked",
|
|
251653
|
+
value: function updateTableSignLocked(node) {
|
|
251654
|
+
var cellNode = this.getParentCellNode(node);
|
|
251655
|
+
if (cellNode && cellNode.table) {
|
|
251656
|
+
this.updateTableLocked(cellNode.table, node.dataId);
|
|
251657
|
+
}
|
|
251658
|
+
}
|
|
251659
|
+
}, {
|
|
251660
|
+
key: "getRowInfo",
|
|
251661
|
+
value: function getRowInfo(cellNode) {
|
|
251662
|
+
return cellNode.table.rowInfos[cellNode.table.rows.indexOf(cellNode.row)];
|
|
251663
|
+
}
|
|
251664
|
+
}, {
|
|
251665
|
+
key: "getColInfo",
|
|
251666
|
+
value: function getColInfo(cellNode) {
|
|
251667
|
+
return cellNode.table.colInfos[cellNode.row.indexOf(cellNode)];
|
|
251668
|
+
}
|
|
251669
|
+
}, {
|
|
251670
|
+
key: "initTableSignLocked",
|
|
251671
|
+
value: function initTableSignLocked() {
|
|
251672
|
+
var _this16 = this;
|
|
251673
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.O.instance().getFactory(this._hoEditorFactoryID);
|
|
251674
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
251675
|
+
var tableList = mainNodes.filter(function (node) {
|
|
251676
|
+
return node.nodeType === BaseNode/* NodeType */.Z6.ntTable;
|
|
251677
|
+
});
|
|
251678
|
+
tableList.forEach(function (table) {
|
|
251679
|
+
if (table) _this16.updateTableLocked(table);
|
|
251680
|
+
});
|
|
251681
|
+
}
|
|
251682
|
+
}, {
|
|
251683
|
+
key: "updateTableLocked",
|
|
251684
|
+
value: function updateTableLocked(table, signDataId) {
|
|
251685
|
+
var _this17 = this;
|
|
251686
|
+
if (table.tableProperty.isSignLock) {
|
|
251687
|
+
table.childNodes.forEach(function (cellNode) {
|
|
251688
|
+
if (cellNode instanceof CellNode/* CellNode */.H && Array.isArray(cellNode.childNodes)) {
|
|
251689
|
+
var signList = cellNode.childNodes.filter(function (node) {
|
|
251690
|
+
return node instanceof SignNode/* SignNode */.u;
|
|
251691
|
+
});
|
|
251692
|
+
if (signList.length) {
|
|
251693
|
+
var colInfo = _this17.getColInfo(cellNode);
|
|
251694
|
+
var rowInfo = _this17.getRowInfo(cellNode);
|
|
251695
|
+
signList.forEach(function (sign) {
|
|
251696
|
+
var isSigned = sign.imgSrc || sign.fingerPrintSrc ? true : false;
|
|
251697
|
+
colInfo.colProperty.signed.set(sign.dataId, isSigned);
|
|
251698
|
+
rowInfo.rowProperty.signed.set(sign.dataId, isSigned);
|
|
251699
|
+
cellNode.cellProperty.signed.set(sign.dataId, isSigned);
|
|
251700
|
+
table.tableProperty.signed.set(sign.dataId, isSigned);
|
|
251701
|
+
});
|
|
251702
|
+
if (signDataId) {
|
|
251703
|
+
colInfo.colProperty.signed.delete(signDataId);
|
|
251704
|
+
rowInfo.rowProperty.signed.delete(signDataId);
|
|
251705
|
+
cellNode.cellProperty.signed.delete(signDataId);
|
|
251706
|
+
table.tableProperty.signed.delete(signDataId);
|
|
251707
|
+
}
|
|
251708
|
+
}
|
|
251709
|
+
}
|
|
251710
|
+
});
|
|
251711
|
+
}
|
|
251712
|
+
}
|
|
251447
251713
|
}]);
|
|
251448
251714
|
}();
|
|
251449
251715
|
;// ./src/editor/externalCall/BaseController.ts
|
|
@@ -252598,22 +252864,25 @@ var EditController = /*#__PURE__*/function () {
|
|
|
252598
252864
|
}
|
|
252599
252865
|
}
|
|
252600
252866
|
if (result) {
|
|
252867
|
+
message/* default */.A.destroy();
|
|
252601
252868
|
var pNode = hoEditorFactory.docTree.getFinalParentNode(curDomRange.startPath);
|
|
252602
252869
|
if (pNode && pNode instanceof CellNode/* CellNode */.H) {
|
|
252603
|
-
if (pNode.table.tableProperty.isSignLock
|
|
252604
|
-
message
|
|
252605
|
-
|
|
252606
|
-
|
|
252607
|
-
|
|
252608
|
-
var
|
|
252609
|
-
|
|
252610
|
-
if (colProperty.isSignLock && colProperty.isLock) {
|
|
252611
|
-
message/* default */.A.destroy();
|
|
252870
|
+
if (pNode.table.tableProperty.isSignLock) {
|
|
252871
|
+
// message.error("表格已完成签名,不允许修改编辑。")
|
|
252872
|
+
// return false;
|
|
252873
|
+
// } else {
|
|
252874
|
+
var colProperty = pNode.table.colInfos[pNode.row.indexOf(pNode)].colProperty;
|
|
252875
|
+
var rowProperty = pNode.table.rowInfos[pNode.table.rows.indexOf(pNode.row)].rowProperty;
|
|
252876
|
+
if (colProperty.isSignLock && colProperty.isSigned) {
|
|
252612
252877
|
message/* default */.A.error(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.435",null,"当前列已完成签名,不允许修改编辑。"));
|
|
252613
252878
|
return false;
|
|
252614
|
-
}
|
|
252615
|
-
|
|
252616
|
-
|
|
252879
|
+
} else if (rowProperty.isSignLock && rowProperty.isSigned) {
|
|
252880
|
+
message/* default */.A.error("当前行已完成签名,不允许修改编辑。");
|
|
252881
|
+
return false;
|
|
252882
|
+
} else if (pNode.cellProperty.isSignLock && pNode.cellProperty.isSigned) {
|
|
252883
|
+
message/* default */.A.error("当前单元格已完成签名,不允许修改编辑。");
|
|
252884
|
+
return false;
|
|
252885
|
+
} else if (pNode.table.tableProperty.addRowByOrder && colProperty.editorProperty === TableProperty/* EditorProperty */.zF.OrderNumber) {
|
|
252617
252886
|
message/* default */.A.error(/*#__PURE__*/(0,i18n/* i18nHelper */.p)("04-001-009-EMR.3.3.431",null,"不允许编辑该列"));
|
|
252618
252887
|
return false;
|
|
252619
252888
|
}
|
|
@@ -262593,12 +262862,14 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
262593
262862
|
(0,esm_defineProperty/* default */.A)(this, "updateNextDaysRecordList", new Map());
|
|
262594
262863
|
// 记录一下单元格双击属性为日期的更新列表
|
|
262595
262864
|
(0,esm_defineProperty/* default */.A)(this, "cleanUpChar", "[]");
|
|
262865
|
+
// 需要清理的字符列表 -- 获取xml方法中使用
|
|
262866
|
+
(0,esm_defineProperty/* default */.A)(this, "useSignLockTable", true);
|
|
262596
262867
|
this._hoEditorFactoryId = id;
|
|
262597
262868
|
}
|
|
262598
262869
|
return (0,esm_createClass/* default */.A)(HOEditorFactory, [{
|
|
262599
262870
|
key: "hoLocalStorage",
|
|
262600
262871
|
get:
|
|
262601
|
-
//
|
|
262872
|
+
// 默认启用签名锁定表格功能 --表格--表格行--表格列--单元格
|
|
262602
262873
|
/**
|
|
262603
262874
|
* Getter hoLocalStorage
|
|
262604
262875
|
* @return {HoLocalStorage}
|