@newview/file-ui 1.1.41 → 1.1.42

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
@@ -18858,7 +18858,8 @@ class StructureSelectInstance extends BaseInstance {
18858
18858
  * 获取构件类别大类及单位工程数据
18859
18859
  */
18860
18860
  async loadNodeTypeAndUnitData() {
18861
- let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName"]).eq("PId", 0)));
18861
+ var _a, _b;
18862
+ let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId"]).eq("PId", 0).eq("PlatformId", (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id)));
18862
18863
  this.TypeGroupData.value = Enumerable.from(res).groupBy((e) => e["NodeTypeName"]).select((e) => {
18863
18864
  return {
18864
18865
  NodeTypeName: e.key(),
@@ -18874,7 +18875,7 @@ class StructureSelectInstance extends BaseInstance {
18874
18875
  this.NodeTypeSelect();
18875
18876
  if (this.props.dataValue) {
18876
18877
  let ids = typeof this.props.dataValue == "object" ? this.props.dataValue : [this.props.dataValue];
18877
- this.StructureInstanceCheckData.value = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId"]).in("Id", ids)));
18878
+ this.StructureInstanceCheckData.value = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId"]).in("Id", ids).eq("PlatformId", (_b = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _b.Id)));
18878
18879
  this.StructureInstanceCheckData.value = this.StructureInstanceCheckData.value.map((e) => {
18879
18880
  let unitInfo = this.unitData.value.find((x) => x["Id"] == e.RootId);
18880
18881
  e.UnitName = unitInfo ? unitInfo.NodeName : "";