@newview/file-ui 1.1.54 → 1.1.55

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
@@ -18773,12 +18773,62 @@ class StructureSelectInstance extends BaseInstance {
18773
18773
  __publicField(this, "UnitValue", ref());
18774
18774
  __publicField(this, "TypeGroupData", ref([]));
18775
18775
  __publicField(this, "activeNodeType", ref(""));
18776
+ __publicField(this, "originalTypeGroupData", ref([]));
18777
+ __publicField(this, "searchTxt", ref(""));
18778
+ __publicField(this, "searchInputRef", ref(null));
18779
+ __publicField(this, "poptipVisible", ref(false));
18776
18780
  /**
18777
18781
  * 单位工程选择项改变事件
18778
18782
  */
18779
18783
  __publicField(this, "unitSelectChange", () => {
18780
18784
  this.doSelectedAfterFun();
18781
18785
  });
18786
+ //#region 模糊搜索
18787
+ /** 查询 */
18788
+ __publicField(this, "doSearch", () => {
18789
+ var _a, _b, _c, _d, _e;
18790
+ const keyword = (_a = this.searchTxt.value) == null ? void 0 : _a.trim();
18791
+ if (!keyword) {
18792
+ this.TypeGroupData.value = JSON.parse(JSON.stringify(this.originalTypeGroupData.value));
18793
+ this.activeNodeType.value = (_b = this.TypeGroupData.value[0]) == null ? void 0 : _b.NodeTypeName;
18794
+ this.unitData.value = ((_c = this.TypeGroupData.value[0]) == null ? void 0 : _c.UnitData) || [];
18795
+ this.NodeTypeSelect();
18796
+ return;
18797
+ }
18798
+ this.TypeGroupData.value = this.originalTypeGroupData.value.map((group) => {
18799
+ const filteredUnits = group.UnitData.filter(
18800
+ (item) => {
18801
+ var _a2;
18802
+ return (_a2 = item.NodeName) == null ? void 0 : _a2.includes(keyword);
18803
+ }
18804
+ );
18805
+ return {
18806
+ ...group,
18807
+ UnitData: filteredUnits
18808
+ };
18809
+ }).filter((group) => group.UnitData.length > 0);
18810
+ this.activeNodeType.value = (_d = this.TypeGroupData.value[0]) == null ? void 0 : _d.NodeTypeName;
18811
+ this.unitData.value = ((_e = this.TypeGroupData.value[0]) == null ? void 0 : _e.UnitData) || [];
18812
+ this.NodeTypeSelect();
18813
+ });
18814
+ __publicField(this, "openStructureInstanceInput", async () => {
18815
+ this.StructureInstanceCheckData.value = [];
18816
+ this.poptipVisible.value = true;
18817
+ await nextTick();
18818
+ await nextTick();
18819
+ const inputRef = this.searchInputRef.value;
18820
+ if (inputRef) {
18821
+ if (typeof inputRef.focus === "function") {
18822
+ inputRef.focus();
18823
+ } else if (inputRef.$el) {
18824
+ const inputEl = inputRef.$el.querySelector("input");
18825
+ if (inputEl) {
18826
+ inputEl.focus();
18827
+ }
18828
+ }
18829
+ }
18830
+ });
18831
+ //#endregion
18782
18832
  //#region 构件选择--单位工程列表相关
18783
18833
  __publicField(this, "activeUnit", ref(0));
18784
18834
  __publicField(this, "activeUnitName", "");
@@ -18787,6 +18837,12 @@ class StructureSelectInstance extends BaseInstance {
18787
18837
  * 顶级构件类别选择事件
18788
18838
  */
18789
18839
  __publicField(this, "NodeTypeSelect", () => {
18840
+ if (this.props.selType == 3 && this.TypeGroupData.value.length == 0) {
18841
+ this.unitData.value = [];
18842
+ this.TypeGroupData.value = [];
18843
+ this.StructureInstanceData.value = [];
18844
+ return;
18845
+ }
18790
18846
  this.unitData.value = this.TypeGroupData.value.find((e) => e["NodeTypeName"] == this.activeNodeType.value).UnitData;
18791
18847
  if (this.props.selType == 1 && this.props.multiple) {
18792
18848
  return;
@@ -18883,8 +18939,8 @@ class StructureSelectInstance extends BaseInstance {
18883
18939
  * 获取构件类别大类及单位工程数据
18884
18940
  */
18885
18941
  async loadNodeTypeAndUnitData() {
18886
- var _a, _b;
18887
- 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);
18942
+ var _a;
18943
+ let filter = new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId", "CreateUnitId"]).eq("PId", 0).eq("PlatformId", 930003);
18888
18944
  if (this.props.businessId) {
18889
18945
  if (typeof this.props.businessId == "number") {
18890
18946
  filter.eq("CreateUnitId", this.props.businessId);
@@ -18902,13 +18958,15 @@ class StructureSelectInstance extends BaseInstance {
18902
18958
  if (this.props.selType == 1) {
18903
18959
  this.UnitValue.value = this.props.dataValue;
18904
18960
  return;
18961
+ } else if (this.props.selType == 3) {
18962
+ this.originalTypeGroupData.value = JSON.parse(JSON.stringify(this.TypeGroupData.value));
18905
18963
  }
18906
18964
  if (this.TypeGroupData.value[0]) {
18907
18965
  this.activeNodeType.value = this.TypeGroupData.value[0].NodeTypeName;
18908
18966
  this.NodeTypeSelect();
18909
18967
  if (this.props.dataValue) {
18910
18968
  let ids = typeof this.props.dataValue == "object" ? this.props.dataValue : [this.props.dataValue];
18911
- 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)));
18969
+ 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)));
18912
18970
  this.StructureInstanceCheckData.value = this.StructureInstanceCheckData.value.map((e) => {
18913
18971
  let unitInfo = this.unitData.value.find((x) => x["Id"] == e.RootId);
18914
18972
  e.UnitName = unitInfo ? unitInfo.NodeName : "";
@@ -18959,45 +19017,70 @@ class StructureSelectInstance extends BaseInstance {
18959
19017
  }
18960
19018
  }
18961
19019
  }
18962
- const NvStructureSelect_vue_vue_type_style_index_0_scoped_99c5b0ad_lang = "";
18963
- const _withScopeId$1 = (n) => (pushScopeId("data-v-99c5b0ad"), n = n(), popScopeId(), n);
19020
+ const NvStructureSelect_vue_vue_type_style_index_0_scoped_32a696a6_lang = "";
19021
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-32a696a6"), n = n(), popScopeId(), n);
18964
19022
  const _hoisted_1$2 = { key: 1 };
18965
19023
  const _hoisted_2$2 = { class: "nv-pos-r" };
18966
19024
  const _hoisted_3$2 = { class: "nv-c-p structure-sel-box" };
18967
19025
  const _hoisted_4$1 = { key: 0 };
18968
- const _hoisted_5$1 = {
19026
+ const _hoisted_5$1 = { key: 1 };
19027
+ const _hoisted_6$1 = { style: { "margin-bottom": "10px" } };
19028
+ const _hoisted_7$1 = {
19029
+ class: "nv-flex",
19030
+ style: { "height": "280px" }
19031
+ };
19032
+ const _hoisted_8$1 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
19033
+ const _hoisted_9$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "单位工程:", -1));
19034
+ const _hoisted_10$1 = { class: "nv-flex-1 nv-overflow-auto" };
19035
+ const _hoisted_11$1 = {
19036
+ key: 0,
19037
+ class: "nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"
19038
+ };
19039
+ const _hoisted_12$1 = { key: 0 };
19040
+ const _hoisted_13$1 = {
19041
+ class: "nv-flex-1 nv-text-nowrap",
19042
+ style: { "margin-left": "7px" }
19043
+ };
19044
+ const _hoisted_14$1 = { key: 0 };
19045
+ const _hoisted_15$1 = { key: 1 };
19046
+ const _hoisted_16$1 = { key: 2 };
19047
+ const _hoisted_17$1 = { class: "nv-pos-r" };
19048
+ const _hoisted_18$1 = { class: "nv-c-p structure-sel-box" };
19049
+ const _hoisted_19 = { key: 0 };
19050
+ const _hoisted_20 = {
18969
19051
  key: 0,
18970
19052
  class: "nv-text-nowrap"
18971
19053
  };
18972
- const _hoisted_6$1 = { key: 1 };
18973
- const _hoisted_7$1 = { key: 0 };
18974
- const _hoisted_8$1 = { key: 1 };
18975
- const _hoisted_9$1 = {
19054
+ const _hoisted_21 = { key: 1 };
19055
+ const _hoisted_22 = { key: 0 };
19056
+ const _hoisted_23 = { key: 1 };
19057
+ const _hoisted_24 = {
18976
19058
  key: 0,
18977
19059
  style: { "margin-bottom": "10px" }
18978
19060
  };
18979
- const _hoisted_10$1 = {
19061
+ const _hoisted_25 = {
18980
19062
  class: "nv-flex",
18981
19063
  style: { "height": "280px" }
18982
19064
  };
18983
- const _hoisted_11$1 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
18984
- const _hoisted_12$1 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "单位工程:", -1));
18985
- const _hoisted_13$1 = { class: "nv-flex-1 nv-overflow-auto" };
18986
- const _hoisted_14$1 = {
19065
+ const _hoisted_26 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
19066
+ const _hoisted_27 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "单位工程:", -1));
19067
+ const _hoisted_28 = { class: "nv-flex-1 nv-overflow-auto" };
19068
+ const _hoisted_29 = {
18987
19069
  key: 0,
18988
19070
  class: "nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"
18989
19071
  };
18990
- const _hoisted_15$1 = { key: 0 };
18991
- const _hoisted_16$1 = {
19072
+ const _hoisted_30 = { key: 0 };
19073
+ const _hoisted_31 = {
18992
19074
  class: "nv-flex-1 nv-text-nowrap",
18993
19075
  style: { "margin-left": "7px" }
18994
19076
  };
18995
- const _hoisted_17$1 = { key: 0 };
18996
- const _hoisted_18$1 = { key: 1 };
19077
+ const _hoisted_32 = { key: 0 };
19078
+ const _hoisted_33 = { key: 1 };
18997
19079
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
18998
19080
  const _component_Option = resolveComponent("Option");
18999
19081
  const _component_OptionGroup = resolveComponent("OptionGroup");
19000
19082
  const _component_Select = resolveComponent("Select");
19083
+ const _component_Input = resolveComponent("Input");
19001
19084
  const _component_Radio = resolveComponent("Radio");
19002
19085
  const _component_RadioGroup = resolveComponent("RadioGroup");
19003
19086
  const _component_nvLoading = resolveComponent("nvLoading");
@@ -19038,18 +19121,20 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19038
19121
  }), 256))
19039
19122
  ]),
19040
19123
  _: 1
19041
- }, 8, ["modelValue", "multiple", "onOnChange", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_1$2, [
19124
+ }, 8, ["modelValue", "multiple", "onOnChange", "disabled"])) : _ctx.selType == 3 ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
19042
19125
  createVNode(_component_Poptip, {
19126
+ modelValue: _ctx.poptipVisible,
19127
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.poptipVisible = $event),
19043
19128
  placement: "bottom-start",
19044
19129
  width: 700,
19045
19130
  transfer: "",
19046
19131
  disabled: _ctx.readonly
19047
19132
  }, {
19048
19133
  content: withCtx(() => [
19049
- _ctx.TypeGroupData.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
19134
+ createElementVNode("div", _hoisted_6$1, [
19050
19135
  createVNode(_component_RadioGroup, {
19051
19136
  modelValue: _ctx.activeNodeType,
19052
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.activeNodeType = $event),
19137
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.activeNodeType = $event),
19053
19138
  type: "button",
19054
19139
  size: "small",
19055
19140
  "button-style": "solid",
@@ -19065,14 +19150,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19065
19150
  ]),
19066
19151
  _: 1
19067
19152
  }, 8, ["modelValue", "onOnChange"])
19068
- ])) : createCommentVNode("", true),
19069
- createElementVNode("div", _hoisted_10$1, [
19070
- createElementVNode("div", _hoisted_11$1, [
19071
- _hoisted_12$1,
19072
- createElementVNode("div", _hoisted_13$1, [
19153
+ ]),
19154
+ createElementVNode("div", _hoisted_7$1, [
19155
+ createElementVNode("div", _hoisted_8$1, [
19156
+ _hoisted_9$1,
19157
+ createElementVNode("div", _hoisted_10$1, [
19073
19158
  createVNode(_component_RadioGroup, {
19074
19159
  modelValue: _ctx.activeUnit,
19075
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.activeUnit = $event),
19160
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.activeUnit = $event),
19076
19161
  vertical: "",
19077
19162
  onOnChange: _ctx.unitSelected
19078
19163
  }, {
@@ -19092,7 +19177,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19092
19177
  }, 8, ["modelValue", "onOnChange"])
19093
19178
  ])
19094
19179
  ]),
19095
- _ctx.selType == 2 ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
19180
+ _ctx.selType == 3 ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
19096
19181
  _ctx.StructureInstanceLoading ? (openBlock(), createBlock(_component_nvLoading, { key: 0 })) : (openBlock(), createBlock(_component_Tree, {
19097
19182
  key: 1,
19098
19183
  style: { "width": "calc(100% - 30px)" },
@@ -19109,11 +19194,133 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19109
19194
  default: withCtx(() => [
19110
19195
  createElementVNode("div", _hoisted_2$2, [
19111
19196
  createElementVNode("div", _hoisted_3$2, [
19112
- _ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_4$1, "点击选择构件")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19113
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_5$1, " 已选择" + toDisplayString(_ctx.StructureInstanceCheckData.length) + "个构件(" + toDisplayString(_ctx.StructureInstanceCheckData.map((e) => e["NodeName"]).toString()) + ") ", 1)) : (openBlock(), createElementBlock("div", _hoisted_6$1, [
19197
+ _ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createBlock(_component_Input, {
19198
+ key: 0,
19199
+ ref: "searchInputRef",
19200
+ class: "nv-full poptipInp",
19201
+ search: "",
19202
+ modelValue: _ctx.searchTxt,
19203
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.searchTxt = $event),
19204
+ clearable: "",
19205
+ placeholder: "点击选择构件",
19206
+ onOnChange: _ctx.doSearch
19207
+ }, null, 8, ["modelValue", "onOnChange"])) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19208
+ _ctx.multiple ? (openBlock(), createElementBlock("div", {
19209
+ key: 0,
19210
+ class: "nv-text-nowrap",
19211
+ onClick: _cache[2] || (_cache[2] = withModifiers((...args) => _ctx.openStructureInstanceInput && _ctx.openStructureInstanceInput(...args), ["stop"]))
19212
+ }, " 已选择" + toDisplayString(_ctx.StructureInstanceCheckData.length) + "个构件(" + toDisplayString(_ctx.StructureInstanceCheckData.map((e) => e["NodeName"]).toString()) + ") ", 1)) : (openBlock(), createElementBlock("div", {
19213
+ key: 1,
19214
+ onClick: _cache[3] || (_cache[3] = withModifiers((...args) => _ctx.openStructureInstanceInput && _ctx.openStructureInstanceInput(...args), ["stop"]))
19215
+ }, [
19216
+ createTextVNode(toDisplayString(_ctx.StructureInstanceCheckData[0].NodeName) + " ", 1),
19217
+ _ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_4$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19218
+ _ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_5$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
19219
+ ]))
19220
+ ], 64))
19221
+ ])
19222
+ ])
19223
+ ]),
19224
+ _: 1
19225
+ }, 8, ["modelValue", "disabled"]),
19226
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
19227
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.StructureInstanceCheckData, (item, index) => {
19228
+ return openBlock(), createElementBlock("div", {
19229
+ class: "nv-flex",
19230
+ key: index
19231
+ }, [
19232
+ !_ctx.readonly ? (openBlock(), createBlock(_component_Icon, {
19233
+ key: 0,
19234
+ class: "nv-c-p",
19235
+ type: "md-trash",
19236
+ onClick: withModifiers(($event) => _ctx.removeStructureInstance(item), ["stop"]),
19237
+ size: 20,
19238
+ color: "#ae5d55"
19239
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
19240
+ createElementVNode("div", _hoisted_13$1, [
19241
+ createTextVNode(toDisplayString(item.NodeName) + " ", 1),
19242
+ item.NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_14$1, "[" + toDisplayString(item.NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19243
+ item.UnitName ? (openBlock(), createElementBlock("span", _hoisted_15$1, "[" + toDisplayString(item.UnitName) + "]", 1)) : createCommentVNode("", true)
19244
+ ])
19245
+ ]);
19246
+ }), 128))
19247
+ ])) : createCommentVNode("", true)
19248
+ ])) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
19249
+ createVNode(_component_Poptip, {
19250
+ placement: "bottom-start",
19251
+ width: 700,
19252
+ transfer: "",
19253
+ disabled: _ctx.readonly
19254
+ }, {
19255
+ content: withCtx(() => [
19256
+ _ctx.TypeGroupData.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_24, [
19257
+ createVNode(_component_RadioGroup, {
19258
+ modelValue: _ctx.activeNodeType,
19259
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.activeNodeType = $event),
19260
+ type: "button",
19261
+ size: "small",
19262
+ "button-style": "solid",
19263
+ onOnChange: _ctx.NodeTypeSelect
19264
+ }, {
19265
+ default: withCtx(() => [
19266
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.TypeGroupData, (item, index) => {
19267
+ return openBlock(), createBlock(_component_Radio, {
19268
+ key: index,
19269
+ label: item.NodeTypeName
19270
+ }, null, 8, ["label"]);
19271
+ }), 128))
19272
+ ]),
19273
+ _: 1
19274
+ }, 8, ["modelValue", "onOnChange"])
19275
+ ])) : createCommentVNode("", true),
19276
+ createElementVNode("div", _hoisted_25, [
19277
+ createElementVNode("div", _hoisted_26, [
19278
+ _hoisted_27,
19279
+ createElementVNode("div", _hoisted_28, [
19280
+ createVNode(_component_RadioGroup, {
19281
+ modelValue: _ctx.activeUnit,
19282
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.activeUnit = $event),
19283
+ vertical: "",
19284
+ onOnChange: _ctx.unitSelected
19285
+ }, {
19286
+ default: withCtx(() => [
19287
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.unitData, (item, index) => {
19288
+ return openBlock(), createBlock(_component_Radio, {
19289
+ label: item.Id
19290
+ }, {
19291
+ default: withCtx(() => [
19292
+ createElementVNode("span", null, toDisplayString(item.NodeName), 1)
19293
+ ]),
19294
+ _: 2
19295
+ }, 1032, ["label"]);
19296
+ }), 256))
19297
+ ]),
19298
+ _: 1
19299
+ }, 8, ["modelValue", "onOnChange"])
19300
+ ])
19301
+ ]),
19302
+ _ctx.selType == 2 ? (openBlock(), createElementBlock("div", _hoisted_29, [
19303
+ _ctx.StructureInstanceLoading ? (openBlock(), createBlock(_component_nvLoading, { key: 0 })) : (openBlock(), createBlock(_component_Tree, {
19304
+ key: 1,
19305
+ style: { "width": "calc(100% - 30px)" },
19306
+ data: _ctx.StructureInstanceData,
19307
+ "load-data": _ctx.loadStructureInstance,
19308
+ "check-strictly": true,
19309
+ "show-checkbox": _ctx.multiple,
19310
+ onOnCheckChange: _ctx.StructureInstanceCheckFun,
19311
+ onOnSelectChange: _ctx.StructureInstanceSelectFun
19312
+ }, null, 8, ["data", "load-data", "show-checkbox", "onOnCheckChange", "onOnSelectChange"]))
19313
+ ])) : createCommentVNode("", true)
19314
+ ])
19315
+ ]),
19316
+ default: withCtx(() => [
19317
+ createElementVNode("div", _hoisted_17$1, [
19318
+ createElementVNode("div", _hoisted_18$1, [
19319
+ _ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_19, "点击选择构件")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19320
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_20, " 已选择" + toDisplayString(_ctx.StructureInstanceCheckData.length) + "个构件(" + toDisplayString(_ctx.StructureInstanceCheckData.map((e) => e["NodeName"]).toString()) + ") ", 1)) : (openBlock(), createElementBlock("div", _hoisted_21, [
19114
19321
  createTextVNode(toDisplayString(_ctx.StructureInstanceCheckData[0].NodeName) + " ", 1),
19115
- _ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_7$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19116
- _ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_8$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
19322
+ _ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_22, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19323
+ _ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_23, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
19117
19324
  ]))
19118
19325
  ], 64))
19119
19326
  ])
@@ -19121,7 +19328,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19121
19328
  ]),
19122
19329
  _: 1
19123
19330
  }, 8, ["disabled"]),
19124
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
19331
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_30, [
19125
19332
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.StructureInstanceCheckData, (item, index) => {
19126
19333
  return openBlock(), createElementBlock("div", {
19127
19334
  class: "nv-flex",
@@ -19135,17 +19342,17 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19135
19342
  size: 20,
19136
19343
  color: "#ae5d55"
19137
19344
  }, null, 8, ["onClick"])) : createCommentVNode("", true),
19138
- createElementVNode("div", _hoisted_16$1, [
19345
+ createElementVNode("div", _hoisted_31, [
19139
19346
  createTextVNode(toDisplayString(item.NodeName) + " ", 1),
19140
- item.NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_17$1, "[" + toDisplayString(item.NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19141
- item.UnitName ? (openBlock(), createElementBlock("span", _hoisted_18$1, "[" + toDisplayString(item.UnitName) + "]", 1)) : createCommentVNode("", true)
19347
+ item.NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_32, "[" + toDisplayString(item.NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19348
+ item.UnitName ? (openBlock(), createElementBlock("span", _hoisted_33, "[" + toDisplayString(item.UnitName) + "]", 1)) : createCommentVNode("", true)
19142
19349
  ])
19143
19350
  ]);
19144
19351
  }), 128))
19145
19352
  ])) : createCommentVNode("", true)
19146
19353
  ]));
19147
19354
  }
19148
- const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-99c5b0ad"]]);
19355
+ const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-32a696a6"]]);
19149
19356
  const propDefine$2 = {
19150
19357
  readonly: {
19151
19358
  // 只读