@newview/file-ui 1.1.44 → 1.1.45

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/dist/file-ui.js CHANGED
@@ -18724,7 +18724,7 @@ const propDefine$2 = {
18724
18724
  },
18725
18725
  businessId: {
18726
18726
  // 创建机构id
18727
- type: Number,
18727
+ type: Array || Number,
18728
18728
  default: 0
18729
18729
  },
18730
18730
  dataValue: {
@@ -18760,6 +18760,12 @@ class StructureSelectInstance extends BaseInstance {
18760
18760
  __publicField(this, "UnitValue", ref());
18761
18761
  __publicField(this, "TypeGroupData", ref([]));
18762
18762
  __publicField(this, "activeNodeType", ref(""));
18763
+ /**
18764
+ * 单位工程选择项改变事件
18765
+ */
18766
+ __publicField(this, "unitSelectChange", () => {
18767
+ this.doSelectedAfterFun();
18768
+ });
18763
18769
  //#region 构件选择--单位工程列表相关
18764
18770
  __publicField(this, "activeUnit", ref(0));
18765
18771
  __publicField(this, "activeUnitName", "");
@@ -18866,7 +18872,11 @@ class StructureSelectInstance extends BaseInstance {
18866
18872
  var _a, _b;
18867
18873
  let filter = new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId", "CreateUnitId"]).eq("PId", 0).eq("PlatformId", (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id);
18868
18874
  if (this.props.businessId) {
18869
- filter.eq("CreateUnitId", this.props.businessId);
18875
+ if (typeof this.props.businessId == "number") {
18876
+ filter.eq("CreateUnitId", this.props.businessId);
18877
+ } else if (Array.isArray(this.props.businessId)) {
18878
+ filter.in("CreateUnitId", this.props.businessId);
18879
+ }
18870
18880
  }
18871
18881
  let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(filter));
18872
18882
  this.TypeGroupData.value = Enumerable.from(res).groupBy((e) => e["NodeTypeName"]).select((e) => {
@@ -18893,12 +18903,6 @@ class StructureSelectInstance extends BaseInstance {
18893
18903
  }
18894
18904
  }
18895
18905
  }
18896
- /**
18897
- * 单位工程选择项改变事件
18898
- */
18899
- unitSelectChange() {
18900
- this.doSelectedAfterFun();
18901
- }
18902
18906
  /**
18903
18907
  * 变更树组件选中状态
18904
18908
  * @param data