@newview/file-ui 1.1.57 → 1.1.59

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/README.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 1.1.59
2
+ 1、构件选择组件增加排序
3
+
1
4
  ## 1.1.53
2
5
  1、表单组件签字项增加只读状态
3
6
 
package/dist/file-ui.js CHANGED
@@ -18872,7 +18872,7 @@ class StructureSelectInstance extends BaseInstance {
18872
18872
  this.activeUnitName = this.unitData.value.find((e) => e["Id"] == value).NodeName;
18873
18873
  this.StructureInstanceLoading.value = true;
18874
18874
  this.StructureInstanceData.value = [];
18875
- let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "PlatformId", "CreateUnitId"]).eq("PId", value)));
18875
+ let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "PlatformId", "CreateUnitId"]).eq("PId", value).orderBy(["OrderNo"], false)));
18876
18876
  this.StructureInstanceData.value = res.map((e) => {
18877
18877
  e.title = e.NodeName;
18878
18878
  e.UnitName = this.activeUnitName;
@@ -18890,7 +18890,7 @@ class StructureSelectInstance extends BaseInstance {
18890
18890
  * @returns
18891
18891
  */
18892
18892
  __publicField(this, "loadStructureInstance", async (item, callback) => {
18893
- let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "PlatformId", "CreateUnitId"]).eq("PId", item.Id)));
18893
+ let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "PlatformId", "CreateUnitId"]).eq("PId", item.Id).orderBy(["OrderNo"], false)));
18894
18894
  if (res.length == 0) {
18895
18895
  item.children = void 0;
18896
18896
  callback([]);
@@ -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).orderBy(["OrderNo"], false);
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).orderBy(["OrderNo"], false)));
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 : "";