@newview/file-ui 1.1.57 → 1.1.58

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
@@ -18946,8 +18946,8 @@ class StructureSelectInstance extends BaseInstance {
18946
18946
  * 获取构件类别大类及单位工程数据
18947
18947
  */
18948
18948
  async loadNodeTypeAndUnitData() {
18949
- var _a;
18950
- let filter = new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId", "CreateUnitId"]).eq("PId", 0).eq("PlatformId", 930003);
18949
+ var _a, _b;
18950
+ 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);
18951
18951
  if (this.props.businessId) {
18952
18952
  if (typeof this.props.businessId == "number") {
18953
18953
  filter.eq("CreateUnitId", this.props.businessId);
@@ -18973,7 +18973,7 @@ class StructureSelectInstance extends BaseInstance {
18973
18973
  this.NodeTypeSelect();
18974
18974
  if (this.props.dataValue) {
18975
18975
  let ids = typeof this.props.dataValue == "object" ? this.props.dataValue : [this.props.dataValue];
18976
- this.StructureInstanceCheckData.value = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId"]).in("Id", ids).eq("PlatformId", (_a = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _a.Id)));
18976
+ 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)));
18977
18977
  this.StructureInstanceCheckData.value = this.StructureInstanceCheckData.value.map((e) => {
18978
18978
  let unitInfo = this.unitData.value.find((x) => x["Id"] == e.RootId);
18979
18979
  e.UnitName = unitInfo ? unitInfo.NodeName : "";