cloud-web-corejs 1.0.54-dev.210 → 1.0.54-dev.211

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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "cloud-web-corejs",
3
3
  "private": false,
4
- "version": "1.0.54-dev.210",
4
+ "version": "1.0.54-dev.211",
5
5
  "scripts": {
6
6
  "dev": "vue-cli-service serve",
7
7
  "lint": "eslint --ext .js,.vue src",
@@ -482,19 +482,19 @@ modules = {
482
482
  this.getFieldWidgetByType(type1)
483
483
  );
484
484
  fieldWidget.options = t.columnOption;
485
- fieldWidget.columnType = t.formatS
486
485
  t.widget = fieldWidget;
487
486
  }
487
+ if (t.widget) t.widget.columnType = t.formatS
488
+
488
489
  let type2 = columnFormatMap[t.editFormatS];
489
490
  if (type2 && t.editColumnOption && !t.editWidget) {
490
491
  let fieldWidget = this.copyNewFieldWidget(
491
492
  this.getFieldWidgetByType(type2)
492
493
  );
493
494
  fieldWidget.options = t.editColumnOption;
494
- fieldWidget.columnType = t.editFormatS
495
-
496
495
  t.editWidget = fieldWidget;
497
496
  }
497
+ if (t.editWidget) t.editWidget.columnType = t.editFormatS
498
498
  }
499
499
  }
500
500
 
@@ -618,14 +618,14 @@ modules = {
618
618
  }
619
619
  },
620
620
  getIsfreeWidgetTypesOfWf(widget) {
621
- if(!widget)return false;
621
+ if (!widget) return false;
622
622
  let widgetType = widget.type;
623
623
  let sourceType = widget.sourceType;
624
624
  let result = freeWidgetTypesOfWf.includes(widgetType) || (sourceType && freeWidgetTypesOfWf.includes(sourceType))
625
625
  return widget.options.label == "重置" || result
626
626
  },
627
627
  getIsHiddenWidgetTypesOfWf(widget) {
628
- if(!widget)return false;
628
+ if (!widget) return false;
629
629
  let widgetType = widget.type;
630
630
  let targetType = widget.targetType;
631
631
  let result = hiddenWidgetTypesOfWf.includes(widgetType) || (targetType && hiddenWidgetTypesOfWf.includes(targetType))
@@ -633,11 +633,12 @@ modules = {
633
633
  },
634
634
  hanldeWfWidgetNew1(widget) {
635
635
  if (!widget) return;
636
- if (this.getIsfreeWidgetTypesOfWf(widget))return//过滤掉不受限组件
636
+ if (this.getIsfreeWidgetTypesOfWf(widget)) return//过滤掉不受限组件
637
637
  if (this.widgetEditOnWf) return//匹配到流程第一步可编辑,不执行下面禁用隐藏
638
638
  let wfParam = this.wfParam || {};
639
639
  if (!wfParam.hasWf) return;//过滤掉没流程
640
- if (widget.columnType == 'editDelete') {
640
+
641
+ if (widget.columnType && ['editDelete', 'removeTreeRow'].includes(widget.columnType)) {
641
642
  //数据表格列的删除标识,有流程隐藏
642
643
  widget.options.hidden = true
643
644
  } else if (this.getIsHiddenWidgetTypesOfWf(widget)) {