@newview/file-ui 1.1.40 → 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
@@ -381,7 +381,7 @@ let UploadFileInstance$1 = class UploadFileInstance extends BaseInstance {
381
381
  let temp1 = fileName.split(".");
382
382
  let ext = temp1[temp1.length - 1];
383
383
  let ossContentType = this.getOssContentType(fileName);
384
- let fileMark = this.utilities.getCurrentDate("YYYYMMDDHHmmss") + "." + ext;
384
+ let fileMark = this.utilities.getCurrentDate("YYYYMMDDHHmmss") + "_" + file.name;
385
385
  let ossClient = await new OSSFileApi().getOSSClient();
386
386
  const userInfo = this.storageInfo.getUser();
387
387
  const business = this.storageInfo.getCurrentBusiness();
@@ -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 : "";