mooho-base-admin-plus 2.4.26 → 2.4.28

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/history.md CHANGED
@@ -58,3 +58,5 @@
58
58
  2.4.24 - 修复登录时未更新菜单的 bug
59
59
  2.4.25 - 增加上传文件大小限制
60
60
  2.4.26 - 优化计算列,避免转换对象
61
+ 2.4.27 - 优化标题默认样式
62
+ 2.4.28 - 修复可筛选下拉框选中内容会跳回原值的bug
@@ -23085,6 +23085,7 @@ var mixinPage = {
23085
23085
  return lodash$1.exports.get(model2, expression2);
23086
23086
  },
23087
23087
  setData(model2, expression2, value) {
23088
+ console.log("setData", expression2, value);
23088
23089
  lodash$1.exports.set(model2, expression2, value);
23089
23090
  },
23090
23091
  parseDateTimeData(model2, expression2) {
@@ -37624,6 +37625,7 @@ const _sfc_main$w = {
37624
37625
  },
37625
37626
  parseComboData(model2, column) {
37626
37627
  let value = this.parseData(model2, column.code);
37628
+ console.log("parseComboData", column.code, value);
37627
37629
  this.loadComboDataLabel(model2, column, value);
37628
37630
  return value;
37629
37631
  },
@@ -37640,8 +37642,10 @@ const _sfc_main$w = {
37640
37642
  if (column.isStaticItem || column.dataType && column.dataType.startsWith("Enum:")) {
37641
37643
  return;
37642
37644
  }
37645
+ console.log("loadComboDataLabel", column.code, data2);
37643
37646
  if (this.$refs["control_" + column.code] && data2) {
37644
37647
  let values = this.$refs["control_" + column.code][0].$data.values;
37648
+ console.log("values", values);
37645
37649
  let pendings = [];
37646
37650
  if (column.controlType == "MultiComboSelect") {
37647
37651
  data2.forEach((value) => {
@@ -37659,9 +37663,11 @@ const _sfc_main$w = {
37659
37663
  }
37660
37664
  }
37661
37665
  if (pendings.length > 0) {
37666
+ console.log("pendings", pendings);
37662
37667
  let param = this.getParam(model2, column);
37663
37668
  param[column.sourceDataCode] = pendings.map((item) => item.value).join(",");
37664
37669
  let res2;
37670
+ console.log("param", param);
37665
37671
  if (column.isSourceCustom) {
37666
37672
  res2 = await customModelApi.query(column.source, param);
37667
37673
  } else {
@@ -37671,7 +37677,7 @@ const _sfc_main$w = {
37671
37677
  let v = this.parseData(item, column.sourceDataCode);
37672
37678
  let label = this.parseData(item, column.sourceDisplayCode);
37673
37679
  if (column.controlType == "ComboSelect") {
37674
- this.$refs["control_" + column.code][0].$data.query = label;
37680
+ console.log("label", label);
37675
37681
  }
37676
37682
  let newValue = pendings.find((i3) => i3.value == v);
37677
37683
  if (newValue) {
@@ -42167,9 +42173,8 @@ const _sfc_main$r = {
42167
42173
  res2.data.forEach((item) => {
42168
42174
  let v = this.parseData(item, column.sourceDataCode);
42169
42175
  let label = this.parseData(item, column.sourceDisplayCode);
42170
- if (column.controlType == "ComboSelect") {
42171
- this.$refs["control_" + column.code][0].$data.query = label;
42172
- }
42176
+ if (column.controlType == "ComboSelect")
42177
+ ;
42173
42178
  let newValue = pendings.find((i3) => i3.value == v);
42174
42179
  if (newValue) {
42175
42180
  newValue.label = label;
@@ -42187,7 +42192,7 @@ const _hoisted_2$f = {
42187
42192
  class: "label"
42188
42193
  };
42189
42194
  const _hoisted_3$d = {
42190
- key: 15,
42195
+ key: 16,
42191
42196
  style: { "line-height": "24px" }
42192
42197
  };
42193
42198
  function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
@@ -42397,10 +42402,40 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42397
42402
  }), 128))
42398
42403
  ]),
42399
42404
  _: 2
42400
- }, 1032, ["model-value", "onUpdate:modelValue", "remote-method", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiComboSelect" ? (openBlock(), createBlock(_component_Select, {
42405
+ }, 1032, ["model-value", "onUpdate:modelValue", "remote-method", "style", "placeholder", "onOnChange"])) : column.controlType === "ComboSelect" ? (openBlock(), createBlock(_component_Select, {
42401
42406
  key: 10,
42402
42407
  ref_for: true,
42403
42408
  ref: "control_" + column.code,
42409
+ "model-value": $options.parseComboData($data.data, column),
42410
+ "onUpdate:modelValue": ($event) => _ctx.setData($data.data, column.code, $event),
42411
+ disabled: _ctx.readonly || column.isReadonly,
42412
+ clearable: true,
42413
+ filterable: "",
42414
+ remote: "",
42415
+ "remote-method": (search) => $options.loadOption($data.data, column, search),
42416
+ style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
42417
+ placeholder: column.description,
42418
+ transfer: true,
42419
+ onOnChange: (selected) => $options.onSelectDataChange(column, selected)
42420
+ }, {
42421
+ default: withCtx(() => [
42422
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($data.data, column), (item) => {
42423
+ return openBlock(), createBlock(_component_Option, {
42424
+ key: item.id,
42425
+ value: item.id
42426
+ }, {
42427
+ default: withCtx(() => [
42428
+ createTextVNode(toDisplayString$1(item.name), 1)
42429
+ ]),
42430
+ _: 2
42431
+ }, 1032, ["value"]);
42432
+ }), 128))
42433
+ ]),
42434
+ _: 2
42435
+ }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "remote-method", "style", "placeholder", "onOnChange"])) : column.controlType === "MultiComboSelect" ? (openBlock(), createBlock(_component_Select, {
42436
+ key: 11,
42437
+ ref_for: true,
42438
+ ref: "control_" + column.code,
42404
42439
  size: "small",
42405
42440
  "model-value": $options.parseMultiComboData($data.data, column),
42406
42441
  "onUpdate:modelValue": ($event) => $options.setArrayFilterData($data.data, column, $event),
@@ -42429,7 +42464,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42429
42464
  ]),
42430
42465
  _: 2
42431
42466
  }, 1032, ["model-value", "onUpdate:modelValue", "remote-method", "style", "placeholder", "onOnChange"])) : column.controlType === "DialogSelect" ? (openBlock(), createBlock(_component_dialog_select, {
42432
- key: 11,
42467
+ key: 12,
42433
42468
  size: "small",
42434
42469
  "model-value": $options.parseFilterData($data.data, column),
42435
42470
  "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column, $event),
@@ -42440,7 +42475,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42440
42475
  controlWidth: column.controlWidth,
42441
42476
  onOnChange: (selected) => $options.onSelectDataChange(column, selected)
42442
42477
  }, null, 8, ["model-value", "onUpdate:modelValue", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" || column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
42443
- key: 12,
42478
+ key: 13,
42444
42479
  size: "small",
42445
42480
  type: column.controlType.toLowerCase(),
42446
42481
  "model-value": $options.parseFilterData($data.data, column),
@@ -42452,7 +42487,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42452
42487
  $options.onDataChange(column);
42453
42488
  }
42454
42489
  }, null, 8, ["type", "model-value", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
42455
- key: 13,
42490
+ key: 14,
42456
42491
  size: "small",
42457
42492
  type: "time",
42458
42493
  "model-value": $options.parseFilterData($data.data, column),
@@ -42462,7 +42497,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42462
42497
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
42463
42498
  onOnChange: ($event) => $options.onDataChange(column)
42464
42499
  }, null, 8, ["model-value", "onUpdate:modelValue", "placeholder", "style", "onOnChange"])) : column.controlType === "Check" ? (openBlock(), createBlock(_component_Checkbox, {
42465
- key: 14,
42500
+ key: 15,
42466
42501
  size: "small",
42467
42502
  style: { "line-height": "26px" },
42468
42503
  "model-value": !!$options.parseFilterData($data.data, column),
@@ -42476,7 +42511,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42476
42511
  onOnChange: ($event) => $options.onDataChange(column)
42477
42512
  }, null, 8, ["model-value", "onUpdate:modelValue", "onOnChange"])
42478
42513
  ])) : column.controlType === "Radio" ? (openBlock(), createBlock(_component_RadioGroup, {
42479
- key: 16,
42514
+ key: 17,
42480
42515
  size: "small",
42481
42516
  style: { "line-height": "22px" },
42482
42517
  "model-value": $options.parseFilterData($data.data, column),
@@ -42498,14 +42533,14 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
42498
42533
  ]),
42499
42534
  _: 2
42500
42535
  }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "TextArea" ? (openBlock(), createBlock(_component_Input, {
42501
- key: 17,
42536
+ key: 18,
42502
42537
  type: "textarea",
42503
42538
  "model-value": $options.parseFilterData($data.data, column.code),
42504
42539
  "onUpdate:modelValue": ($event) => $options.setFilterData($data.data, column.code, $event),
42505
42540
  style: normalizeStyle$1({ width: column.controlWidth == null ? null : column.controlWidth + "px" }),
42506
42541
  rows: column.controlHeight / 20,
42507
42542
  placeholder: column.description
42508
- }, null, 8, ["model-value", "onUpdate:modelValue", "style", "rows", "placeholder"])) : (openBlock(), createElementBlock(Fragment, { key: 18 }, [
42543
+ }, null, 8, ["model-value", "onUpdate:modelValue", "style", "rows", "placeholder"])) : (openBlock(), createElementBlock(Fragment, { key: 19 }, [
42509
42544
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Label_Control_Type_Not_Supported")) + " " + toDisplayString$1(column.controlType), 1)
42510
42545
  ], 64))
42511
42546
  ]),
@@ -44025,9 +44060,8 @@ const _sfc_main$q = {
44025
44060
  res2.data.forEach((item) => {
44026
44061
  let v = this.parseData(item, column.sourceDataCode);
44027
44062
  let label = this.parseData(item, column.sourceDisplayCode);
44028
- if (column.controlType == "ComboSelect") {
44029
- this.$refs["control_" + column.code + "_" + index2].$data.query = label;
44030
- }
44063
+ if (column.controlType == "ComboSelect")
44064
+ ;
44031
44065
  let newValue = pendings.find((i3) => i3.value == v);
44032
44066
  if (newValue) {
44033
44067
  newValue.label = label;
@@ -52070,9 +52104,8 @@ const _sfc_main$o = {
52070
52104
  res2.data.forEach((item) => {
52071
52105
  let v = this.parseData(item, column.sourceDataCode);
52072
52106
  let label = this.parseData(item, column.sourceDisplayCode);
52073
- if (column.controlType == "ComboSelect") {
52074
- this.$refs["control_" + column.code][0].$data.query = label;
52075
- }
52107
+ if (column.controlType == "ComboSelect")
52108
+ ;
52076
52109
  let newValue = pendings.find((i3) => i3.value == v);
52077
52110
  if (newValue) {
52078
52111
  newValue.label = label;