@newview/file-ui 1.1.58 → 1.1.60
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 +3 -0
- package/dist/file-ui.js +15 -6
- package/dist/file-ui.umd.cjs +1 -1
- package/package.json +1 -1
- package/types/ComFormUp.d.ts +4 -0
package/README.md
CHANGED
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([]);
|
|
@@ -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);
|
|
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", (_b = this.storageInfo.getCurrentPlatform()) == null ? void 0 : _b.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 : "";
|
|
@@ -19864,6 +19864,11 @@ const propDefine$1 = {
|
|
|
19864
19864
|
/** 开启分页后每页的条数 每页的条数 */
|
|
19865
19865
|
pageSize: 10
|
|
19866
19866
|
}
|
|
19867
|
+
},
|
|
19868
|
+
isDownload: {
|
|
19869
|
+
// 是否允许下载
|
|
19870
|
+
type: Boolean,
|
|
19871
|
+
default: true
|
|
19867
19872
|
}
|
|
19868
19873
|
};
|
|
19869
19874
|
const _sfc_main$1 = defineComponent({
|
|
@@ -19901,6 +19906,8 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
19901
19906
|
__publicField(this, "isShowtrash", ref(true));
|
|
19902
19907
|
/** 是否显示上传按钮 */
|
|
19903
19908
|
__publicField(this, "isShowUpBtn", ref(true));
|
|
19909
|
+
/** 是否显示下载按钮 */
|
|
19910
|
+
__publicField(this, "isShowDownload", ref(true));
|
|
19904
19911
|
__publicField(this, "mainGridApi", "");
|
|
19905
19912
|
__publicField(this, "uploadListGridRef", ref([]));
|
|
19906
19913
|
__publicField(this, "uploadListGridOption", reactive({
|
|
@@ -20003,7 +20010,7 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
20003
20010
|
this.doDwonload(row);
|
|
20004
20011
|
},
|
|
20005
20012
|
isShow: (row) => {
|
|
20006
|
-
return
|
|
20013
|
+
return this.isShowDownload.value;
|
|
20007
20014
|
}
|
|
20008
20015
|
},
|
|
20009
20016
|
{
|
|
@@ -20348,6 +20355,7 @@ class UploadFileInstance2 extends BaseInstance {
|
|
|
20348
20355
|
});
|
|
20349
20356
|
watchEffect(() => {
|
|
20350
20357
|
this.isShowtrash.value = this.props.readonly;
|
|
20358
|
+
this.isShowDownload.value = this.props.isDownload != false;
|
|
20351
20359
|
});
|
|
20352
20360
|
watchEffect(() => {
|
|
20353
20361
|
this.isOpenPagination.value = this.props.paginationSet.isPagination;
|
|
@@ -20727,8 +20735,9 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
20727
20735
|
readonly: _ctx.getPropValue(item.uploadFileListProp, "readonly") || _ctx.onlyView,
|
|
20728
20736
|
token: _ctx.formModel[item.model],
|
|
20729
20737
|
paginationSet: _ctx.getPaginationSet(item),
|
|
20738
|
+
isDownload: _ctx.getPropValue(item.uploadFileProp, "isDownload"),
|
|
20730
20739
|
onReturnFileList: ($event) => _ctx.tokenList($event, item)
|
|
20731
|
-
}, null, 8, ["style", "readonly", "token", "paginationSet", "onReturnFileList"])) : createCommentVNode("", true),
|
|
20740
|
+
}, null, 8, ["style", "readonly", "token", "paginationSet", "isDownload", "onReturnFileList"])) : createCommentVNode("", true),
|
|
20732
20741
|
item.type === "CASign" ? (openBlock(), createBlock(_component_CASign, {
|
|
20733
20742
|
key: 7,
|
|
20734
20743
|
signContent: _ctx.getPropValue(item.signProp, "signContent"),
|