form-custom-test 3.0.109 → 3.0.111

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.
@@ -17,6 +17,18 @@ var __spreadValues = (a, b) => {
17
17
  return a;
18
18
  };
19
19
  var __spreadProps = (a, b) => __defProps(a, __getOwnPropDescs(b));
20
+ var __objRest = (source2, exclude) => {
21
+ var target = {};
22
+ for (var prop in source2)
23
+ if (__hasOwnProp.call(source2, prop) && exclude.indexOf(prop) < 0)
24
+ target[prop] = source2[prop];
25
+ if (source2 != null && __getOwnPropSymbols)
26
+ for (var prop of __getOwnPropSymbols(source2)) {
27
+ if (exclude.indexOf(prop) < 0 && __propIsEnum.call(source2, prop))
28
+ target[prop] = source2[prop];
29
+ }
30
+ return target;
31
+ };
20
32
  var _a, _b, _c;
21
33
  import * as vue from "vue";
22
34
  import { reactive, openBlock, createElementBlock, normalizeClass, createElementVNode, toDisplayString, createCommentVNode, resolveComponent, createBlock, withCtx, createVNode, createTextVNode, Fragment, renderList, renderSlot, normalizeStyle, withModifiers, defineComponent, createSlots, watch, ref, onBeforeUnmount, onMounted, onUnmounted, withDirectives, mergeProps, resolveDynamicComponent, vShow, resolveDirective, isVNode } from "vue";
@@ -1840,6 +1852,8 @@ const advancedFields = [
1840
1852
  fileMaxSize: 5,
1841
1853
  fileTypes: ["jpg", "jpeg", "png"],
1842
1854
  allowDrag: true,
1855
+ mainTip: "",
1856
+ subTip: "",
1843
1857
  customClass: "",
1844
1858
  labelIconClass: null,
1845
1859
  labelIconPosition: "rear",
@@ -1879,6 +1893,8 @@ const advancedFields = [
1879
1893
  fileMaxSize: 100,
1880
1894
  fileTypes: ["doc", "docx", "xls", "xlsx", "pdf", "ppt", "pptx", "jpg", "jpeg", "png", "bmp", "doc", "txt", "mp3", "mp4", "et", "ett", "wps", "wpt", "xlt", "ofd", "dot", "zip", "rar", "7z", "tar"],
1881
1895
  allowDrag: true,
1896
+ mainTip: "",
1897
+ subTip: "",
1882
1898
  customClass: "",
1883
1899
  labelIconClass: null,
1884
1900
  labelIconPosition: "rear",
@@ -3229,6 +3245,8 @@ var enLocale = {
3229
3245
  formCss: "Form CSS",
3230
3246
  addCss: "Edit",
3231
3247
  customClass: "Custom Class",
3248
+ mainTip: "Main Tip",
3249
+ subTip: "Sub Tip",
3232
3250
  globalFunctions: "Global Functions",
3233
3251
  addEventHandler: "Edit",
3234
3252
  editWidgetEventHandler: "Edit Widget Event Handler",
@@ -3556,6 +3574,8 @@ var zhLocale = {
3556
3574
  formCss: "\u8868\u5355\u5168\u5C40CSS",
3557
3575
  addCss: "\u7F16\u5199CSS",
3558
3576
  customClass: "\u81EA\u5B9A\u4E49CSS\u6837\u5F0F",
3577
+ mainTip: "\u4E3B\u63D0\u793A\u8BED",
3578
+ subTip: "\u526F\u63D0\u793A\u8BED",
3559
3579
  globalFunctions: "\u8868\u5355\u5168\u5C40\u51FD\u6570",
3560
3580
  addEventHandler: "\u7F16\u5199\u4EE3\u7801",
3561
3581
  editWidgetEventHandler: "\u7EC4\u4EF6\u4E8B\u4EF6\u5904\u7406",
@@ -3843,7 +3863,7 @@ const assetSelectSchema = {
3843
3863
  hideFooter: false,
3844
3864
  typeJson: {},
3845
3865
  assetTypeValue: "",
3846
- customClass: "",
3866
+ customClass: ["assetCss"],
3847
3867
  onOpen: "",
3848
3868
  onConfirm: ""
3849
3869
  }
@@ -12564,15 +12584,16 @@ const _hoisted_2$p = {
12564
12584
  key: 0,
12565
12585
  class: "el-upload__tip"
12566
12586
  };
12567
- const _hoisted_3$k = { class: "sub-tip" };
12568
- const _hoisted_4$h = { class: "upload-file-list" };
12569
- const _hoisted_5$e = { class: "left-wrap" };
12570
- const _hoisted_6$e = ["src"];
12571
- const _hoisted_7$b = ["title"];
12572
- const _hoisted_8$8 = { class: "right-wrap" };
12573
- const _hoisted_9$7 = ["title", "onClick"];
12574
- const _hoisted_10$5 = ["onClick"];
12587
+ const _hoisted_3$k = { class: "main-tip" };
12588
+ const _hoisted_4$h = { class: "sub-tip" };
12589
+ const _hoisted_5$e = { class: "upload-file-list" };
12590
+ const _hoisted_6$e = { class: "left-wrap" };
12591
+ const _hoisted_7$b = ["src"];
12592
+ const _hoisted_8$8 = ["title"];
12593
+ const _hoisted_9$7 = { class: "right-wrap" };
12594
+ const _hoisted_10$6 = ["title", "onClick"];
12575
12595
  const _hoisted_11$4 = ["onClick"];
12596
+ const _hoisted_12$3 = ["onClick"];
12576
12597
  function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12577
12598
  const _component_el_button = resolveComponent("el-button");
12578
12599
  const _component_el_upload = resolveComponent("el-upload");
@@ -12616,40 +12637,40 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12616
12637
  !!$props.field.options.uploadTip && !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", _hoisted_2$p, toDisplayString($props.field.options.uploadTip), 1)) : createCommentVNode("", true)
12617
12638
  ]),
12618
12639
  file: withCtx(({ file }) => [
12619
- createElementVNode("div", _hoisted_4$h, [
12620
- createElementVNode("div", _hoisted_5$e, [
12640
+ createElementVNode("div", _hoisted_5$e, [
12641
+ createElementVNode("div", _hoisted_6$e, [
12621
12642
  createElementVNode("img", {
12622
12643
  src: $options.getFileIcon(file.name),
12623
12644
  alt: "",
12624
12645
  style: { "width": "18px", "height": "18px", "margin-right": "8px" }
12625
- }, null, 8, _hoisted_6$e),
12646
+ }, null, 8, _hoisted_7$b),
12626
12647
  createElementVNode("div", {
12627
12648
  class: "upload-file-name",
12628
12649
  title: file.name
12629
- }, toDisplayString(file.name), 9, _hoisted_7$b)
12650
+ }, toDisplayString(file.name), 9, _hoisted_8$8)
12630
12651
  ]),
12631
- createElementVNode("div", _hoisted_8$8, [
12652
+ createElementVNode("div", _hoisted_9$7, [
12632
12653
  !_ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
12633
12654
  key: 0,
12634
12655
  class: "file-action",
12635
12656
  title: _ctx.i18nt("render.hint.removeFile"),
12636
12657
  onClick: ($event) => $options.removeUploadFile(file.name, file.url, file.uid)
12637
- }, [..._cache[3] || (_cache[3] = [
12658
+ }, [..._cache[2] || (_cache[2] = [
12638
12659
  createElementVNode("img", {
12639
12660
  src: _imports_1,
12640
12661
  alt: ""
12641
12662
  }, null, -1)
12642
- ])], 8, _hoisted_9$7)) : createCommentVNode("", true),
12663
+ ])], 8, _hoisted_10$6)) : createCommentVNode("", true),
12643
12664
  _ctx.getDisabled() && !$options.isZip(file.name) ? (openBlock(), createElementBlock("div", {
12644
12665
  key: 1,
12645
12666
  onClick: withModifiers(($event) => $options.handlePreview(file), ["stop"]),
12646
12667
  class: "pr-8px color-primary cursor-pointer file-action-right"
12647
- }, " \u9884\u89C8 ", 8, _hoisted_10$5)) : createCommentVNode("", true),
12668
+ }, " \u9884\u89C8 ", 8, _hoisted_11$4)) : createCommentVNode("", true),
12648
12669
  _ctx.getDisabled() ? (openBlock(), createElementBlock("div", {
12649
12670
  key: 2,
12650
12671
  onClick: withModifiers(($event) => $options.handleDownload(file), ["stop"]),
12651
12672
  class: "pr-8px color-primary cursor-pointer file-action-right"
12652
- }, " \u4E0B\u8F7D ", 8, _hoisted_11$4)) : createCommentVNode("", true)
12673
+ }, " \u4E0B\u8F7D ", 8, _hoisted_12$3)) : createCommentVNode("", true)
12653
12674
  ])
12654
12675
  ])
12655
12676
  ]),
@@ -12663,13 +12684,13 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12663
12684
  src: _imports_0,
12664
12685
  alt: ""
12665
12686
  }, null, -1)),
12666
- _cache[1] || (_cache[1] = createElementVNode("div", { class: "main-tip" }, " \u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20 ", -1)),
12667
- createElementVNode("div", _hoisted_3$k, " \u652F\u6301\u4E0A\u4F20" + toDisplayString($props.field.options.fileTypes.slice(0, 8).join("\uFF0C")) + "\u7B49\u683C\u5F0F\u6587\u4EF6 ", 1)
12687
+ createElementVNode("div", _hoisted_3$k, toDisplayString($props.field.options.mainTip || "\u70B9\u51FB\u6216\u62D6\u62FD\u6587\u4EF6\u5230\u6B64\u533A\u57DF\u4E0A\u4F20"), 1),
12688
+ createElementVNode("div", _hoisted_4$h, toDisplayString($props.field.options.subTip || `\u652F\u6301\u4E0A\u4F20${$props.field.options.fileTypes.slice(0, 8).join("\uFF0C")}\u7B49\u683C\u5F0F\u6587\u4EF6`), 1)
12668
12689
  ], 64)) : (openBlock(), createBlock(_component_el_button, {
12669
12690
  key: 1,
12670
12691
  type: "primary"
12671
12692
  }, {
12672
- default: withCtx(() => [..._cache[2] || (_cache[2] = [
12693
+ default: withCtx(() => [..._cache[1] || (_cache[1] = [
12673
12694
  createTextVNode(" \u9009\u62E9\u6587\u4EF6", -1)
12674
12695
  ])]),
12675
12696
  _: 1
@@ -12690,7 +12711,7 @@ function _sfc_render$3c(_ctx, _cache, $props, $setup, $data, $options) {
12690
12711
  _: 1
12691
12712
  }, 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"]);
12692
12713
  }
12693
- var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3c, [["render", _sfc_render$3c], ["__scopeId", "data-v-523641ad"]]);
12714
+ var fileUploadWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3c, [["render", _sfc_render$3c], ["__scopeId", "data-v-7746136c"]]);
12694
12715
  var __glob_0_7$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
12695
12716
  __proto__: null,
12696
12717
  "default": fileUploadWidget
@@ -13375,6 +13396,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
13375
13396
  "sub-form-row-id": $props.subFormRowId
13376
13397
  }, {
13377
13398
  default: withCtx(() => [
13399
+ createTextVNode(toDisplayString(_ctx.getDisabled()) + " ", 1),
13378
13400
  createVNode(_component_el_radio_group, {
13379
13401
  ref: "fieldEditor",
13380
13402
  modelValue: $data.fieldModel,
@@ -13419,7 +13441,7 @@ function _sfc_render$37(_ctx, _cache, $props, $setup, $data, $options) {
13419
13441
  _: 1
13420
13442
  }, 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"]);
13421
13443
  }
13422
- var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-2579b66d"]]);
13444
+ var radioWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$37, [["render", _sfc_render$37], ["__scopeId", "data-v-12ecda57"]]);
13423
13445
  var __glob_0_13$1 = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
13424
13446
  __proto__: null,
13425
13447
  "default": radioWidget
@@ -53841,7 +53863,7 @@ const _hoisted_8$7 = {
53841
53863
  class: ""
53842
53864
  };
53843
53865
  const _hoisted_9$6 = { class: "dialog-footer" };
53844
- const _hoisted_10$4 = {
53866
+ const _hoisted_10$5 = {
53845
53867
  key: 3,
53846
53868
  class: ""
53847
53869
  };
@@ -54242,7 +54264,7 @@ function _sfc_render$2O(_ctx, _cache, $props, $setup, $data, $options) {
54242
54264
  ])), [
54243
54265
  [_directive_drag, [".drag-dialog.el-dialog", ".drag-dialog .el-dialog__header"]]
54244
54266
  ]) : createCommentVNode("", true),
54245
- $data.showExportCodeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$4, [
54267
+ $data.showExportCodeDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$5, [
54246
54268
  createVNode(_component_el_dialog, {
54247
54269
  title: _ctx.i18nt("designer.toolbar.exportCode"),
54248
54270
  modelValue: $data.showExportCodeDialogFlag,
@@ -56232,7 +56254,7 @@ const _hoisted_8$6 = {
56232
56254
  style: { "margin-bottom": "10px" }
56233
56255
  };
56234
56256
  const _hoisted_9$5 = { key: 7 };
56235
- const _hoisted_10$3 = {
56257
+ const _hoisted_10$4 = {
56236
56258
  key: 8,
56237
56259
  class: ""
56238
56260
  };
@@ -56528,7 +56550,7 @@ function _sfc_render$2c(_ctx, _cache, $props, $setup, $data, $options) {
56528
56550
  _: 1
56529
56551
  }, 8, ["onClick"])
56530
56552
  ])) : createCommentVNode("", true),
56531
- $data.showImportDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$3, [
56553
+ $data.showImportDialogFlag ? withDirectives((openBlock(), createElementBlock("div", _hoisted_10$4, [
56532
56554
  createVNode(_component_el_dialog, {
56533
56555
  title: _ctx.i18nt("designer.setting.importOptions"),
56534
56556
  modelValue: $data.showImportDialogFlag,
@@ -61718,6 +61740,8 @@ const COMMON_PROPERTIES$1 = {
61718
61740
  "fileMaxSize": "fileMaxSize-editor",
61719
61741
  "fileTypes": "fileTypes-editor",
61720
61742
  "allowDrag": "file-allow-drage",
61743
+ "mainTip": "mainTip-editor",
61744
+ "subTip": "subTip-editor",
61721
61745
  "contentHeight": "contentHeight-editor",
61722
61746
  "customClass": "customClass-editor",
61723
61747
  "showBlankRow": "showBlankRow-editor",
@@ -62379,7 +62403,7 @@ const _hoisted_9$4 = {
62379
62403
  key: 1,
62380
62404
  class: "drag-handler"
62381
62405
  };
62382
- const _hoisted_10$2 = ["title"];
62406
+ const _hoisted_10$3 = ["title"];
62383
62407
  const _hoisted_11$1 = { key: 0 };
62384
62408
  function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
62385
62409
  const _component_svg_icon = resolveComponent("svg-icon");
@@ -62441,7 +62465,7 @@ function _sfc_render$t(_ctx, _cache, $props, $setup, $data, $options) {
62441
62465
  title: _ctx.i18nt("designer.hint.dragHandler")
62442
62466
  }, [
62443
62467
  createVNode(_component_svg_icon, { "icon-class": "el-drag-move" })
62444
- ], 8, _hoisted_10$2),
62468
+ ], 8, _hoisted_10$3),
62445
62469
  createElementVNode("i", null, toDisplayString(_ctx.i18n2t(`designer.widgetLabel.${$props.widget.type}`, `extension.widgetLabel.${$props.widget.type}`)), 1),
62446
62470
  $props.widget.options.hidden === true ? (openBlock(), createElementBlock("i", _hoisted_11$1, [
62447
62471
  createVNode(_component_svg_icon, { "icon-class": "el-hide" })
@@ -68420,13 +68444,13 @@ function registerIcon(app) {
68420
68444
  if (typeof window !== "undefined") {
68421
68445
  let loadSvg = function() {
68422
68446
  var body = document.body;
68423
- var svgDom = document.getElementById("__svg__icons__dom__1777281813949__");
68447
+ var svgDom = document.getElementById("__svg__icons__dom__1777430439761__");
68424
68448
  if (!svgDom) {
68425
68449
  svgDom = document.createElementNS("http://www.w3.org/2000/svg", "svg");
68426
68450
  svgDom.style.position = "absolute";
68427
68451
  svgDom.style.width = "0";
68428
68452
  svgDom.style.height = "0";
68429
- svgDom.id = "__svg__icons__dom__1777281813949__";
68453
+ svgDom.id = "__svg__icons__dom__1777430439761__";
68430
68454
  svgDom.setAttribute("xmlns", "http://www.w3.org/2000/svg");
68431
68455
  svgDom.setAttribute("xmlns:link", "http://www.w3.org/1999/xlink");
68432
68456
  }
@@ -75445,7 +75469,7 @@ const _hoisted_6$4 = {
75445
75469
  const _hoisted_7$3 = { class: "group-actions" };
75446
75470
  const _hoisted_8$3 = { class: "group-content" };
75447
75471
  const _hoisted_9$2 = { class: "form-widget-list" };
75448
- const _hoisted_10$1 = {
75472
+ const _hoisted_10$2 = {
75449
75473
  key: 0,
75450
75474
  class: "empty-hint"
75451
75475
  };
@@ -75549,7 +75573,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
75549
75573
  ]),
75550
75574
  _: 1
75551
75575
  }, 16, ["list", "onUpdate", "move"]),
75552
- !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$1, " \u62D6\u62FD\u4EFB\u610F\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
75576
+ !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_10$2, " \u62D6\u62FD\u4EFB\u610F\u7EC4\u4EF6\u5230\u6B64\u5904 ")) : createCommentVNode("", true)
75553
75577
  ], 2)
75554
75578
  ], 2))
75555
75579
  ]),
@@ -75941,7 +75965,7 @@ const _hoisted_9$1 = {
75941
75965
  class: "field-loading",
75942
75966
  style: { "color": "#909399", "font-size": "12px", "padding": "8px" }
75943
75967
  };
75944
- const _hoisted_10 = {
75968
+ const _hoisted_10$1 = {
75945
75969
  key: 1,
75946
75970
  class: "empty-hint"
75947
75971
  };
@@ -76023,7 +76047,7 @@ function _sfc_render$d(_ctx, _cache, $props, $setup, $data, $options) {
76023
76047
  }, 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... "))
76024
76048
  ], 64)) : createCommentVNode("", true)
76025
76049
  ], 64);
76026
- }), 128)) : (openBlock(), createElementBlock("div", _hoisted_10, [
76050
+ }), 128)) : (openBlock(), createElementBlock("div", _hoisted_10$1, [
76027
76051
  !$props.widget ? (openBlock(), createElementBlock("div", _hoisted_11, "\u7EC4\u4EF6\u672A\u521D\u59CB\u5316")) : !$props.widget.widgetList || $props.widget.widgetList.length === 0 ? (openBlock(), createElementBlock("div", _hoisted_12, " \u8BF7\u5148\u5728\u8BBE\u8BA1\u5668\u4E2D\u62D6\u62FD\u7EC4\u4EF6\u5230\u5B50\u8868\u5355\u4E2D ")) : createCommentVNode("", true)
76028
76052
  ]))
76029
76053
  ])
@@ -78481,16 +78505,10 @@ const _sfc_main$4 = {
78481
78505
  this.visible = newVal;
78482
78506
  if (newVal) {
78483
78507
  this.getTableData();
78508
+ this.selectedRows = this.fieldValue && Array.isArray(this.fieldValue) ? lodash.exports.cloneDeep(this.fieldValue) : [];
78484
78509
  }
78485
78510
  }
78486
78511
  },
78487
- fieldValue: {
78488
- handler(newVal) {
78489
- this.selectedRows = newVal && Array.isArray(newVal) ? lodash.exports.cloneDeep(newVal) : [];
78490
- },
78491
- deep: true,
78492
- immediate: true
78493
- },
78494
78512
  assetTypeValue: {
78495
78513
  handler(newVal) {
78496
78514
  if (newVal) {
@@ -78503,6 +78521,12 @@ const _sfc_main$4 = {
78503
78521
  immediate: true
78504
78522
  }
78505
78523
  },
78524
+ computed: {
78525
+ filterList() {
78526
+ const value2 = this.searchValue.toLocaleLowerCase();
78527
+ return this.selectedRows.filter((item) => item.labelName.toLocaleLowerCase().includes(value2) || item.assetCode.toLocaleLowerCase().includes(value2));
78528
+ }
78529
+ },
78506
78530
  data() {
78507
78531
  return {
78508
78532
  tableData: [],
@@ -78514,9 +78538,12 @@ const _sfc_main$4 = {
78514
78538
  form: {
78515
78539
  assetCode: "",
78516
78540
  assetType: "",
78517
- ownerUnit: ""
78541
+ assetOwnerUnit: "",
78542
+ labelName: ""
78518
78543
  },
78519
- disabled: false
78544
+ disabled: false,
78545
+ total: 0,
78546
+ searchValue: ""
78520
78547
  };
78521
78548
  },
78522
78549
  methods: {
@@ -78530,29 +78557,40 @@ const _sfc_main$4 = {
78530
78557
  service$1({
78531
78558
  method: "post",
78532
78559
  url: "/asset-business/overview/pageList",
78533
- data: __spreadValues({ size: this.pageSize, current: this.currentPage }, this.form)
78560
+ data: __spreadValues({ size: this.pageSize, current: this.currentPage, reqType: "disposal" }, this.form)
78534
78561
  }).then(({ data: data2 }) => {
78535
- this.tableData = data2.records;
78562
+ const { records, total, current } = data2;
78563
+ this.tableData = records.map((item) => {
78564
+ const _a2 = item, { id } = _a2, rest = __objRest(_a2, ["id"]);
78565
+ const obj = __spreadProps(__spreadValues({}, rest), {
78566
+ assetId: id
78567
+ });
78568
+ return obj;
78569
+ });
78570
+ this.total = total;
78571
+ this.currentPage = current;
78536
78572
  });
78537
78573
  },
78538
78574
  handleSizeChange(size) {
78539
78575
  this.pageSize = size;
78576
+ this.getTableData();
78540
78577
  },
78541
78578
  handleCurrentChange(page) {
78542
78579
  this.currentPage = page;
78580
+ this.getTableData();
78543
78581
  },
78544
78582
  handleAdd() {
78545
78583
  const selection = this.$refs.tableRef.getSelectionRows();
78546
78584
  const arr = [...this.selectedRows, ...selection].reduce((acc, item) => {
78547
- if (!acc.some((i) => i.id === item.id)) {
78585
+ if (!acc.some((i) => i.assetId === item.assetId)) {
78548
78586
  acc.push(item);
78549
78587
  }
78550
78588
  return acc;
78551
78589
  }, []);
78552
78590
  this.selectedRows = arr;
78553
78591
  },
78554
- handleRemove(id) {
78555
- const index2 = this.selectedRows.findIndex((item) => item.id === id);
78592
+ handleRemove(assetId) {
78593
+ const index2 = this.selectedRows.findIndex((item) => item.assetId === assetId);
78556
78594
  if (index2 !== -1) {
78557
78595
  this.selectedRows.splice(index2, 1);
78558
78596
  }
@@ -78588,10 +78626,11 @@ const _hoisted_2$2 = { class: "bottom-wrap" };
78588
78626
  const _hoisted_3$1 = { class: "left-wrap" };
78589
78627
  const _hoisted_4 = { class: "filter-wrap" };
78590
78628
  const _hoisted_5 = { class: "right-wrap" };
78591
- const _hoisted_6 = { class: "asset-wrap" };
78592
- const _hoisted_7 = { class: "asset-item-left" };
78593
- const _hoisted_8 = { class: "asset-item-right" };
78594
- const _hoisted_9 = { class: "dialog-footer" };
78629
+ const _hoisted_6 = { class: "asset-wrap-title" };
78630
+ const _hoisted_7 = { class: "asset-wrap" };
78631
+ const _hoisted_8 = { class: "asset-item-left" };
78632
+ const _hoisted_9 = { class: "asset-item-right" };
78633
+ const _hoisted_10 = { class: "dialog-footer" };
78595
78634
  function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78596
78635
  const _component_el_input = resolveComponent("el-input");
78597
78636
  const _component_el_form_item = resolveComponent("el-form-item");
@@ -78604,25 +78643,28 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78604
78643
  const _component_el_table_column = resolveComponent("el-table-column");
78605
78644
  const _component_el_table = resolveComponent("el-table");
78606
78645
  const _component_el_pagination = resolveComponent("el-pagination");
78607
- const _component_Close = resolveComponent("Close");
78646
+ const _component_DArrowRight = resolveComponent("DArrowRight");
78608
78647
  const _component_el_icon = resolveComponent("el-icon");
78648
+ const _component_Search = resolveComponent("Search");
78649
+ const _component_Close = resolveComponent("Close");
78650
+ const _component_el_scrollbar = resolveComponent("el-scrollbar");
78609
78651
  const _component_el_dialog = resolveComponent("el-dialog");
78610
78652
  return openBlock(), createBlock(_component_el_dialog, {
78611
78653
  modelValue: $data.visible,
78612
- "onUpdate:modelValue": _cache[4] || (_cache[4] = ($event) => $data.visible = $event),
78654
+ "onUpdate:modelValue": _cache[6] || (_cache[6] = ($event) => $data.visible = $event),
78613
78655
  title: "\u8D44\u4EA7\u9009\u62E9",
78614
- width: "1200px",
78656
+ width: "1418px",
78615
78657
  onClose: $options.handleClose,
78616
- "body-class": "person-tree-dialog-body",
78617
- "header-class": "person-tree-dialog-header"
78658
+ "body-class": "asset-list-dialog-body",
78659
+ "header-class": "asset-list-dialog-header"
78618
78660
  }, {
78619
78661
  footer: withCtx(() => [
78620
- createElementVNode("div", _hoisted_9, [
78662
+ createElementVNode("div", _hoisted_10, [
78621
78663
  createVNode(_component_el_button, {
78622
78664
  onClick: $options.handleClose,
78623
78665
  size: "default"
78624
78666
  }, {
78625
- default: withCtx(() => [..._cache[6] || (_cache[6] = [
78667
+ default: withCtx(() => [..._cache[12] || (_cache[12] = [
78626
78668
  createTextVNode(" \u53D6\u6D88 ", -1)
78627
78669
  ])]),
78628
78670
  _: 1
@@ -78632,7 +78674,7 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78632
78674
  onClick: $options.handleConfirm,
78633
78675
  size: "default"
78634
78676
  }, {
78635
- default: withCtx(() => [..._cache[7] || (_cache[7] = [
78677
+ default: withCtx(() => [..._cache[13] || (_cache[13] = [
78636
78678
  createTextVNode(" \u786E\u5B9A ", -1)
78637
78679
  ])]),
78638
78680
  _: 1
@@ -78644,22 +78686,25 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78644
78686
  createElementVNode("div", _hoisted_2$2, [
78645
78687
  createElementVNode("div", _hoisted_3$1, [
78646
78688
  createElementVNode("div", _hoisted_4, [
78647
- createVNode(_component_el_form, {
78648
- model: $data.form,
78649
- size: "small"
78650
- }, {
78689
+ createVNode(_component_el_form, { model: $data.form }, {
78651
78690
  default: withCtx(() => [
78652
- createVNode(_component_el_row, { gutter: 20 }, {
78691
+ createVNode(_component_el_row, { gutter: 12 }, {
78653
78692
  default: withCtx(() => [
78654
- createVNode(_component_el_col, { span: 6 }, {
78693
+ createVNode(_component_el_col, { span: 5 }, {
78655
78694
  default: withCtx(() => [
78656
- createVNode(_component_el_form_item, { label: "\u8D44\u4EA7\u7F16\u7801/\u8D44\u4EA7\u540D\u79F0" }, {
78695
+ createVNode(_component_el_form_item, null, {
78657
78696
  default: withCtx(() => [
78658
78697
  createVNode(_component_el_input, {
78659
- size: "small",
78698
+ maxlength: "50",
78660
78699
  modelValue: $data.form.assetCode,
78661
- "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event)
78662
- }, null, 8, ["modelValue"])
78700
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => $data.form.assetCode = $event),
78701
+ placeholder: "\u8BF7\u8F93\u5165"
78702
+ }, {
78703
+ prefix: withCtx(() => [..._cache[7] || (_cache[7] = [
78704
+ createElementVNode("span", null, "\u8D44\u4EA7\u7F16\u7801\uFF1A", -1)
78705
+ ])]),
78706
+ _: 1
78707
+ }, 8, ["modelValue"])
78663
78708
  ]),
78664
78709
  _: 1
78665
78710
  })
@@ -78668,15 +78713,38 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78668
78713
  }),
78669
78714
  createVNode(_component_el_col, { span: 6 }, {
78670
78715
  default: withCtx(() => [
78671
- createVNode(_component_el_form_item, { label: "\u8D44\u4EA7\u7C7B\u578B" }, {
78716
+ createVNode(_component_el_form_item, null, {
78717
+ default: withCtx(() => [
78718
+ createVNode(_component_el_input, {
78719
+ maxlength: "50",
78720
+ modelValue: $data.form.labelName,
78721
+ "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.labelName = $event),
78722
+ placeholder: "\u8BF7\u8F93\u5165"
78723
+ }, {
78724
+ prefix: withCtx(() => [..._cache[8] || (_cache[8] = [
78725
+ createElementVNode("span", null, "\u8D44\u4EA7\u540D\u79F0\uFF1A", -1)
78726
+ ])]),
78727
+ _: 1
78728
+ }, 8, ["modelValue"])
78729
+ ]),
78730
+ _: 1
78731
+ })
78732
+ ]),
78733
+ _: 1
78734
+ }),
78735
+ createVNode(_component_el_col, { span: 5 }, {
78736
+ default: withCtx(() => [
78737
+ createVNode(_component_el_form_item, null, {
78672
78738
  default: withCtx(() => [
78673
78739
  createVNode(_component_el_select, {
78674
- size: "small",
78675
78740
  disabled: $data.disabled,
78676
78741
  modelValue: $data.form.assetType,
78677
- "onUpdate:modelValue": _cache[1] || (_cache[1] = ($event) => $data.form.assetType = $event),
78678
- placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7\u7C7B\u578B"
78742
+ "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.assetType = $event),
78743
+ placeholder: "\u8BF7\u9009\u62E9"
78679
78744
  }, {
78745
+ prefix: withCtx(() => [..._cache[9] || (_cache[9] = [
78746
+ createElementVNode("span", null, "\u8D44\u4EA7\u7C7B\u578B\uFF1A", -1)
78747
+ ])]),
78680
78748
  default: withCtx(() => [
78681
78749
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.assetTypeOptions, (item) => {
78682
78750
  return openBlock(), createBlock(_component_el_option, {
@@ -78696,29 +78764,34 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78696
78764
  }),
78697
78765
  createVNode(_component_el_col, { span: 6 }, {
78698
78766
  default: withCtx(() => [
78699
- createVNode(_component_el_form_item, { label: "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D" }, {
78767
+ createVNode(_component_el_form_item, null, {
78700
78768
  default: withCtx(() => [
78701
78769
  createVNode(_component_el_input, {
78702
- size: "small",
78703
- modelValue: $data.form.ownerUnit,
78704
- "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.form.ownerUnit = $event)
78705
- }, null, 8, ["modelValue"])
78770
+ maxlength: "50",
78771
+ modelValue: $data.form.assetOwnerUnit,
78772
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = ($event) => $data.form.assetOwnerUnit = $event),
78773
+ placeholder: "\u8BF7\u8F93\u5165"
78774
+ }, {
78775
+ prefix: withCtx(() => [..._cache[10] || (_cache[10] = [
78776
+ createElementVNode("span", null, "\u4EA7\u6743\u6240\u5C5E\u5355\u4F4D\uFF1A", -1)
78777
+ ])]),
78778
+ _: 1
78779
+ }, 8, ["modelValue"])
78706
78780
  ]),
78707
78781
  _: 1
78708
78782
  })
78709
78783
  ]),
78710
78784
  _: 1
78711
78785
  }),
78712
- createVNode(_component_el_col, { span: 6 }, {
78786
+ createVNode(_component_el_col, { span: 2 }, {
78713
78787
  default: withCtx(() => [
78714
78788
  createVNode(_component_el_form_item, null, {
78715
78789
  default: withCtx(() => [
78716
78790
  createVNode(_component_el_button, {
78717
78791
  type: "primary",
78718
- size: "small",
78719
78792
  onClick: $options.handleSearch
78720
78793
  }, {
78721
- default: withCtx(() => [..._cache[5] || (_cache[5] = [
78794
+ default: withCtx(() => [..._cache[11] || (_cache[11] = [
78722
78795
  createTextVNode("\u641C\u7D22", -1)
78723
78796
  ])]),
78724
78797
  _: 1
@@ -78738,11 +78811,14 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78738
78811
  ]),
78739
78812
  createVNode(_component_el_table, {
78740
78813
  data: $data.tableData,
78741
- "max-height": "500px",
78814
+ height: "500px",
78742
78815
  style: { "width": "100%" },
78743
78816
  "check-strictly": "",
78744
- "row-key": "id",
78745
- ref: "tableRef"
78817
+ "row-key": "assetId",
78818
+ ref: "tableRef",
78819
+ "header-row-class-name": "headerRowClassName",
78820
+ "header-cell-class-name": "headerCellClassName",
78821
+ stripe: ""
78746
78822
  }, {
78747
78823
  default: withCtx(() => [
78748
78824
  createVNode(_component_el_table_column, {
@@ -78751,7 +78827,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78751
78827
  }),
78752
78828
  createVNode(_component_el_table_column, {
78753
78829
  prop: "assetCode",
78754
- label: "\u8D44\u4EA7\u7F16\u7801"
78830
+ label: "\u8D44\u4EA7\u7F16\u7801",
78831
+ width: "200"
78755
78832
  }),
78756
78833
  createVNode(_component_el_table_column, {
78757
78834
  prop: "labelName",
@@ -78759,6 +78836,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78759
78836
  }),
78760
78837
  createVNode(_component_el_table_column, {
78761
78838
  prop: "assetTypeName",
78839
+ "header-align": "center",
78840
+ align: "center",
78762
78841
  label: "\u8D44\u4EA7\u7C7B\u578B"
78763
78842
  }),
78764
78843
  createVNode(_component_el_table_column, {
@@ -78767,7 +78846,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78767
78846
  }),
78768
78847
  createVNode(_component_el_table_column, {
78769
78848
  prop: "originalValue",
78770
- label: "\u539F\u503C"
78849
+ label: "\u539F\u503C(\u4E07\u5143)",
78850
+ width: "120"
78771
78851
  }, {
78772
78852
  default: withCtx(({ row }) => [
78773
78853
  createTextVNode(toDisplayString(row.originalValue | _ctx.formatMoney), 1)
@@ -78776,7 +78856,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78776
78856
  }),
78777
78857
  createVNode(_component_el_table_column, {
78778
78858
  prop: "netValue",
78779
- label: "\u51C0\u503C"
78859
+ label: "\u51C0\u503C(\u4E07\u5143)",
78860
+ width: "120"
78780
78861
  }, {
78781
78862
  default: withCtx(({ row }) => [
78782
78863
  createTextVNode(toDisplayString(row.netValue | _ctx.formatMoney), 1)
@@ -78792,34 +78873,70 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78792
78873
  "current-page": $data.currentPage,
78793
78874
  layout: "total, sizes, prev, pager, next",
78794
78875
  size: "small",
78795
- total: $data.tableData.length
78876
+ total: $data.total
78796
78877
  }, null, 8, ["onSizeChange", "onCurrentChange", "current-page", "total"])
78797
78878
  ]),
78798
78879
  createElementVNode("div", {
78799
78880
  class: "center-wrap",
78800
- onClick: _cache[3] || (_cache[3] = (...args) => $options.handleAdd && $options.handleAdd(...args))
78801
- }, "\u6DFB\u52A0"),
78881
+ onClick: _cache[4] || (_cache[4] = (...args) => $options.handleAdd && $options.handleAdd(...args))
78882
+ }, [
78883
+ createVNode(_component_el_icon, null, {
78884
+ default: withCtx(() => [
78885
+ createVNode(_component_DArrowRight)
78886
+ ]),
78887
+ _: 1
78888
+ })
78889
+ ]),
78802
78890
  createElementVNode("div", _hoisted_5, [
78803
- createElementVNode("ul", _hoisted_6, [
78804
- (openBlock(true), createElementBlock(Fragment, null, renderList($data.selectedRows, (item) => {
78805
- return openBlock(), createElementBlock("li", {
78806
- class: "asset-item",
78807
- key: item.id
78808
- }, [
78809
- createElementVNode("div", _hoisted_7, toDisplayString(item.labelName) + "(" + toDisplayString(item.assetCode) + ") ", 1),
78810
- createElementVNode("div", _hoisted_8, [
78811
- createVNode(_component_el_icon, {
78812
- onClick: ($event) => $options.handleRemove(item.id)
78813
- }, {
78814
- default: withCtx(() => [
78815
- createVNode(_component_Close)
78891
+ createElementVNode("div", _hoisted_6, [
78892
+ createVNode(_component_el_input, {
78893
+ modelValue: $data.searchValue,
78894
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = ($event) => $data.searchValue = $event),
78895
+ placeholder: "\u8BF7\u8F93\u5165\u8D44\u4EA7\u540D\u79F0\u6216\u8D44\u4EA7\u7F16\u7801\u641C\u7D22",
78896
+ clearable: ""
78897
+ }, {
78898
+ prefix: withCtx(() => [
78899
+ createVNode(_component_el_icon, null, {
78900
+ default: withCtx(() => [
78901
+ createVNode(_component_Search)
78902
+ ]),
78903
+ _: 1
78904
+ })
78905
+ ]),
78906
+ _: 1
78907
+ }, 8, ["modelValue"])
78908
+ ]),
78909
+ createVNode(_component_el_scrollbar, {
78910
+ height: "512px",
78911
+ class: "asset-wrap-scroll"
78912
+ }, {
78913
+ default: withCtx(() => [
78914
+ createElementVNode("ul", _hoisted_7, [
78915
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.filterList, (item) => {
78916
+ return openBlock(), createElementBlock("li", {
78917
+ class: "asset-item",
78918
+ key: item.assetId
78919
+ }, [
78920
+ createElementVNode("div", _hoisted_8, [
78921
+ createElementVNode("div", null, toDisplayString(item.labelName), 1),
78922
+ createElementVNode("div", null, toDisplayString(item.assetCode), 1)
78816
78923
  ]),
78817
- _: 1
78818
- }, 8, ["onClick"])
78819
- ])
78820
- ]);
78821
- }), 128))
78822
- ])
78924
+ createElementVNode("div", _hoisted_9, [
78925
+ createVNode(_component_el_icon, {
78926
+ onClick: ($event) => $options.handleRemove(item.assetId)
78927
+ }, {
78928
+ default: withCtx(() => [
78929
+ createVNode(_component_Close)
78930
+ ]),
78931
+ _: 1
78932
+ }, 8, ["onClick"])
78933
+ ])
78934
+ ]);
78935
+ }), 128))
78936
+ ])
78937
+ ]),
78938
+ _: 1
78939
+ })
78823
78940
  ])
78824
78941
  ])
78825
78942
  ])
@@ -78827,9 +78944,8 @@ function _sfc_render$4(_ctx, _cache, $props, $setup, $data, $options) {
78827
78944
  _: 1
78828
78945
  }, 8, ["modelValue", "onClose"]);
78829
78946
  }
78830
- var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-18da89e8"]]);
78947
+ var AssetDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$4, [["render", _sfc_render$4], ["__scopeId", "data-v-b38703a2"]]);
78831
78948
  var index_vue_vue_type_style_index_0_lang$1 = "";
78832
- var index_vue_vue_type_style_index_1_scoped_true_lang = "";
78833
78949
  const _sfc_main$3 = {
78834
78950
  name: "asset-select-widget",
78835
78951
  componentName: "FieldWidget",
@@ -78913,6 +79029,57 @@ const _sfc_main$3 = {
78913
79029
  this.unregisterFromRefList();
78914
79030
  },
78915
79031
  methods: {
79032
+ updateFieldLabel(fieldName, newLabel) {
79033
+ var _a2;
79034
+ if (!fieldName)
79035
+ return false;
79036
+ const labelText = newLabel == null ? "" : String(newLabel);
79037
+ const widgetRef = this.getWidgetRef(fieldName, false);
79038
+ if ((_a2 = widgetRef == null ? void 0 : widgetRef.field) == null ? void 0 : _a2.options) {
79039
+ widgetRef.field.options.label = labelText;
79040
+ const formRef2 = this.getFormRef();
79041
+ if (formRef2 && typeof formRef2.$forceUpdate === "function") {
79042
+ formRef2.$forceUpdate();
79043
+ }
79044
+ return true;
79045
+ }
79046
+ const formRef = this.getFormRef();
79047
+ if (!formRef || typeof formRef.getFormJson !== "function" || typeof formRef.setFormJson !== "function") {
79048
+ return false;
79049
+ }
79050
+ const formJson = formRef.getFormJson();
79051
+ let updated = false;
79052
+ const walk = (list) => {
79053
+ if (!Array.isArray(list))
79054
+ return;
79055
+ list.forEach((w) => {
79056
+ var _a3;
79057
+ if (updated)
79058
+ return;
79059
+ if (((_a3 = w == null ? void 0 : w.options) == null ? void 0 : _a3.name) === fieldName) {
79060
+ w.options.label = labelText;
79061
+ updated = true;
79062
+ return;
79063
+ }
79064
+ if (Array.isArray(w == null ? void 0 : w.widgetList))
79065
+ walk(w.widgetList);
79066
+ if (Array.isArray(w == null ? void 0 : w.cols)) {
79067
+ w.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList));
79068
+ }
79069
+ if (Array.isArray(w == null ? void 0 : w.rows)) {
79070
+ w.rows.forEach((r) => Array.isArray(r == null ? void 0 : r.cols) && r.cols.forEach((c) => walk(c == null ? void 0 : c.widgetList)));
79071
+ }
79072
+ if (Array.isArray(w == null ? void 0 : w.tabs)) {
79073
+ w.tabs.forEach((t) => walk(t == null ? void 0 : t.widgetList));
79074
+ }
79075
+ });
79076
+ };
79077
+ walk(formJson == null ? void 0 : formJson.widgetList);
79078
+ if (!updated)
79079
+ return false;
79080
+ formRef.setFormJson(formJson);
79081
+ return true;
79082
+ },
78916
79083
  handleClick() {
78917
79084
  this.dialogVisible = true;
78918
79085
  },
@@ -78973,7 +79140,7 @@ const _sfc_main$3 = {
78973
79140
  }
78974
79141
  }
78975
79142
  };
78976
- const _hoisted_1$3 = { class: "person-tree-widget__trigger" };
79143
+ const _hoisted_1$3 = { class: "asset-select-widget__trigger" };
78977
79144
  function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
78978
79145
  const _component_el_button = resolveComponent("el-button");
78979
79146
  const _component_asset_dialog = resolveComponent("asset-dialog");
@@ -78992,12 +79159,14 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
78992
79159
  }, {
78993
79160
  default: withCtx(() => [
78994
79161
  createElementVNode("div", {
78995
- class: "person-tree-widget",
79162
+ class: "asset-select-widget",
78996
79163
  style: normalizeStyle($options.widgetStyle)
78997
79164
  }, [
78998
79165
  createElementVNode("div", _hoisted_1$3, [
78999
79166
  createVNode(_component_el_button, {
79000
79167
  type: "primary",
79168
+ class: "asset-select-widget__button",
79169
+ plain: "",
79001
79170
  disabled: $props.field.options.disabled,
79002
79171
  placeholder: "\u8BF7\u9009\u62E9\u8D44\u4EA7",
79003
79172
  onClick: $options.handleClick,
@@ -79022,7 +79191,7 @@ function _sfc_render$3(_ctx, _cache, $props, $setup, $data, $options) {
79022
79191
  _: 1
79023
79192
  }, 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"]);
79024
79193
  }
79025
- var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3], ["__scopeId", "data-v-1cb25748"]]);
79194
+ var AssetSelectWidget = /* @__PURE__ */ _export_sfc$1(_sfc_main$3, [["render", _sfc_render$3]]);
79026
79195
  var detailDialog_vue_vue_type_style_index_0_scoped_true_lang = "";
79027
79196
  const _sfc_main$2 = {
79028
79197
  name: "detail-dialog",
@@ -79142,8 +79311,6 @@ const _sfc_main$2 = {
79142
79311
  if (typeof ref2.disableForm === "function") {
79143
79312
  ref2.disableForm();
79144
79313
  }
79145
- } else if (typeof ref2.enableForm === "function") {
79146
- ref2.enableForm();
79147
79314
  }
79148
79315
  },
79149
79316
  applyFormJsonToRender(parsed) {
@@ -79310,7 +79477,7 @@ function _sfc_render$2(_ctx, _cache, $props, $setup, $data, $options) {
79310
79477
  _: 1
79311
79478
  }, 8, ["modelValue", "onClose"]);
79312
79479
  }
79313
- var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-0f9f38bd"]]);
79480
+ var DetailDialog = /* @__PURE__ */ _export_sfc$1(_sfc_main$2, [["render", _sfc_render$2], ["__scopeId", "data-v-8f804046"]]);
79314
79481
  var index_vue_vue_type_style_index_0_lang = "";
79315
79482
  const _sfc_main$1 = {
79316
79483
  name: "asset-table-widget",
@@ -79413,6 +79580,17 @@ const _sfc_main$1 = {
79413
79580
  const rowData = args[0];
79414
79581
  const fn = new Function("rowData", handler);
79415
79582
  fn.call(this, rowData);
79583
+ } else if (eventName === "onChange") {
79584
+ const value2 = args[0];
79585
+ const oldValue = args[1];
79586
+ if (this.subFormItemFlag) {
79587
+ const subFormData = this.formModel[this.subFormName] || [];
79588
+ const fn = new Function("value", "oldValue", "subFormData", "rowId", "sfrIdx", handler);
79589
+ fn.call(this, value2, oldValue, subFormData, this.subFormRowId, this.subFormRowIndex);
79590
+ } else {
79591
+ const fn = new Function("value", "oldValue", handler);
79592
+ fn.call(this, value2, oldValue);
79593
+ }
79416
79594
  } else if (args.length > 0) {
79417
79595
  const paramNames = args.map((_, index2) => `arg${index2}`).join(", ");
79418
79596
  const fn = new Function(paramNames, handler);
@@ -79452,15 +79630,16 @@ const _sfc_main$1 = {
79452
79630
  const index2 = this.fieldModel.findIndex((item) => item.id === this.detailDialogData.id);
79453
79631
  if (index2 === -1)
79454
79632
  return;
79633
+ const oldValue = lodash.exports.cloneDeep(this.fieldModel);
79455
79634
  this.fieldModel[index2] = __spreadProps(__spreadValues(__spreadValues({}, this.fieldModel[index2]), formData), { isUpdate: true });
79456
- console.log(this.fieldModel, "this.fieldModel");
79635
+ this.triggerEvent("onChange", this.fieldModel, oldValue);
79457
79636
  }
79458
79637
  }
79459
79638
  };
79460
79639
  const _hoisted_1$1 = { key: 1 };
79461
79640
  function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79462
79641
  const _component_el_table_column = resolveComponent("el-table-column");
79463
- const _component_el_button = resolveComponent("el-button");
79642
+ const _component_el_text = resolveComponent("el-text");
79464
79643
  const _component_el_table = resolveComponent("el-table");
79465
79644
  const _component_detail_dialog = resolveComponent("detail-dialog");
79466
79645
  const _component_form_item_wrapper = resolveComponent("form-item-wrapper");
@@ -79484,6 +79663,9 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79484
79663
  createVNode(_component_el_table, {
79485
79664
  data: $data.fieldModel,
79486
79665
  "max-height": "500px",
79666
+ "header-row-class-name": "headerRowClassName",
79667
+ "header-cell-class-name": "headerCellClassName",
79668
+ stripe: "",
79487
79669
  style: { "width": "100%" },
79488
79670
  "row-key": "id",
79489
79671
  ref: "tableRef"
@@ -79495,12 +79677,14 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79495
79677
  }),
79496
79678
  createVNode(_component_el_table_column, {
79497
79679
  prop: "labelName",
79498
- label: "\u8D44\u4EA7\u540D\u79F0"
79680
+ label: "\u8D44\u4EA7\u540D\u79F0",
79681
+ align: "left"
79499
79682
  }, {
79500
79683
  default: withCtx(({ row }) => [
79501
- $props.field.options.clickRow ? (openBlock(), createBlock(_component_el_button, {
79684
+ $props.field.options.clickRow ? (openBlock(), createBlock(_component_el_text, {
79502
79685
  key: 0,
79503
- type: "text",
79686
+ class: "click-text",
79687
+ type: "primary",
79504
79688
  size: "small",
79505
79689
  onClick: ($event) => $options.handleRow(row)
79506
79690
  }, {
@@ -79514,6 +79698,7 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79514
79698
  }),
79515
79699
  createVNode(_component_el_table_column, {
79516
79700
  prop: "assetTypeName",
79701
+ align: "center",
79517
79702
  label: "\u8D44\u4EA7\u7C7B\u578B"
79518
79703
  }),
79519
79704
  createVNode(_component_el_table_column, {
@@ -79540,6 +79725,8 @@ function _sfc_render$1(_ctx, _cache, $props, $setup, $data, $options) {
79540
79725
  }),
79541
79726
  createVNode(_component_el_table_column, {
79542
79727
  prop: "isUpdate",
79728
+ align: "center",
79729
+ "header-align": "center",
79543
79730
  label: "\u662F\u5426\u5DF2\u5B8C\u6210\u586B\u5199"
79544
79731
  }, {
79545
79732
  default: withCtx(({ row }) => [
@@ -79763,6 +79950,8 @@ const loadExtension = function(app) {
79763
79950
  optionItems: shadowOptions
79764
79951
  }));
79765
79952
  registerCWGenerator("card", cardTemplateGenerator);
79953
+ registerCPEditor(app, "mainTip", "mainTip-editor", createInputTextEditor("mainTip", "designer.setting.mainTip"));
79954
+ registerCPEditor(app, "subTip", "subTip-editor", createInputTextEditor("subTip", "designer.setting.subTip"));
79766
79955
  addCustomWidgetSchema(alertSchema);
79767
79956
  app.component(AlertWidget.name, AlertWidget);
79768
79957
  registerCPEditor(app, "alert-title", "alert-title-editor", createInputTextEditor("title", "extension.setting.alertTitle"));