@newview/file-ui 1.1.60 → 1.1.61
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 +6 -5
- package/dist/file-ui.umd.cjs +1 -1
- package/package.json +1 -1
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).orderBy(["OrderNo"],
|
|
18875
|
+
let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "PlatformId", "CreateUnitId"]).eq("PId", value).orderBy(["OrderNo"], true)));
|
|
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).orderBy(["OrderNo"],
|
|
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"], true)));
|
|
18894
18894
|
if (res.length == 0) {
|
|
18895
18895
|
item.children = void 0;
|
|
18896
18896
|
callback([]);
|
|
@@ -18947,7 +18947,7 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18947
18947
|
*/
|
|
18948
18948
|
async loadNodeTypeAndUnitData() {
|
|
18949
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"],
|
|
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"], true);
|
|
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", (_b = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _b.Id).orderBy(["OrderNo"],
|
|
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"], true)));
|
|
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 : "";
|
|
@@ -20685,8 +20685,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20685
20685
|
multiple: _ctx.getPropValue(item.uploadFileProp, "multiple"),
|
|
20686
20686
|
isShowFileName: _ctx.getPropValue(item.uploadFileProp, "isShowFileName"),
|
|
20687
20687
|
uploadQuantity: _ctx.getPropValue(item.uploadFileProp, "uploadQuantity", 0),
|
|
20688
|
+
isDownload: _ctx.getPropValue(item.uploadFileProp, "isDownload"),
|
|
20688
20689
|
onReturnFileList: ($event) => _ctx.tokenList($event, item)
|
|
20689
|
-
}, null, 8, ["readonly", "token", "multiple", "isShowFileName", "uploadQuantity", "onReturnFileList"])) : createCommentVNode("", true),
|
|
20690
|
+
}, null, 8, ["readonly", "token", "multiple", "isShowFileName", "uploadQuantity", "isDownload", "onReturnFileList"])) : createCommentVNode("", true),
|
|
20690
20691
|
item.type === "TextEditor" ? (openBlock(), createBlock(_component_TextEditor, {
|
|
20691
20692
|
key: 1,
|
|
20692
20693
|
ref: "textEditorRef",
|