form-custom-test 3.0.99 → 3.0.101

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/render.es.js CHANGED
@@ -1968,7 +1968,8 @@ var enLocale_extension = {
1968
1968
  selectTreeCheckStrictly: "Check Strictly",
1969
1969
  assetSelectButtonText: "Button Text",
1970
1970
  assetSelectTypeJson: "Asset Type Json",
1971
- assetTableTypeJson: "Asset Table Type Json"
1971
+ assetTableTypeJson: "Asset Table Type Json",
1972
+ assetSelectAssetTypeValue: "Asset Type Value"
1972
1973
  }
1973
1974
  }
1974
1975
  };
@@ -2014,7 +2015,8 @@ var zhLocale_extension = {
2014
2015
  selectTreeCheckStrictly: "\u662F\u5426\u4E25\u683C\u9009\u4E2D",
2015
2016
  assetSelectButtonText: "\u6309\u94AE\u6587\u5B57",
2016
2017
  assetSelectTypeJson: "\u8D44\u4EA7\u7C7B\u578BJson",
2017
- assetTableTypeJson: "\u8D44\u4EA7\u8868\u683C\u7C7B\u578BJson"
2018
+ assetTableTypeJson: "\u8D44\u4EA7\u8868\u683C\u7C7B\u578BJson",
2019
+ assetSelectAssetTypeValue: "\u8D44\u4EA7\u7C7B\u578B\u503C"
2018
2020
  }
2019
2021
  }
2020
2022
  };
@@ -2205,7 +2207,7 @@ const _hoisted_1$H = {
2205
2207
  class: "field-action"
2206
2208
  };
2207
2209
  const _hoisted_2$w = ["title"];
2208
- const _hoisted_3$s = ["title"];
2210
+ const _hoisted_3$t = ["title"];
2209
2211
  const _hoisted_4$h = ["title"];
2210
2212
  const _hoisted_5$e = ["title"];
2211
2213
  const _hoisted_6$d = {
@@ -2242,7 +2244,7 @@ function _sfc_render$18(_ctx, _cache, $props, $setup, $data, $options) {
2242
2244
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.moveUpWidget($props.field), ["stop"]))
2243
2245
  }, [
2244
2246
  createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
2245
- ], 8, _hoisted_3$s)) : createCommentVNode("", true),
2247
+ ], 8, _hoisted_3$t)) : createCommentVNode("", true),
2246
2248
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
2247
2249
  key: 1,
2248
2250
  title: _ctx.i18nt("designer.hint.moveDownWidget"),
@@ -9338,7 +9340,7 @@ const _hoisted_2$v = {
9338
9340
  key: 0,
9339
9341
  class: "field-action"
9340
9342
  };
9341
- const _hoisted_3$r = ["title"];
9343
+ const _hoisted_3$s = ["title"];
9342
9344
  const _hoisted_4$g = ["title"];
9343
9345
  const _hoisted_5$d = ["title"];
9344
9346
  const _hoisted_6$c = ["title"];
@@ -9347,7 +9349,7 @@ const _hoisted_7$a = {
9347
9349
  class: "drag-handler background-opacity"
9348
9350
  };
9349
9351
  const _hoisted_8$7 = ["title"];
9350
- const _hoisted_9$5 = { key: 0 };
9352
+ const _hoisted_9$6 = { key: 0 };
9351
9353
  function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
9352
9354
  const _component_svg_icon = resolveComponent("svg-icon");
9353
9355
  const _component_el_tooltip = resolveComponent("el-tooltip");
@@ -9427,7 +9429,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
9427
9429
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget($props.field), ["stop"]))
9428
9430
  }, [
9429
9431
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
9430
- ], 8, _hoisted_3$r),
9432
+ ], 8, _hoisted_3$s),
9431
9433
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
9432
9434
  key: 0,
9433
9435
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
@@ -9456,7 +9458,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
9456
9458
  createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
9457
9459
  ], 8, _hoisted_8$7),
9458
9460
  createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.field.type}`, `extension.widgetLabel.${$props.field.type}`)), 1),
9459
- $props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$5, [
9461
+ $props.field.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$6, [
9460
9462
  createVNode(_component_svg_icon, { "icon-class": "el-hide" })
9461
9463
  ])) : createCommentVNode("", true)
9462
9464
  ])) : createCommentVNode("", true)
@@ -10112,11 +10114,11 @@ const _hoisted_2$u = /* @__PURE__ */ createElementVNode("path", {
10112
10114
  fill: "currentColor",
10113
10115
  d: "M104.704 338.752a64 64 0 0190.496 0l316.8 316.8 316.8-316.8a64 64 0 0190.496 90.496L557.248 791.296a64 64 0 01-90.496 0L104.704 429.248a64 64 0 010-90.496z"
10114
10116
  }, null, -1);
10115
- const _hoisted_3$q = [
10117
+ const _hoisted_3$r = [
10116
10118
  _hoisted_2$u
10117
10119
  ];
10118
10120
  function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
10119
- return openBlock(), createElementBlock("svg", _hoisted_1$E, _hoisted_3$q);
10121
+ return openBlock(), createElementBlock("svg", _hoisted_1$E, _hoisted_3$r);
10120
10122
  }
10121
10123
  var arrowDownBold = /* @__PURE__ */ _export_sfc(_sfc_main$$, [["render", _sfc_render$$]]);
10122
10124
  const _sfc_main$_ = defineComponent({
@@ -10133,11 +10135,11 @@ const _hoisted_2$t = /* @__PURE__ */ createElementVNode("path", {
10133
10135
  fill: "currentColor",
10134
10136
  d: "M831.872 340.864L512 652.672 192.128 340.864a30.592 30.592 0 00-42.752 0 29.12 29.12 0 000 41.6L489.664 714.24a32 32 0 0044.672 0l340.288-331.712a29.12 29.12 0 000-41.728 30.592 30.592 0 00-42.752 0z"
10135
10137
  }, null, -1);
10136
- const _hoisted_3$p = [
10138
+ const _hoisted_3$q = [
10137
10139
  _hoisted_2$t
10138
10140
  ];
10139
10141
  function _sfc_render$_(_ctx, _cache, $props, $setup, $data, $options) {
10140
- return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$p);
10142
+ return openBlock(), createElementBlock("svg", _hoisted_1$D, _hoisted_3$q);
10141
10143
  }
10142
10144
  var arrowDown = /* @__PURE__ */ _export_sfc(_sfc_main$_, [["render", _sfc_render$_]]);
10143
10145
  const _sfc_main$Z = defineComponent({
@@ -10154,11 +10156,11 @@ const _hoisted_2$s = /* @__PURE__ */ createElementVNode("path", {
10154
10156
  fill: "currentColor",
10155
10157
  d: "M488.832 344.32l-339.84 356.672a32 32 0 000 44.16l.384.384a29.44 29.44 0 0042.688 0l320-335.872 319.872 335.872a29.44 29.44 0 0042.688 0l.384-.384a32 32 0 000-44.16L535.168 344.32a32 32 0 00-46.336 0z"
10156
10158
  }, null, -1);
10157
- const _hoisted_3$o = [
10159
+ const _hoisted_3$p = [
10158
10160
  _hoisted_2$s
10159
10161
  ];
10160
10162
  function _sfc_render$Z(_ctx, _cache, $props, $setup, $data, $options) {
10161
- return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$o);
10163
+ return openBlock(), createElementBlock("svg", _hoisted_1$C, _hoisted_3$p);
10162
10164
  }
10163
10165
  var arrowUp = /* @__PURE__ */ _export_sfc(_sfc_main$Z, [["render", _sfc_render$Z]]);
10164
10166
  const _sfc_main$Y = defineComponent({
@@ -10175,7 +10177,7 @@ const _hoisted_2$r = /* @__PURE__ */ createElementVNode("path", {
10175
10177
  fill: "currentColor",
10176
10178
  d: "M352 480h320a32 32 0 110 64H352a32 32 0 010-64z"
10177
10179
  }, null, -1);
10178
- const _hoisted_3$n = /* @__PURE__ */ createElementVNode("path", {
10180
+ const _hoisted_3$o = /* @__PURE__ */ createElementVNode("path", {
10179
10181
  fill: "currentColor",
10180
10182
  d: "M480 672V352a32 32 0 1164 0v320a32 32 0 01-64 0z"
10181
10183
  }, null, -1);
@@ -10185,7 +10187,7 @@ const _hoisted_4$f = /* @__PURE__ */ createElementVNode("path", {
10185
10187
  }, null, -1);
10186
10188
  const _hoisted_5$c = [
10187
10189
  _hoisted_2$r,
10188
- _hoisted_3$n,
10190
+ _hoisted_3$o,
10189
10191
  _hoisted_4$f
10190
10192
  ];
10191
10193
  function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
@@ -10206,11 +10208,11 @@ const _hoisted_2$q = /* @__PURE__ */ createElementVNode("path", {
10206
10208
  fill: "currentColor",
10207
10209
  d: "M160 256H96a32 32 0 010-64h256V95.936a32 32 0 0132-32h256a32 32 0 0132 32V192h256a32 32 0 110 64h-64v672a32 32 0 01-32 32H192a32 32 0 01-32-32V256zm448-64v-64H416v64h192zM224 896h576V256H224v640zm192-128a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32zm192 0a32 32 0 01-32-32V416a32 32 0 0164 0v320a32 32 0 01-32 32z"
10208
10210
  }, null, -1);
10209
- const _hoisted_3$m = [
10211
+ const _hoisted_3$n = [
10210
10212
  _hoisted_2$q
10211
10213
  ];
10212
10214
  function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
10213
- return openBlock(), createElementBlock("svg", _hoisted_1$A, _hoisted_3$m);
10215
+ return openBlock(), createElementBlock("svg", _hoisted_1$A, _hoisted_3$n);
10214
10216
  }
10215
10217
  var _delete = /* @__PURE__ */ _export_sfc(_sfc_main$X, [["render", _sfc_render$X]]);
10216
10218
  const _sfc_main$W = defineComponent({
@@ -10227,13 +10229,13 @@ const _hoisted_2$p = /* @__PURE__ */ createElementVNode("path", {
10227
10229
  fill: "currentColor",
10228
10230
  d: "M832 512a32 32 0 1164 0v352a32 32 0 01-32 32H160a32 32 0 01-32-32V160a32 32 0 0132-32h352a32 32 0 010 64H192v640h640V512z"
10229
10231
  }, null, -1);
10230
- const _hoisted_3$l = /* @__PURE__ */ createElementVNode("path", {
10232
+ const _hoisted_3$m = /* @__PURE__ */ createElementVNode("path", {
10231
10233
  fill: "currentColor",
10232
10234
  d: "M469.952 554.24l52.8-7.552L847.104 222.4a32 32 0 10-45.248-45.248L477.44 501.44l-7.552 52.8zm422.4-422.4a96 96 0 010 135.808l-331.84 331.84a32 32 0 01-18.112 9.088L436.8 623.68a32 32 0 01-36.224-36.224l15.104-105.6a32 32 0 019.024-18.112l331.904-331.84a96 96 0 01135.744 0z"
10233
10235
  }, null, -1);
10234
10236
  const _hoisted_4$e = [
10235
10237
  _hoisted_2$p,
10236
- _hoisted_3$l
10238
+ _hoisted_3$m
10237
10239
  ];
10238
10240
  function _sfc_render$W(_ctx, _cache, $props, $setup, $data, $options) {
10239
10241
  return openBlock(), createElementBlock("svg", _hoisted_1$z, _hoisted_4$e);
@@ -10253,11 +10255,11 @@ const _hoisted_2$o = /* @__PURE__ */ createElementVNode("path", {
10253
10255
  fill: "currentColor",
10254
10256
  d: "M512 64a448 448 0 110 896.064A448 448 0 01512 64zm67.2 275.072c33.28 0 60.288-23.104 60.288-57.344s-27.072-57.344-60.288-57.344c-33.28 0-60.16 23.104-60.16 57.344s26.88 57.344 60.16 57.344zM590.912 699.2c0-6.848 2.368-24.64 1.024-34.752l-52.608 60.544c-10.88 11.456-24.512 19.392-30.912 17.28a12.992 12.992 0 01-8.256-14.72l87.68-276.992c7.168-35.136-12.544-67.2-54.336-71.296-44.096 0-108.992 44.736-148.48 101.504 0 6.784-1.28 23.68.064 33.792l52.544-60.608c10.88-11.328 23.552-19.328 29.952-17.152a12.8 12.8 0 017.808 16.128L388.48 728.576c-10.048 32.256 8.96 63.872 55.04 71.04 67.84 0 107.904-43.648 147.456-100.416z"
10255
10257
  }, null, -1);
10256
- const _hoisted_3$k = [
10258
+ const _hoisted_3$l = [
10257
10259
  _hoisted_2$o
10258
10260
  ];
10259
10261
  function _sfc_render$V(_ctx, _cache, $props, $setup, $data, $options) {
10260
- return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_3$k);
10262
+ return openBlock(), createElementBlock("svg", _hoisted_1$y, _hoisted_3$l);
10261
10263
  }
10262
10264
  var infoFilled = /* @__PURE__ */ _export_sfc(_sfc_main$V, [["render", _sfc_render$V]]);
10263
10265
  const _sfc_main$U = defineComponent({
@@ -10274,11 +10276,11 @@ const _hoisted_2$n = /* @__PURE__ */ createElementVNode("path", {
10274
10276
  fill: "currentColor",
10275
10277
  d: "M512 64a32 32 0 0132 32v192a32 32 0 01-64 0V96a32 32 0 0132-32zm0 640a32 32 0 0132 32v192a32 32 0 11-64 0V736a32 32 0 0132-32zm448-192a32 32 0 01-32 32H736a32 32 0 110-64h192a32 32 0 0132 32zm-640 0a32 32 0 01-32 32H96a32 32 0 010-64h192a32 32 0 0132 32zM195.2 195.2a32 32 0 0145.248 0L376.32 331.008a32 32 0 01-45.248 45.248L195.2 240.448a32 32 0 010-45.248zm452.544 452.544a32 32 0 0145.248 0L828.8 783.552a32 32 0 01-45.248 45.248L647.744 692.992a32 32 0 010-45.248zM828.8 195.264a32 32 0 010 45.184L692.992 376.32a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0zm-452.544 452.48a32 32 0 010 45.248L240.448 828.8a32 32 0 01-45.248-45.248l135.808-135.808a32 32 0 0145.248 0z"
10276
10278
  }, null, -1);
10277
- const _hoisted_3$j = [
10279
+ const _hoisted_3$k = [
10278
10280
  _hoisted_2$n
10279
10281
  ];
10280
10282
  function _sfc_render$U(_ctx, _cache, $props, $setup, $data, $options) {
10281
- return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$j);
10283
+ return openBlock(), createElementBlock("svg", _hoisted_1$x, _hoisted_3$k);
10282
10284
  }
10283
10285
  var loading = /* @__PURE__ */ _export_sfc(_sfc_main$U, [["render", _sfc_render$U]]);
10284
10286
  const _sfc_main$T = defineComponent({
@@ -10295,11 +10297,11 @@ const _hoisted_2$m = /* @__PURE__ */ createElementVNode("path", {
10295
10297
  fill: "currentColor",
10296
10298
  d: "M128 544h768a32 32 0 100-64H128a32 32 0 000 64z"
10297
10299
  }, null, -1);
10298
- const _hoisted_3$i = [
10300
+ const _hoisted_3$j = [
10299
10301
  _hoisted_2$m
10300
10302
  ];
10301
10303
  function _sfc_render$T(_ctx, _cache, $props, $setup, $data, $options) {
10302
- return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_3$i);
10304
+ return openBlock(), createElementBlock("svg", _hoisted_1$w, _hoisted_3$j);
10303
10305
  }
10304
10306
  var minus = /* @__PURE__ */ _export_sfc(_sfc_main$T, [["render", _sfc_render$T]]);
10305
10307
  const _sfc_main$S = defineComponent({
@@ -10316,11 +10318,11 @@ const _hoisted_2$l = /* @__PURE__ */ createElementVNode("path", {
10316
10318
  fill: "currentColor",
10317
10319
  d: "M480 480V128a32 32 0 0164 0v352h352a32 32 0 110 64H544v352a32 32 0 11-64 0V544H128a32 32 0 010-64h352z"
10318
10320
  }, null, -1);
10319
- const _hoisted_3$h = [
10321
+ const _hoisted_3$i = [
10320
10322
  _hoisted_2$l
10321
10323
  ];
10322
10324
  function _sfc_render$S(_ctx, _cache, $props, $setup, $data, $options) {
10323
- return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$h);
10325
+ return openBlock(), createElementBlock("svg", _hoisted_1$v, _hoisted_3$i);
10324
10326
  }
10325
10327
  var plus = /* @__PURE__ */ _export_sfc(_sfc_main$S, [["render", _sfc_render$S]]);
10326
10328
  const _sfc_main$R = defineComponent({
@@ -10337,11 +10339,11 @@ const _hoisted_2$k = /* @__PURE__ */ createElementVNode("path", {
10337
10339
  fill: "currentColor",
10338
10340
  d: "M795.904 750.72l124.992 124.928a32 32 0 01-45.248 45.248L750.656 795.904a416 416 0 1145.248-45.248zM480 832a352 352 0 100-704 352 352 0 000 704z"
10339
10341
  }, null, -1);
10340
- const _hoisted_3$g = [
10342
+ const _hoisted_3$h = [
10341
10343
  _hoisted_2$k
10342
10344
  ];
10343
10345
  function _sfc_render$R(_ctx, _cache, $props, $setup, $data, $options) {
10344
- return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$g);
10346
+ return openBlock(), createElementBlock("svg", _hoisted_1$u, _hoisted_3$h);
10345
10347
  }
10346
10348
  var search = /* @__PURE__ */ _export_sfc(_sfc_main$R, [["render", _sfc_render$R]]);
10347
10349
  var defaultConfig = {
@@ -10793,13 +10795,13 @@ const _hoisted_2$j = {
10793
10795
  key: 0,
10794
10796
  class: "el-upload__tip"
10795
10797
  };
10796
- const _hoisted_3$f = { class: "sub-tip" };
10798
+ const _hoisted_3$g = { class: "sub-tip" };
10797
10799
  const _hoisted_4$d = { class: "upload-file-list" };
10798
10800
  const _hoisted_5$b = { class: "left-wrap" };
10799
10801
  const _hoisted_6$b = ["src"];
10800
10802
  const _hoisted_7$9 = ["title"];
10801
10803
  const _hoisted_8$6 = { class: "right-wrap" };
10802
- const _hoisted_9$4 = ["title", "onClick"];
10804
+ const _hoisted_9$5 = ["title", "onClick"];
10803
10805
  const _hoisted_10$3 = ["onClick"];
10804
10806
  const _hoisted_11$2 = ["onClick"];
10805
10807
  function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
@@ -10868,7 +10870,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
10868
10870
  src: _imports_1,
10869
10871
  alt: ""
10870
10872
  }, null, -1)
10871
- ])], 8, _hoisted_9$4)) : createCommentVNode("", true),
10873
+ ])], 8, _hoisted_9$5)) : createCommentVNode("", true),
10872
10874
  _ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
10873
10875
  key: 1,
10874
10876
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
@@ -10893,7 +10895,7 @@ function _sfc_render$Q(_ctx, _cache, $props, $setup, $data, $options) {
10893
10895
  alt: ""
10894
10896
  }, null, -1)),
10895
10897
  _cache[1] || (_cache[1] = createElementVNode("div", { class: "main-tip" }, " \u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20 ", -1)),
10896
- createElementVNode("div", _hoisted_3$f, " \u652F\u6301\u4E0A\u4F20" + toDisplayString($props.field.options.fileTypes.slice(0, 8).join("\uFF0C")) + "\u7B49\u683C\u5F0F\u6587\u4EF6 ", 1)
10898
+ createElementVNode("div", _hoisted_3$g, " \u652F\u6301\u4E0A\u4F20" + toDisplayString($props.field.options.fileTypes.slice(0, 8).join("\uFF0C")) + "\u7B49\u683C\u5F0F\u6587\u4EF6 ", 1)
10897
10899
  ], 64)) : (openBlock(), createBlock(_component_el_button, {
10898
10900
  key: 1,
10899
10901
  type: "primary"
@@ -11431,7 +11433,7 @@ const _hoisted_2$i = {
11431
11433
  class: "el-icon--upload-success",
11432
11434
  style: { "color": "#FFF" }
11433
11435
  };
11434
- const _hoisted_3$e = { class: "el-upload-list__item-actions" };
11436
+ const _hoisted_3$f = { class: "el-upload-list__item-actions" };
11435
11437
  const _hoisted_4$c = ["onClick"];
11436
11438
  const _hoisted_5$a = ["onClick"];
11437
11439
  const _hoisted_6$a = {
@@ -11495,7 +11497,7 @@ function _sfc_render$M(_ctx, _cache, $props, $setup, $data, $options) {
11495
11497
  })
11496
11498
  ])
11497
11499
  ]),
11498
- createElementVNode("span", _hoisted_3$e, [
11500
+ createElementVNode("span", _hoisted_3$f, [
11499
11501
  createElementVNode("span", {
11500
11502
  class: "el-upload-list__item-preview",
11501
11503
  onClick: ($event) => $options.handlePictureCardPreview(file)
@@ -24932,7 +24934,7 @@ const _sfc_main$w = {
24932
24934
  };
24933
24935
  const _hoisted_1$n = { class: "action-header-column" };
24934
24936
  const _hoisted_2$g = { class: "action-label" };
24935
- const _hoisted_3$d = {
24937
+ const _hoisted_3$e = {
24936
24938
  key: 0,
24937
24939
  class: "custom-label"
24938
24940
  };
@@ -24981,7 +24983,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
24981
24983
  class: normalizeClass(["field-header-column", [$options.getLabelAlign($props.widget, subWidget), !!subWidget.options.required ? "is-required" : ""]]),
24982
24984
  style: normalizeStyle({ width: subWidget.options.columnWidth })
24983
24985
  }, [
24984
- !!subWidget.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_3$d, [
24986
+ !!subWidget.options.labelIconClass ? (openBlock(), createElementBlock("span", _hoisted_3$e, [
24985
24987
  subWidget.options.labelIconPosition === "front" ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
24986
24988
  !!subWidget.options.labelTooltip ? (openBlock(), createElementBlock(Fragment, { key: 0 }, [
24987
24989
  createVNode(_component_el_tooltip, {
@@ -26100,13 +26102,13 @@ function registerIcon(app) {
26100
26102
  if (typeof window !== "undefined") {
26101
26103
  let loadSvg = function() {
26102
26104
  var body = document.body;
26103
- var svgDom = document.getElementById("__svg__icons__dom__1777083355306__");
26105
+ var svgDom = document.getElementById("__svg__icons__dom__1777270921870__");
26104
26106
  if (!svgDom) {
26105
26107
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
26106
26108
  svgDom.style.position = "absolute";
26107
26109
  svgDom.style.width = "0";
26108
26110
  svgDom.style.height = "0";
26109
- svgDom.id = "__svg__icons__dom__1777083355306__";
26111
+ svgDom.id = "__svg__icons__dom__1777270921870__";
26110
26112
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
26111
26113
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
26112
26114
  }
@@ -26375,13 +26377,13 @@ const _hoisted_1$l = {
26375
26377
  class: "container-action"
26376
26378
  };
26377
26379
  const _hoisted_2$f = ["title"];
26378
- const _hoisted_3$c = ["title"];
26380
+ const _hoisted_3$d = ["title"];
26379
26381
  const _hoisted_4$a = ["title"];
26380
26382
  const _hoisted_5$8 = ["title"];
26381
26383
  const _hoisted_6$8 = ["title"];
26382
26384
  const _hoisted_7$6 = ["title"];
26383
26385
  const _hoisted_8$5 = ["title"];
26384
- const _hoisted_9$3 = {
26386
+ const _hoisted_9$4 = {
26385
26387
  key: 1,
26386
26388
  class: "drag-handler"
26387
26389
  };
@@ -26406,7 +26408,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
26406
26408
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => _ctx.moveUpWidget(), ["stop"]))
26407
26409
  }, [
26408
26410
  createVNode(_component_svg_icon, { "icon-class": "el-move-up" })
26409
- ], 8, _hoisted_3$c)) : createCommentVNode("", true),
26411
+ ], 8, _hoisted_3$d)) : createCommentVNode("", true),
26410
26412
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
26411
26413
  key: 1,
26412
26414
  title: _ctx.i18nt("designer.hint.moveDownWidget"),
@@ -26442,7 +26444,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
26442
26444
  createVNode(_component_svg_icon, { "icon-class": "el-delete" })
26443
26445
  ], 8, _hoisted_8$5)
26444
26446
  ])) : createCommentVNode("", true),
26445
- $props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
26447
+ $props.designer.selectedId === $props.widget.id && !$props.widget.internal ? (openBlock(), createElementBlock("div", _hoisted_9$4, [
26446
26448
  createElementVNode("i", {
26447
26449
  title: _ctx.i18nt("designer.hint.dragHandler")
26448
26450
  }, [
@@ -32390,7 +32392,7 @@ const _sfc_main$n = {
32390
32392
  };
32391
32393
  const _hoisted_1$i = { class: "person-tree-widget__trigger" };
32392
32394
  const _hoisted_2$d = { class: "flex items-center" };
32393
- const _hoisted_3$b = { class: "dialog-footer" };
32395
+ const _hoisted_3$c = { class: "dialog-footer" };
32394
32396
  function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
32395
32397
  const _component_el_input_tag = resolveComponent("el-input-tag");
32396
32398
  const _component_el_input = resolveComponent("el-input");
@@ -32481,7 +32483,7 @@ function _sfc_render$n(_ctx, _cache, $props, $setup, $data, $options) {
32481
32483
  !$props.field.options.hideFooter ? {
32482
32484
  name: "footer",
32483
32485
  fn: withCtx(() => [
32484
- createElementVNode("div", _hoisted_3$b, [
32486
+ createElementVNode("div", _hoisted_3$c, [
32485
32487
  createVNode(_component_el_button, {
32486
32488
  onClick: $options.handleCancel,
32487
32489
  size: "default"
@@ -33025,7 +33027,7 @@ const _hoisted_2$c = {
33025
33027
  key: 1,
33026
33028
  class: "room-wrap"
33027
33029
  };
33028
- const _hoisted_3$a = ["onClick"];
33030
+ const _hoisted_3$b = ["onClick"];
33029
33031
  const _hoisted_4$9 = { class: "select-icon" };
33030
33032
  const _hoisted_5$7 = { class: "room-item-name" };
33031
33033
  const _hoisted_6$7 = {
@@ -33112,7 +33114,7 @@ function _sfc_render$k(_ctx, _cache, $props, $setup, $data, $options) {
33112
33114
  item.equipment ? (openBlock(), createElementBlock("div", _hoisted_7$5, [
33113
33115
  createElementVNode("span", null, "\u8BBE\u5907\uFF1A" + toDisplayString(item.equipment), 1)
33114
33116
  ])) : createCommentVNode("", true)
33115
- ], 10, _hoisted_3$a);
33117
+ ], 10, _hoisted_3$b);
33116
33118
  }), 128))
33117
33119
  ]))
33118
33120
  ])
@@ -33332,7 +33334,7 @@ const _hoisted_2$b = {
33332
33334
  key: 0,
33333
33335
  class: "grid-col-action"
33334
33336
  };
33335
- const _hoisted_3$9 = ["title"];
33337
+ const _hoisted_3$a = ["title"];
33336
33338
  const _hoisted_4$8 = ["title"];
33337
33339
  const _hoisted_5$6 = ["title"];
33338
33340
  const _hoisted_6$6 = ["title"];
@@ -33341,7 +33343,7 @@ const _hoisted_8$4 = {
33341
33343
  key: 1,
33342
33344
  class: "grid-col-handler"
33343
33345
  };
33344
- const _hoisted_9$2 = {
33346
+ const _hoisted_9$3 = {
33345
33347
  key: 0,
33346
33348
  class: "col-hidden-tag"
33347
33349
  };
@@ -33403,7 +33405,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
33403
33405
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget($props.widget), ["stop"]))
33404
33406
  }, [
33405
33407
  createVNode(_component_svg_icon, { "icon-class": "el-back" })
33406
- ], 8, _hoisted_3$9),
33408
+ ], 8, _hoisted_3$a),
33407
33409
  !!$props.parentList && $props.parentList.length > 1 ? (openBlock(), createElementBlock("i", {
33408
33410
  key: 0,
33409
33411
  title: _ctx.i18nt("designer.hint.moveUpWidget"),
@@ -33433,7 +33435,7 @@ function _sfc_render$j(_ctx, _cache, $props, $setup, $data, $options) {
33433
33435
  ])) : createCommentVNode("", true),
33434
33436
  $props.designer.selectedId === $props.widget.id && $props.widget.type === "grid-col" ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
33435
33437
  createElementVNode("i", null, toDisplayString(_ctx.i18nt("designer.widgetLabel." + $props.widget.type)), 1),
33436
- $props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$2, [
33438
+ $props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_9$3, [
33437
33439
  createVNode(_component_svg_icon, { "icon-class": "el-hide" })
33438
33440
  ])) : createCommentVNode("", true)
33439
33441
  ])) : createCommentVNode("", true)
@@ -33817,7 +33819,7 @@ const _sfc_main$g = {
33817
33819
  };
33818
33820
  const _hoisted_1$e = ["colspan", "rowspan"];
33819
33821
  const _hoisted_2$a = { class: "form-widget-list" };
33820
- const _hoisted_3$8 = {
33822
+ const _hoisted_3$9 = {
33821
33823
  key: 0,
33822
33824
  class: "table-cell-action"
33823
33825
  };
@@ -33874,7 +33876,7 @@ function _sfc_render$g(_ctx, _cache, $props, $setup, $data, $options) {
33874
33876
  ]),
33875
33877
  _: 1
33876
33878
  }, 16, ["list", "onUpdate", "move"]),
33877
- $props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$8, [
33879
+ $props.designer.selectedId === $props.widget.id && $props.widget.type === "table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$9, [
33878
33880
  createElementVNode("i", {
33879
33881
  title: _ctx.i18nt("designer.hint.selectParentWidget"),
33880
33882
  onClick: _cache[2] || (_cache[2] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
@@ -34180,7 +34182,7 @@ const _sfc_main$e = {
34180
34182
  };
34181
34183
  const _hoisted_1$c = { class: "sub-form-header" };
34182
34184
  const _hoisted_2$9 = { class: "sub-form-label" };
34183
- const _hoisted_3$7 = { class: "group-header" };
34185
+ const _hoisted_3$8 = { class: "group-header" };
34184
34186
  const _hoisted_4$6 = { class: "group-title" };
34185
34187
  const _hoisted_5$4 = {
34186
34188
  key: 0,
@@ -34192,7 +34194,7 @@ const _hoisted_6$4 = {
34192
34194
  };
34193
34195
  const _hoisted_7$3 = { class: "group-actions" };
34194
34196
  const _hoisted_8$3 = { class: "group-content" };
34195
- const _hoisted_9$1 = { class: "form-widget-list" };
34197
+ const _hoisted_9$2 = { class: "form-widget-list" };
34196
34198
  const _hoisted_10$1 = {
34197
34199
  key: 0,
34198
34200
  class: "empty-hint"
@@ -34223,7 +34225,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
34223
34225
  class: "preview-group-row",
34224
34226
  key: "preview-" + rowIdx
34225
34227
  }, [
34226
- createElementVNode("div", _hoisted_3$7, [
34228
+ createElementVNode("div", _hoisted_3$8, [
34227
34229
  createElementVNode("div", _hoisted_4$6, [
34228
34230
  $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$4, toDisplayString($props.widget.options.label) + " " + toDisplayString(rowIdx + 1) + " \u7EC4", 1)) : (openBlock(), createElementBlock("span", _hoisted_6$4, "\u8868\u5355\u7EC4"))
34229
34231
  ]),
@@ -34276,7 +34278,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
34276
34278
  move: $options.checkContainerMove
34277
34279
  }), {
34278
34280
  item: withCtx(({ element: subWidget, index: swIdx }) => [
34279
- createElementVNode("div", _hoisted_9$1, [
34281
+ createElementVNode("div", _hoisted_9$2, [
34280
34282
  subWidget.category === "container" ? (openBlock(), createBlock(resolveDynamicComponent(subWidget.type + "-widget"), {
34281
34283
  widget: subWidget,
34282
34284
  designer: $props.designer,
@@ -34672,7 +34674,7 @@ const _sfc_main$d = {
34672
34674
  };
34673
34675
  const _hoisted_1$b = { class: "sub-form-header" };
34674
34676
  const _hoisted_2$8 = { class: "sub-form-label" };
34675
- const _hoisted_3$6 = { class: "group-header" };
34677
+ const _hoisted_3$7 = { class: "group-header" };
34676
34678
  const _hoisted_4$5 = { class: "group-title" };
34677
34679
  const _hoisted_5$3 = {
34678
34680
  key: 0,
@@ -34684,7 +34686,7 @@ const _hoisted_6$3 = {
34684
34686
  };
34685
34687
  const _hoisted_7$2 = { class: "group-actions" };
34686
34688
  const _hoisted_8$2 = { class: "group-content" };
34687
- const _hoisted_9 = {
34689
+ const _hoisted_9$1 = {
34688
34690
  key: 1,
34689
34691
  class: "field-loading",
34690
34692
  style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
@@ -34721,7 +34723,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
34721
34723
  class: "form-group-row",
34722
34724
  key: subFormRowId
34723
34725
  }, [
34724
- createElementVNode("div", _hoisted_3$6, [
34726
+ createElementVNode("div", _hoisted_3$7, [
34725
34727
  createElementVNode("div", _hoisted_4$5, [
34726
34728
  $props.widget.options.showRowNumber ? (openBlock(), createElementBlock("span", _hoisted_5$3, toDisplayString($props.widget.options.label || "\u81EA\u5B9A\u4E49\u5B50\u8868\u5355") + " " + toDisplayString(sfrIdx + 1), 1)) : (openBlock(), createElementBlock("span", _hoisted_6$3, "\u8868\u5355\u7EC4"))
34727
34729
  ]),
@@ -34768,7 +34770,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
34768
34770
  "sub-form-row-index": sfrIdx,
34769
34771
  "sub-form-col-index": swIdx,
34770
34772
  "sub-form-disabled": $props.widget.options.disabled
34771
- }, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_9, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
34773
+ }, null, 8, ["field", "parent-list", "index-of-parent-list", "parent-widget", "sub-form-row-id", "sub-form-row-index", "sub-form-col-index", "sub-form-disabled"])) : (openBlock(), createElementBlock("div", _hoisted_9$1, " \u5B57\u6BB5\u52A0\u8F7D\u4E2D... "))
34772
34774
  ], 64)) : createCommentVNode("", true)
34773
34775
  ], 64);
34774
34776
  }), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
@@ -34959,7 +34961,7 @@ const _sfc_main$c = {
34959
34961
  };
34960
34962
  const _hoisted_1$a = ["colspan", "rowspan"];
34961
34963
  const _hoisted_2$7 = { class: "form-widget-list" };
34962
- const _hoisted_3$5 = {
34964
+ const _hoisted_3$6 = {
34963
34965
  key: 0,
34964
34966
  class: "custom-table-cell-action"
34965
34967
  };
@@ -35026,7 +35028,7 @@ function _sfc_render$c(_ctx, _cache, $props, $setup, $data, $options) {
35026
35028
  ]),
35027
35029
  _: 1
35028
35030
  }, 16, ["list", "onUpdate", "move"]),
35029
- $props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$5, [
35031
+ $props.designer.selectedId === $props.widget.id && $props.widget.type === "custom-table-cell" ? (openBlock(), createElementBlock("div", _hoisted_3$6, [
35030
35032
  createElementVNode("i", {
35031
35033
  title: "\u9009\u62E9\u7236\u7EC4\u4EF6",
35032
35034
  onClick: _cache[1] || (_cache[1] = withModifiers(($event) => $options.selectParentWidget(), ["stop"]))
@@ -35443,7 +35445,7 @@ const _hoisted_1$7 = {
35443
35445
  class: "table-actions"
35444
35446
  };
35445
35447
  const _hoisted_2$6 = { class: "custom-table-layout" };
35446
- const _hoisted_3$4 = {
35448
+ const _hoisted_3$5 = {
35447
35449
  key: 0,
35448
35450
  class: "row-actions-cell"
35449
35451
  };
@@ -35478,7 +35480,7 @@ function _sfc_render$9(_ctx, _cache, $props, $setup, $data, $options) {
35478
35480
  return openBlock(), createElementBlock("tr", {
35479
35481
  key: $data.rowIdData[rowIdx] || row.id
35480
35482
  }, [
35481
- $props.widget.rows.length > 0 ? (openBlock(), createElementBlock("td", _hoisted_3$4, [
35483
+ $props.widget.rows.length > 0 ? (openBlock(), createElementBlock("td", _hoisted_3$5, [
35482
35484
  createVNode(_component_el_button, {
35483
35485
  type: "primary",
35484
35486
  size: "small",
@@ -35617,7 +35619,7 @@ const _sfc_main$8 = {
35617
35619
  };
35618
35620
  const _hoisted_1$6 = { class: "sub-table-header" };
35619
35621
  const _hoisted_2$5 = { class: "sub-table-label" };
35620
- const _hoisted_3$3 = { class: "table-preview" };
35622
+ const _hoisted_3$4 = { class: "table-preview" };
35621
35623
  const _hoisted_4$3 = { class: "preview-cell" };
35622
35624
  const _hoisted_5$1 = { class: "empty-hint" };
35623
35625
  const _hoisted_6$1 = { key: 0 };
@@ -35663,7 +35665,7 @@ function _sfc_render$8(_ctx, _cache, $props, $setup, $data, $options) {
35663
35665
  _: 1
35664
35666
  }, 8, ["disabled", "onClick"])
35665
35667
  ]),
35666
- createElementVNode("div", _hoisted_3$3, [
35668
+ createElementVNode("div", _hoisted_3$4, [
35667
35669
  createVNode(_component_el_table, {
35668
35670
  data: $data.previewData,
35669
35671
  border: $props.widget.options.border,
@@ -36131,7 +36133,7 @@ const _hoisted_2$4 = {
36131
36133
  key: 0,
36132
36134
  class: "required-mark"
36133
36135
  };
36134
- const _hoisted_3$2 = { class: "table-toolbar" };
36136
+ const _hoisted_3$3 = { class: "table-toolbar" };
36135
36137
  const _hoisted_4$2 = { class: "dialog-footer" };
36136
36138
  function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
36137
36139
  const _component_svg_icon = resolveComponent("svg-icon");
@@ -36160,7 +36162,7 @@ function _sfc_render$7(_ctx, _cache, $props, $setup, $data, $options) {
36160
36162
  }, toDisplayString($props.widget.options.label), 3),
36161
36163
  $props.widget.options.required ? (openBlock(), createElementBlock("span", _hoisted_2$4, "*")) : createCommentVNode("", true)
36162
36164
  ])) : createCommentVNode("", true),
36163
- createElementVNode("div", _hoisted_3$2, [
36165
+ createElementVNode("div", _hoisted_3$3, [
36164
36166
  !$props.widget.options.disabled ? (openBlock(), createBlock(_component_el_button, {
36165
36167
  key: 0,
36166
36168
  type: "primary",
@@ -61118,7 +61120,7 @@ const _sfc_main$5 = {
61118
61120
  };
61119
61121
  const _hoisted_1$3 = { class: "column-header" };
61120
61122
  const _hoisted_2$2 = { class: "column-title" };
61121
- const _hoisted_3$1 = { class: "column-form" };
61123
+ const _hoisted_3$2 = { class: "column-form" };
61122
61124
  const _hoisted_4$1 = { class: "dialog-footer" };
61123
61125
  function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
61124
61126
  const _component_el_divider = resolveComponent("el-divider");
@@ -61164,7 +61166,7 @@ function _sfc_render$5(_ctx, _cache, $props, $setup, $data, $options) {
61164
61166
  class: "column-delete-button"
61165
61167
  }, null, 8, ["onClick"])
61166
61168
  ]),
61167
- createElementVNode("div", _hoisted_3$1, [
61169
+ createElementVNode("div", _hoisted_3$2, [
61168
61170
  createVNode(_component_el_form_item, { label: "\u5217\u540D" }, {
61169
61171
  default: withCtx(() => [
61170
61172
  createVNode(_component_el_input, {
@@ -61696,6 +61698,10 @@ const _sfc_main$3 = {
61696
61698
  fieldValue: {
61697
61699
  type: Array,
61698
61700
  default: () => []
61701
+ },
61702
+ assetTypeValue: {
61703
+ type: String,
61704
+ default: ""
61699
61705
  }
61700
61706
  },
61701
61707
  watch: {
@@ -61713,14 +61719,33 @@ const _sfc_main$3 = {
61713
61719
  },
61714
61720
  deep: true,
61715
61721
  immediate: true
61722
+ },
61723
+ assetTypeValue: {
61724
+ handler(newVal) {
61725
+ if (newVal) {
61726
+ this.form.assetType = newVal;
61727
+ this.disabled = true;
61728
+ } else {
61729
+ this.disabled = false;
61730
+ }
61731
+ },
61732
+ immediate: true
61716
61733
  }
61717
61734
  },
61718
61735
  data() {
61719
61736
  return {
61737
+ tableData: [],
61720
61738
  selectedRows: [],
61721
61739
  visible: false,
61722
61740
  pageSize: 10,
61723
- currentPage: 1
61741
+ currentPage: 1,
61742
+ assetTypeOptions: [],
61743
+ form: {
61744
+ assetCode: "",
61745
+ assetType: "",
61746
+ ownerUnit: ""
61747
+ },
61748
+ disabled: false
61724
61749
  };
61725
61750
  },
61726
61751
  methods: {
@@ -61731,98 +61756,13 @@ const _sfc_main$3 = {
61731
61756
  this.$emit("confirm", this.selectedRows);
61732
61757
  },
61733
61758
  getTableData() {
61734
- this.tableData = [
61735
- {
61736
- id: 1,
61737
- assetCode: "1",
61738
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61739
- status: "\u8D44\u4EA7\u7C7B\u578B",
61740
- createTime: "2021-01-01",
61741
- updateTime: "2021-01-01",
61742
- assetType: "0"
61743
- },
61744
- {
61745
- id: 2,
61746
- assetCode: "2",
61747
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61748
- status: "\u8D44\u4EA7\u7C7B\u578B",
61749
- createTime: "2021-01-01",
61750
- updateTime: "2021-01-01",
61751
- assetType: "1"
61752
- },
61753
- {
61754
- id: 3,
61755
- assetCode: "3",
61756
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61757
- status: "\u8D44\u4EA7\u7C7B\u578B",
61758
- createTime: "2021-01-01",
61759
- updateTime: "2021-01-01",
61760
- assetType: "2"
61761
- },
61762
- {
61763
- id: 4,
61764
- assetCode: "4",
61765
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61766
- status: "\u8D44\u4EA7\u7C7B\u578B",
61767
- createTime: "2021-01-01",
61768
- updateTime: "2021-01-01",
61769
- assetType: "3"
61770
- },
61771
- {
61772
- id: 5,
61773
- assetCode: "5",
61774
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61775
- status: "\u8D44\u4EA7\u7C7B\u578B",
61776
- createTime: "2021-01-01",
61777
- updateTime: "2021-01-01",
61778
- assetType: "4"
61779
- },
61780
- {
61781
- id: 6,
61782
- assetCode: "6",
61783
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61784
- status: "\u8D44\u4EA7\u7C7B\u578B",
61785
- createTime: "2021-01-01",
61786
- updateTime: "2021-01-01",
61787
- assetType: "5"
61788
- },
61789
- {
61790
- id: 7,
61791
- assetCode: "7",
61792
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61793
- status: "\u8D44\u4EA7\u7C7B\u578B",
61794
- createTime: "2021-01-01",
61795
- updateTime: "2021-01-01",
61796
- assetType: "6"
61797
- },
61798
- {
61799
- id: 8,
61800
- assetCode: "8",
61801
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61802
- status: "\u8D44\u4EA7\u7C7B\u578B",
61803
- createTime: "2021-01-01",
61804
- updateTime: "2021-01-01",
61805
- assetType: "7"
61806
- },
61807
- {
61808
- id: 9,
61809
- assetCode: "9",
61810
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61811
- status: "\u8D44\u4EA7\u7C7B\u578B",
61812
- createTime: "2021-01-01",
61813
- updateTime: "2021-01-01",
61814
- assetType: "8"
61815
- },
61816
- {
61817
- id: 10,
61818
- assetCode: "10",
61819
- labelName: "\u8D44\u4EA7\u540D\u79F0",
61820
- status: "\u8D44\u4EA7\u7C7B\u578B",
61821
- createTime: "2021-01-01",
61822
- updateTime: "2021-01-01",
61823
- assetType: "0"
61824
- }
61825
- ];
61759
+ service$1({
61760
+ method: "post",
61761
+ url: "/asset-business/overview/pageList",
61762
+ data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
61763
+ }).then(({ data: data2 }) => {
61764
+ this.tableData = data2.records;
61765
+ });
61826
61766
  },
61827
61767
  handleSizeChange(size) {
61828
61768
  this.pageSize = size;
@@ -61845,31 +61785,60 @@ const _sfc_main$3 = {
61845
61785
  if (index2 !== -1) {
61846
61786
  this.selectedRows.splice(index2, 1);
61847
61787
  }
61788
+ },
61789
+ handleGetAssetTypeOptions() {
61790
+ service$1({
61791
+ method: "post",
61792
+ url: "/unified-dict/sysItemDict/page",
61793
+ data: {
61794
+ current: 1,
61795
+ size: 1e4,
61796
+ dictType: "asset_type"
61797
+ }
61798
+ }).then(({ data: { records } }) => {
61799
+ this.assetTypeOptions = records.map((item) => ({
61800
+ label: item.label,
61801
+ value: item.itemValue
61802
+ }));
61803
+ });
61804
+ },
61805
+ handleSearch() {
61806
+ this.currentPage = 1;
61807
+ this.getTableData();
61848
61808
  }
61849
61809
  },
61850
61810
  created() {
61851
61811
  this.getTableData();
61812
+ this.handleGetAssetTypeOptions();
61852
61813
  }
61853
61814
  };
61854
61815
  const _hoisted_1$2 = { class: "asset-body-wrap" };
61855
61816
  const _hoisted_2$1 = { class: "bottom-wrap" };
61856
- const _hoisted_3 = { class: "left-wrap" };
61857
- const _hoisted_4 = { class: "right-wrap" };
61858
- const _hoisted_5 = { class: "asset-wrap" };
61859
- const _hoisted_6 = { class: "asset-item-left" };
61860
- const _hoisted_7 = { class: "asset-item-right" };
61861
- const _hoisted_8 = { class: "dialog-footer" };
61817
+ const _hoisted_3$1 = { class: "left-wrap" };
61818
+ const _hoisted_4 = { class: "filter-wrap" };
61819
+ const _hoisted_5 = { class: "right-wrap" };
61820
+ const _hoisted_6 = { class: "asset-wrap" };
61821
+ const _hoisted_7 = { class: "asset-item-left" };
61822
+ const _hoisted_8 = { class: "asset-item-right" };
61823
+ const _hoisted_9 = { class: "dialog-footer" };
61862
61824
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61825
+ const _component_el_input = resolveComponent("el-input");
61826
+ const _component_el_form_item = resolveComponent("el-form-item");
61827
+ const _component_el_col = resolveComponent("el-col");
61828
+ const _component_el_option = resolveComponent("el-option");
61829
+ const _component_el_select = resolveComponent("el-select");
61830
+ const _component_el_button = resolveComponent("el-button");
61831
+ const _component_el_row = resolveComponent("el-row");
61832
+ const _component_el_form = resolveComponent("el-form");
61863
61833
  const _component_el_table_column = resolveComponent("el-table-column");
61864
61834
  const _component_el_table = resolveComponent("el-table");
61865
61835
  const _component_el_pagination = resolveComponent("el-pagination");
61866
61836
  const _component_Close = resolveComponent("Close");
61867
61837
  const _component_el_icon = resolveComponent("el-icon");
61868
- const _component_el_button = resolveComponent("el-button");
61869
61838
  const _component_el_dialog = resolveComponent("el-dialog");
61870
61839
  return openBlock(), createBlock(_component_el_dialog, {
61871
61840
  modelValue: $data.visible,
61872
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.visible = $event),
61841
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.visible = $event),
61873
61842
  title: "\u8D44\u4EA7\u9009\u62E9",
61874
61843
  width: "1200px",
61875
61844
  onClose: $options.handleClose,
@@ -61877,12 +61846,12 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61877
61846
  "header-class": "person-tree-dialog-header"
61878
61847
  }, {
61879
61848
  footer: withCtx(() => [
61880
- createElementVNode("div", _hoisted_8, [
61849
+ createElementVNode("div", _hoisted_9, [
61881
61850
  createVNode(_component_el_button, {
61882
61851
  onClick: $options.handleClose,
61883
61852
  size: "default"
61884
61853
  }, {
61885
- default: withCtx(() => [..._cache[3] || (_cache[3] = [
61854
+ default: withCtx(() => [..._cache[6] || (_cache[6] = [
61886
61855
  createTextVNode(" \u53D6\u6D88 ", -1)
61887
61856
  ])]),
61888
61857
  _: 1
@@ -61892,7 +61861,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61892
61861
  onClick: $options.handleConfirm,
61893
61862
  size: "default"
61894
61863
  }, {
61895
- default: withCtx(() => [..._cache[4] || (_cache[4] = [
61864
+ default: withCtx(() => [..._cache[7] || (_cache[7] = [
61896
61865
  createTextVNode(" \u786E\u5B9A ", -1)
61897
61866
  ])]),
61898
61867
  _: 1
@@ -61902,10 +61871,102 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61902
61871
  default: withCtx(() => [
61903
61872
  createElementVNode("div", _hoisted_1$2, [
61904
61873
  createElementVNode("div", _hoisted_2$1, [
61905
- createElementVNode("div", _hoisted_3, [
61906
- _cache[2] || (_cache[2] = createElementVNode("div", { class: "filter-wrap" }, null, -1)),
61874
+ createElementVNode("div", _hoisted_3$1, [
61875
+ createElementVNode("div", _hoisted_4, [
61876
+ createVNode(_component_el_form, {
61877
+ model: $data.form,
61878
+ size: "small"
61879
+ }, {
61880
+ default: withCtx(() => [
61881
+ createVNode(_component_el_row, { gutter: 20 }, {
61882
+ default: withCtx(() => [
61883
+ createVNode(_component_el_col, { span: 6 }, {
61884
+ default: withCtx(() => [
61885
+ createVNode(_component_el_form_item, { label: "\u8D44\u4EA7\u7F16\u7801/\u8D44\u4EA7\u540D\u79F0" }, {
61886
+ default: withCtx(() => [
61887
+ createVNode(_component_el_input, {
61888
+ size: "small",
61889
+ modelValue: $data.form.assetCode,
61890
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event)
61891
+ }, null, 8, ["modelValue"])
61892
+ ]),
61893
+ _: 1
61894
+ })
61895
+ ]),
61896
+ _: 1
61897
+ }),
61898
+ createVNode(_component_el_col, { span: 6 }, {
61899
+ default: withCtx(() => [
61900
+ createVNode(_component_el_form_item, { label: "\u8D44\u4EA7\u7C7B\u578B" }, {
61901
+ default: withCtx(() => [
61902
+ createVNode(_component_el_select, {
61903
+ size: "small",
61904
+ disabled: $data.disabled,
61905
+ modelValue: $data.form.assetType,
61906
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.assetType = $event),
61907
+ placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7\u7C7B\u578B"
61908
+ }, {
61909
+ default: withCtx(() => [
61910
+ (openBlock(true), createElementBlock(Fragment, null, renderList($data.assetTypeOptions, (item) => {
61911
+ return openBlock(), createBlock(_component_el_option, {
61912
+ key: item.value,
61913
+ label: item.label,
61914
+ value: item.value
61915
+ }, null, 8, ["label", "value"]);
61916
+ }), 128))
61917
+ ]),
61918
+ _: 1
61919
+ }, 8, ["disabled", "modelValue"])
61920
+ ]),
61921
+ _: 1
61922
+ })
61923
+ ]),
61924
+ _: 1
61925
+ }),
61926
+ createVNode(_component_el_col, { span: 6 }, {
61927
+ default: withCtx(() => [
61928
+ createVNode(_component_el_form_item, { label: "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D" }, {
61929
+ default: withCtx(() => [
61930
+ createVNode(_component_el_input, {
61931
+ size: "small",
61932
+ modelValue: $data.form.ownerUnit,
61933
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.ownerUnit = $event)
61934
+ }, null, 8, ["modelValue"])
61935
+ ]),
61936
+ _: 1
61937
+ })
61938
+ ]),
61939
+ _: 1
61940
+ }),
61941
+ createVNode(_component_el_col, { span: 6 }, {
61942
+ default: withCtx(() => [
61943
+ createVNode(_component_el_form_item, null, {
61944
+ default: withCtx(() => [
61945
+ createVNode(_component_el_button, {
61946
+ type: "primary",
61947
+ size: "small",
61948
+ onClick: $options.handleSearch
61949
+ }, {
61950
+ default: withCtx(() => [..._cache[5] || (_cache[5] = [
61951
+ createTextVNode("\u641C\u7D22", -1)
61952
+ ])]),
61953
+ _: 1
61954
+ }, 8, ["onClick"])
61955
+ ]),
61956
+ _: 1
61957
+ })
61958
+ ]),
61959
+ _: 1
61960
+ })
61961
+ ]),
61962
+ _: 1
61963
+ })
61964
+ ]),
61965
+ _: 1
61966
+ }, 8, ["model"])
61967
+ ]),
61907
61968
  createVNode(_component_el_table, {
61908
- data: _ctx.tableData,
61969
+ data: $data.tableData,
61909
61970
  "max-height": "500px",
61910
61971
  style: { "width": "100%" },
61911
61972
  "check-strictly": "",
@@ -61926,20 +61987,30 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61926
61987
  label: "\u8D44\u4EA7\u540D\u79F0"
61927
61988
  }),
61928
61989
  createVNode(_component_el_table_column, {
61929
- prop: "status",
61990
+ prop: "assetTypeName",
61930
61991
  label: "\u8D44\u4EA7\u7C7B\u578B"
61931
61992
  }),
61932
61993
  createVNode(_component_el_table_column, {
61933
- prop: "createTime",
61994
+ prop: "assetOwnerUnit",
61934
61995
  label: "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D"
61935
61996
  }),
61936
61997
  createVNode(_component_el_table_column, {
61937
- prop: "updateTime",
61998
+ prop: "originalValue",
61938
61999
  label: "\u539F\u503C"
62000
+ }, {
62001
+ default: withCtx(({ row }) => [
62002
+ createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
62003
+ ]),
62004
+ _: 1
61939
62005
  }),
61940
62006
  createVNode(_component_el_table_column, {
61941
- prop: "updateTime",
62007
+ prop: "netValue",
61942
62008
  label: "\u51C0\u503C"
62009
+ }, {
62010
+ default: withCtx(({ row }) => [
62011
+ createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
62012
+ ]),
62013
+ _: 1
61943
62014
  })
61944
62015
  ]),
61945
62016
  _: 1
@@ -61948,24 +62019,24 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61948
62019
  onSizeChange: $options.handleSizeChange,
61949
62020
  onCurrentChange: $options.handleCurrentChange,
61950
62021
  "current-page": $data.currentPage,
61951
- layout: "total, sizes, prev, pager, next, jumper",
62022
+ layout: "total, sizes, prev, pager, next",
61952
62023
  size: "small",
61953
- total: _ctx.tableData.length
62024
+ total: $data.tableData.length
61954
62025
  }, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "total"])
61955
62026
  ]),
61956
62027
  createElementVNode("div", {
61957
62028
  class: "center-wrap",
61958
- onClick: _cache[0] || (_cache[0] = (...args) => $options.handleAdd && $options.handleAdd(...args))
62029
+ onClick: _cache[3] || (_cache[3] = (...args) => $options.handleAdd && $options.handleAdd(...args))
61959
62030
  }, "\u6DFB\u52A0"),
61960
- createElementVNode("div", _hoisted_4, [
61961
- createElementVNode("ul", _hoisted_5, [
62031
+ createElementVNode("div", _hoisted_5, [
62032
+ createElementVNode("ul", _hoisted_6, [
61962
62033
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedRows, (item) => {
61963
62034
  return openBlock(), createElementBlock("li", {
61964
62035
  class: "asset-item",
61965
62036
  key: item.id
61966
62037
  }, [
61967
- createElementVNode("div", _hoisted_6, toDisplayString(item.labelName) + "(" + toDisplayString(item.assetCode) + ") ", 1),
61968
- createElementVNode("div", _hoisted_7, [
62038
+ createElementVNode("div", _hoisted_7, toDisplayString(item.labelName) + "(" + toDisplayString(item.assetCode) + ") ", 1),
62039
+ createElementVNode("div", _hoisted_8, [
61969
62040
  createVNode(_component_el_icon, {
61970
62041
  onClick: ($event) => $options.handleRemove(item.id)
61971
62042
  }, {
@@ -61985,7 +62056,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
61985
62056
  _: 1
61986
62057
  }, 8, ["modelValue", "onClose"]);
61987
62058
  }
61988
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-bf9d04d4"]]);
62059
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-18da89e8"]]);
61989
62060
  var index_vue_vue_type_style_index_0_lang$1 = "";
61990
62061
  var index_vue_vue_type_style_index_1_scoped_true_lang = "";
61991
62062
  const _sfc_main$2 = {
@@ -62091,53 +62162,10 @@ const _sfc_main$2 = {
62091
62162
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
62092
62163
  });
62093
62164
  },
62094
- getTreeData() {
62095
- const data2 = this.field.options.treeParams ? JSON.parse(this.field.options.treeParams) : {};
62096
- service$1({
62097
- method: "post",
62098
- url: "/unified-system/sysCompany/fullTree",
62099
- data: __spreadValues({ companyId: sessionStorage.getItem("companyId") }, data2)
62100
- }).then(({ data: data3 }) => {
62101
- this.treeData = renderData(data3);
62102
- function renderData(data4) {
62103
- var _a;
62104
- for (const element of data4) {
62105
- element.nodeKey = element.joinUserId || element.id;
62106
- if (element.children && ((_a = element.children) == null ? void 0 : _a.length)) {
62107
- renderData(element.children);
62108
- }
62109
- }
62110
- return data4;
62111
- }
62112
- this.$nextTick(() => {
62113
- this.applyTreeFilter();
62114
- });
62115
- });
62116
- },
62117
- filterNode(value2, data2) {
62118
- if (value2 == null || String(value2).trim() === "")
62119
- return true;
62120
- const keyword = String(value2).trim().toLowerCase();
62121
- const name = (data2.name || "").toLowerCase();
62122
- (data2.postName || "").toLowerCase();
62123
- return name.includes(keyword);
62124
- },
62125
- applyTreeFilter() {
62126
- if (this.$refs.treeRef && typeof this.$refs.treeRef.filter === "function") {
62127
- this.$refs.treeRef.filter(this.search);
62128
- }
62129
- },
62130
62165
  handleClick() {
62131
62166
  this.dialogVisible = true;
62132
62167
  this.triggerEvent("onOpen");
62133
62168
  },
62134
- handleNodeClick(data2, node) {
62135
- if (this.field.options.multiple)
62136
- return;
62137
- this.currentNodeKey = data2.nodeKey;
62138
- },
62139
- handleCheck() {
62140
- },
62141
62169
  handleConfirm(selectedRows) {
62142
62170
  this.dialogVisible = false;
62143
62171
  this.oldFieldValue = this.fieldModel ? deepClone(this.fieldModel) : null;
@@ -62236,14 +62264,15 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
62236
62264
  onClose: $options.handleClose,
62237
62265
  onConfirm: $options.handleConfirm,
62238
62266
  onCancel: $options.handleCancel,
62239
- fieldValue: $data.fieldModel
62240
- }, null, 8, ["dialog-visible", "onClose", "onConfirm", "onCancel", "fieldValue"])
62267
+ fieldValue: $data.fieldModel,
62268
+ assetTypeValue: $props.field.options.assetTypeValue
62269
+ }, null, 8, ["dialog-visible", "onClose", "onConfirm", "onCancel", "fieldValue", "assetTypeValue"])
62241
62270
  ], 4)
62242
62271
  ]),
62243
62272
  _: 1
62244
62273
  }, 8, ["designer", "field", "rules", "design-state", "parent-widget", "parent-list", "index-of-parent-list", "sub-form-row-index", "sub-form-col-index", "sub-form-row-id"]);
62245
62274
  }
62246
- var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-623caa96"]]);
62275
+ var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-0ef1c39e"]]);
62247
62276
  var detailDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
62248
62277
  const _sfc_main$1 = {
62249
62278
  name: "detail-dialog",
@@ -62290,7 +62319,8 @@ const _sfc_main$1 = {
62290
62319
  "onFormValidateSuccess": ""
62291
62320
  }
62292
62321
  },
62293
- showForm: false
62322
+ showForm: false,
62323
+ pendingColHiddenOps: []
62294
62324
  };
62295
62325
  },
62296
62326
  computed: {
@@ -62317,6 +62347,8 @@ const _sfc_main$1 = {
62317
62347
  handler(newVal) {
62318
62348
  if (newVal) {
62319
62349
  this.initFormData();
62350
+ } else {
62351
+ this.formData = {};
62320
62352
  }
62321
62353
  }
62322
62354
  }
@@ -62345,11 +62377,35 @@ const _sfc_main$1 = {
62345
62377
  const ref2 = this.$refs.detailFormRender;
62346
62378
  if (ref2 && typeof ref2.setFormJson === "function") {
62347
62379
  ref2.setFormJson(lodash.exports.cloneDeep(this.formJson));
62380
+ this.flushPendingColHiddenOps();
62348
62381
  }
62349
62382
  });
62350
62383
  },
62384
+ setColHidden(colNames, hidden) {
62385
+ const names = Array.isArray(colNames) ? colNames : [colNames];
62386
+ const ref2 = this.$refs.detailFormRender;
62387
+ if (!ref2 || typeof ref2.setColHidden !== "function") {
62388
+ this.pendingColHiddenOps.push({ names, hidden });
62389
+ return;
62390
+ }
62391
+ names.forEach((name) => ref2.setColHidden(name, hidden));
62392
+ },
62393
+ flushPendingColHiddenOps() {
62394
+ if (!this.pendingColHiddenOps.length) {
62395
+ return;
62396
+ }
62397
+ const ref2 = this.$refs.detailFormRender;
62398
+ if (!ref2 || typeof ref2.setColHidden !== "function") {
62399
+ return;
62400
+ }
62401
+ this.pendingColHiddenOps.forEach(({ names, hidden }) => {
62402
+ names.forEach((name) => ref2.setColHidden(name, hidden));
62403
+ });
62404
+ this.pendingColHiddenOps = [];
62405
+ },
62351
62406
  initFormData() {
62352
62407
  var _a;
62408
+ this.showForm = false;
62353
62409
  this.formData = lodash.exports.cloneDeep(this.currentRowData) || {};
62354
62410
  const map = this.resolveTypeJsonMap();
62355
62411
  const assetType = String((_a = this.currentRowData.assetType) != null ? _a : "0");
@@ -62370,6 +62426,7 @@ const _sfc_main$1 = {
62370
62426
  let parsed;
62371
62427
  try {
62372
62428
  parsed = typeof data2.formJson === "string" ? JSON.parse(data2.formJson) : data2.formJson;
62429
+ this.showForm = true;
62373
62430
  } catch (e) {
62374
62431
  console.error(e);
62375
62432
  parsed = null;
@@ -62398,6 +62455,7 @@ const _sfc_main$1 = {
62398
62455
  },
62399
62456
  handleClose() {
62400
62457
  this.formData = {};
62458
+ this.pendingColHiddenOps = [];
62401
62459
  this.formJson = {
62402
62460
  "widgetList": [],
62403
62461
  "formConfig": {
@@ -62425,7 +62483,8 @@ const _sfc_main$1 = {
62425
62483
  }
62426
62484
  };
62427
62485
  const _hoisted_1 = { class: "asset-body-wrap" };
62428
- const _hoisted_2 = { class: "dialog-footer" };
62486
+ const _hoisted_2 = { key: 0 };
62487
+ const _hoisted_3 = { class: "dialog-footer" };
62429
62488
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
62430
62489
  const _component_v_form_render = resolveComponent("v-form-render");
62431
62490
  const _component_el_button = resolveComponent("el-button");
@@ -62440,7 +62499,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
62440
62499
  "header-class": "person-tree-dialog-header"
62441
62500
  }, {
62442
62501
  footer: withCtx(() => [
62443
- createElementVNode("div", _hoisted_2, [
62502
+ createElementVNode("div", _hoisted_3, [
62444
62503
  createVNode(_component_el_button, { onClick: $options.handleClose }, {
62445
62504
  default: withCtx(() => [..._cache[1] || (_cache[1] = [
62446
62505
  createTextVNode("\u53D6\u6D88", -1)
@@ -62460,17 +62519,19 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
62460
62519
  ]),
62461
62520
  default: withCtx(() => [
62462
62521
  createElementVNode("div", _hoisted_1, [
62463
- createVNode(_component_v_form_render, {
62464
- ref: "detailFormRender",
62465
- "form-json": $options.renderFormJson,
62466
- "form-data": $data.formData
62467
- }, null, 8, ["form-json", "form-data"])
62522
+ $data.showForm ? (openBlock(), createElementBlock("div", _hoisted_2, [
62523
+ createVNode(_component_v_form_render, {
62524
+ ref: "detailFormRender",
62525
+ "form-json": $options.renderFormJson,
62526
+ "form-data": $data.formData
62527
+ }, null, 8, ["form-json", "form-data"])
62528
+ ])) : createCommentVNode("", true)
62468
62529
  ])
62469
62530
  ]),
62470
62531
  _: 1
62471
62532
  }, 8, ["modelValue", "onClose"]);
62472
62533
  }
62473
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-0f086184"]]);
62534
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$1, [["render", _sfc_render$1], ["__scopeId", "data-v-772c9f48"]]);
62474
62535
  var index_vue_vue_type_style_index_0_lang = "";
62475
62536
  const _sfc_main = {
62476
62537
  name: "asset-table-widget",
@@ -62558,21 +62619,23 @@ const _sfc_main = {
62558
62619
  this.triggerEvent("onClose");
62559
62620
  this.dispatch("VFormRender", "fieldValidation", [this.getPropName()]);
62560
62621
  },
62622
+ updateRowData(row) {
62623
+ const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
62624
+ if (index2 === -1)
62625
+ return;
62626
+ this.fieldModel[index2] = __spreadValues(__spreadValues({}, this.fieldModel[index2]), row);
62627
+ console.log(this.fieldModel, "this.fieldModel");
62628
+ },
62561
62629
  triggerEvent(eventName, ...args) {
62562
62630
  var _a, _b;
62563
62631
  const handler = (_b = (_a = this.field) == null ? void 0 : _a.options) == null ? void 0 : _b[eventName];
62564
62632
  if (handler) {
62565
62633
  try {
62566
- if (eventName === "onConfirm" && args.length > 0) {
62567
- const nodes = args[0];
62568
- const fn = new Function("checkedNodes", "selectedNodes", "selectedValue", handler);
62569
- fn.call(this, nodes, nodes, nodes);
62570
- } else if (eventName === "onRemoveTag" && args.length >= 2) {
62571
- const removedItem = args[0];
62572
- const remainingNodes = args[1];
62573
- const removedIndex = args[2];
62574
- const fn = new Function("removedItem", "remainingNodes", "remainingValue", "selectedValue", "removedIndex", handler);
62575
- fn.call(this, removedItem, remainingNodes, remainingNodes, remainingNodes, removedIndex);
62634
+ if (eventName === "onOpen" && args.length > 0) {
62635
+ const rowData = args[0];
62636
+ const fn = new Function("rowData", handler);
62637
+ fn.call(this, rowData);
62638
+ ``;
62576
62639
  } else if (args.length > 0) {
62577
62640
  const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
62578
62641
  const fn = new Function(paramNames, handler);
@@ -62589,8 +62652,20 @@ const _sfc_main = {
62589
62652
  }
62590
62653
  },
62591
62654
  handleRow(row) {
62655
+ const index2 = this.fieldModel.findIndex((item) => item.id === row.id);
62656
+ if (index2 === -1)
62657
+ return;
62658
+ this.triggerEvent("onOpen", this.fieldModel[index2]);
62592
62659
  this.detailDialogVisible = true;
62593
- this.detailDialogData = row;
62660
+ this.detailDialogData = lodash.exports.cloneDeep(this.fieldModel[index2]);
62661
+ },
62662
+ setDetailColHidden(colNames, hidden) {
62663
+ this.$nextTick(() => {
62664
+ const dialogRef = this.$refs.detailDialogRef;
62665
+ if (dialogRef && typeof dialogRef.setColHidden === "function") {
62666
+ dialogRef.setColHidden(colNames, hidden);
62667
+ }
62668
+ });
62594
62669
  },
62595
62670
  handleCloseDetailDialog() {
62596
62671
  this.detailDialogVisible = false;
@@ -62659,20 +62734,30 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
62659
62734
  _: 1
62660
62735
  }),
62661
62736
  createVNode(_component_el_table_column, {
62662
- prop: "status",
62737
+ prop: "assetTypeName",
62663
62738
  label: "\u8D44\u4EA7\u7C7B\u578B"
62664
62739
  }),
62665
62740
  createVNode(_component_el_table_column, {
62666
- prop: "createTime",
62741
+ prop: "assetOwnerUnit",
62667
62742
  label: "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D"
62668
62743
  }),
62669
62744
  createVNode(_component_el_table_column, {
62670
- prop: "updateTime",
62745
+ prop: "originalValue",
62671
62746
  label: "\u539F\u503C"
62747
+ }, {
62748
+ default: withCtx(({ row }) => [
62749
+ createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
62750
+ ]),
62751
+ _: 1
62672
62752
  }),
62673
62753
  createVNode(_component_el_table_column, {
62674
- prop: "updateTime",
62754
+ prop: "netValue",
62675
62755
  label: "\u51C0\u503C"
62756
+ }, {
62757
+ default: withCtx(({ row }) => [
62758
+ createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
62759
+ ]),
62760
+ _: 1
62676
62761
  }),
62677
62762
  createVNode(_component_el_table_column, {
62678
62763
  prop: "isUpdate",
@@ -62688,6 +62773,7 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
62688
62773
  }, 8, ["data"])
62689
62774
  ], 4),
62690
62775
  createVNode(_component_detail_dialog, {
62776
+ ref: "detailDialogRef",
62691
62777
  visible: $data.detailDialogVisible,
62692
62778
  typeJson: $props.field.options.typeJson,
62693
62779
  data: $data.detailDialogData,
@@ -62779,8 +62865,10 @@ const loadExtension = function(app) {
62779
62865
  app.component(AssetSelectWidget.name, AssetSelectWidget);
62780
62866
  registerCPEditor(app, "asset-select-buttonText", "asset-select-buttonText-editor", createInputTextEditor("buttonText", "extension.setting.assetSelectButtonText"));
62781
62867
  registerCPEditor(app, "asset-select-typeJson", "asset-select-typeJson-editor", createTextareaEditor("typeJson", "extension.setting.assetSelectTypeJson", { rows: 4 }));
62868
+ registerCPEditor(app, "asset-select-assetTypeValue", "asset-select-assetTypeValue-editor", createInputTextEditor("assetTypeValue", "extension.setting.assetSelectAssetTypeValue"));
62782
62869
  app.component(AssetTableWidget.name, AssetTableWidget);
62783
62870
  registerCPEditor(app, "asset-table-typeJson", "asset-table-typeJson-editor", createTextareaEditor("typeJson", "extension.setting.assetTableTypeJson", { rows: 4 }));
62871
+ registerEPEditor(app, "asset-table-onOpen", "asset-table-onOpen-editor", createEventHandlerEditor("onOpen", ["rowData"]));
62784
62872
  };
62785
62873
  function getElMessage(app) {
62786
62874
  var _a, _b, _c;