@newview/file-ui 1.1.43 → 1.1.45
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 +38 -15
- package/dist/file-ui.umd.cjs +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/file-ui.js
CHANGED
|
@@ -18724,8 +18724,8 @@ const propDefine$2 = {
|
|
|
18724
18724
|
},
|
|
18725
18725
|
businessId: {
|
|
18726
18726
|
// 创建机构id
|
|
18727
|
-
type:
|
|
18728
|
-
default:
|
|
18727
|
+
type: Array || Number,
|
|
18728
|
+
default: 0
|
|
18729
18729
|
},
|
|
18730
18730
|
dataValue: {
|
|
18731
18731
|
// 值
|
|
@@ -18760,6 +18760,12 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18760
18760
|
__publicField(this, "UnitValue", ref());
|
|
18761
18761
|
__publicField(this, "TypeGroupData", ref([]));
|
|
18762
18762
|
__publicField(this, "activeNodeType", ref(""));
|
|
18763
|
+
/**
|
|
18764
|
+
* 单位工程选择项改变事件
|
|
18765
|
+
*/
|
|
18766
|
+
__publicField(this, "unitSelectChange", () => {
|
|
18767
|
+
this.doSelectedAfterFun();
|
|
18768
|
+
});
|
|
18763
18769
|
//#region 构件选择--单位工程列表相关
|
|
18764
18770
|
__publicField(this, "activeUnit", ref(0));
|
|
18765
18771
|
__publicField(this, "activeUnitName", "");
|
|
@@ -18866,7 +18872,11 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18866
18872
|
var _a, _b;
|
|
18867
18873
|
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);
|
|
18868
18874
|
if (this.props.businessId) {
|
|
18869
|
-
|
|
18875
|
+
if (typeof this.props.businessId == "number") {
|
|
18876
|
+
filter.eq("CreateUnitId", this.props.businessId);
|
|
18877
|
+
} else if (Array.isArray(this.props.businessId)) {
|
|
18878
|
+
filter.in("CreateUnitId", this.props.businessId);
|
|
18879
|
+
}
|
|
18870
18880
|
}
|
|
18871
18881
|
let res = this.utilities.parseApiResult(await this.structureInstanceApi.getEntities(filter));
|
|
18872
18882
|
this.TypeGroupData.value = Enumerable.from(res).groupBy((e) => e["NodeTypeName"]).select((e) => {
|
|
@@ -18893,12 +18903,6 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18893
18903
|
}
|
|
18894
18904
|
}
|
|
18895
18905
|
}
|
|
18896
|
-
/**
|
|
18897
|
-
* 单位工程选择项改变事件
|
|
18898
|
-
*/
|
|
18899
|
-
unitSelectChange() {
|
|
18900
|
-
this.doSelectedAfterFun();
|
|
18901
|
-
}
|
|
18902
18906
|
/**
|
|
18903
18907
|
* 变更树组件选中状态
|
|
18904
18908
|
* @param data
|
|
@@ -18917,14 +18921,32 @@ class StructureSelectInstance extends BaseInstance {
|
|
|
18917
18921
|
*/
|
|
18918
18922
|
doSelectedAfterFun() {
|
|
18919
18923
|
if (this.props.selType == 1) {
|
|
18920
|
-
|
|
18924
|
+
try {
|
|
18925
|
+
let unitData = [];
|
|
18926
|
+
this.TypeGroupData.value.map((e) => {
|
|
18927
|
+
e.UnitData.map((x) => {
|
|
18928
|
+
if (Array.isArray(this.UnitValue.value)) {
|
|
18929
|
+
if (this.UnitValue.value.includes(x.Id)) {
|
|
18930
|
+
unitData.push(x);
|
|
18931
|
+
}
|
|
18932
|
+
} else {
|
|
18933
|
+
if (this.UnitValue.value == x.Id) {
|
|
18934
|
+
unitData = [x];
|
|
18935
|
+
}
|
|
18936
|
+
}
|
|
18937
|
+
});
|
|
18938
|
+
});
|
|
18939
|
+
this.ctx.emit("on-change", { Ids: this.UnitValue.value, data: unitData });
|
|
18940
|
+
} catch (error) {
|
|
18941
|
+
this.ctx.emit("on-change", { Ids: this.UnitValue.value, data: [] });
|
|
18942
|
+
}
|
|
18921
18943
|
} else {
|
|
18922
18944
|
this.ctx.emit("on-change", { Ids: this.StructureInstanceCheckData.value.map((e) => e["Id"]), data: this.StructureInstanceCheckData.value });
|
|
18923
18945
|
}
|
|
18924
18946
|
}
|
|
18925
18947
|
}
|
|
18926
|
-
const
|
|
18927
|
-
const _withScopeId = (n) => (pushScopeId("data-v-
|
|
18948
|
+
const NvStructureSelect_vue_vue_type_style_index_0_scoped_99c5b0ad_lang = "";
|
|
18949
|
+
const _withScopeId = (n) => (pushScopeId("data-v-99c5b0ad"), n = n(), popScopeId(), n);
|
|
18928
18950
|
const _hoisted_1$1 = { key: 1 };
|
|
18929
18951
|
const _hoisted_2$1 = { class: "nv-pos-r" };
|
|
18930
18952
|
const _hoisted_3$1 = { class: "nv-c-p structure-sel-box" };
|
|
@@ -19006,7 +19028,8 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19006
19028
|
createVNode(_component_Poptip, {
|
|
19007
19029
|
placement: "bottom-start",
|
|
19008
19030
|
width: 700,
|
|
19009
|
-
transfer: ""
|
|
19031
|
+
transfer: "",
|
|
19032
|
+
disabled: _ctx.readonly
|
|
19010
19033
|
}, {
|
|
19011
19034
|
content: withCtx(() => [
|
|
19012
19035
|
_ctx.TypeGroupData.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9, [
|
|
@@ -19083,7 +19106,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19083
19106
|
])
|
|
19084
19107
|
]),
|
|
19085
19108
|
_: 1
|
|
19086
|
-
}),
|
|
19109
|
+
}, 8, ["disabled"]),
|
|
19087
19110
|
_ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_15, [
|
|
19088
19111
|
(openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.StructureInstanceCheckData, (item, index) => {
|
|
19089
19112
|
return openBlock(), createElementBlock("div", {
|
|
@@ -19108,7 +19131,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
19108
19131
|
])) : createCommentVNode("", true)
|
|
19109
19132
|
]));
|
|
19110
19133
|
}
|
|
19111
|
-
const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-
|
|
19134
|
+
const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-99c5b0ad"]]);
|
|
19112
19135
|
const propDefine$1 = {
|
|
19113
19136
|
linkParam: {
|
|
19114
19137
|
// 带入的参数
|