hoeditor-web 3.1.88 → 3.1.90

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.
@@ -13854,7 +13854,7 @@ var component = (0,componentNormalizer/* default */.Z)(
13854
13854
 
13855
13855
  /***/ }),
13856
13856
 
13857
- /***/ 52512:
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=680bbeb6&
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=680bbeb6&
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
- computed: {
14724
- controlType: function controlType() {
14725
- return this.hoEditorProvider.controlType;
14726
- },
14727
- controlStatus: function controlStatus() {
14728
- return this.hoEditorProvider.controlStatus;
14729
- } // dataSource() {
14730
- // return this.hoEditorProvider.getDataSource();
14731
- // },
14732
- },
14733
- created: function created() {
14734
- var _this = this;
14735
- this.nodeList = this.getTextFieldNode();
14736
- if (this.controlStatus === 'update') {
14737
- var _updateNode$value;
14738
- var updateNode = this.getRadioCheckNode();
14739
- if ((_updateNode$value = updateNode.value) !== null && _updateNode$value !== void 0 && _updateNode$value.groupName) {
14740
- updateNode.valueList.forEach(function (v) {
14741
- var value = {
14742
- id: v.id,
14743
- groupName: v.groupName,
14744
- groupHasOptions: v.groupHasOptions,
14745
- isMutualExclusion: v.isMutualExclusion,
14746
- tableType: 'update'
14747
- };
14748
- _this.groupName = v.groupName;
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
- _this.radioCheckBox[key] = updateNode.value[key];
14775
+ value[key] = v[key];
14771
14776
  }
14772
14777
  });
14773
- if (updateNode.customProperty) {
14774
- this.radioCheckBox.customProperty = updateNode.customProperty;
14778
+ if (v.customProperty) {
14779
+ _this.radioCheckBox.customProperty = v.customProperty;
14775
14780
  }
14776
- this.boxGroup = 0;
14777
- }
14781
+ _this.radioCheckBoxGroup.push(value);
14782
+ });
14783
+ this.boxGroup = 1;
14784
+ this.addBox();
14778
14785
  } else {
14779
- this.radioCheckBox.id = this.controlType === 'RadioBox' ? this.vueController.generateID('RB') : this.vueController.generateID('CB');
14780
- this.radioCheckBox.controlStyle = this.controlType;
14781
- this.radioCheckBox.title = this.controlType === 'RadioBox' ? '单选框' : '复选框';
14782
- if (this.boxGroup === 1) {
14783
- this.addBox();
14784
- this.addBox();
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
- methods: {
14789
- getTextFieldNode: function getTextFieldNode() {
14790
- var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this.hoEditorFactoryId);
14791
- this.radioCheckBox.isAllowDelete = hoEditorFactory.defaultIsAllowDelete;
14792
- defaultBox.isAllowDelete = hoEditorFactory.defaultIsAllowDelete;
14793
- var ret = [];
14794
- var getAllNodes = function getAllNodes(nodes) {
14795
- for (var i = 0; i < nodes.length; i++) {
14796
- var node = nodes[i];
14797
- if (node instanceof TextInputFieldNode/* TextInputFieldNode */.re) {
14798
- ret.push({
14799
- dataId: node.dataId,
14800
- name: node.name,
14801
- text: node.text
14802
- });
14803
- }
14804
- if (node instanceof BaseCombineNode/* BaseCombineNode */.V) {
14805
- getAllNodes(node.childNodes);
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
- addBox: function addBox() {
14862
- var box = (0,objectSpread2/* default */.Z)({}, defaultBox);
14863
- box.id = this.controlType === 'RadioBox' ? this.vueController.generateID('RB') : this.vueController.generateID('CB');
14864
- box.groupName = this.groupName;
14865
- this.radioCheckBoxGroup.push(box);
14866
- },
14867
- deleteCurrentRow: function deleteCurrentRow(id) {
14868
- var key = -1;
14869
- this.radioCheckBoxGroup.filter(function (v, index) {
14870
- if (v.id === id) key = index;
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
- this.radioCheckBoxGroup.splice(key, 1);
14873
- },
14874
- sure: function sure() {
14875
- var _this2 = this;
14876
- if (this.boxGroup === 0) {
14877
- // this.radioCheckBox.bandDataSource = JSON.stringify(this.dataSource);
14878
- this.radioCheckBox.readType ? this.radioCheckBox.readType = 1 : this.radioCheckBox.readType = 0;
14879
- if (this.controlStatus === 'add') {
14880
- this.vueController.insertRadioAndCheckBox(this.controlStatus, JSON.stringify(this.radioCheckBox));
14881
- } else if (this.controlStatus === 'update') {
14882
- this.vueController.updateRadioAndCheckBox(JSON.stringify(this.radioCheckBox));
14883
- }
14884
- } else if (this.boxGroup === 1 && this.controlStatus === 'add') {
14885
- this.radioCheckBoxGroup.forEach(function (v) {
14886
- v.groupName = _this2.groupName;
14887
- v.controlStyle = _this2.controlType == 'RadioBox' ? 'RadioBox' : 'CheckBox';
14888
- v.groupHasOptions = _this2.groupHasOptions;
14889
- v.isMutualExclusion = _this2.isMutualExclusion;
14890
- v.readType = v.readType ? 1 : 0;
14891
- if (v.id === _this2.tableRadio) v.isSelected = true;
14892
- if (v.text == '') return; // 处理单复选文本值为空的情况
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
- } else if (this.boxGroup === 1 && this.controlStatus === 'update') {
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=680bbeb6&prod&lang=less&
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=680bbeb6&prod&lang=less&
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
- /***/ 29520:
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=71ab6db4&
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=71ab6db4&
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=71ab6db4&prod&lang=less&
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=71ab6db4&prod&lang=less&
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);
@@ -166658,7 +166679,7 @@ var map = {
166658
166679
  "./popers/Title.vue": 31276,
166659
166680
  "./printstyle/PrintLineStyle.vue": 51484,
166660
166681
  "./qrCode/QrCode.vue": 59805,
166661
- "./radioCheckBox/RadioCheckbox.vue": 52512,
166682
+ "./radioCheckBox/RadioCheckbox.vue": 30939,
166662
166683
  "./selectDialog/SelectDialog.vue": 32497,
166663
166684
  "./sign/Sign.vue": 67218,
166664
166685
  "./table/TableCellPoper.vue": 97628,
@@ -166670,7 +166691,7 @@ var map = {
166670
166691
  "./table/TableFormula.vue": 80199,
166671
166692
  "./table/TableProperty.vue": 54054,
166672
166693
  "./table/TableRowProperty.vue": 21568,
166673
- "./textDialog/TextDialog.vue": 29520,
166694
+ "./textDialog/TextDialog.vue": 34994,
166674
166695
  "./textDialog/TextToLabelDialog.vue": 2355,
166675
166696
  "./textDialog/VerifyTip.vue": 74618,
166676
166697
  "./upload/CanvasImageDialog.vue": 40061,
@@ -207301,7 +207322,7 @@ var TextNode = __webpack_require__(27198);
207301
207322
  // EXTERNAL MODULE: ./src/editor/dom/treeNode/ParagraphNode.ts
207302
207323
  var ParagraphNode = __webpack_require__(67945);
207303
207324
  ;// CONCATENATED MODULE: ./src/components/version.ts
207304
- /* harmony default export */ var version = ('3.1.88');
207325
+ /* harmony default export */ var version = ('3.1.90');
207305
207326
  // EXTERNAL MODULE: ./src/components/controls/poperTipText/PoperTipText.vue + 5 modules
207306
207327
  var PoperTipText = __webpack_require__(50987);
207307
207328
  ;// CONCATENATED MODULE: ./src/components/controls/poperTipText/index.ts
@@ -213519,15 +213540,6 @@ var StructureConvert = /*#__PURE__*/function () {
213519
213540
  hoEditorFactory.docTree.curDomRange = range;
213520
213541
  var cgEvent = new SelectionChangeEvent/* SelectionChangeEvent */.r(range, range);
213521
213542
  hoEditorFactory.docTree.selectChange(cgEvent);
213522
- //this._superiorSign.length = 0;
213523
- if (this._superiorSign.length > 0) {
213524
- //获取最后面的那个上级签名节点
213525
- if (hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psEdit || hoEditorFactory.drawTree.paintStatus === DrawTree/* PaintState */.Dh.psReview) {
213526
- hoEditorFactory.vueController.hiddenMask(false);
213527
- } else {
213528
- hoEditorFactory.vueController.hiddenMask(true);
213529
- }
213530
- }
213531
213543
  //加载完重新加载一下计算公式
213532
213544
  var formularNodes = hoEditorFactory.drawTree.formularNodes;
213533
213545
  var tableArr = [];
@@ -213613,6 +213625,14 @@ var StructureConvert = /*#__PURE__*/function () {
213613
213625
  tables[m].update();
213614
213626
  }
213615
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
+ }
213616
213636
  /*
213617
213637
  //错别字检测
213618
213638
  let errors = [];
@@ -217041,7 +217061,7 @@ var VueController = /*#__PURE__*/function () {
217041
217061
  if (curArea && curArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
217042
217062
  var pageWidth = hoEditorFactory.pageProperty.widthPixes + 1;
217043
217063
  var pageHeight = hoEditorFactory.pageProperty.heightPixes;
217044
- var curPageIndex = hoEditorFactory.drawPageTree.drawMainDocs.indexOf(curArea);
217064
+ var curPageIndex = curArea.pageIndex;
217045
217065
  var pageCount = hoEditorFactory.drawPageTree.drawMainDocs.length;
217046
217066
  var paintMask = function paintMask(index, height, start) {
217047
217067
  var drawPage = hoEditorFactory.drawTree.drawPages[index];
@@ -217090,7 +217110,7 @@ var VueController = /*#__PURE__*/function () {
217090
217110
  var pDrawNode = pSign.drawNodes[0];
217091
217111
  var pArea = hoEditorFactory.drawPageTree.getMainRootArea(pDrawNode);
217092
217112
  if (pArea && pArea instanceof DrawPageMainDoc/* DrawPageMainDoc */.$) {
217093
- var pageIndex = hoEditorFactory.drawPageTree.drawMainDocs.indexOf(pArea);
217113
+ var pageIndex = pArea.pageIndex;
217094
217114
  var pline = hoEditorFactory.drawTree.getDrawLineByDNode(pDrawNode);
217095
217115
  var stagePt1 = pline.localToGlobal(pDrawNode.x, pDrawNode.y);
217096
217116
  var localPt1 = curArea.globalToLocal(stagePt1.x, stagePt1.y);
@@ -221313,7 +221333,7 @@ var VueController = /*#__PURE__*/function () {
221313
221333
  var count = 0;
221314
221334
  var text = "";
221315
221335
  var whileText = "";
221316
- while (node && text.length < 3 && count < 12) {
221336
+ while (node && text.length < 5 && count < 12) {
221317
221337
  var _node5;
221318
221338
  count++;
221319
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) {
@@ -221330,7 +221350,7 @@ var VueController = /*#__PURE__*/function () {
221330
221350
  text = "";
221331
221351
  }
221332
221352
  }
221333
- if (text.length < 3) {
221353
+ if (text.length < 5) {
221334
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"));
221335
221355
  }
221336
221356
  return text ? text : '';
@@ -221968,7 +221988,7 @@ var VueController = /*#__PURE__*/function () {
221968
221988
  }
221969
221989
  }, {
221970
221990
  key: "getSignNodeList",
221971
- value: function getSignNodeList(nodeDataId) {
221991
+ value: function getSignNodeList(nodeDataId, bce01) {
221972
221992
  var _this9 = this;
221973
221993
  var hoEditorFactory = HOEditorFactorys/* HOEditorFactorys */.b.instance().getFactory(this._hoEditorFactoryID);
221974
221994
  var signList = [];
@@ -221993,6 +222013,9 @@ var VueController = /*#__PURE__*/function () {
221993
222013
  node: _node9
221994
222014
  };
221995
222015
  sign.previousText = _this9.getPreviousText(_node9);
222016
+ if (_node9.imgSrc || _node9.fingerPrintSrc) {
222017
+ sign.signed = true;
222018
+ }
221996
222019
  if (sign.number == 0 || sign.number == 1) {
221997
222020
  if (arr.length > 0) {
221998
222021
  signList.push(arr);
@@ -222003,9 +222026,7 @@ var VueController = /*#__PURE__*/function () {
222003
222026
  } else {
222004
222027
  arr.push(sign);
222005
222028
  }
222006
- // }
222007
222029
  }
222008
-
222009
222030
  if (_node9 instanceof BaseCombineNode/* BaseCombineNode */.V) {
222010
222031
  // 医生签名不存在的情况不在深层调用深层遍历
222011
222032
  getAllNodes(_node9.childNodes);
@@ -222017,14 +222038,23 @@ var VueController = /*#__PURE__*/function () {
222017
222038
  signList.push(arr);
222018
222039
  if (nodeDataId) {
222019
222040
  var signCount = 0;
222041
+ var isSigned = false;
222020
222042
  signList.forEach(function (m) {
222021
222043
  if (m.filter(function (v) {
222022
222044
  return v.dataId == nodeDataId;
222023
222045
  }).length == 1) {
222024
- signCount = m.length;
222046
+ signCount = m.filter(function (v) {
222047
+ return v.signed;
222048
+ }).length;
222049
+ isSigned = m.filter(function (v) {
222050
+ return v.customProperty && v.customProperty.bce01 == bce01 && v.signed;
222051
+ }).length > 0;
222025
222052
  }
222026
222053
  });
222027
- return signCount;
222054
+ return {
222055
+ signCount: signCount,
222056
+ isSigned: isSigned
222057
+ };
222028
222058
  } else {
222029
222059
  return signList;
222030
222060
  }