ocpview-plus 1.1.9 → 1.2.1

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.
@@ -1,4 +1,4 @@
1
- import ViewUI, { Modal as Modal$1, Page } from "view-ui-plus";
1
+ import ViewUI, { Modal as Modal$1, Tree, Page } from "view-ui-plus";
2
2
  import axios from "axios";
3
3
  import $$1 from "jquery";
4
4
  import Cookies from "js-cookie";
@@ -453,7 +453,7 @@ common.initEview = function(ViewUI2) {
453
453
  common.initAnchor(ViewUI2.Anchor);
454
454
  };
455
455
  const name = "ocpview-plus";
456
- const version$2 = "1.1.8";
456
+ const version$2 = "1.2.0";
457
457
  const title = "ocpviewPlus";
458
458
  const description = "A high quality Service UI components Library with Vue.js";
459
459
  const homepage = "";
@@ -4214,7 +4214,7 @@ var _export_sfc$1 = (sfc, props) => {
4214
4214
  }
4215
4215
  return target;
4216
4216
  };
4217
- const _sfc_main$1S = {
4217
+ const _sfc_main$1T = {
4218
4218
  name: "ebutton",
4219
4219
  data() {
4220
4220
  return {
@@ -4357,7 +4357,7 @@ const _sfc_main$1S = {
4357
4357
  }
4358
4358
  }
4359
4359
  };
4360
- function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
4360
+ function _sfc_render$1B(_ctx, _cache, $props, $setup, $data, $options) {
4361
4361
  const _component_CommonIcon = resolveComponent("CommonIcon");
4362
4362
  const _component_Span = resolveComponent("Span");
4363
4363
  const _component_Col = resolveComponent("Col");
@@ -4422,8 +4422,8 @@ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
4422
4422
  ])
4423
4423
  ], 36)) : createCommentVNode("", true);
4424
4424
  }
4425
- var Ebutton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1S, [["render", _sfc_render$1A]]);
4426
- const _sfc_main$1R = {
4425
+ var Ebutton = /* @__PURE__ */ _export_sfc$1(_sfc_main$1T, [["render", _sfc_render$1B]]);
4426
+ const _sfc_main$1S = {
4427
4427
  name: "Toolbar",
4428
4428
  data() {
4429
4429
  return {
@@ -4798,7 +4798,7 @@ const _sfc_main$1R = {
4798
4798
  const _hoisted_1$16 = { key: 0 };
4799
4799
  const _hoisted_2$M = { key: 0 };
4800
4800
  const _hoisted_3$s = { href: "javascript:void(0)" };
4801
- function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
4801
+ function _sfc_render$1A(_ctx, _cache, $props, $setup, $data, $options) {
4802
4802
  const _component_Ebutton = resolveComponent("Ebutton");
4803
4803
  const _component_Button = resolveComponent("Button");
4804
4804
  const _component_Col = resolveComponent("Col");
@@ -5041,7 +5041,7 @@ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
5041
5041
  [vShow, $data.btnShow]
5042
5042
  ]);
5043
5043
  }
5044
- var Toolbar$2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1R, [["render", _sfc_render$1z]]);
5044
+ var Toolbar$2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1S, [["render", _sfc_render$1A]]);
5045
5045
  var size = {
5046
5046
  name: "size",
5047
5047
  data() {
@@ -5119,7 +5119,7 @@ var size = {
5119
5119
  }
5120
5120
  }
5121
5121
  };
5122
- const _sfc_main$1Q = {
5122
+ const _sfc_main$1R = {
5123
5123
  mixins: [size],
5124
5124
  data() {
5125
5125
  return {
@@ -5293,9 +5293,9 @@ const _sfc_main$1Q = {
5293
5293
  }
5294
5294
  }
5295
5295
  };
5296
- const _sfc_main$1P = {
5296
+ const _sfc_main$1Q = {
5297
5297
  name: "combobox",
5298
- extends: _sfc_main$1Q,
5298
+ extends: _sfc_main$1R,
5299
5299
  data() {
5300
5300
  return {
5301
5301
  myConfig: {
@@ -5483,7 +5483,7 @@ const _sfc_main$1P = {
5483
5483
  }
5484
5484
  }
5485
5485
  };
5486
- function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
5486
+ function _sfc_render$1z(_ctx, _cache, $props, $setup, $data, $options) {
5487
5487
  const _component_Option = resolveComponent("Option");
5488
5488
  const _component_OptionGroup = resolveComponent("OptionGroup");
5489
5489
  const _component_Select = resolveComponent("Select");
@@ -5568,7 +5568,7 @@ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
5568
5568
  [vShow, $data.myConfig.visible]
5569
5569
  ]);
5570
5570
  }
5571
- var ComboBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1P, [["render", _sfc_render$1y]]);
5571
+ var ComboBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1Q, [["render", _sfc_render$1z]]);
5572
5572
  var comPro = {
5573
5573
  name: "formpcompro",
5574
5574
  data() {
@@ -5586,7 +5586,7 @@ var comPro = {
5586
5586
  },
5587
5587
  methods: {}
5588
5588
  };
5589
- const _sfc_main$1O = {
5589
+ const _sfc_main$1P = {
5590
5590
  name: "baseform",
5591
5591
  mixins: [comPro],
5592
5592
  data() {
@@ -6251,8 +6251,8 @@ const _sfc_main$1O = {
6251
6251
  }
6252
6252
  }
6253
6253
  };
6254
- const _sfc_main$1N = {
6255
- extends: _sfc_main$1O,
6254
+ const _sfc_main$1O = {
6255
+ extends: _sfc_main$1P,
6256
6256
  data() {
6257
6257
  return {
6258
6258
  editIndex: -1,
@@ -6376,7 +6376,7 @@ const _hoisted_1$15 = {
6376
6376
  };
6377
6377
  const _hoisted_2$L = { key: 1 };
6378
6378
  const _hoisted_3$r = ["onClick"];
6379
- function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
6379
+ function _sfc_render$1y(_ctx, _cache, $props, $setup, $data, $options) {
6380
6380
  const _component_ControlBox = resolveComponent("ControlBox");
6381
6381
  const _component_ShowText = resolveComponent("ShowText");
6382
6382
  const _component_FormItem = resolveComponent("FormItem");
@@ -6453,8 +6453,8 @@ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
6453
6453
  }, 8, ["model", "rules", "label-width", "inline", "id", "onKeydown"])
6454
6454
  ], 4);
6455
6455
  }
6456
- var ExpandRow = /* @__PURE__ */ _export_sfc$1(_sfc_main$1N, [["render", _sfc_render$1x]]);
6457
- const _sfc_main$1M = {
6456
+ var ExpandRow = /* @__PURE__ */ _export_sfc$1(_sfc_main$1O, [["render", _sfc_render$1y]]);
6457
+ const _sfc_main$1N = {
6458
6458
  mixins: [size],
6459
6459
  data() {
6460
6460
  return {
@@ -7466,9 +7466,9 @@ const _sfc_main$1M = {
7466
7466
  mounted() {
7467
7467
  }
7468
7468
  };
7469
- const _sfc_main$1L = {
7469
+ const _sfc_main$1M = {
7470
7470
  name: "viewgridbase",
7471
- extends: _sfc_main$1M,
7471
+ extends: _sfc_main$1N,
7472
7472
  data() {
7473
7473
  return {
7474
7474
  myConfig: {
@@ -8698,9 +8698,9 @@ const _sfc_main$1L = {
8698
8698
  }
8699
8699
  }
8700
8700
  };
8701
- const _sfc_main$1K = {
8701
+ const _sfc_main$1L = {
8702
8702
  name: "viewgrid",
8703
- extends: _sfc_main$1L,
8703
+ extends: _sfc_main$1M,
8704
8704
  mounted() {
8705
8705
  }
8706
8706
  };
@@ -8727,7 +8727,7 @@ const _hoisted_10$2 = {
8727
8727
  ref: "page",
8728
8728
  style: { "background": "#eee", "padding-top": "5px" }
8729
8729
  };
8730
- function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
8730
+ function _sfc_render$1x(_ctx, _cache, $props, $setup, $data, $options) {
8731
8731
  const _component_ConditionBox = resolveComponent("ConditionBox");
8732
8732
  const _component_Col = resolveComponent("Col");
8733
8733
  const _component_Toolbar = resolveComponent("Toolbar");
@@ -9141,11 +9141,11 @@ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
9141
9141
  ], 64))
9142
9142
  ]);
9143
9143
  }
9144
- var ViewGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$1K, [["render", _sfc_render$1w]]);
9144
+ var ViewGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$1L, [["render", _sfc_render$1x]]);
9145
9145
  var editgridbase_vue_vue_type_style_index_0_lang = "";
9146
- const _sfc_main$1J = {
9146
+ const _sfc_main$1K = {
9147
9147
  name: "editgridbase",
9148
- extends: _sfc_main$1M,
9148
+ extends: _sfc_main$1N,
9149
9149
  data() {
9150
9150
  return {
9151
9151
  myConfig: {
@@ -10172,9 +10172,9 @@ const _sfc_main$1J = {
10172
10172
  }
10173
10173
  }
10174
10174
  };
10175
- const _sfc_main$1I = {
10175
+ const _sfc_main$1J = {
10176
10176
  name: "editgrid",
10177
- extends: _sfc_main$1J,
10177
+ extends: _sfc_main$1K,
10178
10178
  mounted() {
10179
10179
  if (this.$refs.card && this.$refs.card.$el) {
10180
10180
  this.$refs.card.$el.onmouseleave = () => {
@@ -10190,7 +10190,7 @@ const _hoisted_4$n = {
10190
10190
  ref: "page",
10191
10191
  style: { "background": "#eee", "padding-top": "5px", "width": "100%" }
10192
10192
  };
10193
- function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
10193
+ function _sfc_render$1w(_ctx, _cache, $props, $setup, $data, $options) {
10194
10194
  const _component_Button = resolveComponent("Button");
10195
10195
  const _component_Col = resolveComponent("Col");
10196
10196
  const _component_Row = resolveComponent("Row");
@@ -10357,10 +10357,10 @@ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
10357
10357
  }, 8, ["modelValue", "onOnOk"])) : createCommentVNode("", true)
10358
10358
  ], 8, _hoisted_1$13);
10359
10359
  }
10360
- var EditGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$1I, [["render", _sfc_render$1v]]);
10361
- const _sfc_main$1H = {
10360
+ var EditGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$1J, [["render", _sfc_render$1w]]);
10361
+ const _sfc_main$1I = {
10362
10362
  name: "editgridcard",
10363
- extends: _sfc_main$1J,
10363
+ extends: _sfc_main$1K,
10364
10364
  data() {
10365
10365
  return {
10366
10366
  myConfig: {
@@ -10520,7 +10520,7 @@ const _hoisted_5$j = {
10520
10520
  ref: "page",
10521
10521
  style: { "background": "#eee", "padding-top": "5px", "width": "100%" }
10522
10522
  };
10523
- function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
10523
+ function _sfc_render$1v(_ctx, _cache, $props, $setup, $data, $options) {
10524
10524
  const _component_Icon = resolveComponent("Icon");
10525
10525
  const _component_ControlBox = resolveComponent("ControlBox");
10526
10526
  const _component_ShowText = resolveComponent("ShowText");
@@ -10699,10 +10699,10 @@ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
10699
10699
  } : void 0
10700
10700
  ]), 1032, ["bordered", "dis-hover", "headClass", "extraClass"]);
10701
10701
  }
10702
- var EditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$1H, [["render", _sfc_render$1u]]);
10703
- const _sfc_main$1G = {
10702
+ var EditGridCard = /* @__PURE__ */ _export_sfc$1(_sfc_main$1I, [["render", _sfc_render$1v]]);
10703
+ const _sfc_main$1H = {
10704
10704
  name: "textbox",
10705
- extends: _sfc_main$1Q,
10705
+ extends: _sfc_main$1R,
10706
10706
  components: {},
10707
10707
  data() {
10708
10708
  return {
@@ -10768,7 +10768,7 @@ const _sfc_main$1G = {
10768
10768
  }
10769
10769
  }
10770
10770
  };
10771
- function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
10771
+ function _sfc_render$1u(_ctx, _cache, $props, $setup, $data, $options) {
10772
10772
  const _component_Button = resolveComponent("Button");
10773
10773
  const _component_Input = resolveComponent("Input");
10774
10774
  return withDirectives((openBlock(), createElementBlock("div", null, [
@@ -10813,8 +10813,8 @@ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
10813
10813
  [vShow, $data.myConfig.visible]
10814
10814
  ]);
10815
10815
  }
10816
- var TextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1t]]);
10817
- const _sfc_main$1F = {
10816
+ var TextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1H, [["render", _sfc_render$1u]]);
10817
+ const _sfc_main$1G = {
10818
10818
  name: "uploadbox",
10819
10819
  data() {
10820
10820
  return {
@@ -10954,7 +10954,7 @@ const _sfc_main$1F = {
10954
10954
  }
10955
10955
  }
10956
10956
  };
10957
- function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
10957
+ function _sfc_render$1t(_ctx, _cache, $props, $setup, $data, $options) {
10958
10958
  const _component_Upload = resolveComponent("Upload");
10959
10959
  return openBlock(), createBlock(_component_Upload, {
10960
10960
  ref: "upload",
@@ -10979,7 +10979,7 @@ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
10979
10979
  _: 3
10980
10980
  }, 8, ["default-file-list", "on-success", "format", "disabled", "max-size", "data", "on-format-error", "on-exceeded-size", "before-upload", "multiple", "class", "action"]);
10981
10981
  }
10982
- var UploadBox$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1F, [["render", _sfc_render$1s]]);
10982
+ var UploadBox$1 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1G, [["render", _sfc_render$1t]]);
10983
10983
  var commonjsGlobal = typeof globalThis !== "undefined" ? globalThis : typeof window !== "undefined" ? window : typeof global !== "undefined" ? global : typeof self !== "undefined" ? self : {};
10984
10984
  function getDefaultExportFromCjs(x10) {
10985
10985
  return x10 && x10.__esModule && Object.prototype.hasOwnProperty.call(x10, "default") ? x10["default"] : x10;
@@ -24981,7 +24981,7 @@ const QuillEditor = defineComponent({
24981
24981
  ];
24982
24982
  }
24983
24983
  });
24984
- const _sfc_main$1E = {
24984
+ const _sfc_main$1F = {
24985
24985
  __name: "editor",
24986
24986
  props: ["value", "myConfig", "toolbarOptions"],
24987
24987
  emits: ["updateValue", "imgClick", "initQuill"],
@@ -25126,13 +25126,13 @@ const _sfc_main$1E = {
25126
25126
  }
25127
25127
  };
25128
25128
  var richtextbox_vue_vue_type_style_index_0_lang = "";
25129
- const _sfc_main$1D = {
25129
+ const _sfc_main$1E = {
25130
25130
  name: "richtextbox",
25131
25131
  components: {
25132
25132
  UploadBox: UploadBox$1,
25133
- Editor: _sfc_main$1E
25133
+ Editor: _sfc_main$1F
25134
25134
  },
25135
- extends: _sfc_main$1Q,
25135
+ extends: _sfc_main$1R,
25136
25136
  data() {
25137
25137
  return {
25138
25138
  myConfig: {
@@ -25266,7 +25266,7 @@ const _sfc_main$1D = {
25266
25266
  }
25267
25267
  }
25268
25268
  };
25269
- function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
25269
+ function _sfc_render$1s(_ctx, _cache, $props, $setup, $data, $options) {
25270
25270
  const _component_UploadBox = resolveComponent("UploadBox");
25271
25271
  const _component_Editor = resolveComponent("Editor");
25272
25272
  return withDirectives((openBlock(), createElementBlock("div", {
@@ -25297,7 +25297,7 @@ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
25297
25297
  [vShow, $data.myConfig.visible]
25298
25298
  ]);
25299
25299
  }
25300
- var RichTextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1D, [["render", _sfc_render$1r]]);
25300
+ var RichTextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1E, [["render", _sfc_render$1s]]);
25301
25301
  var NumberRangeExpand = {
25302
25302
  name: "NumberRangeAppend",
25303
25303
  props: {
@@ -25307,9 +25307,9 @@ var NumberRangeExpand = {
25307
25307
  return this.render(h$1);
25308
25308
  }
25309
25309
  };
25310
- const _sfc_main$1C = {
25310
+ const _sfc_main$1D = {
25311
25311
  name: "numberbox",
25312
- extends: _sfc_main$1Q,
25312
+ extends: _sfc_main$1R,
25313
25313
  data() {
25314
25314
  return {
25315
25315
  myConfig: {
@@ -25575,7 +25575,7 @@ const _sfc_main$1C = {
25575
25575
  }
25576
25576
  };
25577
25577
  const _hoisted_1$11 = { key: 0 };
25578
- function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
25578
+ function _sfc_render$1r(_ctx, _cache, $props, $setup, $data, $options) {
25579
25579
  const _component_CommonIcon = resolveComponent("CommonIcon");
25580
25580
  const _component_NumberRangeExpand = resolveComponent("NumberRangeExpand");
25581
25581
  const _component_Input = resolveComponent("Input");
@@ -25625,10 +25625,10 @@ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
25625
25625
  [vShow, $data.myConfig.visible]
25626
25626
  ]);
25627
25627
  }
25628
- var NumberBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1C, [["render", _sfc_render$1q]]);
25629
- const _sfc_main$1B = {
25628
+ var NumberBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1D, [["render", _sfc_render$1r]]);
25629
+ const _sfc_main$1C = {
25630
25630
  name: "NumberRangeBox",
25631
- extends: _sfc_main$1Q,
25631
+ extends: _sfc_main$1R,
25632
25632
  data() {
25633
25633
  return {
25634
25634
  myConfig: {
@@ -25977,7 +25977,7 @@ const _sfc_main$1B = {
25977
25977
  }
25978
25978
  }
25979
25979
  };
25980
- function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
25980
+ function _sfc_render$1q(_ctx, _cache, $props, $setup, $data, $options) {
25981
25981
  const _component_CommonIcon = resolveComponent("CommonIcon");
25982
25982
  const _component_Tooltip = resolveComponent("Tooltip");
25983
25983
  const _component_NumberRangeExpand = resolveComponent("NumberRangeExpand");
@@ -26114,8 +26114,8 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
26114
26114
  [vShow, $data.myConfig.visible]
26115
26115
  ]);
26116
26116
  }
26117
- var NumberRangeBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1B, [["render", _sfc_render$1p]]);
26118
- const _sfc_main$1A = {
26117
+ var NumberRangeBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1C, [["render", _sfc_render$1q]]);
26118
+ const _sfc_main$1B = {
26119
26119
  name: "NumberBoxV1",
26120
26120
  extends: NumberBox,
26121
26121
  methods: {
@@ -26140,9 +26140,9 @@ const _sfc_main$1A = {
26140
26140
  }
26141
26141
  }
26142
26142
  };
26143
- const _sfc_main$1z = {
26143
+ const _sfc_main$1A = {
26144
26144
  name: "datebox",
26145
- extends: _sfc_main$1Q,
26145
+ extends: _sfc_main$1R,
26146
26146
  data() {
26147
26147
  return {
26148
26148
  myConfig: {
@@ -26259,7 +26259,7 @@ const _sfc_main$1z = {
26259
26259
  }
26260
26260
  }
26261
26261
  };
26262
- function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
26262
+ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
26263
26263
  const _component_DatePicker = resolveComponent("DatePicker");
26264
26264
  return withDirectives((openBlock(), createElementBlock("div", null, [
26265
26265
  createVNode(_component_DatePicker, {
@@ -26283,8 +26283,8 @@ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
26283
26283
  [vShow, $data.myConfig.visible]
26284
26284
  ]);
26285
26285
  }
26286
- var datebox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1z, [["render", _sfc_render$1o]]);
26287
- const _sfc_main$1y = {
26286
+ var datebox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1A, [["render", _sfc_render$1p]]);
26287
+ const _sfc_main$1z = {
26288
26288
  name: "DateBoxV1",
26289
26289
  extends: datebox,
26290
26290
  methods: {},
@@ -26300,9 +26300,9 @@ const _sfc_main$1y = {
26300
26300
  this.options.shortcuts = shortcuts;
26301
26301
  }
26302
26302
  };
26303
- const _sfc_main$1x = {
26303
+ const _sfc_main$1y = {
26304
26304
  name: "daterangebox",
26305
- extends: _sfc_main$1Q,
26305
+ extends: _sfc_main$1R,
26306
26306
  data() {
26307
26307
  return {
26308
26308
  myConfig: {
@@ -26443,7 +26443,7 @@ const _sfc_main$1x = {
26443
26443
  }
26444
26444
  }
26445
26445
  };
26446
- function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
26446
+ function _sfc_render$1o(_ctx, _cache, $props, $setup, $data, $options) {
26447
26447
  const _component_DatePicker = resolveComponent("DatePicker");
26448
26448
  return withDirectives((openBlock(), createElementBlock("div", null, [
26449
26449
  createVNode(_component_DatePicker, {
@@ -26466,10 +26466,10 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
26466
26466
  [vShow, $data.myConfig.visible]
26467
26467
  ]);
26468
26468
  }
26469
- var DateRangeBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1x, [["render", _sfc_render$1n]]);
26470
- const _sfc_main$1w = {
26469
+ var DateRangeBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1y, [["render", _sfc_render$1o]]);
26470
+ const _sfc_main$1x = {
26471
26471
  name: "timepicbox",
26472
- extends: _sfc_main$1Q,
26472
+ extends: _sfc_main$1R,
26473
26473
  data() {
26474
26474
  return {
26475
26475
  myConfig: {
@@ -26535,7 +26535,7 @@ const _sfc_main$1w = {
26535
26535
  }
26536
26536
  }
26537
26537
  };
26538
- function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
26538
+ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
26539
26539
  const _component_TimePicker = resolveComponent("TimePicker");
26540
26540
  return withDirectives((openBlock(), createElementBlock("div", null, [
26541
26541
  createVNode(_component_TimePicker, {
@@ -26558,10 +26558,10 @@ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
26558
26558
  [vShow, $data.myConfig.visible]
26559
26559
  ]);
26560
26560
  }
26561
- var TimePicBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1w, [["render", _sfc_render$1m]]);
26562
- const _sfc_main$1v = {
26561
+ var TimePicBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1x, [["render", _sfc_render$1n]]);
26562
+ const _sfc_main$1w = {
26563
26563
  name: "poptextbox",
26564
- extends: _sfc_main$1Q,
26564
+ extends: _sfc_main$1R,
26565
26565
  data() {
26566
26566
  return {
26567
26567
  myConfig: {
@@ -27110,7 +27110,7 @@ const _hoisted_3$n = {
27110
27110
  };
27111
27111
  const _hoisted_4$l = { class: "ivu-tag-text ivu-select-max-tag" };
27112
27112
  const _hoisted_5$i = { class: "ivu-tag-text" };
27113
- function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
27113
+ function _sfc_render$1m(_ctx, _cache, $props, $setup, $data, $options) {
27114
27114
  const _component_Icon = resolveComponent("Icon");
27115
27115
  const _component_Col = resolveComponent("Col");
27116
27116
  const _component_Row = resolveComponent("Row");
@@ -27267,7 +27267,7 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
27267
27267
  [vShow, $data.myConfig.visible]
27268
27268
  ]);
27269
27269
  }
27270
- var PopTextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["render", _sfc_render$1l]]);
27270
+ var PopTextBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1w, [["render", _sfc_render$1m]]);
27271
27271
  var proBase = {
27272
27272
  name: "probase",
27273
27273
  data() {
@@ -27476,13 +27476,13 @@ var proBase = {
27476
27476
  }
27477
27477
  }
27478
27478
  };
27479
- const _sfc_main$1u = {
27479
+ const _sfc_main$1v = {
27480
27480
  name: "ControlBox",
27481
27481
  mixins: [proBase]
27482
27482
  };
27483
27483
  const _hoisted_1$$ = ["textContent"];
27484
27484
  const _hoisted_2$G = { key: 1 };
27485
- function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
27485
+ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
27486
27486
  const _component_Icon = resolveComponent("Icon");
27487
27487
  const _component_Divider = resolveComponent("Divider");
27488
27488
  const _component_NumberRangeBox = resolveComponent("NumberRangeBox");
@@ -27592,8 +27592,8 @@ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
27592
27592
  }, null, 40, ["fatherValue", "readOnly", "onInputValue", "config"]))
27593
27593
  ], 32)) : createCommentVNode("", true);
27594
27594
  }
27595
- var ControlBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1u, [["render", _sfc_render$1k]]);
27596
- const _sfc_main$1t = {
27595
+ var ControlBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1v, [["render", _sfc_render$1l]]);
27596
+ const _sfc_main$1u = {
27597
27597
  name: "conditionbase",
27598
27598
  data() {
27599
27599
  return {
@@ -27772,7 +27772,7 @@ const _sfc_main$1t = {
27772
27772
  }
27773
27773
  };
27774
27774
  var searchgrid_vue_vue_type_style_index_0_lang = "";
27775
- const _sfc_main$1s = {
27775
+ const _sfc_main$1t = {
27776
27776
  name: "searchgrid",
27777
27777
  data() {
27778
27778
  return {
@@ -28109,7 +28109,7 @@ const _sfc_main$1s = {
28109
28109
  }
28110
28110
  };
28111
28111
  const _hoisted_1$_ = { style: { "padding": "10px" } };
28112
- function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
28112
+ function _sfc_render$1k(_ctx, _cache, $props, $setup, $data, $options) {
28113
28113
  const _component_Button = resolveComponent("Button");
28114
28114
  const _component_Col = resolveComponent("Col");
28115
28115
  const _component_Row = resolveComponent("Row");
@@ -28223,10 +28223,10 @@ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
28223
28223
  }, 8, ["modelValue"])
28224
28224
  ]);
28225
28225
  }
28226
- var SearchGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$1s, [["render", _sfc_render$1j]]);
28227
- const _sfc_main$1r = {
28226
+ var SearchGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$1t, [["render", _sfc_render$1k]]);
28227
+ const _sfc_main$1s = {
28228
28228
  name: "searchconditionbox",
28229
- extends: _sfc_main$1t,
28229
+ extends: _sfc_main$1u,
28230
28230
  components: {
28231
28231
  SearchGrid
28232
28232
  },
@@ -28308,7 +28308,7 @@ const _sfc_main$1r = {
28308
28308
  }
28309
28309
  }
28310
28310
  };
28311
- function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
28311
+ function _sfc_render$1j(_ctx, _cache, $props, $setup, $data, $options) {
28312
28312
  const _component_ControlBox = resolveComponent("ControlBox");
28313
28313
  const _component_Col = resolveComponent("Col");
28314
28314
  const _component_Button = resolveComponent("Button");
@@ -28394,10 +28394,10 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
28394
28394
  }, null, 8, ["config", "dictData", "dataType", "onSearch"])
28395
28395
  ]);
28396
28396
  }
28397
- var searchConditionBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1r, [["render", _sfc_render$1i]]);
28398
- const _sfc_main$1q = {
28397
+ var searchConditionBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1s, [["render", _sfc_render$1j]]);
28398
+ const _sfc_main$1r = {
28399
28399
  name: "queryconditionboxbase",
28400
- extends: _sfc_main$1t,
28400
+ extends: _sfc_main$1u,
28401
28401
  data() {
28402
28402
  return {
28403
28403
  myConfig: {},
@@ -28508,11 +28508,11 @@ const _sfc_main$1q = {
28508
28508
  }
28509
28509
  }
28510
28510
  };
28511
- const _sfc_main$1p = {
28511
+ const _sfc_main$1q = {
28512
28512
  name: "queryconditionbox",
28513
- extends: _sfc_main$1q
28513
+ extends: _sfc_main$1r
28514
28514
  };
28515
- function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
28515
+ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
28516
28516
  const _component_FormBox = resolveComponent("FormBox");
28517
28517
  const _component_Col = resolveComponent("Col");
28518
28518
  const _component_Button = resolveComponent("Button");
@@ -28587,8 +28587,8 @@ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
28587
28587
  [vShow, _ctx.showCondition]
28588
28588
  ]);
28589
28589
  }
28590
- var queryConditionBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1p, [["render", _sfc_render$1h]]);
28591
- const _sfc_main$1o = {
28590
+ var queryConditionBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1q, [["render", _sfc_render$1i]]);
28591
+ const _sfc_main$1p = {
28592
28592
  name: "conditionbox",
28593
28593
  components: { searchConditionBox, queryConditionBox },
28594
28594
  props: {
@@ -28634,7 +28634,7 @@ const _sfc_main$1o = {
28634
28634
  }
28635
28635
  }
28636
28636
  };
28637
- function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
28637
+ function _sfc_render$1h(_ctx, _cache, $props, $setup, $data, $options) {
28638
28638
  const _component_searchConditionBox = resolveComponent("searchConditionBox");
28639
28639
  const _component_queryConditionBox = resolveComponent("queryConditionBox");
28640
28640
  return openBlock(), createElementBlock("div", null, [
@@ -28657,8 +28657,8 @@ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
28657
28657
  }, null, 8, ["config", "onConditionAction", "dictData", "modelType", "isPop"]))
28658
28658
  ]);
28659
28659
  }
28660
- var ConditionBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1o, [["render", _sfc_render$1g]]);
28661
- const _sfc_main$1n = {
28660
+ var ConditionBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1p, [["render", _sfc_render$1h]]);
28661
+ const _sfc_main$1o = {
28662
28662
  name: "conditionselector",
28663
28663
  data() {
28664
28664
  return {
@@ -28864,7 +28864,7 @@ const _sfc_main$1n = {
28864
28864
  }
28865
28865
  }
28866
28866
  };
28867
- function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
28867
+ function _sfc_render$1g(_ctx, _cache, $props, $setup, $data, $options) {
28868
28868
  const _component_FormBox = resolveComponent("FormBox");
28869
28869
  const _component_Col = resolveComponent("Col");
28870
28870
  const _component_Row = resolveComponent("Row");
@@ -28941,10 +28941,48 @@ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
28941
28941
  })
28942
28942
  ]);
28943
28943
  }
28944
- var ConditionSelectorBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1n, [["render", _sfc_render$1f]]);
28944
+ var ConditionSelectorBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1o, [["render", _sfc_render$1g]]);
28945
+ const _sfc_main$1n = {
28946
+ name: "CompatTree",
28947
+ components: {
28948
+ Tree
28949
+ },
28950
+ props: {
28951
+ data: {
28952
+ type: Array,
28953
+ required: true
28954
+ },
28955
+ render: {
28956
+ type: Function,
28957
+ default: null
28958
+ }
28959
+ },
28960
+ methods: {
28961
+ renderWrapper(slotProps) {
28962
+ const nodeRender = slotProps.data.render || this.render;
28963
+ if (!nodeRender) {
28964
+ return slotProps.data.title;
28965
+ }
28966
+ return nodeRender(h$1, slotProps);
28967
+ }
28968
+ }
28969
+ };
28970
+ function _sfc_render$1f(_ctx, _cache, $props, $setup, $data, $options) {
28971
+ const _component_Tree = resolveComponent("Tree");
28972
+ return openBlock(), createBlock(_component_Tree, { data: $props.data }, {
28973
+ title: withCtx((slotProps) => [
28974
+ (openBlock(), createBlock(resolveDynamicComponent({
28975
+ render: () => $options.renderWrapper(slotProps)
28976
+ })))
28977
+ ]),
28978
+ _: 1
28979
+ }, 8, ["data"]);
28980
+ }
28981
+ var CompatTree = /* @__PURE__ */ _export_sfc$1(_sfc_main$1n, [["render", _sfc_render$1f]]);
28945
28982
  var conditionfilterbox_vue_vue_type_style_index_0_lang = "";
28946
28983
  const _sfc_main$1m = {
28947
28984
  name: "conditionfilterbox",
28985
+ components: { CompatTree },
28948
28986
  props: {
28949
28987
  config: {
28950
28988
  type: Object,
@@ -29411,9 +29449,9 @@ const _sfc_main$1m = {
29411
29449
  };
29412
29450
  const _hoisted_1$Z = { style: { "padding-left": "10px", "padding-right": "10px" } };
29413
29451
  function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
29414
- const _component_Tree = resolveComponent("Tree");
29452
+ const _component_CompatTree = resolveComponent("CompatTree");
29415
29453
  return openBlock(), createElementBlock("div", _hoisted_1$Z, [
29416
- $data.hackReset ? (openBlock(), createBlock(_component_Tree, {
29454
+ $data.hackReset ? (openBlock(), createBlock(_component_CompatTree, {
29417
29455
  key: 0,
29418
29456
  data: $data.data,
29419
29457
  render: $options.renderContent,
@@ -29424,7 +29462,7 @@ function _sfc_render$1e(_ctx, _cache, $props, $setup, $data, $options) {
29424
29462
  var ConditionFilterBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1m, [["render", _sfc_render$1e]]);
29425
29463
  const _sfc_main$1l = {
29426
29464
  name: "picturebox",
29427
- extends: _sfc_main$1Q,
29465
+ extends: _sfc_main$1R,
29428
29466
  data() {
29429
29467
  return {
29430
29468
  myConfig: {
@@ -30043,7 +30081,7 @@ function _sfc_render$1d(_ctx, _cache, $props, $setup, $data, $options) {
30043
30081
  var PictureBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1l, [["render", _sfc_render$1d]]);
30044
30082
  const _sfc_main$1k = {
30045
30083
  name: "picturebox",
30046
- extends: _sfc_main$1Q,
30084
+ extends: _sfc_main$1R,
30047
30085
  data() {
30048
30086
  return {
30049
30087
  myConfig: {
@@ -30640,7 +30678,7 @@ function _sfc_render$1b(_ctx, _cache, $props, $setup, $data, $options) {
30640
30678
  var UploadBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1j, [["render", _sfc_render$1b]]);
30641
30679
  const _sfc_main$1i = {
30642
30680
  name: "videobox",
30643
- extends: _sfc_main$1Q,
30681
+ extends: _sfc_main$1R,
30644
30682
  data() {
30645
30683
  return {
30646
30684
  myConfig: {
@@ -31221,7 +31259,7 @@ function _sfc_render$1a(_ctx, _cache, $props, $setup, $data, $options) {
31221
31259
  var VideoBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1i, [["render", _sfc_render$1a]]);
31222
31260
  const _sfc_main$1h = {
31223
31261
  name: "checkbox",
31224
- extends: _sfc_main$1Q,
31262
+ extends: _sfc_main$1R,
31225
31263
  data() {
31226
31264
  return {
31227
31265
  myConfig: {
@@ -31317,7 +31355,7 @@ function _sfc_render$19(_ctx, _cache, $props, $setup, $data, $options) {
31317
31355
  var CheckBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1h, [["render", _sfc_render$19]]);
31318
31356
  const _sfc_main$1g = {
31319
31357
  name: "checkgroupbox",
31320
- extends: _sfc_main$1Q,
31358
+ extends: _sfc_main$1R,
31321
31359
  data() {
31322
31360
  return {
31323
31361
  myConfig: {
@@ -31927,7 +31965,7 @@ function _sfc_render$17(_ctx, _cache, $props, $setup, $data, $options) {
31927
31965
  var FormDetail$2 = /* @__PURE__ */ _export_sfc$1(_sfc_main$1e, [["render", _sfc_render$17]]);
31928
31966
  const _sfc_main$1d = {
31929
31967
  name: "FormBox",
31930
- extends: _sfc_main$1O,
31968
+ extends: _sfc_main$1P,
31931
31969
  created() {
31932
31970
  this.init();
31933
31971
  },
@@ -32009,7 +32047,7 @@ function _sfc_render$16(_ctx, _cache, $props, $setup, $data, $options) {
32009
32047
  var FormBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$1d, [["render", _sfc_render$16]]);
32010
32048
  const _sfc_main$1c = {
32011
32049
  name: "FormCardBox",
32012
- extends: _sfc_main$1O,
32050
+ extends: _sfc_main$1P,
32013
32051
  data() {
32014
32052
  return {
32015
32053
  myConfig: {
@@ -34261,6 +34299,72 @@ const _sfc_main$16 = {
34261
34299
  return data;
34262
34300
  },
34263
34301
  iconRender(h10, params) {
34302
+ let icon = params.data.icon;
34303
+ let size2 = params.data.iconSize;
34304
+ let color2 = params.data.iconColor;
34305
+ const hasChildren = params.data.children && params.data.children.length > 0;
34306
+ if (!icon) {
34307
+ if (hasChildren) {
34308
+ icon = params.data.expand ? "_base_mulu" : "_base_close_mulu";
34309
+ } else {
34310
+ icon = "_base_wenjian";
34311
+ }
34312
+ }
34313
+ if (!size2) {
34314
+ size2 = 14;
34315
+ }
34316
+ let para = {
34317
+ type: icon,
34318
+ size: size2,
34319
+ color: color2
34320
+ };
34321
+ if (this.myConfig.setTreeNodeIcon) {
34322
+ para = this.myConfig.setTreeNodeIcon(params, para);
34323
+ } else if (this.setTreeNodeIcon) {
34324
+ para = this.setTreeNodeIcon(params, para);
34325
+ }
34326
+ if (para.type && para.type.startsWith("_")) {
34327
+ const resultIcon = "iconfont icon-" + para.type.substring(1);
34328
+ para.custom = resultIcon;
34329
+ delete para.type;
34330
+ }
34331
+ let nodeClass = "efuture-treenode";
34332
+ if (this.myConfig.setNodeClass) {
34333
+ nodeClass = this.myConfig.setNodeClass(params);
34334
+ }
34335
+ return h10(
34336
+ "div",
34337
+ {
34338
+ class: { [nodeClass]: true },
34339
+ style: {
34340
+ display: "flex",
34341
+ userSelect: "none"
34342
+ },
34343
+ onDblclick: () => {
34344
+ this.$nextTick(() => {
34345
+ this.setExpend(params.data);
34346
+ });
34347
+ this.$emit("dbclick", params.data);
34348
+ }
34349
+ },
34350
+ [
34351
+ h10(
34352
+ "div",
34353
+ {
34354
+ style: { paddingLeft: "5px" }
34355
+ },
34356
+ [
34357
+ h10(resolveComponent("Icon"), para)
34358
+ ]
34359
+ ),
34360
+ h10(resolveComponent("ShowText"), {
34361
+ label: params.data.title,
34362
+ contentAlign: "left"
34363
+ })
34364
+ ]
34365
+ );
34366
+ },
34367
+ iconRenderOld(h10, params) {
34264
34368
  let icon = params.data.icon;
34265
34369
  let size2 = params.data.iconSize;
34266
34370
  let color2 = params.data.iconColor;
@@ -34495,15 +34599,20 @@ const _sfc_main$16 = {
34495
34599
  return this.$Method.copy(this.rootNode);
34496
34600
  },
34497
34601
  getData() {
34498
- let data = null;
34499
- if (this.$refs.tree) {
34500
- if (this.myConfig.showCheckBox) {
34501
- data = this.$refs.tree.getCheckedNodes();
34502
- } else {
34503
- data = this.$refs.tree.getSelectedNodes();
34602
+ if (!this.treeData)
34603
+ return [];
34604
+ return this.myConfig.showCheckBox ? this.getNodesByKey("checked", this.treeData) : this.getNodesByKey("selected", this.treeData);
34605
+ },
34606
+ getNodesByKey(key, data, result = []) {
34607
+ data.forEach((item) => {
34608
+ if (item[key]) {
34609
+ result.push(item);
34504
34610
  }
34505
- }
34506
- return data;
34611
+ if (Array.isArray(item.children) && item.children.length > 0) {
34612
+ this.getNodesByKey(key, item.children, result);
34613
+ }
34614
+ });
34615
+ return result;
34507
34616
  },
34508
34617
  setData(data) {
34509
34618
  this.selectedData = this.$Method.copy(data);
@@ -34575,7 +34684,9 @@ const _sfc_main$16 = {
34575
34684
  return this.$refs.tree.getSelectedNodes();
34576
34685
  },
34577
34686
  getCheckedNodes() {
34578
- return this.$refs.tree.getCheckedNodes();
34687
+ if (!this.treeData)
34688
+ return [];
34689
+ return this.getNodesByKey("checked", this.treeData);
34579
34690
  },
34580
34691
  getCheckedAndIndeterminateNodes() {
34581
34692
  return this.$refs.tree.getCheckedAndIndeterminateNodes();
@@ -34669,15 +34780,19 @@ const _sfc_main$16 = {
34669
34780
  tempName = "selected";
34670
34781
  }
34671
34782
  }
34672
- if (this.$refs.tree && this.$refs.tree.flatState) {
34673
- this.$refs.tree.flatState.forEach((el2) => {
34674
- if (el2.node[tempName] !== value) {
34675
- let obj = {};
34676
- obj[tempName] = value;
34677
- Object.assign(el2.node, obj);
34783
+ const updateNode = (nodes) => {
34784
+ if (!nodes)
34785
+ return;
34786
+ nodes.forEach((node) => {
34787
+ if (node[tempName] !== value) {
34788
+ node[tempName] = value;
34789
+ }
34790
+ if (node.children && node.children.length > 0) {
34791
+ updateNode(node.children);
34678
34792
  }
34679
34793
  });
34680
- }
34794
+ };
34795
+ updateNode(this.data);
34681
34796
  },
34682
34797
  setNodes(data, name2, value) {
34683
34798
  let tempName = name2;
@@ -34691,24 +34806,24 @@ const _sfc_main$16 = {
34691
34806
  }
34692
34807
  }
34693
34808
  let responseId = this.myConfig.responseId;
34694
- this.$refs.tree.flatState.forEach((el2) => {
34695
- let index = data.findIndex(
34696
- (el22) => el2.node[responseId] === el22[responseId]
34697
- );
34698
- if (index > -1) {
34699
- if (el2.node[tempName] !== value) {
34700
- let obj = {};
34701
- obj[tempName] = value;
34702
- Object.assign(el2.node, obj);
34809
+ const idSet = new Set(
34810
+ data.map((item) => item[responseId])
34811
+ );
34812
+ const updateNode = (nodes) => {
34813
+ if (!nodes)
34814
+ return;
34815
+ nodes.forEach((node) => {
34816
+ const exists = idSet.has(node[responseId]);
34817
+ const newValue = exists ? value : !value;
34818
+ if (node[tempName] !== newValue) {
34819
+ node[tempName] = newValue;
34703
34820
  }
34704
- } else {
34705
- if (el2.node[tempName] !== !value) {
34706
- let obj = {};
34707
- obj[tempName] = !value;
34708
- Object.assign(el2.node, obj);
34821
+ if (node.children && node.children.length > 0) {
34822
+ updateNode(node.children);
34709
34823
  }
34710
- }
34711
- });
34824
+ });
34825
+ };
34826
+ updateNode(this.data);
34712
34827
  },
34713
34828
  updateNode(data, flag) {
34714
34829
  let tmp = data;
@@ -34983,6 +35098,7 @@ const _sfc_main$15 = {
34983
35098
  var treedata_vue_vue_type_style_index_0_lang = "";
34984
35099
  const _sfc_main$14 = {
34985
35100
  name: "treedata",
35101
+ components: { CompatTree },
34986
35102
  extends: _sfc_main$15,
34987
35103
  mounted() {
34988
35104
  this.observer = elementResizeDetectorMaker();
@@ -35001,7 +35117,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
35001
35117
  const _component_ConditionBox = resolveComponent("ConditionBox");
35002
35118
  const _component_Col = resolveComponent("Col");
35003
35119
  const _component_Row = resolveComponent("Row");
35004
- const _component_Tree = resolveComponent("Tree");
35120
+ const _component_CompatTree = resolveComponent("CompatTree");
35005
35121
  const _component_Card = resolveComponent("Card");
35006
35122
  const _component_ViewGrid = resolveComponent("ViewGrid");
35007
35123
  return openBlock(), createElementBlock("div", null, [
@@ -35037,7 +35153,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
35037
35153
  style: { "width": "100%", "overflow-x": "hidden" }
35038
35154
  }, createSlots({
35039
35155
  default: withCtx(() => [
35040
- createVNode(_component_Tree, {
35156
+ createVNode(_component_CompatTree, {
35041
35157
  ref: "tree",
35042
35158
  data: _ctx.treeData,
35043
35159
  class: normalizeClass(_ctx.myConfig.className),
@@ -35241,7 +35357,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
35241
35357
  var BillBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$11, [["render", _sfc_render$Y]]);
35242
35358
  const _sfc_main$10 = {
35243
35359
  name: "radiogroupbox",
35244
- extends: _sfc_main$1Q,
35360
+ extends: _sfc_main$1R,
35245
35361
  data() {
35246
35362
  return {
35247
35363
  myConfig: {
@@ -35342,7 +35458,7 @@ function _sfc_render$X(_ctx, _cache, $props, $setup, $data, $options) {
35342
35458
  var RadioGroupBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$10, [["render", _sfc_render$X]]);
35343
35459
  const _sfc_main$$ = {
35344
35460
  name: "colorbox",
35345
- extends: _sfc_main$1Q,
35461
+ extends: _sfc_main$1R,
35346
35462
  data() {
35347
35463
  return {
35348
35464
  myConfig: {
@@ -36539,7 +36655,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
36539
36655
  var MyLiquidFill = /* @__PURE__ */ _export_sfc$1(_sfc_main$S, [["render", _sfc_render$O]]);
36540
36656
  const _sfc_main$R = {
36541
36657
  name: "poptagbox",
36542
- extends: _sfc_main$1Q,
36658
+ extends: _sfc_main$1R,
36543
36659
  data() {
36544
36660
  return {
36545
36661
  myConfig: {
@@ -36991,7 +37107,7 @@ function _sfc_render$N(_ctx, _cache, $props, $setup, $data, $options) {
36991
37107
  var PopTagBox = /* @__PURE__ */ _export_sfc$1(_sfc_main$R, [["render", _sfc_render$N]]);
36992
37108
  const _sfc_main$Q = {
36993
37109
  name: "cascaderbox",
36994
- extends: _sfc_main$1Q,
37110
+ extends: _sfc_main$1R,
36995
37111
  data() {
36996
37112
  return {
36997
37113
  myConfig: {
@@ -37403,7 +37519,7 @@ function _sfc_render$L(_ctx, _cache, $props, $setup, $data, $options) {
37403
37519
  var PageCustom = /* @__PURE__ */ _export_sfc$1(_sfc_main$P, [["render", _sfc_render$L]]);
37404
37520
  const _sfc_main$O = {
37405
37521
  name: "mimpleviewgrid",
37406
- extends: _sfc_main$1L,
37522
+ extends: _sfc_main$1M,
37407
37523
  methods: {
37408
37524
  initCheckColumn(columns) {
37409
37525
  if (this.myConfig.showCheckBox) {
@@ -37816,6 +37932,7 @@ var SimpleViewGrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$O, [["render", _sfc
37816
37932
  var simpletree_vue_vue_type_style_index_0_lang = "";
37817
37933
  const _sfc_main$N = {
37818
37934
  name: "mtreedata",
37935
+ components: { CompatTree },
37819
37936
  extends: _sfc_main$15,
37820
37937
  data() {
37821
37938
  return {
@@ -37895,7 +38012,8 @@ const _sfc_main$N = {
37895
38012
  }
37896
38013
  },
37897
38014
  setTreeNodeIcon(params, obj) {
37898
- if (params.node.children.length > 0) {
38015
+ const hasChildren = params.data.children && params.data.children.length > 0;
38016
+ if (hasChildren) {
37899
38017
  if (params.data.expand) {
37900
38018
  obj.type = "_custom-wenjianzhankai";
37901
38019
  } else {
@@ -37925,7 +38043,7 @@ const _hoisted_1$F = {
37925
38043
  };
37926
38044
  function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
37927
38045
  const _component_Input = resolveComponent("Input");
37928
- const _component_Tree = resolveComponent("Tree");
38046
+ const _component_CompatTree = resolveComponent("CompatTree");
37929
38047
  const _component_SimpleViewGrid = resolveComponent("SimpleViewGrid");
37930
38048
  const _component_Card = resolveComponent("Card");
37931
38049
  return openBlock(), createBlock(_component_Card, {
@@ -37951,7 +38069,7 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
37951
38069
  class: "customLayout",
37952
38070
  style: normalizeStyle(_ctx.style)
37953
38071
  }, [
37954
- withDirectives(createVNode(_component_Tree, {
38072
+ withDirectives(createVNode(_component_CompatTree, {
37955
38073
  ref: "tree",
37956
38074
  data: _ctx.treeData,
37957
38075
  class: normalizeClass(_ctx.myConfig.className),
@@ -39042,6 +39160,107 @@ const _sfc_main$K = {
39042
39160
  Object.assign(items[index], tmp);
39043
39161
  }
39044
39162
  },
39163
+ loadDynamicConfig() {
39164
+ try {
39165
+ const postData = {
39166
+ modulecode: this.globalConfig.modulecode,
39167
+ moduleid: this.globalConfig.modulecode
39168
+ };
39169
+ this.asyncPost(
39170
+ this.uiconfig.resources,
39171
+ "uiconfigs.getPageConfig",
39172
+ postData,
39173
+ (data) => {
39174
+ if (!data || !this.uiconfig) {
39175
+ console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
39176
+ return;
39177
+ }
39178
+ this.mergeDynamicConfig(
39179
+ this.uiconfig,
39180
+ data
39181
+ );
39182
+ }
39183
+ );
39184
+ } catch (e10) {
39185
+ console.error("\u52A8\u6001\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25", e10);
39186
+ }
39187
+ },
39188
+ mergeDynamicConfig(localConfig, serverConfig) {
39189
+ if (!localConfig || !serverConfig) {
39190
+ console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
39191
+ return;
39192
+ }
39193
+ if (localConfig.billQueryConfig.gridConfig.items && serverConfig.billQueryConfig.gridConfig.items) {
39194
+ this.mergeFlatItems(
39195
+ localConfig.billQueryConfig.gridConfig.items,
39196
+ serverConfig.billQueryConfig.gridConfig.items
39197
+ );
39198
+ }
39199
+ if (localConfig.detailConfig && serverConfig.detailConfig) {
39200
+ this.mergeDetailConfig(
39201
+ localConfig.detailConfig,
39202
+ serverConfig.detailConfig
39203
+ );
39204
+ }
39205
+ },
39206
+ mergeDetailConfig(localDetail, serverDetail) {
39207
+ if (localDetail.formsConfig.items && serverDetail.formsConfig.items) {
39208
+ this.mergeContainerItems(
39209
+ localDetail.formsConfig.items,
39210
+ serverDetail.formsConfig.items
39211
+ );
39212
+ }
39213
+ if (localDetail.billDetailConfig.items && serverDetail.billDetailConfig.items) {
39214
+ this.mergeContainerItems(
39215
+ localDetail.billDetailConfig.items,
39216
+ serverDetail.billDetailConfig.items
39217
+ );
39218
+ }
39219
+ },
39220
+ mergeContainerItems(localContainers, serverContainers) {
39221
+ const containerMap = this.buildItemMap(localContainers);
39222
+ serverContainers.forEach((serverContainer) => {
39223
+ const localContainer = containerMap.get(serverContainer.name);
39224
+ if (!localContainer) {
39225
+ console.log("2 \u6CA1\u6709\u914D\u7F6Elocalcontainer");
39226
+ return;
39227
+ }
39228
+ Object.assign(localContainer, serverContainer);
39229
+ if (Array.isArray(localContainer.items) && Array.isArray(serverContainer.items)) {
39230
+ this.mergeFlatItems(
39231
+ localContainer.items,
39232
+ serverContainer.items
39233
+ );
39234
+ }
39235
+ });
39236
+ },
39237
+ mergeFlatItems(localItems, serverItems) {
39238
+ const fieldMap = this.buildItemMap(localItems);
39239
+ serverItems.forEach((serverItem) => {
39240
+ const localItem = fieldMap.get(serverItem.name);
39241
+ if (localItem) {
39242
+ console.log("\u5408\u5E76", localItem);
39243
+ Object.assign(localItem, serverItem);
39244
+ }
39245
+ });
39246
+ },
39247
+ buildItemMap(items, map2 = /* @__PURE__ */ new Map()) {
39248
+ if (!Array.isArray(items))
39249
+ return map2;
39250
+ items.forEach((item) => {
39251
+ if (!item) {
39252
+ console.log("3 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
39253
+ return;
39254
+ }
39255
+ if (item.name) {
39256
+ map2.set(item.name, item);
39257
+ }
39258
+ if (Array.isArray(item.items)) {
39259
+ this.buildItemMap(item.items, map2);
39260
+ }
39261
+ });
39262
+ return map2;
39263
+ },
39045
39264
  _isFun(pro) {
39046
39265
  let index = this.eventObject.findIndex((el2) => el2 === pro);
39047
39266
  if (index > -1) {
@@ -39697,7 +39916,7 @@ const _sfc_main$K = {
39697
39916
  };
39698
39917
  const _sfc_main$J = {
39699
39918
  name: "meditgridcard2",
39700
- extends: _sfc_main$1J,
39919
+ extends: _sfc_main$1K,
39701
39920
  data() {
39702
39921
  return {
39703
39922
  myConfig: {
@@ -44186,7 +44405,7 @@ var billquerygrid = /* @__PURE__ */ _export_sfc$1(_sfc_main$z, [["render", _sfc_
44186
44405
  var editgridcard_vue_vue_type_style_index_0_scoped_true_lang = "";
44187
44406
  const _sfc_main$y = {
44188
44407
  name: "meditgridcard",
44189
- extends: _sfc_main$1J,
44408
+ extends: _sfc_main$1K,
44190
44409
  data() {
44191
44410
  return {
44192
44411
  myConfig: {
@@ -48799,6 +49018,108 @@ const _sfc_main$r = {
48799
49018
  this.billApprovalConfig.classPrefix = this.myConfig.classPrefix;
48800
49019
  },
48801
49020
  methods: {
49021
+ loadDynamicConfig() {
49022
+ try {
49023
+ const modulecode = this.$Method.getUrlParam("modulecode");
49024
+ const postData = {
49025
+ modulecode,
49026
+ moduleid: modulecode
49027
+ };
49028
+ this.asyncPost(
49029
+ this.myConfig.resources,
49030
+ "uiconfigs.getPageConfig",
49031
+ postData,
49032
+ (data) => {
49033
+ if (!data || !this.myConfig) {
49034
+ console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
49035
+ return;
49036
+ }
49037
+ this.mergeDynamicConfig(
49038
+ this.myConfig,
49039
+ data
49040
+ );
49041
+ }
49042
+ );
49043
+ } catch (e10) {
49044
+ console.error("\u52A8\u6001\u914D\u7F6E\u52A0\u8F7D\u5931\u8D25", e10);
49045
+ }
49046
+ },
49047
+ mergeDynamicConfig(localConfig, serverConfig) {
49048
+ if (!localConfig || !serverConfig) {
49049
+ console.log("1 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
49050
+ return;
49051
+ }
49052
+ if (localConfig.billQueryConfig.gridConfig.items && serverConfig.billQueryConfig.gridConfig.items) {
49053
+ this.mergeFlatItems(
49054
+ localConfig.billQueryConfig.gridConfig.items,
49055
+ serverConfig.billQueryConfig.gridConfig.items
49056
+ );
49057
+ }
49058
+ if (localConfig.detailConfig && serverConfig.detailConfig) {
49059
+ this.mergeDetailConfig(
49060
+ localConfig.detailConfig,
49061
+ serverConfig.detailConfig
49062
+ );
49063
+ }
49064
+ },
49065
+ mergeDetailConfig(localDetail, serverDetail) {
49066
+ if (localDetail.formsConfig.items && serverDetail.formsConfig.items) {
49067
+ this.mergeContainerItems(
49068
+ localDetail.formsConfig.items,
49069
+ serverDetail.formsConfig.items
49070
+ );
49071
+ }
49072
+ if (localDetail.billDetailConfig.items && serverDetail.billDetailConfig.items) {
49073
+ this.mergeContainerItems(
49074
+ localDetail.billDetailConfig.items,
49075
+ serverDetail.billDetailConfig.items
49076
+ );
49077
+ }
49078
+ },
49079
+ mergeContainerItems(localContainers, serverContainers) {
49080
+ const containerMap = this.buildItemMap(localContainers);
49081
+ serverContainers.forEach((serverContainer) => {
49082
+ const localContainer = containerMap.get(serverContainer.name);
49083
+ if (!localContainer) {
49084
+ console.log("2 \u6CA1\u6709\u914D\u7F6Elocalcontainer");
49085
+ return;
49086
+ }
49087
+ Object.assign(localContainer, serverContainer);
49088
+ if (Array.isArray(localContainer.items) && Array.isArray(serverContainer.items)) {
49089
+ this.mergeFlatItems(
49090
+ localContainer.items,
49091
+ serverContainer.items
49092
+ );
49093
+ }
49094
+ });
49095
+ },
49096
+ mergeFlatItems(localItems, serverItems) {
49097
+ const fieldMap = this.buildItemMap(localItems);
49098
+ serverItems.forEach((serverItem) => {
49099
+ const localItem = fieldMap.get(serverItem.name);
49100
+ if (localItem) {
49101
+ console.log("\u5408\u5E76", localItem);
49102
+ Object.assign(localItem, serverItem);
49103
+ }
49104
+ });
49105
+ },
49106
+ buildItemMap(items, map2 = /* @__PURE__ */ new Map()) {
49107
+ if (!Array.isArray(items))
49108
+ return map2;
49109
+ items.forEach((item) => {
49110
+ if (!item) {
49111
+ console.log("3 \u6CA1\u6709\u914D\u7F6E\u6570\u636E");
49112
+ return;
49113
+ }
49114
+ if (item.name) {
49115
+ map2.set(item.name, item);
49116
+ }
49117
+ if (Array.isArray(item.items)) {
49118
+ this.buildItemMap(item.items, map2);
49119
+ }
49120
+ });
49121
+ return map2;
49122
+ },
48802
49123
  setLogName() {
48803
49124
  this.logName.push({ code: this.myConfig.detailConfig.response, name: "\u4E3B\u8868" });
48804
49125
  this.myConfig.detailConfig.formsConfig.items.forEach((el2) => {
@@ -50990,7 +51311,8 @@ const _sfc_main$o = {
50990
51311
  this.$refs.form.setOutsideHeight(height2);
50991
51312
  },
50992
51313
  setTreeNodeIcon(params, obj) {
50993
- if (params.node && params.node.children && params.node.children.length > 0) {
51314
+ const hasChildren = params.data.children && params.data.children.length > 0;
51315
+ if (hasChildren) {
50994
51316
  if (params.data.expand) {
50995
51317
  obj.type = "_custom-wenjianzhankai";
50996
51318
  } else {
@@ -103992,7 +104314,7 @@ const _sfc_main$1 = {
103992
104314
  components: {
103993
104315
  Editor
103994
104316
  },
103995
- extends: _sfc_main$1Q,
104317
+ extends: _sfc_main$1R,
103996
104318
  data() {
103997
104319
  return {
103998
104320
  myConfig: {
@@ -133940,21 +134262,21 @@ const components = {
133940
134262
  ComboBox,
133941
134263
  ExpandRow,
133942
134264
  EditGrid,
133943
- ViewGridBase: _sfc_main$1L,
134265
+ ViewGridBase: _sfc_main$1M,
133944
134266
  ViewGrid,
133945
134267
  EditGridCard,
133946
134268
  TextBox,
133947
134269
  RichTextBox,
133948
134270
  NumberBox,
133949
134271
  NumberRangeBox,
133950
- DateBox: _sfc_main$1y,
134272
+ DateBox: _sfc_main$1z,
133951
134273
  DateRangeBox,
133952
134274
  TimePicBox,
133953
134275
  PopTextBox,
133954
134276
  ControlBox,
133955
- ControlBase: _sfc_main$1Q,
134277
+ ControlBase: _sfc_main$1R,
133956
134278
  ConditionBox,
133957
- QueryConditionBoxBase: _sfc_main$1q,
134279
+ QueryConditionBoxBase: _sfc_main$1r,
133958
134280
  ConditionSelectorBox,
133959
134281
  ConditionFilterBox,
133960
134282
  FormBox,
@@ -133975,7 +134297,7 @@ const components = {
133975
134297
  TreeBox,
133976
134298
  CommonIcon,
133977
134299
  RadioGroupBox,
133978
- BaseForm: _sfc_main$1O,
134300
+ BaseForm: _sfc_main$1P,
133979
134301
  MyBar,
133980
134302
  MyBarLine,
133981
134303
  MyPie,
@@ -134012,9 +134334,9 @@ const components = {
134012
134334
  mBillImport,
134013
134335
  wRichTextBox,
134014
134336
  mBillListDetails,
134015
- NumberBoxV1: _sfc_main$1A,
134337
+ NumberBoxV1: _sfc_main$1B,
134016
134338
  mListDetailsV2,
134017
- DateBoxV1: _sfc_main$1y,
134339
+ DateBoxV1: _sfc_main$1z,
134018
134340
  mListDetailsV3
134019
134341
  };
134020
134342
  const iview = {