hoeditor-web 3.1.87 → 3.1.89
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.umd.js +504 -404
- package/lib/hoeditor.umd.min.js +4 -4
- package/package.json +1 -1
package/lib/hoeditor.umd.js
CHANGED
|
@@ -13854,7 +13854,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
13854
13854
|
|
|
13855
13855
|
/***/ }),
|
|
13856
13856
|
|
|
13857
|
-
/***/
|
|
13857
|
+
/***/ 30939:
|
|
13858
13858
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
13859
13859
|
|
|
13860
13860
|
"use strict";
|
|
@@ -13868,7 +13868,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
13868
13868
|
|
|
13869
13869
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
13870
13870
|
var es_function_name = __webpack_require__(68309);
|
|
13871
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
13871
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=19e7dc64&
|
|
13872
13872
|
|
|
13873
13873
|
var render = function render() {
|
|
13874
13874
|
var _vm = this,
|
|
@@ -13890,6 +13890,22 @@ var render = function render() {
|
|
|
13890
13890
|
}
|
|
13891
13891
|
})], 1), _c('section', {
|
|
13892
13892
|
staticClass: "modal-content"
|
|
13893
|
+
}, [_c('a-tabs', {
|
|
13894
|
+
attrs: {
|
|
13895
|
+
"animated": false
|
|
13896
|
+
},
|
|
13897
|
+
model: {
|
|
13898
|
+
value: _vm.textActiveName,
|
|
13899
|
+
callback: function callback($$v) {
|
|
13900
|
+
_vm.textActiveName = $$v;
|
|
13901
|
+
},
|
|
13902
|
+
expression: "textActiveName"
|
|
13903
|
+
}
|
|
13904
|
+
}, [_c('a-tab-pane', {
|
|
13905
|
+
key: "first",
|
|
13906
|
+
attrs: {
|
|
13907
|
+
"tab": "基本属性"
|
|
13908
|
+
}
|
|
13893
13909
|
}, [_c('ul', {
|
|
13894
13910
|
staticClass: "control-list"
|
|
13895
13911
|
}, [_c('li', {
|
|
@@ -14580,7 +14596,7 @@ var render = function render() {
|
|
|
14580
14596
|
"justify-content": "space-between"
|
|
14581
14597
|
}
|
|
14582
14598
|
}, [_c('span', [_vm._v(_vm._s(node.name))]), _c('span', [_vm._v(_vm._s(node.dataId))])])]);
|
|
14583
|
-
}), 1)], 1)] : _vm._e()], 2)]), _c('footer', {
|
|
14599
|
+
}), 1)], 1)] : _vm._e()], 2)]), _vm._t("hoTextFieldModal")], 2)], 1), _c('footer', {
|
|
14584
14600
|
staticClass: "ho-modal-footer"
|
|
14585
14601
|
}, [_vm.boxGroup === 1 ? _c('a-button', {
|
|
14586
14602
|
staticStyle: {
|
|
@@ -14610,8 +14626,10 @@ var render = function render() {
|
|
|
14610
14626
|
};
|
|
14611
14627
|
var staticRenderFns = [];
|
|
14612
14628
|
|
|
14613
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=
|
|
14629
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=template&id=19e7dc64&
|
|
14614
14630
|
|
|
14631
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
14632
|
+
var defineProperty = __webpack_require__(78255);
|
|
14615
14633
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/objectSpread2.js
|
|
14616
14634
|
var objectSpread2 = __webpack_require__(63442);
|
|
14617
14635
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.object.keys.js
|
|
@@ -14641,6 +14659,8 @@ var BaseCombineNode = __webpack_require__(4938);
|
|
|
14641
14659
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14642
14660
|
|
|
14643
14661
|
|
|
14662
|
+
var _name$data$inject$pro;
|
|
14663
|
+
|
|
14644
14664
|
|
|
14645
14665
|
|
|
14646
14666
|
|
|
@@ -14684,10 +14704,11 @@ var defaultBox = {
|
|
|
14684
14704
|
isMutualExclusion: false,
|
|
14685
14705
|
associatedElement: ''
|
|
14686
14706
|
};
|
|
14687
|
-
/* harmony default export */ var RadioCheckboxvue_type_script_lang_js_ = ({
|
|
14707
|
+
/* harmony default export */ var RadioCheckboxvue_type_script_lang_js_ = (_name$data$inject$pro = {
|
|
14688
14708
|
name: 'RadioCheckBox',
|
|
14689
14709
|
data: function data() {
|
|
14690
14710
|
return {
|
|
14711
|
+
textActiveName: 'first',
|
|
14691
14712
|
boxGroup: 1,
|
|
14692
14713
|
groupName: '',
|
|
14693
14714
|
tableRadio: false,
|
|
@@ -14719,218 +14740,218 @@ var defaultBox = {
|
|
|
14719
14740
|
required: true,
|
|
14720
14741
|
default: function _default() {}
|
|
14721
14742
|
}
|
|
14743
|
+
}
|
|
14744
|
+
}, (0,defineProperty/* default */.Z)(_name$data$inject$pro, "inject", ['hoEditorProvider', 'getCustomProperty']), (0,defineProperty/* default */.Z)(_name$data$inject$pro, "computed", {
|
|
14745
|
+
controlType: function controlType() {
|
|
14746
|
+
return this.hoEditorProvider.controlType;
|
|
14722
14747
|
},
|
|
14723
|
-
|
|
14724
|
-
|
|
14725
|
-
|
|
14726
|
-
|
|
14727
|
-
|
|
14728
|
-
|
|
14729
|
-
|
|
14730
|
-
|
|
14731
|
-
|
|
14732
|
-
|
|
14733
|
-
|
|
14734
|
-
|
|
14735
|
-
|
|
14736
|
-
|
|
14737
|
-
|
|
14738
|
-
|
|
14739
|
-
|
|
14740
|
-
|
|
14741
|
-
|
|
14742
|
-
|
|
14743
|
-
|
|
14744
|
-
|
|
14745
|
-
|
|
14746
|
-
|
|
14747
|
-
|
|
14748
|
-
|
|
14749
|
-
_this.groupHasOptions = v.groupHasOptions;
|
|
14750
|
-
_this.isMutualExclusion = v.isMutualExclusion;
|
|
14751
|
-
Object.keys(_this.radioCheckBox).forEach(function (key) {
|
|
14752
|
-
if (key === 'readType') {
|
|
14753
|
-
value.readType = v.readType == 1 ? true : false;
|
|
14754
|
-
} else {
|
|
14755
|
-
value[key] = v[key];
|
|
14756
|
-
}
|
|
14757
|
-
});
|
|
14758
|
-
if (v.customProperty) {
|
|
14759
|
-
_this.radioCheckBox.customProperty = v.customProperty;
|
|
14760
|
-
}
|
|
14761
|
-
_this.radioCheckBoxGroup.push(value);
|
|
14762
|
-
});
|
|
14763
|
-
this.boxGroup = 1;
|
|
14764
|
-
this.addBox();
|
|
14765
|
-
} else {
|
|
14766
|
-
Object.keys(this.radioCheckBox).forEach(function (key) {
|
|
14767
|
-
if (key === 'readType' || key === 'readTypeBool') {
|
|
14768
|
-
_this.radioCheckBox.readType = updateNode.value.readType == 1 ? true : false;
|
|
14748
|
+
controlStatus: function controlStatus() {
|
|
14749
|
+
return this.hoEditorProvider.controlStatus;
|
|
14750
|
+
} // dataSource() {
|
|
14751
|
+
// return this.hoEditorProvider.getDataSource();
|
|
14752
|
+
// },
|
|
14753
|
+
}), (0,defineProperty/* default */.Z)(_name$data$inject$pro, "created", function created() {
|
|
14754
|
+
var _this = this;
|
|
14755
|
+
this.nodeList = this.getTextFieldNode();
|
|
14756
|
+
if (this.controlStatus === 'update') {
|
|
14757
|
+
var _updateNode$value;
|
|
14758
|
+
var updateNode = this.getRadioCheckNode();
|
|
14759
|
+
if ((_updateNode$value = updateNode.value) !== null && _updateNode$value !== void 0 && _updateNode$value.groupName) {
|
|
14760
|
+
updateNode.valueList.forEach(function (v) {
|
|
14761
|
+
var value = {
|
|
14762
|
+
id: v.id,
|
|
14763
|
+
groupName: v.groupName,
|
|
14764
|
+
groupHasOptions: v.groupHasOptions,
|
|
14765
|
+
isMutualExclusion: v.isMutualExclusion,
|
|
14766
|
+
tableType: 'update'
|
|
14767
|
+
};
|
|
14768
|
+
_this.groupName = v.groupName;
|
|
14769
|
+
_this.groupHasOptions = v.groupHasOptions;
|
|
14770
|
+
_this.isMutualExclusion = v.isMutualExclusion;
|
|
14771
|
+
Object.keys(_this.radioCheckBox).forEach(function (key) {
|
|
14772
|
+
if (key === 'readType') {
|
|
14773
|
+
value.readType = v.readType == 1 ? true : false;
|
|
14769
14774
|
} else {
|
|
14770
|
-
|
|
14775
|
+
value[key] = v[key];
|
|
14771
14776
|
}
|
|
14772
14777
|
});
|
|
14773
|
-
if (
|
|
14774
|
-
|
|
14778
|
+
if (v.customProperty) {
|
|
14779
|
+
_this.radioCheckBox.customProperty = v.customProperty;
|
|
14775
14780
|
}
|
|
14776
|
-
|
|
14777
|
-
}
|
|
14781
|
+
_this.radioCheckBoxGroup.push(value);
|
|
14782
|
+
});
|
|
14783
|
+
this.boxGroup = 1;
|
|
14784
|
+
this.addBox();
|
|
14778
14785
|
} else {
|
|
14779
|
-
this.radioCheckBox.
|
|
14780
|
-
|
|
14781
|
-
|
|
14782
|
-
|
|
14783
|
-
|
|
14784
|
-
|
|
14786
|
+
Object.keys(this.radioCheckBox).forEach(function (key) {
|
|
14787
|
+
if (key === 'readType' || key === 'readTypeBool') {
|
|
14788
|
+
_this.radioCheckBox.readType = updateNode.value.readType == 1 ? true : false;
|
|
14789
|
+
} else {
|
|
14790
|
+
_this.radioCheckBox[key] = updateNode.value[key];
|
|
14791
|
+
}
|
|
14792
|
+
});
|
|
14793
|
+
if (updateNode.customProperty) {
|
|
14794
|
+
this.radioCheckBox.customProperty = updateNode.customProperty;
|
|
14785
14795
|
}
|
|
14796
|
+
this.boxGroup = 0;
|
|
14786
14797
|
}
|
|
14787
|
-
}
|
|
14788
|
-
|
|
14789
|
-
|
|
14790
|
-
|
|
14791
|
-
|
|
14792
|
-
|
|
14793
|
-
|
|
14794
|
-
|
|
14795
|
-
|
|
14796
|
-
|
|
14797
|
-
|
|
14798
|
-
|
|
14799
|
-
|
|
14800
|
-
|
|
14801
|
-
|
|
14802
|
-
|
|
14803
|
-
|
|
14804
|
-
|
|
14805
|
-
|
|
14806
|
-
|
|
14798
|
+
} else {
|
|
14799
|
+
this.radioCheckBox.id = this.controlType === 'RadioBox' ? this.vueController.generateID('RB') : this.vueController.generateID('CB');
|
|
14800
|
+
this.radioCheckBox.controlStyle = this.controlType;
|
|
14801
|
+
this.radioCheckBox.title = this.controlType === 'RadioBox' ? '单选框' : '复选框';
|
|
14802
|
+
if (this.boxGroup === 1) {
|
|
14803
|
+
this.addBox();
|
|
14804
|
+
this.addBox();
|
|
14805
|
+
}
|
|
14806
|
+
}
|
|
14807
|
+
}), (0,defineProperty/* default */.Z)(_name$data$inject$pro, "methods", {
|
|
14808
|
+
getTextFieldNode: function getTextFieldNode() {
|
|
14809
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
14810
|
+
this.radioCheckBox.isAllowDelete = hoEditorFactory.defaultIsAllowDelete;
|
|
14811
|
+
defaultBox.isAllowDelete = hoEditorFactory.defaultIsAllowDelete;
|
|
14812
|
+
var ret = [];
|
|
14813
|
+
var getAllNodes = function getAllNodes(nodes) {
|
|
14814
|
+
for (var i = 0; i < nodes.length; i++) {
|
|
14815
|
+
var node = nodes[i];
|
|
14816
|
+
if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
|
|
14817
|
+
ret.push({
|
|
14818
|
+
dataId: node.dataId,
|
|
14819
|
+
name: node.name,
|
|
14820
|
+
text: node.text
|
|
14821
|
+
});
|
|
14822
|
+
}
|
|
14823
|
+
if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
|
|
14824
|
+
getAllNodes(node.childNodes);
|
|
14807
14825
|
}
|
|
14808
|
-
};
|
|
14809
|
-
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
14810
|
-
getAllNodes(mainNodes);
|
|
14811
|
-
return ret;
|
|
14812
|
-
},
|
|
14813
|
-
defaultSelectChange: function defaultSelectChange(index) {
|
|
14814
|
-
if (this.controlType === 'RadioBox') {
|
|
14815
|
-
this.radioCheckBoxGroup.map(function (v, key) {
|
|
14816
|
-
if (index === key) {
|
|
14817
|
-
v.isSelected = !v.isSelected;
|
|
14818
|
-
} else {
|
|
14819
|
-
v.isSelected = false;
|
|
14820
|
-
}
|
|
14821
|
-
return v;
|
|
14822
|
-
});
|
|
14823
|
-
}
|
|
14824
|
-
},
|
|
14825
|
-
getRadioCheckNode: function getRadioCheckNode() {
|
|
14826
|
-
var _hoEditorFactory$vueC, _value;
|
|
14827
|
-
var value = {};
|
|
14828
|
-
var valueList = [];
|
|
14829
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
14830
|
-
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
14831
|
-
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
14832
|
-
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
14833
|
-
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) {
|
|
14834
|
-
value = node;
|
|
14835
|
-
}
|
|
14836
|
-
if ((_value = value) !== null && _value !== void 0 && _value.groupName) {
|
|
14837
|
-
radioAndCheckBoxs.forEach(function (v) {
|
|
14838
|
-
if (v.groupName === value.groupName && v.controlStyle === value.controlStyle) {
|
|
14839
|
-
valueList.push(v);
|
|
14840
|
-
}
|
|
14841
|
-
});
|
|
14842
|
-
}
|
|
14843
|
-
return {
|
|
14844
|
-
value: value,
|
|
14845
|
-
valueList: valueList
|
|
14846
|
-
};
|
|
14847
|
-
},
|
|
14848
|
-
addNewItem: function addNewItem() {
|
|
14849
|
-
if (this.radioCheckBoxGroup.filter(function (v) {
|
|
14850
|
-
return v.text === '';
|
|
14851
|
-
}).length === 0) {
|
|
14852
|
-
this.addBox();
|
|
14853
|
-
setTimeout(function () {
|
|
14854
|
-
var tableInfo = document.querySelector('.ant-table-body');
|
|
14855
|
-
if (tableInfo) {
|
|
14856
|
-
tableInfo.scrollTo(0, 10000);
|
|
14857
|
-
}
|
|
14858
|
-
}, 0);
|
|
14859
14826
|
}
|
|
14860
|
-
}
|
|
14861
|
-
|
|
14862
|
-
|
|
14863
|
-
|
|
14864
|
-
|
|
14865
|
-
|
|
14866
|
-
|
|
14867
|
-
|
|
14868
|
-
|
|
14869
|
-
|
|
14870
|
-
|
|
14827
|
+
};
|
|
14828
|
+
var mainNodes = hoEditorFactory.docTree.mainNodes;
|
|
14829
|
+
getAllNodes(mainNodes);
|
|
14830
|
+
return ret;
|
|
14831
|
+
},
|
|
14832
|
+
defaultSelectChange: function defaultSelectChange(index) {
|
|
14833
|
+
if (this.controlType === 'RadioBox') {
|
|
14834
|
+
this.radioCheckBoxGroup.map(function (v, key) {
|
|
14835
|
+
if (index === key) {
|
|
14836
|
+
v.isSelected = !v.isSelected;
|
|
14837
|
+
} else {
|
|
14838
|
+
v.isSelected = false;
|
|
14839
|
+
}
|
|
14840
|
+
return v;
|
|
14871
14841
|
});
|
|
14872
|
-
|
|
14873
|
-
|
|
14874
|
-
|
|
14875
|
-
|
|
14876
|
-
|
|
14877
|
-
|
|
14878
|
-
|
|
14879
|
-
|
|
14880
|
-
|
|
14881
|
-
|
|
14882
|
-
|
|
14883
|
-
|
|
14884
|
-
|
|
14885
|
-
|
|
14886
|
-
|
|
14887
|
-
|
|
14888
|
-
v
|
|
14889
|
-
|
|
14890
|
-
|
|
14891
|
-
|
|
14892
|
-
|
|
14842
|
+
}
|
|
14843
|
+
},
|
|
14844
|
+
getRadioCheckNode: function getRadioCheckNode() {
|
|
14845
|
+
var _hoEditorFactory$vueC, _value;
|
|
14846
|
+
var value = {};
|
|
14847
|
+
var valueList = [];
|
|
14848
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
|
|
14849
|
+
var path = hoEditorFactory.docTree.curDomRange.normalize().endPath;
|
|
14850
|
+
var node = (_hoEditorFactory$vueC = hoEditorFactory.vueController.findNodebyPath(path)) === null || _hoEditorFactory$vueC === void 0 ? void 0 : _hoEditorFactory$vueC.node;
|
|
14851
|
+
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
14852
|
+
if (node instanceof RadioAndCheckBoxNode/* RadioAndCheckBoxNode */.Yh) {
|
|
14853
|
+
value = node;
|
|
14854
|
+
}
|
|
14855
|
+
if ((_value = value) !== null && _value !== void 0 && _value.groupName) {
|
|
14856
|
+
radioAndCheckBoxs.forEach(function (v) {
|
|
14857
|
+
if (v.groupName === value.groupName && v.controlStyle === value.controlStyle) {
|
|
14858
|
+
valueList.push(v);
|
|
14859
|
+
}
|
|
14860
|
+
});
|
|
14861
|
+
}
|
|
14862
|
+
return {
|
|
14863
|
+
value: value,
|
|
14864
|
+
valueList: valueList
|
|
14865
|
+
};
|
|
14866
|
+
},
|
|
14867
|
+
addNewItem: function addNewItem() {
|
|
14868
|
+
if (this.radioCheckBoxGroup.filter(function (v) {
|
|
14869
|
+
return v.text === '';
|
|
14870
|
+
}).length === 0) {
|
|
14871
|
+
this.addBox();
|
|
14872
|
+
setTimeout(function () {
|
|
14873
|
+
var tableInfo = document.querySelector('.ant-table-body');
|
|
14874
|
+
if (tableInfo) {
|
|
14875
|
+
tableInfo.scrollTo(0, 10000);
|
|
14876
|
+
}
|
|
14877
|
+
}, 0);
|
|
14878
|
+
}
|
|
14879
|
+
},
|
|
14880
|
+
addBox: function addBox() {
|
|
14881
|
+
var box = (0,objectSpread2/* default */.Z)({}, defaultBox);
|
|
14882
|
+
box.id = this.controlType === 'RadioBox' ? this.vueController.generateID('RB') : this.vueController.generateID('CB');
|
|
14883
|
+
box.groupName = this.groupName;
|
|
14884
|
+
this.radioCheckBoxGroup.push(box);
|
|
14885
|
+
},
|
|
14886
|
+
deleteCurrentRow: function deleteCurrentRow(id) {
|
|
14887
|
+
var key = -1;
|
|
14888
|
+
this.radioCheckBoxGroup.filter(function (v, index) {
|
|
14889
|
+
if (v.id === id) key = index;
|
|
14890
|
+
});
|
|
14891
|
+
this.radioCheckBoxGroup.splice(key, 1);
|
|
14892
|
+
},
|
|
14893
|
+
sure: function sure() {
|
|
14894
|
+
var _this2 = this;
|
|
14895
|
+
var customProperty = this.getCustomProperty();
|
|
14896
|
+
if (this.boxGroup === 0) {
|
|
14897
|
+
this.radioCheckBox.customProperty = (0,objectSpread2/* default */.Z)({}, customProperty);
|
|
14898
|
+
this.radioCheckBox.readType ? this.radioCheckBox.readType = 1 : this.radioCheckBox.readType = 0;
|
|
14899
|
+
if (this.controlStatus === 'add') {
|
|
14900
|
+
this.vueController.insertRadioAndCheckBox(this.controlStatus, JSON.stringify(this.radioCheckBox));
|
|
14901
|
+
} else if (this.controlStatus === 'update') {
|
|
14902
|
+
this.vueController.updateRadioAndCheckBox(JSON.stringify(this.radioCheckBox));
|
|
14903
|
+
}
|
|
14904
|
+
} else if (this.boxGroup === 1 && this.controlStatus === 'add') {
|
|
14905
|
+
this.radioCheckBoxGroup.forEach(function (v) {
|
|
14906
|
+
v.groupName = _this2.groupName;
|
|
14907
|
+
v.customProperty = (0,objectSpread2/* default */.Z)({}, customProperty);
|
|
14908
|
+
v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
|
|
14909
|
+
v.groupHasOptions = _this2.groupHasOptions;
|
|
14910
|
+
v.isMutualExclusion = _this2.isMutualExclusion;
|
|
14911
|
+
v.readType = v.readType ? 1 : 0;
|
|
14912
|
+
if (v.id === _this2.tableRadio) v.isSelected = true;
|
|
14913
|
+
if (v.text == '') return; // 处理单复选文本值为空的情况
|
|
14914
|
+
_this2.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
|
|
14915
|
+
});
|
|
14916
|
+
} else if (this.boxGroup === 1 && this.controlStatus === 'update') {
|
|
14917
|
+
this.radioCheckBoxGroup.forEach(function (v) {
|
|
14918
|
+
var dataId = v.dataId;
|
|
14919
|
+
v.groupName = _this2.groupName;
|
|
14920
|
+
v.customProperty = (0,objectSpread2/* default */.Z)({}, customProperty);
|
|
14921
|
+
v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
|
|
14922
|
+
v.groupHasOptions = _this2.groupHasOptions;
|
|
14923
|
+
v.isMutualExclusion = _this2.isMutualExclusion;
|
|
14924
|
+
v.readType = v.readType ? 1 : 0;
|
|
14925
|
+
if (v.id === _this2.tableRadio) v.isSelected = true;
|
|
14926
|
+
if (v.text == '') return; // 处理单复选文本值为空的情况
|
|
14927
|
+
if (v.tableType == 'update') {
|
|
14928
|
+
delete v.tableType;
|
|
14929
|
+
delete v.dataId;
|
|
14930
|
+
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2.hoEditorFactoryId);
|
|
14931
|
+
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
14932
|
+
_this2.vueController.updateBoxProperty(radioAndCheckBoxs.get(dataId), JSON.stringify(v));
|
|
14933
|
+
// this.vueController.updateRadioAndCheckBox(JSON.stringify(v));
|
|
14934
|
+
} else {
|
|
14893
14935
|
_this2.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
|
|
14894
|
-
}
|
|
14895
|
-
}
|
|
14896
|
-
this.radioCheckBoxGroup.forEach(function (v) {
|
|
14897
|
-
var dataId = v.dataId;
|
|
14898
|
-
v.groupName = _this2.groupName;
|
|
14899
|
-
v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
|
|
14900
|
-
v.groupHasOptions = _this2.groupHasOptions;
|
|
14901
|
-
v.isMutualExclusion = _this2.isMutualExclusion;
|
|
14902
|
-
v.readType = v.readType ? 1 : 0;
|
|
14903
|
-
if (v.id === _this2.tableRadio) v.isSelected = true;
|
|
14904
|
-
if (v.text == '') return; // 处理单复选文本值为空的情况
|
|
14905
|
-
if (v.tableType == 'update') {
|
|
14906
|
-
delete v.tableType;
|
|
14907
|
-
delete v.dataId;
|
|
14908
|
-
var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(_this2.hoEditorFactoryId);
|
|
14909
|
-
var radioAndCheckBoxs = hoEditorFactory.docTree.radioAndCheckBoxsMap;
|
|
14910
|
-
_this2.vueController.updateBoxProperty(radioAndCheckBoxs.get(dataId), JSON.stringify(v));
|
|
14911
|
-
// this.vueController.updateRadioAndCheckBox(JSON.stringify(v));
|
|
14912
|
-
} else {
|
|
14913
|
-
_this2.vueController.insertRadioAndCheckBox('add', JSON.stringify(v));
|
|
14914
|
-
}
|
|
14915
|
-
});
|
|
14916
|
-
}
|
|
14917
|
-
this.handleClose();
|
|
14918
|
-
},
|
|
14919
|
-
// openDataSourceModal() {
|
|
14920
|
-
// this.hoEditorProvider.setIsDataSource(true);
|
|
14921
|
-
// },
|
|
14922
|
-
handleClose: function handleClose() {
|
|
14923
|
-
this.animationClassName = 'animation-out';
|
|
14924
|
-
this.$emit('closed');
|
|
14936
|
+
}
|
|
14937
|
+
});
|
|
14925
14938
|
}
|
|
14939
|
+
this.handleClose();
|
|
14940
|
+
},
|
|
14941
|
+
// openDataSourceModal() {
|
|
14942
|
+
// this.hoEditorProvider.setIsDataSource(true);
|
|
14943
|
+
// },
|
|
14944
|
+
handleClose: function handleClose() {
|
|
14945
|
+
this.animationClassName = 'animation-out';
|
|
14946
|
+
this.$emit('closed');
|
|
14926
14947
|
}
|
|
14927
|
-
});
|
|
14948
|
+
}), _name$data$inject$pro);
|
|
14928
14949
|
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=script&lang=js&
|
|
14929
14950
|
/* harmony default export */ var radioCheckBox_RadioCheckboxvue_type_script_lang_js_ = (RadioCheckboxvue_type_script_lang_js_);
|
|
14930
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14951
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=19e7dc64&prod&lang=less&
|
|
14931
14952
|
// extracted by mini-css-extract-plugin
|
|
14932
14953
|
|
|
14933
|
-
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=
|
|
14954
|
+
;// CONCATENATED MODULE: ./src/components/controls/radioCheckBox/RadioCheckbox.vue?vue&type=style&index=0&id=19e7dc64&prod&lang=less&
|
|
14934
14955
|
|
|
14935
14956
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
14936
14957
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -22553,7 +22574,7 @@ var component = (0,componentNormalizer/* default */.Z)(
|
|
|
22553
22574
|
|
|
22554
22575
|
/***/ }),
|
|
22555
22576
|
|
|
22556
|
-
/***/
|
|
22577
|
+
/***/ 34994:
|
|
22557
22578
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
22558
22579
|
|
|
22559
22580
|
"use strict";
|
|
@@ -22567,7 +22588,7 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
22567
22588
|
|
|
22568
22589
|
// EXTERNAL MODULE: ./node_modules/core-js/modules/es.function.name.js
|
|
22569
22590
|
var es_function_name = __webpack_require__(68309);
|
|
22570
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
22591
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js??clonedRuleSet-40.use[0]!./node_modules/@vue/vue-loader-v15/lib/loaders/templateLoader.js??ruleSet[1].rules[4]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=a413f77e&
|
|
22571
22592
|
|
|
22572
22593
|
var render = function render() {
|
|
22573
22594
|
var _vm = this,
|
|
@@ -23097,7 +23118,7 @@ var render = function render() {
|
|
|
23097
23118
|
};
|
|
23098
23119
|
var staticRenderFns = [];
|
|
23099
23120
|
|
|
23100
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=
|
|
23121
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=template&id=a413f77e&
|
|
23101
23122
|
|
|
23102
23123
|
// EXTERNAL MODULE: ./node_modules/ant-design-vue/es/message/style/index.js + 1 modules
|
|
23103
23124
|
var style = __webpack_require__(94310);
|
|
@@ -23424,10 +23445,10 @@ var VerifyTip = __webpack_require__(74618);
|
|
|
23424
23445
|
});
|
|
23425
23446
|
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=script&lang=js&
|
|
23426
23447
|
/* harmony default export */ var textDialog_TextDialogvue_type_script_lang_js_ = (TextDialogvue_type_script_lang_js_);
|
|
23427
|
-
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
23448
|
+
;// CONCATENATED MODULE: ./node_modules/mini-css-extract-plugin/dist/loader.js??clonedRuleSet-32.use[0]!./node_modules/css-loader/dist/cjs.js??clonedRuleSet-32.use[1]!./node_modules/@vue/vue-loader-v15/lib/loaders/stylePostLoader.js!./node_modules/postcss-loader/dist/cjs.js??clonedRuleSet-32.use[2]!./node_modules/less-loader/dist/cjs.js??clonedRuleSet-32.use[3]!./node_modules/@vue/vue-loader-v15/lib/index.js??vue-loader-options!./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=a413f77e&prod&lang=less&
|
|
23428
23449
|
// extracted by mini-css-extract-plugin
|
|
23429
23450
|
|
|
23430
|
-
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=
|
|
23451
|
+
;// CONCATENATED MODULE: ./src/components/controls/textDialog/TextDialog.vue?vue&type=style&index=0&id=a413f77e&prod&lang=less&
|
|
23431
23452
|
|
|
23432
23453
|
// EXTERNAL MODULE: ./node_modules/@vue/vue-loader-v15/lib/runtime/componentNormalizer.js
|
|
23433
23454
|
var componentNormalizer = __webpack_require__(70713);
|
|
@@ -49486,7 +49507,7 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49486
49507
|
/* harmony export */ });
|
|
49487
49508
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8495);
|
|
49488
49509
|
/* harmony import */ var ant_design_vue_es_message_style__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(94310);
|
|
49489
|
-
/* harmony import */ var
|
|
49510
|
+
/* harmony import */ var ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(40735);
|
|
49490
49511
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(27222);
|
|
49491
49512
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(70280);
|
|
49492
49513
|
/* harmony import */ var D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_createClass_js__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(66298);
|
|
@@ -49516,32 +49537,26 @@ var BaseNode = /*#__PURE__*/function () {
|
|
|
49516
49537
|
/* harmony import */ var core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_18___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_web_dom_collections_for_each_js__WEBPACK_IMPORTED_MODULE_18__);
|
|
49517
49538
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(68309);
|
|
49518
49539
|
/* harmony import */ var core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_function_name_js__WEBPACK_IMPORTED_MODULE_19__);
|
|
49519
|
-
/* harmony import */ var
|
|
49520
|
-
/* harmony import */ var
|
|
49521
|
-
/* harmony import */ var
|
|
49522
|
-
/* harmony import */ var
|
|
49523
|
-
/* harmony import */ var
|
|
49524
|
-
/* harmony import */ var
|
|
49525
|
-
/* harmony import */ var
|
|
49526
|
-
/* harmony import */ var
|
|
49527
|
-
/* harmony import */ var
|
|
49528
|
-
/* harmony import */ var
|
|
49529
|
-
/* harmony import */ var
|
|
49530
|
-
/* harmony import */ var
|
|
49531
|
-
/* harmony import */ var
|
|
49532
|
-
/* harmony import */ var
|
|
49533
|
-
/* harmony import */ var
|
|
49534
|
-
/* harmony import */ var
|
|
49535
|
-
/* harmony import */ var
|
|
49536
|
-
/* harmony import */ var
|
|
49537
|
-
/* harmony import */ var
|
|
49538
|
-
/* harmony import */ var
|
|
49539
|
-
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(5010);
|
|
49540
|
-
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(90161);
|
|
49541
|
-
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_40__ = __webpack_require__(27198);
|
|
49542
|
-
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_41__ = __webpack_require__(12659);
|
|
49543
|
-
|
|
49544
|
-
|
|
49540
|
+
/* harmony import */ var _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(78040);
|
|
49541
|
+
/* harmony import */ var _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_21__ = __webpack_require__(2613);
|
|
49542
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__ = __webpack_require__(74089);
|
|
49543
|
+
/* harmony import */ var _plugins_type__WEBPACK_IMPORTED_MODULE_23__ = __webpack_require__(41542);
|
|
49544
|
+
/* harmony import */ var _DocTree__WEBPACK_IMPORTED_MODULE_24__ = __webpack_require__(32629);
|
|
49545
|
+
/* harmony import */ var _DomRange__WEBPACK_IMPORTED_MODULE_25__ = __webpack_require__(94639);
|
|
49546
|
+
/* harmony import */ var _NodePosition__WEBPACK_IMPORTED_MODULE_26__ = __webpack_require__(42921);
|
|
49547
|
+
/* harmony import */ var _TableProperty__WEBPACK_IMPORTED_MODULE_27__ = __webpack_require__(79546);
|
|
49548
|
+
/* harmony import */ var _BaseCombineNode__WEBPACK_IMPORTED_MODULE_28__ = __webpack_require__(4938);
|
|
49549
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_29__ = __webpack_require__(62358);
|
|
49550
|
+
/* harmony import */ var _ControlNode__WEBPACK_IMPORTED_MODULE_30__ = __webpack_require__(91105);
|
|
49551
|
+
/* harmony import */ var _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__ = __webpack_require__(92501);
|
|
49552
|
+
/* harmony import */ var _MarkNode__WEBPACK_IMPORTED_MODULE_32__ = __webpack_require__(57727);
|
|
49553
|
+
/* harmony import */ var _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__ = __webpack_require__(67945);
|
|
49554
|
+
/* harmony import */ var _RectNode__WEBPACK_IMPORTED_MODULE_34__ = __webpack_require__(67800);
|
|
49555
|
+
/* harmony import */ var _SignNode__WEBPACK_IMPORTED_MODULE_35__ = __webpack_require__(24701);
|
|
49556
|
+
/* harmony import */ var _TableNode__WEBPACK_IMPORTED_MODULE_36__ = __webpack_require__(5010);
|
|
49557
|
+
/* harmony import */ var _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__ = __webpack_require__(90161);
|
|
49558
|
+
/* harmony import */ var _TextNode__WEBPACK_IMPORTED_MODULE_38__ = __webpack_require__(27198);
|
|
49559
|
+
/* harmony import */ var _QrcodeNode__WEBPACK_IMPORTED_MODULE_39__ = __webpack_require__(12659);
|
|
49545
49560
|
|
|
49546
49561
|
|
|
49547
49562
|
|
|
@@ -49612,7 +49627,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49612
49627
|
function CellNode(hoEditorFactoryID, rootNodes, pNode, row, copyCell, r, c, rowSpan, colSpan, cellProperty) {
|
|
49613
49628
|
var _this;
|
|
49614
49629
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_classCallCheck_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(this, CellNode);
|
|
49615
|
-
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode,
|
|
49630
|
+
_this = _super.call(this, hoEditorFactoryID, rootNodes, pNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntCell);
|
|
49616
49631
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_borderVisible", void 0);
|
|
49617
49632
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_crossLineType", void 0);
|
|
49618
49633
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_8__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_5__/* ["default"] */ .Z)(_this), "_rowSpan", void 0);
|
|
@@ -49789,7 +49804,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49789
49804
|
}, {
|
|
49790
49805
|
key: "initBlankDoc",
|
|
49791
49806
|
value: function initBlankDoc() {
|
|
49792
|
-
var aparagraph = new
|
|
49807
|
+
var aparagraph = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C(this._hoEditorFactoryID, this.rootNodes, this, 0);
|
|
49793
49808
|
aparagraph.node2DrawNode();
|
|
49794
49809
|
this._childNodes.push(aparagraph);
|
|
49795
49810
|
this._drawCell.drawLines.push(this._childNodes[0].drawlines[0]);
|
|
@@ -49799,7 +49814,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49799
49814
|
key: "placeDNodeAfterDTop",
|
|
49800
49815
|
value: function placeDNodeAfterDTop(droots, dTop) {
|
|
49801
49816
|
var paragraphNode = this.childNodes[0];
|
|
49802
|
-
var hoEditorFactory =
|
|
49817
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
49803
49818
|
var aline = paragraphNode.drawlines[0];
|
|
49804
49819
|
hoEditorFactory.drawTree.drawDocInsert(paragraphNode, 0, paragraphNode, -1, hoEditorFactory.docTree.getNodeLastPath(this));
|
|
49805
49820
|
if (this._drawCell.drawLines.length > 0) {
|
|
@@ -49837,7 +49852,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49837
49852
|
value: function updateWidth(awidth) {
|
|
49838
49853
|
this.drawCell.dWidth = awidth;
|
|
49839
49854
|
// (this.childNodes[0] as ParagraphNode).drawlines[0].dWidth = awidth;
|
|
49840
|
-
|
|
49855
|
+
_HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID).drawTree.clearDrawContainer(this.drawCell.drawLines);
|
|
49841
49856
|
this._drawCell.drawLines.length = 0;
|
|
49842
49857
|
this.childNodes[0].node2DrawNode();
|
|
49843
49858
|
this.drawCell.drawLines.push(this.childNodes[0].drawlines[0]);
|
|
@@ -49853,12 +49868,12 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49853
49868
|
}, {
|
|
49854
49869
|
key: "redrawCell",
|
|
49855
49870
|
value: function redrawCell(repaintInmediate, action) {
|
|
49856
|
-
var hoEditorFactory =
|
|
49871
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
49857
49872
|
if (repaintInmediate) {
|
|
49858
|
-
var dcChangeEvent = new
|
|
49859
|
-
if (action ===
|
|
49873
|
+
var dcChangeEvent = new _editor_events_NodeChangeEvent__WEBPACK_IMPORTED_MODULE_21__/* .NodeChangeEvent */ .G(this._hoEditorFactoryID, action, hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]), hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]));
|
|
49874
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction */ .gk.daDelete || action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction */ .gk.daModifyStyle) {
|
|
49860
49875
|
dcChangeEvent.oldEndPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
49861
|
-
if (action ===
|
|
49876
|
+
if (action === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .DocAction */ .gk.daDelete) {
|
|
49862
49877
|
dcChangeEvent.oldDrawTreeLines = this._table.drawTable.getCellsDrawTreeLines([this]);
|
|
49863
49878
|
} else {
|
|
49864
49879
|
dcChangeEvent.oldDrawLines = this._table.drawTable.getCellsDrawLines([this]);
|
|
@@ -49909,7 +49924,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49909
49924
|
aHeight += this._table.rowInfos[_i2].rowHeight;
|
|
49910
49925
|
}
|
|
49911
49926
|
aHeight += this._rowSpan;
|
|
49912
|
-
this._drawCell = new
|
|
49927
|
+
this._drawCell = new _editor_draw_drawNode_DrawCell__WEBPACK_IMPORTED_MODULE_20__/* .DrawCell */ .y(this._hoEditorFactoryID, this, 0, aWidth, aHeight);
|
|
49913
49928
|
this._drawNodes.push(this._drawCell);
|
|
49914
49929
|
// this._drawCell.drawLines.push(
|
|
49915
49930
|
// (this._childNodes[0] as ParagraphNode).drawlines[0]
|
|
@@ -49927,7 +49942,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49927
49942
|
}, {
|
|
49928
49943
|
key: "range",
|
|
49929
49944
|
value: function range() {
|
|
49930
|
-
var hoEditorFactory =
|
|
49945
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
49931
49946
|
var spath = hoEditorFactory.docTree.getNodeFirstPath(this);
|
|
49932
49947
|
var epath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
49933
49948
|
return {
|
|
@@ -49945,9 +49960,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49945
49960
|
for (var i = 0; i < this.childNodes.length; i++) {
|
|
49946
49961
|
var node = this.childNodes[i];
|
|
49947
49962
|
var nodeJson = void 0;
|
|
49948
|
-
if (node instanceof
|
|
49963
|
+
if (node instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh || node instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__/* .TextInputFieldNode */ .re) {
|
|
49949
49964
|
nodeJson = node.node2Json(undefined, isCopy, type, clearSign);
|
|
49950
|
-
} else if (node instanceof
|
|
49965
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
49951
49966
|
if (clearSign) {
|
|
49952
49967
|
if (node.isTemplate) {
|
|
49953
49968
|
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
@@ -49956,11 +49971,11 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
49956
49971
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
49957
49972
|
}
|
|
49958
49973
|
} else {
|
|
49959
|
-
if (node instanceof
|
|
49974
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
49960
49975
|
if (node.text !== "") {
|
|
49961
49976
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
49962
49977
|
}
|
|
49963
|
-
} else if (node instanceof
|
|
49978
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_39__/* .QrcodeNode */ .d || node instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w && node.readType === 1) {
|
|
49964
49979
|
nodeJson = node.node2Json(undefined, isCopy, undefined, clearSign);
|
|
49965
49980
|
} else {
|
|
49966
49981
|
nodeJson = node.node2Json(undefined, isCopy);
|
|
@@ -50060,7 +50075,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50060
50075
|
}
|
|
50061
50076
|
var cellText = this.getCellText(clearSign);
|
|
50062
50077
|
var retObj = {
|
|
50063
|
-
nodeType:
|
|
50078
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq[this.nodeType],
|
|
50064
50079
|
//borderVisible: this.borderVisible.toString(),
|
|
50065
50080
|
//crossLineType: CrossLineType[this.crossLineType],
|
|
50066
50081
|
//rowSpan: this.rowSpan,
|
|
@@ -50119,22 +50134,22 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50119
50134
|
if (!bNormalized) {
|
|
50120
50135
|
newRange = arange.normalize();
|
|
50121
50136
|
}
|
|
50122
|
-
var hoEditorFactory =
|
|
50137
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50123
50138
|
var startPath = hoEditorFactory.docTree.getNodeFirstPath(this.childNodes[0]);
|
|
50124
50139
|
var lastPath = hoEditorFactory.docTree.getNodeLastPath(this.childNodes[this.childNodes.length - 1]);
|
|
50125
|
-
if (
|
|
50126
|
-
ret =
|
|
50140
|
+
if (_NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition */ .F.pathCanCompare(newRange.startPath, startPath)) {
|
|
50141
|
+
ret = _NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition */ .F.treePathCompare(startPath, newRange.startPath) >= 0 && _NodePosition__WEBPACK_IMPORTED_MODULE_26__/* .NodePosition */ .F.treePathCompare(lastPath, arange.endPath) <= 0;
|
|
50127
50142
|
}
|
|
50128
50143
|
return ret;
|
|
50129
50144
|
}
|
|
50130
50145
|
}, {
|
|
50131
50146
|
key: "getNodesForUpdate",
|
|
50132
50147
|
value: function getNodesForUpdate() {
|
|
50133
|
-
var hoEditorFactory =
|
|
50148
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50134
50149
|
var ret = new Array();
|
|
50135
50150
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
50136
|
-
if (this._childNodes[i] instanceof
|
|
50137
|
-
var domRange = new
|
|
50151
|
+
if (this._childNodes[i] instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh) {
|
|
50152
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(this._childNodes[i]), hoEditorFactory.docTree.getNodeLastPath(this._childNodes[i]));
|
|
50138
50153
|
ret = ret.concat(this._childNodes[i].getSelectNodesForUpdate(domRange, true));
|
|
50139
50154
|
} else ret.push(this._childNodes[i]);
|
|
50140
50155
|
}
|
|
@@ -50143,14 +50158,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50143
50158
|
}, {
|
|
50144
50159
|
key: "getSelectNodes",
|
|
50145
50160
|
value: function getSelectNodes(bSplitTextInputNode) {
|
|
50146
|
-
var hoEditorFactory =
|
|
50161
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50147
50162
|
var ret = new Array();
|
|
50148
50163
|
for (var i = 0; i < this._childNodes.length; i++) {
|
|
50149
50164
|
var aNode = this._childNodes[i];
|
|
50150
|
-
if (aNode instanceof
|
|
50151
|
-
var domRange = new
|
|
50165
|
+
if (aNode instanceof _TableNode__WEBPACK_IMPORTED_MODULE_36__/* .TableNode */ .Fh) {
|
|
50166
|
+
var domRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, hoEditorFactory.docTree.getNodeFirstPath(aNode), hoEditorFactory.docTree.getNodeLastPath(aNode));
|
|
50152
50167
|
ret = ret.concat(aNode.getSelectNodes(domRange, true, bSplitTextInputNode));
|
|
50153
|
-
} else if (bSplitTextInputNode && aNode instanceof
|
|
50168
|
+
} else if (bSplitTextInputNode && aNode instanceof _TextInputFieldNode__WEBPACK_IMPORTED_MODULE_37__/* .TextInputFieldNode */ .re) {
|
|
50154
50169
|
ret = ret.concat(aNode.getAllChildNodes());
|
|
50155
50170
|
} else ret.push(this._childNodes[i]);
|
|
50156
50171
|
}
|
|
@@ -50173,17 +50188,17 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50173
50188
|
var loopChildNodes = function loopChildNodes(node) {
|
|
50174
50189
|
var nodes = node.childNodes.slice(1);
|
|
50175
50190
|
nodes.forEach(function (childNode) {
|
|
50176
|
-
if (childNode instanceof
|
|
50191
|
+
if (childNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
50177
50192
|
cellText += childNode.text;
|
|
50178
|
-
} else if (childNode instanceof
|
|
50179
|
-
if (childNode instanceof
|
|
50193
|
+
} else if (childNode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_30__/* .ControlNode */ .w) {
|
|
50194
|
+
if (childNode instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_31__/* .DateTimeNode */ .Z && (isClearValue || childNode.text == childNode.name)) {
|
|
50180
50195
|
cellText += "";
|
|
50181
50196
|
} else {
|
|
50182
50197
|
cellText += childNode.text;
|
|
50183
50198
|
}
|
|
50184
|
-
} else if (childNode instanceof
|
|
50199
|
+
} else if (childNode instanceof _BaseCombineNode__WEBPACK_IMPORTED_MODULE_28__/* .BaseCombineNode */ .V) {
|
|
50185
50200
|
loopChildNodes(childNode);
|
|
50186
|
-
} else if (childNode instanceof
|
|
50201
|
+
} else if (childNode instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C) {
|
|
50187
50202
|
cellText += '\n';
|
|
50188
50203
|
}
|
|
50189
50204
|
});
|
|
@@ -50195,19 +50210,19 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50195
50210
|
key: "setCellText",
|
|
50196
50211
|
value: function setCellText(value, isPaste) {
|
|
50197
50212
|
var colIndex = this.row.indexOf(this);
|
|
50198
|
-
var hoEditorFactory =
|
|
50213
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50199
50214
|
var colProperty = this.table.colInfos[colIndex].colProperty;
|
|
50200
|
-
if (colProperty.editorProperty ===
|
|
50201
|
-
if (!(0,
|
|
50202
|
-
|
|
50215
|
+
if (colProperty.editorProperty === _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .EditorProperty */ .YS.Number) {
|
|
50216
|
+
if (!(0,_plugins_type__WEBPACK_IMPORTED_MODULE_23__/* .isNumber */ .hj)(value)) {
|
|
50217
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("输入值非数值类型,请重输!");
|
|
50203
50218
|
return;
|
|
50204
50219
|
}
|
|
50205
50220
|
if (Number(value) > colProperty.numberProperty.maxNumVal) {
|
|
50206
|
-
|
|
50221
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("输入值超出最大允许值,请重输!");
|
|
50207
50222
|
return;
|
|
50208
50223
|
}
|
|
50209
50224
|
if (Number(value) < colProperty.numberProperty.minNumVal) {
|
|
50210
|
-
|
|
50225
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("输入值低于最小允许值,请重输!");
|
|
50211
50226
|
return;
|
|
50212
50227
|
}
|
|
50213
50228
|
}
|
|
@@ -50231,7 +50246,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50231
50246
|
} else {
|
|
50232
50247
|
if (this.table.tableProperty.isAutoChangeLine) {
|
|
50233
50248
|
var curDomRange = hoEditorFactory.docTree.curDomRange.normalize();
|
|
50234
|
-
if (curDomRange.npEnd.node instanceof
|
|
50249
|
+
if (curDomRange.npEnd.node instanceof _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C) {
|
|
50235
50250
|
startPath = curDomRange.startPath;
|
|
50236
50251
|
endPath = startPath;
|
|
50237
50252
|
} else {
|
|
@@ -50243,7 +50258,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50243
50258
|
endPath = hoEditorFactory.docTree.getNodeLastPath(this);
|
|
50244
50259
|
}
|
|
50245
50260
|
}
|
|
50246
|
-
var aRange = new
|
|
50261
|
+
var aRange = new _DomRange__WEBPACK_IMPORTED_MODULE_25__/* .DomRange */ .a(this._hoEditorFactoryID, startPath, endPath);
|
|
50247
50262
|
hoEditorFactory.docController.deleteRange(aRange, true);
|
|
50248
50263
|
hoEditorFactory.docController.insertPlainTextAfterPath(startPath, value);
|
|
50249
50264
|
}
|
|
@@ -50266,14 +50281,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50266
50281
|
if (colProperty && colProperty.downListProperty) {
|
|
50267
50282
|
var isAllowDel = colProperty.downListProperty.isAllowDel;
|
|
50268
50283
|
if (isAllowDel !== undefined && !isAllowDel) {
|
|
50269
|
-
|
|
50284
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("不允许删除!");
|
|
50270
50285
|
return false;
|
|
50271
50286
|
}
|
|
50272
50287
|
}
|
|
50273
50288
|
if (cellProperty && cellProperty.downListProperty) {
|
|
50274
50289
|
var _isAllowDel = cellProperty.downListProperty.isAllowDel;
|
|
50275
50290
|
if (_isAllowDel !== undefined && !_isAllowDel) {
|
|
50276
|
-
|
|
50291
|
+
ant_design_vue_es_message__WEBPACK_IMPORTED_MODULE_40__/* ["default"] */ .Z.warn("不允许删除!");
|
|
50277
50292
|
return false;
|
|
50278
50293
|
}
|
|
50279
50294
|
}
|
|
@@ -50282,23 +50297,23 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50282
50297
|
}, {
|
|
50283
50298
|
key: "needPaintLineGrid",
|
|
50284
50299
|
value: function needPaintLineGrid() {
|
|
50285
|
-
var hoEditorFactory =
|
|
50300
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
50286
50301
|
var _this$table$getCellIn = this.table.getCellInfos(this),
|
|
50287
50302
|
_this$table$getCellIn2 = (0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_slicedToArray_js__WEBPACK_IMPORTED_MODULE_2__/* ["default"] */ .Z)(_this$table$getCellIn, 2),
|
|
50288
50303
|
r = _this$table$getCellIn2[0],
|
|
50289
50304
|
c = _this$table$getCellIn2[1];
|
|
50290
|
-
return (hoEditorFactory.docTree.docProperty.type ===
|
|
50305
|
+
return (hoEditorFactory.docTree.docProperty.type === _DocTree__WEBPACK_IMPORTED_MODULE_24__/* .EmrType */ .Fr.etForm || this.table.tableProperty.isAutoChangeLine) && !this.table.rowInfos[r].rowProperty.repeatAsTitleAtPageTop && this.cellProperty.align !== _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .VAlign */ .TR.vacenter;
|
|
50291
50306
|
}
|
|
50292
50307
|
}], [{
|
|
50293
50308
|
key: "json2Node",
|
|
50294
50309
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, tableNode, aRow, rowsMap, rows,
|
|
50295
50310
|
//defaultCellProperty: any,
|
|
50296
50311
|
isPaste, isClearSign) {
|
|
50297
|
-
var hoEditorFactory =
|
|
50312
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_22__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
50298
50313
|
var rowNo = parseInt(json.rowNo);
|
|
50299
50314
|
var colNo = parseInt(json.colNo);
|
|
50300
50315
|
aRow = rowsMap.get(rowNo);
|
|
50301
|
-
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new
|
|
50316
|
+
var cellNode = new CellNode(hoEditorFactoryID, rootNodes, tableNode, aRow, undefined, rowNo, colNo, 1, 1, new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .CellProperty */ .$W(""));
|
|
50302
50317
|
var cellProperty = json.cellProperty;
|
|
50303
50318
|
// if (cellProperty === "") {
|
|
50304
50319
|
// cellProperty = JSON.parse("{}");
|
|
@@ -50331,9 +50346,9 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50331
50346
|
target[value] = Number(source[value]);
|
|
50332
50347
|
} else {
|
|
50333
50348
|
if (value === "dateTimeProperty") {
|
|
50334
|
-
cellNode.cellProperty.dateTimeProperty = new
|
|
50349
|
+
cellNode.cellProperty.dateTimeProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .DateTimeProperty */ .Ks(source[value]);
|
|
50335
50350
|
} else if (value === "downListProperty") {
|
|
50336
|
-
cellNode.cellProperty.downListProperty = new
|
|
50351
|
+
cellNode.cellProperty.downListProperty = new _TableProperty__WEBPACK_IMPORTED_MODULE_27__/* .ColDownListProperty */ .cW(source[value]);
|
|
50337
50352
|
} else {
|
|
50338
50353
|
target[value] = source[value];
|
|
50339
50354
|
}
|
|
@@ -50370,7 +50385,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50370
50385
|
for (var j = 1; j < item.length; j++) {
|
|
50371
50386
|
var convertNode = hoEditorFactory.structureConvert.convertNode(item[j], rootNodes, cellNode, undefined, isPaste, isClearSign);
|
|
50372
50387
|
if (convertNode) {
|
|
50373
|
-
if (convertNode instanceof
|
|
50388
|
+
if (convertNode instanceof _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R) {
|
|
50374
50389
|
if (convertNode.text !== "" && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '' && convertNode.text !== '') {
|
|
50375
50390
|
cellNode.addChild(convertNode);
|
|
50376
50391
|
}
|
|
@@ -50379,7 +50394,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50379
50394
|
}
|
|
50380
50395
|
} else {
|
|
50381
50396
|
if (isClearSign) {
|
|
50382
|
-
if (convertNode instanceof
|
|
50397
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
50383
50398
|
if (convertNode.isTemplate && !(convertNode.number == 0 && convertNode.type == 0 && convertNode.name == "")) {
|
|
50384
50399
|
cellNode.addChild(convertNode);
|
|
50385
50400
|
}
|
|
@@ -50387,7 +50402,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50387
50402
|
cellNode.addChild(convertNode);
|
|
50388
50403
|
}
|
|
50389
50404
|
} else {
|
|
50390
|
-
if (convertNode instanceof
|
|
50405
|
+
if (convertNode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_35__/* .SignNode */ .N) {
|
|
50391
50406
|
if (!(convertNode.number == 0 && convertNode.type == 0 && convertNode.name == "")) {
|
|
50392
50407
|
cellNode.addChild(convertNode);
|
|
50393
50408
|
}
|
|
@@ -50397,12 +50412,15 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50397
50412
|
}
|
|
50398
50413
|
}
|
|
50399
50414
|
}
|
|
50400
|
-
if (convertNode instanceof
|
|
50415
|
+
if (convertNode instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_32__/* .MarkNode */ .j) {
|
|
50401
50416
|
hoEditorFactory.structureConvert._markNodes.push(convertNode);
|
|
50402
50417
|
}
|
|
50403
|
-
if (convertNode instanceof
|
|
50404
|
-
|
|
50405
|
-
|
|
50418
|
+
// if (convertNode instanceof SignNode && ((convertNode.imgSrc != ""
|
|
50419
|
+
// && ((hoEditorFactory.superiorSigns.length > 0
|
|
50420
|
+
// && hoEditorFactory.superiorSigns.includes((convertNode.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
|
|
50421
|
+
// || hoEditorFactory.lockContent)) {
|
|
50422
|
+
// hoEditorFactory.structureConvert._superiorSign[0] = convertNode;
|
|
50423
|
+
// }
|
|
50406
50424
|
}
|
|
50407
50425
|
} else {
|
|
50408
50426
|
cellNode.childNodes[0].paraNo = Number(item.styleIndex);
|
|
@@ -50443,14 +50461,14 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50443
50461
|
cellNode.childNodes[0].styleIndex = Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0);
|
|
50444
50462
|
if (text !== "") {
|
|
50445
50463
|
var textArr = text.split("\n");
|
|
50446
|
-
var firstTextNode = new
|
|
50464
|
+
var firstTextNode = new _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, cellNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, textArr[0], Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0));
|
|
50447
50465
|
cellNode.addChild(firstTextNode);
|
|
50448
50466
|
if (textArr.length > 1) {
|
|
50449
50467
|
for (var i = 1; i < textArr.length; i++) {
|
|
50450
|
-
var paragraNode = new
|
|
50468
|
+
var paragraNode = new _ParagraphNode__WEBPACK_IMPORTED_MODULE_33__/* .ParagraphNode */ .C(hoEditorFactoryID, rootNodes, cellNode, Number(paraNode.styleIndex));
|
|
50451
50469
|
cellNode.addChild(paragraNode);
|
|
50452
50470
|
if (textArr[i] !== "") {
|
|
50453
|
-
var textNode = new
|
|
50471
|
+
var textNode = new _TextNode__WEBPACK_IMPORTED_MODULE_38__/* .TextNode */ .R(hoEditorFactoryID, rootNodes, cellNode, _BaseNode__WEBPACK_IMPORTED_MODULE_29__/* .NodeType */ .Jq.ntText, textArr[i], Number(paraNode.textStyleNo ? paraNode.textStyleNo : 0));
|
|
50454
50472
|
cellNode.addChild(textNode);
|
|
50455
50473
|
}
|
|
50456
50474
|
}
|
|
@@ -50466,7 +50484,7 @@ var CellNode = /*#__PURE__*/function (_RectNode) {
|
|
|
50466
50484
|
}
|
|
50467
50485
|
}]);
|
|
50468
50486
|
return CellNode;
|
|
50469
|
-
}(
|
|
50487
|
+
}(_RectNode__WEBPACK_IMPORTED_MODULE_34__/* .RectNode */ .z);
|
|
50470
50488
|
|
|
50471
50489
|
/***/ }),
|
|
50472
50490
|
|
|
@@ -52014,7 +52032,7 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
52014
52032
|
}
|
|
52015
52033
|
}, {
|
|
52016
52034
|
key: "node2Json",
|
|
52017
|
-
value: function node2Json(range, isCopy, type) {
|
|
52035
|
+
value: function node2Json(range, isCopy, type, clearSign) {
|
|
52018
52036
|
var downLists = {
|
|
52019
52037
|
item: this.downListContent
|
|
52020
52038
|
};
|
|
@@ -52065,9 +52083,9 @@ var DownListNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
52065
52083
|
identifierFormat: this.identifierFormat,
|
|
52066
52084
|
//isSynchro: this.isSynchro,
|
|
52067
52085
|
name: this.name,
|
|
52068
|
-
text: this.keyValue == "" ? "" : this.text,
|
|
52069
|
-
keyValue: this.keyValue,
|
|
52070
|
-
value: this.value,
|
|
52086
|
+
text: clearSign ? "" : this.keyValue == "" ? "" : this.text,
|
|
52087
|
+
keyValue: clearSign ? "" : this.keyValue,
|
|
52088
|
+
value: clearSign ? "" : this.value,
|
|
52071
52089
|
//title: this.title,
|
|
52072
52090
|
styleIndex: this.styleIndex,
|
|
52073
52091
|
//tipText: this.tipText,
|
|
@@ -57945,7 +57963,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
57945
57963
|
}
|
|
57946
57964
|
}, {
|
|
57947
57965
|
key: "node2Json",
|
|
57948
|
-
value: function node2Json(range, isCopy, type) {
|
|
57966
|
+
value: function node2Json(range, isCopy, type, clearSign) {
|
|
57949
57967
|
//let name = "";
|
|
57950
57968
|
//if (this.controlStyle === "RadioBox") name = "RB";
|
|
57951
57969
|
//if (this.controlStyle === "CheckBox") name = "CB";
|
|
@@ -58005,7 +58023,7 @@ var RadioAndCheckBoxNode = /*#__PURE__*/function (_ControlNode) {
|
|
|
58005
58023
|
//tipText: this.tipText,
|
|
58006
58024
|
//isAllowDelete: this.isAllowDelete,
|
|
58007
58025
|
groupName: this.groupName,
|
|
58008
|
-
isSelected: this.isSelected,
|
|
58026
|
+
isSelected: clearSign ? false : this.isSelected,
|
|
58009
58027
|
//boxAlign: this.boxAlign,
|
|
58010
58028
|
//numericValue: this.numericValue,
|
|
58011
58029
|
//additionalData: this.additionalData,
|
|
@@ -58697,10 +58715,16 @@ var SeparateCharNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58697
58715
|
/* harmony import */ var core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_13___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_splice_js__WEBPACK_IMPORTED_MODULE_13__);
|
|
58698
58716
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14__ = __webpack_require__(9653);
|
|
58699
58717
|
/* harmony import */ var core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_number_constructor_js__WEBPACK_IMPORTED_MODULE_14__);
|
|
58700
|
-
/* harmony import */ var
|
|
58701
|
-
/* harmony import */ var
|
|
58702
|
-
/* harmony import */ var
|
|
58703
|
-
/* harmony import */ var
|
|
58718
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_15__ = __webpack_require__(26699);
|
|
58719
|
+
/* harmony import */ var core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_15___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_array_includes_js__WEBPACK_IMPORTED_MODULE_15__);
|
|
58720
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_16__ = __webpack_require__(32023);
|
|
58721
|
+
/* harmony import */ var core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_16___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_es_string_includes_js__WEBPACK_IMPORTED_MODULE_16__);
|
|
58722
|
+
/* harmony import */ var _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_17__ = __webpack_require__(75638);
|
|
58723
|
+
/* harmony import */ var _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__ = __webpack_require__(51760);
|
|
58724
|
+
/* harmony import */ var _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__ = __webpack_require__(74089);
|
|
58725
|
+
/* harmony import */ var _BaseNode__WEBPACK_IMPORTED_MODULE_20__ = __webpack_require__(62358);
|
|
58726
|
+
|
|
58727
|
+
|
|
58704
58728
|
|
|
58705
58729
|
|
|
58706
58730
|
|
|
@@ -58789,7 +58813,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58789
58813
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_otherProperties", void 0);
|
|
58790
58814
|
//其它属性{"isDisplayTitle":true,"title":"职称","isDisplayTime":true,"time":"签名日期","timePosition":"1"}
|
|
58791
58815
|
(0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_6__/* ["default"] */ .Z)((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_assertThisInitialized_js__WEBPACK_IMPORTED_MODULE_3__/* ["default"] */ .Z)(_this), "_associatedElement", "");
|
|
58792
|
-
var hoEditorFactory =
|
|
58816
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(_this._hoEditorFactoryID);
|
|
58793
58817
|
//this._id = hoEditorFactory.gernerateCode.generateID("SIGN");
|
|
58794
58818
|
_this.number = number;
|
|
58795
58819
|
_this._type = type;
|
|
@@ -58808,7 +58832,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
58808
58832
|
if (dataId) {
|
|
58809
58833
|
_this.dataId = dataId;
|
|
58810
58834
|
} else {
|
|
58811
|
-
_this.dataId =
|
|
58835
|
+
_this.dataId = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID).gernerateCode.generateID("Sign");
|
|
58812
58836
|
}
|
|
58813
58837
|
if (fingerPrintSrc) {
|
|
58814
58838
|
_this._fingerPrintSrc = fingerPrintSrc;
|
|
@@ -59075,7 +59099,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59075
59099
|
set: function set(value) {
|
|
59076
59100
|
if (this._styleIndex !== value) {
|
|
59077
59101
|
this._styleIndex = value;
|
|
59078
|
-
var hoEditorFactory =
|
|
59102
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
59079
59103
|
if (!hoEditorFactory.docTree.isSaveValid) {
|
|
59080
59104
|
this.node2DrawNodeRange(0, 0);
|
|
59081
59105
|
}
|
|
@@ -59132,7 +59156,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59132
59156
|
key: "node2DrawNodeRange",
|
|
59133
59157
|
value: function node2DrawNodeRange(startIndex, endIndex) {
|
|
59134
59158
|
this._drawNodes.length = 0;
|
|
59135
|
-
var hoEditorFactory =
|
|
59159
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
59136
59160
|
var textStyle = hoEditorFactory.docTree.styles[this.styleIndex];
|
|
59137
59161
|
var cbStyle = hoEditorFactory.docTree.styles[0].combineStyle;
|
|
59138
59162
|
if (textStyle) {
|
|
@@ -59140,7 +59164,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59140
59164
|
} else {
|
|
59141
59165
|
this.styleIndex = 0;
|
|
59142
59166
|
}
|
|
59143
|
-
var dNode = new
|
|
59167
|
+
var dNode = new _editor_draw_drawNode_DrawSignNode__WEBPACK_IMPORTED_MODULE_17__/* .DrawSignNode */ .V(this._hoEditorFactoryID, this._rootPath, this, this.number, this.type, this.name, this.imgSrc, this.imgWidth, this.imgHeight, cbStyle, this.fingerPrintSrc, this.fingerPosition, this.attribute, this.customProperty, this.connectChar, this.otherProperties);
|
|
59144
59168
|
this._drawNodes.push(dNode);
|
|
59145
59169
|
}
|
|
59146
59170
|
/**
|
|
@@ -59158,9 +59182,9 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59158
59182
|
if (startIndex >= 1) {
|
|
59159
59183
|
return dline;
|
|
59160
59184
|
}
|
|
59161
|
-
var hoEditorFactory =
|
|
59185
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(this._hoEditorFactoryID);
|
|
59162
59186
|
var isDisPlay = true;
|
|
59163
|
-
if (hoEditorFactory.drawTree.paintStatus ===
|
|
59187
|
+
if (hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__/* .PaintState */ .Dh.psPreview || hoEditorFactory.drawTree.paintStatus === _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__/* .PaintState */ .Dh.psPrint) {
|
|
59164
59188
|
isDisPlay = false;
|
|
59165
59189
|
}
|
|
59166
59190
|
var drawNode = this._drawNodes[0];
|
|
@@ -59171,7 +59195,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59171
59195
|
drawNode.children.splice(i, 1);
|
|
59172
59196
|
}
|
|
59173
59197
|
}
|
|
59174
|
-
if (hoEditorFactory.drawTree.paintStatus !==
|
|
59198
|
+
if (hoEditorFactory.drawTree.paintStatus !== _editor_draw_drawTree_DrawTree__WEBPACK_IMPORTED_MODULE_18__/* .PaintState */ .Dh.psReview) {
|
|
59175
59199
|
if (this.imgSrc === "" && this.fingerPrintSrc === "") {
|
|
59176
59200
|
// for (let i = drawNode.children.length - 1; i >= 0; i--) {
|
|
59177
59201
|
// if (drawNode.children[i].name === "name") {
|
|
@@ -59218,7 +59242,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59218
59242
|
key: "node2Json",
|
|
59219
59243
|
value: function node2Json(range, isCopy, type, clearSign) {
|
|
59220
59244
|
var retObj = {
|
|
59221
|
-
nodeType:
|
|
59245
|
+
nodeType: _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq[this.nodeType],
|
|
59222
59246
|
number: clearSign ? 0 : this.number,
|
|
59223
59247
|
type: clearSign ? 0 : this.type,
|
|
59224
59248
|
dataId: this.dataId,
|
|
@@ -59264,8 +59288,8 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59264
59288
|
}], [{
|
|
59265
59289
|
key: "json2Node",
|
|
59266
59290
|
value: function json2Node(hoEditorFactoryID, json, rootNodes, pNode, isClearSign, isPaste) {
|
|
59291
|
+
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_19__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
59267
59292
|
if (isPaste) {
|
|
59268
|
-
var hoEditorFactory = _HOEditorFactorys__WEBPACK_IMPORTED_MODULE_17__/* .HOEditorFactorys */ .b.instance().getFactory(hoEditorFactoryID);
|
|
59269
59293
|
json.dataId = hoEditorFactory.gernerateCode.generateID("Sign");
|
|
59270
59294
|
}
|
|
59271
59295
|
//const width = Number(json.width);
|
|
@@ -59281,7 +59305,10 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59281
59305
|
if ((0,D_project_go_test_createJS_hoeditor_web_node_modules_babel_runtime_helpers_esm_typeof_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(json.fingerPrintSrc) == 'object') {
|
|
59282
59306
|
json.fingerPrintSrc = '';
|
|
59283
59307
|
}
|
|
59284
|
-
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null,
|
|
59308
|
+
var signNode = new SignNode(hoEditorFactoryID, rootNodes, pNode ? pNode : null, _BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .NodeType */ .Jq.ntSign, number, type, json.name, json.signType ? Number(json.signType) : 0, json.signFormat ? json.signFormat : "签名医师", isClearSign ? "" : json.signor, isClearSign ? "" : json.signTime, json.signTimeFormat ? json.signTimeFormat : "yyyy-MM-dd HH:mm", isClearSign ? "" : json.imgSrc, imgWidth, imgHeight, isClearSign ? undefined : json.customProperty, isTemplate, json.styleIndex ? Number(json.styleIndex) : undefined, json.connectMode, isFront, allowEditSignTime, isClearSign ? "" : json.fingerPrintSrc, isClearSign ? 0 : json.fingerPosition, attribute, json.connectChar, json.otherProperties, json.dataId, json.associatedElement);
|
|
59309
|
+
if (signNode.imgSrc != "" && (hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes(signNode.customProperty.bce01) || hoEditorFactory.forbidEditBeforeSign) || hoEditorFactory.lockContent) {
|
|
59310
|
+
hoEditorFactory.structureConvert._superiorSign[0] = signNode;
|
|
59311
|
+
}
|
|
59285
59312
|
// if (json.id != "") {
|
|
59286
59313
|
// signNode.id = json.id;
|
|
59287
59314
|
// }
|
|
@@ -59291,7 +59318,7 @@ var SignNode = /*#__PURE__*/function (_BaseNode) {
|
|
|
59291
59318
|
}
|
|
59292
59319
|
}]);
|
|
59293
59320
|
return SignNode;
|
|
59294
|
-
}(
|
|
59321
|
+
}(_BaseNode__WEBPACK_IMPORTED_MODULE_20__/* .BaseNode */ .Hd);
|
|
59295
59322
|
|
|
59296
59323
|
/***/ }),
|
|
59297
59324
|
|
|
@@ -63752,7 +63779,7 @@ var TableNode = /*#__PURE__*/function (_RectNode) {
|
|
|
63752
63779
|
/*
|
|
63753
63780
|
* @Author: your name
|
|
63754
63781
|
* @Date: 2020-11-03 15:17:54
|
|
63755
|
-
* @LastEditTime: 2024-
|
|
63782
|
+
* @LastEditTime: 2024-04-01 15:40:59
|
|
63756
63783
|
* @LastEditors: liyanan 2441631434@qq.com
|
|
63757
63784
|
* @Description: In User Settings Edit
|
|
63758
63785
|
* @FilePath: \hoeditor-web\src\editor\dom\treeNode\TextInputFieldNode.ts
|
|
@@ -65437,32 +65464,52 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65437
65464
|
value: function node2Json(range, isCopy, type, clearSign) {
|
|
65438
65465
|
var childArray = new Array();
|
|
65439
65466
|
if (!range) {
|
|
65440
|
-
|
|
65441
|
-
|
|
65442
|
-
|
|
65443
|
-
|
|
65444
|
-
|
|
65445
|
-
|
|
65446
|
-
|
|
65447
|
-
|
|
65448
|
-
|
|
65467
|
+
var mark = true;
|
|
65468
|
+
for (var m = 0; m < this.childNodes.length; m++) {
|
|
65469
|
+
var anode = this.childNodes[m];
|
|
65470
|
+
if (anode instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_43__/* .ControlNode */ .w || anode instanceof TextInputFieldNode || anode instanceof _SignNode__WEBPACK_IMPORTED_MODULE_54__/* .SignNode */ .N || anode instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_58__/* .QrcodeNode */ .d) {
|
|
65471
|
+
mark = false;
|
|
65472
|
+
break;
|
|
65473
|
+
}
|
|
65474
|
+
}
|
|
65475
|
+
if (clearSign && mark && this.readType === 1) {
|
|
65476
|
+
this.text = "";
|
|
65477
|
+
this._childNodes.splice(1, this._childNodes.length - 2);
|
|
65478
|
+
this._childNodes2.splice(1, this._childNodes2.length - 2);
|
|
65479
|
+
var markNode = new _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j(this.hoEditorFactoryID, this.rootNodes, this, _BaseNode__WEBPACK_IMPORTED_MODULE_42__/* .NodeType */ .Jq.ntMark, this.labelText, this.StartMarkNode.styleIndex, _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtContent);
|
|
65480
|
+
this._childNodes.splice(1, 0, markNode);
|
|
65481
|
+
this._childNodes2.splice(1, 0, markNode);
|
|
65482
|
+
for (var n = 0; n < this.childNodes.length; n++) {
|
|
65483
|
+
childArray.push(this.childNodes[n].node2Json(undefined, isCopy));
|
|
65484
|
+
}
|
|
65485
|
+
} else {
|
|
65486
|
+
for (var i = 0; i < this.childNodes.length; i++) {
|
|
65487
|
+
var node = this.childNodes[i];
|
|
65488
|
+
if (!(node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && node.text.substr(0, 1) !== 'C')) {
|
|
65489
|
+
if (node instanceof TextInputFieldNode) {
|
|
65490
|
+
childArray.push(node.node2Json(undefined, isCopy, type, clearSign));
|
|
65491
|
+
} else if (node instanceof _SignNode__WEBPACK_IMPORTED_MODULE_54__/* .SignNode */ .N) {
|
|
65492
|
+
if (clearSign) {
|
|
65493
|
+
if (node.isTemplate) {
|
|
65494
|
+
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
65495
|
+
}
|
|
65496
|
+
} else {
|
|
65497
|
+
childArray.push(node.node2Json(undefined, isCopy));
|
|
65449
65498
|
}
|
|
65450
65499
|
} else {
|
|
65451
|
-
|
|
65452
|
-
|
|
65453
|
-
|
|
65454
|
-
|
|
65455
|
-
if (node.
|
|
65500
|
+
if (node instanceof _TextNode__WEBPACK_IMPORTED_MODULE_57__/* .TextNode */ .R) {
|
|
65501
|
+
if (node.text !== '') {
|
|
65502
|
+
childArray.push(node.node2Json(undefined, isCopy));
|
|
65503
|
+
}
|
|
65504
|
+
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_44__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_58__/* .QrcodeNode */ .d || node instanceof _ControlNode__WEBPACK_IMPORTED_MODULE_43__/* .ControlNode */ .w && node.readType === 1) {
|
|
65505
|
+
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
65506
|
+
} else {
|
|
65456
65507
|
childArray.push(node.node2Json(undefined, isCopy));
|
|
65457
65508
|
}
|
|
65458
|
-
} else if (node instanceof _DateTimeNode__WEBPACK_IMPORTED_MODULE_44__/* .DateTimeNode */ .Z || node instanceof _QrcodeNode__WEBPACK_IMPORTED_MODULE_58__/* .QrcodeNode */ .d) {
|
|
65459
|
-
childArray.push(node.node2Json(undefined, isCopy, undefined, clearSign));
|
|
65460
|
-
} else {
|
|
65461
|
-
childArray.push(node.node2Json(undefined, isCopy));
|
|
65462
65509
|
}
|
|
65510
|
+
} else {
|
|
65511
|
+
childArray.push(node.node2Json(undefined, isCopy));
|
|
65463
65512
|
}
|
|
65464
|
-
} else {
|
|
65465
|
-
childArray.push(node.node2Json(undefined, isCopy));
|
|
65466
65513
|
}
|
|
65467
65514
|
}
|
|
65468
65515
|
// if (childArray.length > 0) {
|
|
@@ -65826,9 +65873,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65826
65873
|
if (node instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && node.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd && node.text.substring(0, 1) === 'C') {
|
|
65827
65874
|
hoEditorFactory.structureConvert._markNodes.push(node);
|
|
65828
65875
|
}
|
|
65829
|
-
if (node instanceof
|
|
65830
|
-
|
|
65831
|
-
|
|
65876
|
+
// if (node instanceof SignNode &&
|
|
65877
|
+
// ((node.imgSrc != "" && ((hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes((node.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
|
|
65878
|
+
// || hoEditorFactory.lockContent)) {
|
|
65879
|
+
// hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
65880
|
+
// }
|
|
65832
65881
|
}
|
|
65833
65882
|
} else {
|
|
65834
65883
|
//单个对象
|
|
@@ -65872,9 +65921,11 @@ var TextInputFieldNode = /*#__PURE__*/function (_BaseCombineNode) {
|
|
|
65872
65921
|
if (_node2 instanceof _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNode */ .j && _node2.MarkNodeType === _MarkNode__WEBPACK_IMPORTED_MODULE_47__/* .MarkNodeType */ .q.mtEnd && _node2.text.substring(0, 1) === 'C') {
|
|
65873
65922
|
hoEditorFactory.structureConvert._markNodes.push(_node2);
|
|
65874
65923
|
}
|
|
65875
|
-
if (
|
|
65876
|
-
|
|
65877
|
-
|
|
65924
|
+
// if (node instanceof SignNode &&
|
|
65925
|
+
// ((node.imgSrc != "" && ((hoEditorFactory.superiorSigns.length > 0 && hoEditorFactory.superiorSigns.includes((node.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
|
|
65926
|
+
// || hoEditorFactory.lockContent)) {
|
|
65927
|
+
// hoEditorFactory.structureConvert._superiorSign[0] = node;
|
|
65928
|
+
// }
|
|
65878
65929
|
}
|
|
65879
65930
|
// if(json.name === '1-1') console.timeEnd(`1-1---${eachCount}`);
|
|
65880
65931
|
};
|
|
@@ -166628,7 +166679,7 @@ var map = {
|
|
|
166628
166679
|
"./popers/Title.vue": 31276,
|
|
166629
166680
|
"./printstyle/PrintLineStyle.vue": 51484,
|
|
166630
166681
|
"./qrCode/QrCode.vue": 59805,
|
|
166631
|
-
"./radioCheckBox/RadioCheckbox.vue":
|
|
166682
|
+
"./radioCheckBox/RadioCheckbox.vue": 30939,
|
|
166632
166683
|
"./selectDialog/SelectDialog.vue": 32497,
|
|
166633
166684
|
"./sign/Sign.vue": 67218,
|
|
166634
166685
|
"./table/TableCellPoper.vue": 97628,
|
|
@@ -166640,7 +166691,7 @@ var map = {
|
|
|
166640
166691
|
"./table/TableFormula.vue": 80199,
|
|
166641
166692
|
"./table/TableProperty.vue": 54054,
|
|
166642
166693
|
"./table/TableRowProperty.vue": 21568,
|
|
166643
|
-
"./textDialog/TextDialog.vue":
|
|
166694
|
+
"./textDialog/TextDialog.vue": 34994,
|
|
166644
166695
|
"./textDialog/TextToLabelDialog.vue": 2355,
|
|
166645
166696
|
"./textDialog/VerifyTip.vue": 74618,
|
|
166646
166697
|
"./upload/CanvasImageDialog.vue": 40061,
|
|
@@ -207271,7 +207322,7 @@ var TextNode = __webpack_require__(27198);
|
|
|
207271
207322
|
// EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
|
|
207272
207323
|
var ParagraphNode = __webpack_require__(67945);
|
|
207273
207324
|
;// CONCATENATED MODULE: ./src/components/version.ts
|
|
207274
|
-
/* harmony default export */ var version = ('3.1.
|
|
207325
|
+
/* harmony default export */ var version = ('3.1.89');
|
|
207275
207326
|
// EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
|
|
207276
207327
|
var PoperTipText = __webpack_require__(50987);
|
|
207277
207328
|
;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
|
|
@@ -211371,7 +211422,6 @@ var JumpButtonNode = __webpack_require__(330);
|
|
|
211371
211422
|
|
|
211372
211423
|
|
|
211373
211424
|
|
|
211374
|
-
|
|
211375
211425
|
|
|
211376
211426
|
|
|
211377
211427
|
var StructureConvert = /*#__PURE__*/function () {
|
|
@@ -212617,6 +212667,8 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
212617
212667
|
nodeJson = node.node2Json(undefined, undefined, undefined, clearSign);
|
|
212618
212668
|
} else if (node instanceof QrcodeNode/* QrcodeNode */.d && clearSign) {
|
|
212619
212669
|
nodeJson = node.node2Json(undefined, undefined, undefined, clearSign);
|
|
212670
|
+
} else if (clearSign && node instanceof ControlNode/* ControlNode */.w && node.readType === 1) {
|
|
212671
|
+
nodeJson = node.node2Json(undefined, undefined, undefined, clearSign);
|
|
212620
212672
|
} else {
|
|
212621
212673
|
nodeJson = node.node2Json();
|
|
212622
212674
|
}
|
|
@@ -213353,9 +213405,12 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213353
213405
|
if (aNode instanceof MarkNode/* MarkNode */.j) {
|
|
213354
213406
|
_this5._markNodes.push(aNode);
|
|
213355
213407
|
}
|
|
213356
|
-
if (aNode instanceof SignNode
|
|
213357
|
-
|
|
213358
|
-
|
|
213408
|
+
// if (aNode instanceof SignNode && ((aNode.imgSrc != ""
|
|
213409
|
+
// && ((hoEditorFactory.superiorSigns.length > 0
|
|
213410
|
+
// && hoEditorFactory.superiorSigns.includes((aNode.customProperty as any).bce01)) || hoEditorFactory.forbidEditBeforeSign))
|
|
213411
|
+
// || hoEditorFactory.lockContent)) {
|
|
213412
|
+
// this._superiorSign[0] = aNode;
|
|
213413
|
+
// }
|
|
213359
213414
|
if (aNode instanceof TextNode/* TextNode */.R && aNode.errorIndex != undefined) {
|
|
213360
213415
|
_this5._errTextNodes.push(aNode);
|
|
213361
213416
|
}
|
|
@@ -213485,15 +213540,6 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213485
213540
|
hoEditorFactory.docTree.curDomRange = range;
|
|
213486
213541
|
var cgEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(range, range);
|
|
213487
213542
|
hoEditorFactory.docTree.selectChange(cgEvent);
|
|
213488
|
-
//this._superiorSign.length = 0;
|
|
213489
|
-
if (this._superiorSign.length > 0) {
|
|
213490
|
-
//获取最后面的那个上级签名节点
|
|
213491
|
-
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
213492
|
-
hoEditorFactory.vueController.hiddenMask(false);
|
|
213493
|
-
} else {
|
|
213494
|
-
hoEditorFactory.vueController.hiddenMask(true);
|
|
213495
|
-
}
|
|
213496
|
-
}
|
|
213497
213543
|
//加载完重新加载一下计算公式
|
|
213498
213544
|
var formularNodes = hoEditorFactory.drawTree.formularNodes;
|
|
213499
213545
|
var tableArr = [];
|
|
@@ -213579,6 +213625,14 @@ var StructureConvert = /*#__PURE__*/function () {
|
|
|
213579
213625
|
tables[m].update();
|
|
213580
213626
|
}
|
|
213581
213627
|
}
|
|
213628
|
+
if (this._superiorSign.length > 0) {
|
|
213629
|
+
//获取最后面的那个上级签名节点
|
|
213630
|
+
if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview) {
|
|
213631
|
+
hoEditorFactory.vueController.hiddenMask(false);
|
|
213632
|
+
} else {
|
|
213633
|
+
hoEditorFactory.vueController.hiddenMask(true);
|
|
213634
|
+
}
|
|
213635
|
+
}
|
|
213582
213636
|
/*
|
|
213583
213637
|
//错别字检测
|
|
213584
213638
|
let errors = [];
|
|
@@ -217007,7 +217061,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217007
217061
|
if (curArea && curArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
217008
217062
|
var pageWidth = hoEditorFactory.pageProperty.widthPixes + 1;
|
|
217009
217063
|
var pageHeight = hoEditorFactory.pageProperty.heightPixes;
|
|
217010
|
-
var curPageIndex =
|
|
217064
|
+
var curPageIndex = curArea.pageIndex;
|
|
217065
|
+
var pageCount = hoEditorFactory.drawPageTree.drawMainDocs.length;
|
|
217011
217066
|
var paintMask = function paintMask(index, height, start) {
|
|
217012
217067
|
var drawPage = hoEditorFactory.drawTree.drawPages[index];
|
|
217013
217068
|
var selectContainer = drawPage.selectContainer;
|
|
@@ -217055,7 +217110,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217055
217110
|
var pDrawNode = pSign.drawNodes[0];
|
|
217056
217111
|
var pArea = hoEditorFactory.drawPageTree.getMainRootArea(pDrawNode);
|
|
217057
217112
|
if (pArea && pArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
|
|
217058
|
-
var pageIndex =
|
|
217113
|
+
var pageIndex = pArea.pageIndex;
|
|
217059
217114
|
var pline = hoEditorFactory.drawTree.getDrawLineByDNode(pDrawNode);
|
|
217060
217115
|
var stagePt1 = pline.localToGlobal(pDrawNode.x, pDrawNode.y);
|
|
217061
217116
|
var localPt1 = curArea.globalToLocal(stagePt1.x, stagePt1.y);
|
|
@@ -217066,13 +217121,26 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217066
217121
|
}
|
|
217067
217122
|
paintMask(pageIndex, localPt1.y + actualHeight - hoEditorFactory.signHeight);
|
|
217068
217123
|
if (pageIndex === curPageIndex) {
|
|
217069
|
-
|
|
217124
|
+
if (hoEditorFactory.lockContent) {
|
|
217125
|
+
paintMask(pageIndex, pageHeight, start);
|
|
217126
|
+
for (var n = pageIndex + 1; n < pageCount; n++) {
|
|
217127
|
+
paintMask(n, pageHeight);
|
|
217128
|
+
}
|
|
217129
|
+
} else {
|
|
217130
|
+
paintMask(pageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight, start);
|
|
217131
|
+
}
|
|
217070
217132
|
} else if (pageIndex + 1 <= curPageIndex) {
|
|
217071
217133
|
paintMask(pageIndex, pageHeight, start);
|
|
217072
|
-
|
|
217073
|
-
|
|
217134
|
+
if (hoEditorFactory.lockContent) {
|
|
217135
|
+
for (var k = pageIndex + 1; k < pageCount; k++) {
|
|
217136
|
+
paintMask(k, pageHeight);
|
|
217137
|
+
}
|
|
217138
|
+
} else {
|
|
217139
|
+
for (var _k = pageIndex + 1; _k < curPageIndex; _k++) {
|
|
217140
|
+
paintMask(_k, pageHeight);
|
|
217141
|
+
}
|
|
217142
|
+
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217074
217143
|
}
|
|
217075
|
-
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217076
217144
|
}
|
|
217077
217145
|
return;
|
|
217078
217146
|
}
|
|
@@ -217092,8 +217160,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217092
217160
|
paintMask(parr[0], arr[1] + actualHeight - hoEditorFactory.signHeight, parr[1]);
|
|
217093
217161
|
} else if (parr[0] <= arr[0]) {
|
|
217094
217162
|
paintMask(parr[0], pageHeight, parr[1]);
|
|
217095
|
-
for (var
|
|
217096
|
-
paintMask(
|
|
217163
|
+
for (var _k2 = parr[0] + 1; _k2 < arr[0]; _k2++) {
|
|
217164
|
+
paintMask(_k2, pageHeight);
|
|
217097
217165
|
}
|
|
217098
217166
|
paintMask(arr[0], arr[1] + actualHeight - hoEditorFactory.signHeight);
|
|
217099
217167
|
}
|
|
@@ -217101,23 +217169,43 @@ var VueController = /*#__PURE__*/function () {
|
|
|
217101
217169
|
}
|
|
217102
217170
|
var sarr = arrs[arrs.length - 1];
|
|
217103
217171
|
if (sarr[0] === curPageIndex) {
|
|
217104
|
-
|
|
217172
|
+
if (hoEditorFactory.lockContent) {
|
|
217173
|
+
paintMask(sarr[0], pageHeight, sarr[1]);
|
|
217174
|
+
for (var _n = sarr[0] + 1; _n < pageCount; _n++) {
|
|
217175
|
+
paintMask(_n, pageHeight);
|
|
217176
|
+
}
|
|
217177
|
+
} else {
|
|
217178
|
+
paintMask(sarr[0], localPt.y + actualHeight - hoEditorFactory.signHeight, sarr[1]);
|
|
217179
|
+
}
|
|
217105
217180
|
} else if (sarr[0] <= curPageIndex) {
|
|
217106
217181
|
paintMask(sarr[0], pageHeight, sarr[1]);
|
|
217107
|
-
|
|
217108
|
-
|
|
217182
|
+
if (hoEditorFactory.lockContent) {
|
|
217183
|
+
for (var _k3 = sarr[0] + 1; _k3 < pageCount; _k3++) {
|
|
217184
|
+
paintMask(_k3, pageHeight);
|
|
217185
|
+
}
|
|
217186
|
+
} else {
|
|
217187
|
+
for (var _k4 = sarr[0] + 1; _k4 < curPageIndex; _k4++) {
|
|
217188
|
+
paintMask(_k4, pageHeight);
|
|
217189
|
+
}
|
|
217190
|
+
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217109
217191
|
}
|
|
217110
|
-
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217111
217192
|
}
|
|
217112
217193
|
} else {
|
|
217113
|
-
if (
|
|
217114
|
-
for (var _i = 0; _i <
|
|
217194
|
+
if (hoEditorFactory.lockContent) {
|
|
217195
|
+
for (var _i = 0; _i < pageCount; _i++) {
|
|
217115
217196
|
//给前面的页画遮罩层
|
|
217116
217197
|
paintMask(_i, pageHeight);
|
|
217117
217198
|
}
|
|
217199
|
+
} else {
|
|
217200
|
+
if (curPageIndex > 0) {
|
|
217201
|
+
for (var _i2 = 0; _i2 < curPageIndex; _i2++) {
|
|
217202
|
+
//给前面的页画遮罩层
|
|
217203
|
+
paintMask(_i2, pageHeight);
|
|
217204
|
+
}
|
|
217205
|
+
}
|
|
217206
|
+
//画当前页的遮罩层
|
|
217207
|
+
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217118
217208
|
}
|
|
217119
|
-
//画当前页的遮罩层
|
|
217120
|
-
paintMask(curPageIndex, localPt.y + actualHeight - hoEditorFactory.signHeight);
|
|
217121
217209
|
}
|
|
217122
217210
|
}
|
|
217123
217211
|
}
|
|
@@ -218153,8 +218241,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
218153
218241
|
}
|
|
218154
218242
|
//更新xml各节点在当前文档的样式索引
|
|
218155
218243
|
var iteratesNode = function iteratesNode(nodes) {
|
|
218156
|
-
for (var
|
|
218157
|
-
var node = nodes[
|
|
218244
|
+
for (var _i3 = 0; _i3 < nodes.length; _i3++) {
|
|
218245
|
+
var node = nodes[_i3];
|
|
218158
218246
|
if (node.nodeType === 'ntField' || node.nodeType === 'ntCell') {
|
|
218159
218247
|
if (node.childNodes && node.childNodes.node && node.childNodes.node.length > 0) {
|
|
218160
218248
|
iteratesNode(node.childNodes.node);
|
|
@@ -220128,8 +220216,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
220128
220216
|
getChildNodes = function getChildNodes(item) {
|
|
220129
220217
|
if (Array.isArray(item)) {
|
|
220130
220218
|
//数组
|
|
220131
|
-
for (var
|
|
220132
|
-
var anode = hoEditorFactory.structureConvert.convertNode(item[
|
|
220219
|
+
for (var _i4 = 1; _i4 < item.length - 1; _i4++) {
|
|
220220
|
+
var anode = hoEditorFactory.structureConvert.convertNode(item[_i4], node.rootNodes, node);
|
|
220133
220221
|
if (anode) {
|
|
220134
220222
|
if (anode instanceof TextNode/* TextNode */.R) {
|
|
220135
220223
|
if (anode.text.length > (0,esm_toConsumableArray/* default */.Z)(anode.text).length) {
|
|
@@ -221001,7 +221089,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221001
221089
|
path = pathArr.join('/');
|
|
221002
221090
|
}
|
|
221003
221091
|
};
|
|
221004
|
-
for (var
|
|
221092
|
+
for (var _i5 = 0; _i5 < text.length; _i5++) {
|
|
221005
221093
|
_loop5();
|
|
221006
221094
|
}
|
|
221007
221095
|
var selectRange = new SelectRange/* SelectRange */.E(this.hoEditorFactoryID);
|
|
@@ -221245,7 +221333,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221245
221333
|
var count = 0;
|
|
221246
221334
|
var text = "";
|
|
221247
221335
|
var whileText = "";
|
|
221248
|
-
while (node && text.length <
|
|
221336
|
+
while (node && text.length < 5 && count < 12) {
|
|
221249
221337
|
var _node5;
|
|
221250
221338
|
count++;
|
|
221251
221339
|
if (node instanceof SignNode/* SignNode */.N || node instanceof MarkNode/* MarkNode */.j || node instanceof TextNode/* TextNode */.R || node instanceof LabelNode/* LabelNode */.P || node instanceof DownListNode/* DownListNode */.yF) {
|
|
@@ -221262,7 +221350,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221262
221350
|
text = "";
|
|
221263
221351
|
}
|
|
221264
221352
|
}
|
|
221265
|
-
if (text.length <
|
|
221353
|
+
if (text.length < 5) {
|
|
221266
221354
|
console.error("\u7B7E\u540D\u5143\u7D20\u524D\u6587\u672C\u5173\u952E\u5B57\u3010".concat(text, "\u3011,\u67E5\u8BE2\u8282\u70B9\u6B21\u6570\u3010").concat(count, "\u3011"));
|
|
221267
221355
|
}
|
|
221268
221356
|
return text ? text : '';
|
|
@@ -221795,9 +221883,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
221795
221883
|
}
|
|
221796
221884
|
}
|
|
221797
221885
|
} else {
|
|
221798
|
-
for (var
|
|
221799
|
-
if (signList[
|
|
221800
|
-
sign.isTemplate = signList[
|
|
221886
|
+
for (var _i6 = index; _i6 >= 0; _i6--) {
|
|
221887
|
+
if (signList[_i6] && signList[_i6].number == 1) {
|
|
221888
|
+
sign.isTemplate = signList[_i6].isTemplate;
|
|
221801
221889
|
break;
|
|
221802
221890
|
}
|
|
221803
221891
|
}
|
|
@@ -222130,8 +222218,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222130
222218
|
var rowInfosArray = new Array();
|
|
222131
222219
|
var rows = node.rowInfos.length - 1;
|
|
222132
222220
|
var cols = node.colInfos.length - 1;
|
|
222133
|
-
for (var
|
|
222134
|
-
var rowInfo = node.rowInfos[
|
|
222221
|
+
for (var _i7 = 0; _i7 <= rows; _i7++) {
|
|
222222
|
+
var rowInfo = node.rowInfos[_i7];
|
|
222135
222223
|
var _customProperties = {
|
|
222136
222224
|
customProperty: Array(rowInfo.rowProperty.customProperties)
|
|
222137
222225
|
};
|
|
@@ -222151,8 +222239,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222151
222239
|
};
|
|
222152
222240
|
var rowPropertyJson = JSON.parse(JSON.stringify(rowProperty));
|
|
222153
222241
|
var keysName = Object.keys(defaultRowProp);
|
|
222154
|
-
for (var
|
|
222155
|
-
if (keysName[
|
|
222242
|
+
for (var _k5 = 0; _k5 < keysName.length; _k5++) {
|
|
222243
|
+
if (keysName[_k5] === 'customProperties') {
|
|
222156
222244
|
if (rowInfo.rowProperty.customProperties.length === 0) {
|
|
222157
222245
|
delete rowPropertyJson['customProperties'];
|
|
222158
222246
|
}
|
|
@@ -222163,8 +222251,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222163
222251
|
// }
|
|
222164
222252
|
// }
|
|
222165
222253
|
else {
|
|
222166
|
-
if (rowPropertyJson[keysName[
|
|
222167
|
-
delete rowPropertyJson[keysName[
|
|
222254
|
+
if (rowPropertyJson[keysName[_k5]] === defaultRowPropJson[keysName[_k5]]) {
|
|
222255
|
+
delete rowPropertyJson[keysName[_k5]];
|
|
222168
222256
|
}
|
|
222169
222257
|
}
|
|
222170
222258
|
}
|
|
@@ -222190,8 +222278,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222190
222278
|
var defaultColPropJson = JSON.parse(JSON.stringify(defaultColProp));
|
|
222191
222279
|
//处理列宽
|
|
222192
222280
|
var colInfosArray = new Array();
|
|
222193
|
-
for (var
|
|
222194
|
-
var colInfo = node.colInfos[
|
|
222281
|
+
for (var _i8 = 0; _i8 <= cols; _i8++) {
|
|
222282
|
+
var colInfo = node.colInfos[_i8];
|
|
222195
222283
|
var _customProperties2 = {
|
|
222196
222284
|
customProperty: Array(colInfo.colProperty.customProperties)
|
|
222197
222285
|
};
|
|
@@ -222210,9 +222298,9 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222210
222298
|
};
|
|
222211
222299
|
var colPropertyJson = JSON.parse(JSON.stringify(colProperty));
|
|
222212
222300
|
var colKeysName = Object.keys(defaultColProp);
|
|
222213
|
-
for (var
|
|
222214
|
-
if (colPropertyJson[colKeysName[
|
|
222215
|
-
delete colPropertyJson[colKeysName[
|
|
222301
|
+
for (var _k6 = 0; _k6 < colKeysName.length; _k6++) {
|
|
222302
|
+
if (colPropertyJson[colKeysName[_k6]] === defaultColPropJson[colKeysName[_k6]]) {
|
|
222303
|
+
delete colPropertyJson[colKeysName[_k6]];
|
|
222216
222304
|
}
|
|
222217
222305
|
}
|
|
222218
222306
|
colInfosArray.push({
|
|
@@ -222318,8 +222406,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222318
222406
|
if (node instanceof CellNode/* CellNode */.D) {
|
|
222319
222407
|
//处理子节点
|
|
222320
222408
|
var childArray = new Array();
|
|
222321
|
-
for (var
|
|
222322
|
-
var anode = node.childNodes[
|
|
222409
|
+
for (var _i9 = 0; _i9 < node.childNodes.length; _i9++) {
|
|
222410
|
+
var anode = node.childNodes[_i9];
|
|
222323
222411
|
var nodeJson = void 0;
|
|
222324
222412
|
if (anode instanceof TextNode/* TextNode */.R) {
|
|
222325
222413
|
if (anode.text !== '') {
|
|
@@ -222362,22 +222450,22 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222362
222450
|
};
|
|
222363
222451
|
var cellPropertyJson = JSON.parse(JSON.stringify(cellProperty));
|
|
222364
222452
|
var _keysName = Object.keys(defaultCellPropJson);
|
|
222365
|
-
for (var
|
|
222366
|
-
if (_keysName[
|
|
222453
|
+
for (var _k7 = 0; _k7 < _keysName.length; _k7++) {
|
|
222454
|
+
if (_keysName[_k7] === 'customProperties') {
|
|
222367
222455
|
if (!node.cellProperty.customProperties) {
|
|
222368
222456
|
delete cellPropertyJson['customProperties'];
|
|
222369
222457
|
} else if (node.cellProperty.customProperties.length === 0) {
|
|
222370
222458
|
delete cellPropertyJson['customProperties'];
|
|
222371
222459
|
}
|
|
222372
|
-
} else if (_keysName[
|
|
222460
|
+
} else if (_keysName[_k7] === 'cellInnerMargin') {
|
|
222373
222461
|
if (cellPropertyJson['cellInnerMargin'] === '0,0,0.1,0.1') {
|
|
222374
222462
|
delete cellPropertyJson['cellInnerMargin'];
|
|
222375
222463
|
}
|
|
222376
|
-
} else if (_keysName[
|
|
222464
|
+
} else if (_keysName[_k7] === 'gridLinesColor') {
|
|
222377
222465
|
if (cellPropertyJson['gridLinesColor'] === '#000000,#000000,#000000,#000000') {
|
|
222378
222466
|
delete cellPropertyJson['gridLinesColor'];
|
|
222379
222467
|
}
|
|
222380
|
-
} else if (_keysName[
|
|
222468
|
+
} else if (_keysName[_k7] === 'gridLineDisplay') {
|
|
222381
222469
|
if (cellPropertyJson['gridLineDisplay'] === 'true,true,true,true') {
|
|
222382
222470
|
delete cellPropertyJson['gridLineDisplay'];
|
|
222383
222471
|
}
|
|
@@ -222388,8 +222476,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222388
222476
|
// }
|
|
222389
222477
|
// }
|
|
222390
222478
|
else {
|
|
222391
|
-
if (cellPropertyJson[_keysName[
|
|
222392
|
-
delete cellPropertyJson[_keysName[
|
|
222479
|
+
if (cellPropertyJson[_keysName[_k7]] === defaultCellPropJson[_keysName[_k7]]) {
|
|
222480
|
+
delete cellPropertyJson[_keysName[_k7]];
|
|
222393
222481
|
}
|
|
222394
222482
|
}
|
|
222395
222483
|
}
|
|
@@ -222434,8 +222522,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222434
222522
|
};
|
|
222435
222523
|
var xmlRoot = '<?xml version="1.0" encoding="utf-8"?>';
|
|
222436
222524
|
var doc2XmlJson = function doc2XmlJson(nodes) {
|
|
222437
|
-
for (var
|
|
222438
|
-
var _node11 = nodes[
|
|
222525
|
+
for (var _i10 = 0; _i10 < nodes.length; _i10++) {
|
|
222526
|
+
var _node11 = nodes[_i10];
|
|
222439
222527
|
if (_node11 instanceof TextNode/* TextNode */.R || _node11 instanceof ParagraphNode/* ParagraphNode */.C || _node11 instanceof TableNode/* TableNode */.Fh || _node11 instanceof ImageNode/* ImageNode */.H) {
|
|
222440
222528
|
var nodeJson = node2Json(_node11);
|
|
222441
222529
|
xmlRoot += x2js.js2xml(nodeJson);
|
|
@@ -222864,7 +222952,7 @@ var VueController = /*#__PURE__*/function () {
|
|
|
222864
222952
|
for (var j = 0; j < pathArr.length; j++) {
|
|
222865
222953
|
var apath = pathArr[j];
|
|
222866
222954
|
var nodeLastPath = pathArr[j];
|
|
222867
|
-
for (var
|
|
222955
|
+
for (var _i11 = 0; _i11 < findText.length; _i11++) {
|
|
222868
222956
|
var np = hoEditorFactory.docTree.findNodePositionByPath(apath);
|
|
222869
222957
|
if (np && np.node) {
|
|
222870
222958
|
nodeLastPath = hoEditorFactory.docTree.getNodeLastPath(np.node);
|
|
@@ -223173,8 +223261,8 @@ var VueController = /*#__PURE__*/function () {
|
|
|
223173
223261
|
}
|
|
223174
223262
|
}
|
|
223175
223263
|
}
|
|
223176
|
-
for (var
|
|
223177
|
-
var cell = table.childNodes[
|
|
223264
|
+
for (var _k8 = rowCellNum; _k8 < table.childNodes.length; _k8++) {
|
|
223265
|
+
var cell = table.childNodes[_k8];
|
|
223178
223266
|
if (cell.childNodes.length > 1) {
|
|
223179
223267
|
cell.childNodes.splice(1, cell.childNodes.length);
|
|
223180
223268
|
cell.drawCell.needUpdate = true;
|
|
@@ -235970,6 +236058,8 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
235970
236058
|
//上级医生签名之前的内容不允许编辑修改(云his)
|
|
235971
236059
|
(0,esm_defineProperty/* default */.Z)(this, "_forbidEditBeforeSign", false);
|
|
235972
236060
|
//签名前内容禁止编辑(iho) 默认false
|
|
236061
|
+
(0,esm_defineProperty/* default */.Z)(this, "_lockContent", false);
|
|
236062
|
+
//是否锁定病历内容(未签名)
|
|
235973
236063
|
(0,esm_defineProperty/* default */.Z)(this, "_notAllowCrossPatiPaste", false);
|
|
235974
236064
|
//不允许跨病人粘贴
|
|
235975
236065
|
(0,esm_defineProperty/* default */.Z)(this, "_forbidPaste", false);
|
|
@@ -236704,6 +236794,16 @@ var HOEditorFactory = /*#__PURE__*/function () {
|
|
|
236704
236794
|
this._forbidEditBeforeSign = value;
|
|
236705
236795
|
}
|
|
236706
236796
|
}
|
|
236797
|
+
}, {
|
|
236798
|
+
key: "lockContent",
|
|
236799
|
+
get: function get() {
|
|
236800
|
+
return this._lockContent;
|
|
236801
|
+
},
|
|
236802
|
+
set: function set(value) {
|
|
236803
|
+
if (this._lockContent !== value) {
|
|
236804
|
+
this._lockContent = value;
|
|
236805
|
+
}
|
|
236806
|
+
}
|
|
236707
236807
|
}, {
|
|
236708
236808
|
key: "isFixedPrintToA4",
|
|
236709
236809
|
get: function get() {
|