@newview/file-ui 1.1.54 → 1.1.56

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,69 @@ 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, "searchInfo", 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.searchInfo.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
+ // 点击清空输入框内容
18815
+ __publicField(this, "clearSearchInfo", async () => {
18816
+ console.log("%c🤪 ~ file: h:workNvWebs_Basepackagesservice\file·uisrcDataStructureNvStructureSelect.ts:166 : ", "color: #88eceb", "clearSearchInfo");
18817
+ this.searchInfo.value = "";
18818
+ this.doSearch();
18819
+ });
18820
+ // 点击清空已选项并使输入框获得焦点
18821
+ // openStructureInstanceInput = async () => {
18822
+ // this.StructureInstanceCheckData.value = []
18823
+ // this.poptipVisible.value = true
18824
+ // await nextTick()
18825
+ // await nextTick()
18826
+ // const inputRef = this.searchInputRef.value
18827
+ // if (inputRef) {
18828
+ // if (typeof inputRef.focus === 'function') {
18829
+ // inputRef.focus()
18830
+ // } else if (inputRef.$el) {
18831
+ // const inputEl = inputRef.$el.querySelector('input')
18832
+ // if (inputEl) {
18833
+ // inputEl.focus()
18834
+ // }
18835
+ // }
18836
+ // }
18837
+ // }
18838
+ //#endregion
18782
18839
  //#region 构件选择--单位工程列表相关
18783
18840
  __publicField(this, "activeUnit", ref(0));
18784
18841
  __publicField(this, "activeUnitName", "");
@@ -18787,6 +18844,12 @@ class StructureSelectInstance extends BaseInstance {
18787
18844
  * 顶级构件类别选择事件
18788
18845
  */
18789
18846
  __publicField(this, "NodeTypeSelect", () => {
18847
+ if (this.props.selType == 3 && this.TypeGroupData.value.length == 0) {
18848
+ this.unitData.value = [];
18849
+ this.TypeGroupData.value = [];
18850
+ this.StructureInstanceData.value = [];
18851
+ return;
18852
+ }
18790
18853
  this.unitData.value = this.TypeGroupData.value.find((e) => e["NodeTypeName"] == this.activeNodeType.value).UnitData;
18791
18854
  if (this.props.selType == 1 && this.props.multiple) {
18792
18855
  return;
@@ -18883,8 +18946,8 @@ class StructureSelectInstance extends BaseInstance {
18883
18946
  * 获取构件类别大类及单位工程数据
18884
18947
  */
18885
18948
  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);
18949
+ var _a;
18950
+ let filter = new QueryWrapper().select(["Id", "NodeTypeName", "NodeType", "NodeName", "RootId", "PlatformId", "CreateUnitId"]).eq("PId", 0).eq("PlatformId", 930003);
18888
18951
  if (this.props.businessId) {
18889
18952
  if (typeof this.props.businessId == "number") {
18890
18953
  filter.eq("CreateUnitId", this.props.businessId);
@@ -18902,13 +18965,15 @@ class StructureSelectInstance extends BaseInstance {
18902
18965
  if (this.props.selType == 1) {
18903
18966
  this.UnitValue.value = this.props.dataValue;
18904
18967
  return;
18968
+ } else if (this.props.selType == 3) {
18969
+ this.originalTypeGroupData.value = JSON.parse(JSON.stringify(this.TypeGroupData.value));
18905
18970
  }
18906
18971
  if (this.TypeGroupData.value[0]) {
18907
18972
  this.activeNodeType.value = this.TypeGroupData.value[0].NodeTypeName;
18908
18973
  this.NodeTypeSelect();
18909
18974
  if (this.props.dataValue) {
18910
18975
  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)));
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)));
18912
18977
  this.StructureInstanceCheckData.value = this.StructureInstanceCheckData.value.map((e) => {
18913
18978
  let unitInfo = this.unitData.value.find((x) => x["Id"] == e.RootId);
18914
18979
  e.UnitName = unitInfo ? unitInfo.NodeName : "";
@@ -18959,47 +19024,72 @@ class StructureSelectInstance extends BaseInstance {
18959
19024
  }
18960
19025
  }
18961
19026
  }
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);
19027
+ const NvStructureSelect_vue_vue_type_style_index_0_scoped_079c1ad0_lang = "";
19028
+ const _withScopeId$1 = (n) => (pushScopeId("data-v-079c1ad0"), n = n(), popScopeId(), n);
18964
19029
  const _hoisted_1$2 = { key: 1 };
18965
19030
  const _hoisted_2$2 = { class: "nv-pos-r" };
18966
19031
  const _hoisted_3$2 = { class: "nv-c-p structure-sel-box" };
18967
19032
  const _hoisted_4$1 = { key: 0 };
18968
- const _hoisted_5$1 = {
19033
+ const _hoisted_5$1 = { key: 0 };
19034
+ const _hoisted_6$1 = { key: 1 };
19035
+ const _hoisted_7$1 = { style: { "margin-bottom": "10px" } };
19036
+ const _hoisted_8$1 = {
19037
+ class: "nv-flex",
19038
+ style: { "height": "280px" }
19039
+ };
19040
+ const _hoisted_9$1 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
19041
+ const _hoisted_10$1 = { class: "nv-flex-1 nv-overflow-auto" };
19042
+ const _hoisted_11$1 = {
19043
+ key: 0,
19044
+ class: "nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"
19045
+ };
19046
+ const _hoisted_12$1 = { key: 0 };
19047
+ const _hoisted_13$1 = {
19048
+ class: "nv-flex-1 nv-text-nowrap",
19049
+ style: { "margin-left": "7px" }
19050
+ };
19051
+ const _hoisted_14$1 = { key: 0 };
19052
+ const _hoisted_15$1 = { key: 1 };
19053
+ const _hoisted_16$1 = { key: 2 };
19054
+ const _hoisted_17$1 = { class: "nv-pos-r" };
19055
+ const _hoisted_18$1 = { class: "nv-c-p structure-sel-box" };
19056
+ const _hoisted_19 = { key: 0 };
19057
+ const _hoisted_20 = {
18969
19058
  key: 0,
18970
19059
  class: "nv-text-nowrap"
18971
19060
  };
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 = {
19061
+ const _hoisted_21 = { key: 1 };
19062
+ const _hoisted_22 = { key: 0 };
19063
+ const _hoisted_23 = { key: 1 };
19064
+ const _hoisted_24 = {
18976
19065
  key: 0,
18977
19066
  style: { "margin-bottom": "10px" }
18978
19067
  };
18979
- const _hoisted_10$1 = {
19068
+ const _hoisted_25 = {
18980
19069
  class: "nv-flex",
18981
19070
  style: { "height": "280px" }
18982
19071
  };
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 = {
19072
+ const _hoisted_26 = { class: "nv-flex-1 nv-flex-col nv-full-h" };
19073
+ const _hoisted_27 = /* @__PURE__ */ _withScopeId$1(() => /* @__PURE__ */ createElementVNode("div", null, "单位工程:", -1));
19074
+ const _hoisted_28 = { class: "nv-flex-1 nv-overflow-auto" };
19075
+ const _hoisted_29 = {
18987
19076
  key: 0,
18988
19077
  class: "nv-flex-1 nv-full-h nv-overflow-auto nv-pos-r"
18989
19078
  };
18990
- const _hoisted_15$1 = { key: 0 };
18991
- const _hoisted_16$1 = {
19079
+ const _hoisted_30 = { key: 0 };
19080
+ const _hoisted_31 = {
18992
19081
  class: "nv-flex-1 nv-text-nowrap",
18993
19082
  style: { "margin-left": "7px" }
18994
19083
  };
18995
- const _hoisted_17$1 = { key: 0 };
18996
- const _hoisted_18$1 = { key: 1 };
19084
+ const _hoisted_32 = { key: 0 };
19085
+ const _hoisted_33 = { key: 1 };
18997
19086
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
18998
19087
  const _component_Option = resolveComponent("Option");
18999
19088
  const _component_OptionGroup = resolveComponent("OptionGroup");
19000
19089
  const _component_Select = resolveComponent("Select");
19001
19090
  const _component_Radio = resolveComponent("Radio");
19002
19091
  const _component_RadioGroup = resolveComponent("RadioGroup");
19092
+ const _component_Input = resolveComponent("Input");
19003
19093
  const _component_nvLoading = resolveComponent("nvLoading");
19004
19094
  const _component_Tree = resolveComponent("Tree");
19005
19095
  const _component_Poptip = resolveComponent("Poptip");
@@ -19038,18 +19128,20 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19038
19128
  }), 256))
19039
19129
  ]),
19040
19130
  _: 1
19041
- }, 8, ["modelValue", "multiple", "onOnChange", "disabled"])) : (openBlock(), createElementBlock("div", _hoisted_1$2, [
19131
+ }, 8, ["modelValue", "multiple", "onOnChange", "disabled"])) : _ctx.selType == 3 ? (openBlock(), createElementBlock("div", _hoisted_1$2, [
19042
19132
  createVNode(_component_Poptip, {
19133
+ modelValue: _ctx.poptipVisible,
19134
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => _ctx.poptipVisible = $event),
19043
19135
  placement: "bottom-start",
19044
19136
  width: 700,
19045
19137
  transfer: "",
19046
19138
  disabled: _ctx.readonly
19047
19139
  }, {
19048
19140
  content: withCtx(() => [
19049
- _ctx.TypeGroupData.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_9$1, [
19141
+ createElementVNode("div", _hoisted_7$1, [
19050
19142
  createVNode(_component_RadioGroup, {
19051
19143
  modelValue: _ctx.activeNodeType,
19052
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => _ctx.activeNodeType = $event),
19144
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => _ctx.activeNodeType = $event),
19053
19145
  type: "button",
19054
19146
  size: "small",
19055
19147
  "button-style": "solid",
@@ -19065,14 +19157,27 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19065
19157
  ]),
19066
19158
  _: 1
19067
19159
  }, 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, [
19160
+ ]),
19161
+ createElementVNode("div", _hoisted_8$1, [
19162
+ createElementVNode("div", _hoisted_9$1, [
19163
+ createElementVNode("div", null, [
19164
+ createTextVNode("单位工程: "),
19165
+ createVNode(_component_Input, {
19166
+ ref: "searchInputRef",
19167
+ size: "small",
19168
+ class: "nv-full poptipInp",
19169
+ search: "",
19170
+ modelValue: _ctx.searchInfo,
19171
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => _ctx.searchInfo = $event),
19172
+ clearable: "",
19173
+ placeholder: "点击选择构件",
19174
+ onOnChange: _ctx.doSearch
19175
+ }, null, 8, ["modelValue", "onOnChange"])
19176
+ ]),
19177
+ createElementVNode("div", _hoisted_10$1, [
19073
19178
  createVNode(_component_RadioGroup, {
19074
19179
  modelValue: _ctx.activeUnit,
19075
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => _ctx.activeUnit = $event),
19180
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => _ctx.activeUnit = $event),
19076
19181
  vertical: "",
19077
19182
  onOnChange: _ctx.unitSelected
19078
19183
  }, {
@@ -19092,7 +19197,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19092
19197
  }, 8, ["modelValue", "onOnChange"])
19093
19198
  ])
19094
19199
  ]),
19095
- _ctx.selType == 2 ? (openBlock(), createElementBlock("div", _hoisted_14$1, [
19200
+ _ctx.selType == 3 ? (openBlock(), createElementBlock("div", _hoisted_11$1, [
19096
19201
  _ctx.StructureInstanceLoading ? (openBlock(), createBlock(_component_nvLoading, { key: 0 })) : (openBlock(), createBlock(_component_Tree, {
19097
19202
  key: 1,
19098
19203
  style: { "width": "calc(100% - 30px)" },
@@ -19110,10 +19215,122 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19110
19215
  createElementVNode("div", _hoisted_2$2, [
19111
19216
  createElementVNode("div", _hoisted_3$2, [
19112
19217
  _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, [
19218
+ _ctx.multiple ? (openBlock(), createElementBlock("div", {
19219
+ key: 0,
19220
+ class: "nv-text-nowrap",
19221
+ onClick: _cache[1] || (_cache[1] = (...args) => _ctx.clearSearchInfo && _ctx.clearSearchInfo(...args))
19222
+ }, " 已选择" + toDisplayString(_ctx.StructureInstanceCheckData.length) + "个构件(" + toDisplayString(_ctx.StructureInstanceCheckData.map((e) => e["NodeName"]).toString()) + ") ", 1)) : (openBlock(), createElementBlock("div", {
19223
+ key: 1,
19224
+ onClick: _cache[2] || (_cache[2] = (...args) => _ctx.clearSearchInfo && _ctx.clearSearchInfo(...args))
19225
+ }, [
19226
+ createTextVNode(toDisplayString(_ctx.StructureInstanceCheckData[0].NodeName) + " ", 1),
19227
+ _ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_5$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19228
+ _ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_6$1, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
19229
+ ]))
19230
+ ], 64))
19231
+ ])
19232
+ ])
19233
+ ]),
19234
+ _: 1
19235
+ }, 8, ["modelValue", "disabled"]),
19236
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_12$1, [
19237
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.StructureInstanceCheckData, (item, index) => {
19238
+ return openBlock(), createElementBlock("div", {
19239
+ class: "nv-flex",
19240
+ key: index
19241
+ }, [
19242
+ !_ctx.readonly ? (openBlock(), createBlock(_component_Icon, {
19243
+ key: 0,
19244
+ class: "nv-c-p",
19245
+ type: "md-trash",
19246
+ onClick: withModifiers(($event) => _ctx.removeStructureInstance(item), ["stop"]),
19247
+ size: 20,
19248
+ color: "#ae5d55"
19249
+ }, null, 8, ["onClick"])) : createCommentVNode("", true),
19250
+ createElementVNode("div", _hoisted_13$1, [
19251
+ createTextVNode(toDisplayString(item.NodeName) + " ", 1),
19252
+ item.NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_14$1, "[" + toDisplayString(item.NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19253
+ item.UnitName ? (openBlock(), createElementBlock("span", _hoisted_15$1, "[" + toDisplayString(item.UnitName) + "]", 1)) : createCommentVNode("", true)
19254
+ ])
19255
+ ]);
19256
+ }), 128))
19257
+ ])) : createCommentVNode("", true)
19258
+ ])) : (openBlock(), createElementBlock("div", _hoisted_16$1, [
19259
+ createVNode(_component_Poptip, {
19260
+ placement: "bottom-start",
19261
+ width: 700,
19262
+ transfer: "",
19263
+ disabled: _ctx.readonly
19264
+ }, {
19265
+ content: withCtx(() => [
19266
+ _ctx.TypeGroupData.length > 1 ? (openBlock(), createElementBlock("div", _hoisted_24, [
19267
+ createVNode(_component_RadioGroup, {
19268
+ modelValue: _ctx.activeNodeType,
19269
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = ($event) => _ctx.activeNodeType = $event),
19270
+ type: "button",
19271
+ size: "small",
19272
+ "button-style": "solid",
19273
+ onOnChange: _ctx.NodeTypeSelect
19274
+ }, {
19275
+ default: withCtx(() => [
19276
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.TypeGroupData, (item, index) => {
19277
+ return openBlock(), createBlock(_component_Radio, {
19278
+ key: index,
19279
+ label: item.NodeTypeName
19280
+ }, null, 8, ["label"]);
19281
+ }), 128))
19282
+ ]),
19283
+ _: 1
19284
+ }, 8, ["modelValue", "onOnChange"])
19285
+ ])) : createCommentVNode("", true),
19286
+ createElementVNode("div", _hoisted_25, [
19287
+ createElementVNode("div", _hoisted_26, [
19288
+ _hoisted_27,
19289
+ createElementVNode("div", _hoisted_28, [
19290
+ createVNode(_component_RadioGroup, {
19291
+ modelValue: _ctx.activeUnit,
19292
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = ($event) => _ctx.activeUnit = $event),
19293
+ vertical: "",
19294
+ onOnChange: _ctx.unitSelected
19295
+ }, {
19296
+ default: withCtx(() => [
19297
+ (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.unitData, (item, index) => {
19298
+ return openBlock(), createBlock(_component_Radio, {
19299
+ label: item.Id
19300
+ }, {
19301
+ default: withCtx(() => [
19302
+ createElementVNode("span", null, toDisplayString(item.NodeName), 1)
19303
+ ]),
19304
+ _: 2
19305
+ }, 1032, ["label"]);
19306
+ }), 256))
19307
+ ]),
19308
+ _: 1
19309
+ }, 8, ["modelValue", "onOnChange"])
19310
+ ])
19311
+ ]),
19312
+ _ctx.selType == 2 ? (openBlock(), createElementBlock("div", _hoisted_29, [
19313
+ _ctx.StructureInstanceLoading ? (openBlock(), createBlock(_component_nvLoading, { key: 0 })) : (openBlock(), createBlock(_component_Tree, {
19314
+ key: 1,
19315
+ style: { "width": "calc(100% - 30px)" },
19316
+ data: _ctx.StructureInstanceData,
19317
+ "load-data": _ctx.loadStructureInstance,
19318
+ "check-strictly": true,
19319
+ "show-checkbox": _ctx.multiple,
19320
+ onOnCheckChange: _ctx.StructureInstanceCheckFun,
19321
+ onOnSelectChange: _ctx.StructureInstanceSelectFun
19322
+ }, null, 8, ["data", "load-data", "show-checkbox", "onOnCheckChange", "onOnSelectChange"]))
19323
+ ])) : createCommentVNode("", true)
19324
+ ])
19325
+ ]),
19326
+ default: withCtx(() => [
19327
+ createElementVNode("div", _hoisted_17$1, [
19328
+ createElementVNode("div", _hoisted_18$1, [
19329
+ _ctx.StructureInstanceCheckData.length == 0 ? (openBlock(), createElementBlock("div", _hoisted_19, "点击选择构件")) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
19330
+ _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
19331
  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)
19332
+ _ctx.StructureInstanceCheckData[0].NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_22, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19333
+ _ctx.StructureInstanceCheckData[0].UnitName ? (openBlock(), createElementBlock("span", _hoisted_23, "[" + toDisplayString(_ctx.StructureInstanceCheckData[0].UnitName) + "]", 1)) : createCommentVNode("", true)
19117
19334
  ]))
19118
19335
  ], 64))
19119
19336
  ])
@@ -19121,7 +19338,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19121
19338
  ]),
19122
19339
  _: 1
19123
19340
  }, 8, ["disabled"]),
19124
- _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_15$1, [
19341
+ _ctx.multiple ? (openBlock(), createElementBlock("div", _hoisted_30, [
19125
19342
  (openBlock(true), createElementBlock(Fragment, null, renderList(_ctx.StructureInstanceCheckData, (item, index) => {
19126
19343
  return openBlock(), createElementBlock("div", {
19127
19344
  class: "nv-flex",
@@ -19135,17 +19352,17 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
19135
19352
  size: 20,
19136
19353
  color: "#ae5d55"
19137
19354
  }, null, 8, ["onClick"])) : createCommentVNode("", true),
19138
- createElementVNode("div", _hoisted_16$1, [
19355
+ createElementVNode("div", _hoisted_31, [
19139
19356
  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)
19357
+ item.NodeTypeName ? (openBlock(), createElementBlock("span", _hoisted_32, "[" + toDisplayString(item.NodeTypeName) + "]", 1)) : createCommentVNode("", true),
19358
+ item.UnitName ? (openBlock(), createElementBlock("span", _hoisted_33, "[" + toDisplayString(item.UnitName) + "]", 1)) : createCommentVNode("", true)
19142
19359
  ])
19143
19360
  ]);
19144
19361
  }), 128))
19145
19362
  ])) : createCommentVNode("", true)
19146
19363
  ]));
19147
19364
  }
19148
- const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-99c5b0ad"]]);
19365
+ const NvStructureSelect = /* @__PURE__ */ _export_sfc(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-079c1ad0"]]);
19149
19366
  const propDefine$2 = {
19150
19367
  readonly: {
19151
19368
  // 只读