mooho-base-admin-plus 0.4.76 → 0.4.77

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.
@@ -18930,6 +18930,8 @@ vueI18n_cjs.vTDirective = vTDirective;
18930
18930
  var i18n$1 = vueI18n.exports.createI18n({
18931
18931
  allowComposition: true,
18932
18932
  globalInjection: true,
18933
+ fallbackWarn: false,
18934
+ missingWarn: false,
18933
18935
  legacy: false
18934
18936
  });
18935
18937
  const res$l = "I18nText";
@@ -21556,7 +21558,7 @@ const _hoisted_9$9 = { class: "icon" };
21556
21558
  const _hoisted_10$6 = { class: "content" };
21557
21559
  const _hoisted_11$6 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value1" }, "\u5F85\u5206\u6D3E", -1));
21558
21560
  const _hoisted_12$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value2" }, "\u5DF2\u5206\u6D3E", -1));
21559
- const _hoisted_13$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
21561
+ const _hoisted_13$4 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
21560
21562
  /* @__PURE__ */ createElementVNode("span", null, "\u68C0\u6D4B\u62A5\u544A")
21561
21563
  ], -1));
21562
21564
  const _hoisted_14$3 = { class: "stat" };
@@ -21695,7 +21697,7 @@ function _sfc_render$1n(_ctx, _cache, $props, $setup, $data, $options) {
21695
21697
  padding: 12
21696
21698
  }, {
21697
21699
  title: withCtx(() => [
21698
- _hoisted_13$3
21700
+ _hoisted_13$4
21699
21701
  ]),
21700
21702
  default: withCtx(() => [
21701
21703
  createElementVNode("div", _hoisted_14$3, [
@@ -25686,7 +25688,7 @@ const _hoisted_9$8 = ["width"];
25686
25688
  const _hoisted_10$5 = ["x", "y", "width", "height"];
25687
25689
  const _hoisted_11$5 = ["x", "y", "font-size"];
25688
25690
  const _hoisted_12$3 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"];
25689
- const _hoisted_13$2 = ["x", "y", "width", "height"];
25691
+ const _hoisted_13$3 = ["x", "y", "width", "height"];
25690
25692
  const _hoisted_14$2 = ["x", "y", "font-size"];
25691
25693
  const _hoisted_15$2 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"];
25692
25694
  const _hoisted_16$2 = ["x", "y", "width", "height"];
@@ -25854,7 +25856,7 @@ function _sfc_render$$(_ctx, _cache, $props, $setup, $data, $options) {
25854
25856
  y: item.y - $data.setting.rectHeight / 2,
25855
25857
  width: $data.setting.rectWidth,
25856
25858
  height: $data.setting.rectHeight
25857
- }, null, 8, _hoisted_13$2),
25859
+ }, null, 8, _hoisted_13$3),
25858
25860
  createElementVNode("text", {
25859
25861
  fill: "#000",
25860
25862
  x: item.x,
@@ -26783,7 +26785,7 @@ const _hoisted_9$7 = /* @__PURE__ */ createTextVNode("\u5F39\u51FA\u9009\u62E9\u
26783
26785
  const _hoisted_10$4 = /* @__PURE__ */ createTextVNode("\u591A\u9009\u5F39\u51FA\u9009\u62E9\u6846");
26784
26786
  const _hoisted_11$4 = { class: "title" };
26785
26787
  const _hoisted_12$2 = { class: "description" };
26786
- const _hoisted_13$1 = { class: "i-table-no-border" };
26788
+ const _hoisted_13$2 = { class: "i-table-no-border" };
26787
26789
  const _hoisted_14$1 = { class: "title" };
26788
26790
  const _hoisted_15$1 = { class: "description" };
26789
26791
  const _hoisted_16$1 = { class: "ivu-ml-8 ivu-mr-8" };
@@ -27219,7 +27221,7 @@ function _sfc_render$Y(_ctx, _cache, $props, $setup, $data, $options) {
27219
27221
  ])
27220
27222
  ]),
27221
27223
  default: withCtx(() => [
27222
- createElementVNode("div", _hoisted_13$1, [
27224
+ createElementVNode("div", _hoisted_13$2, [
27223
27225
  createVNode$1(_component_Table, {
27224
27226
  columns: $options.parpamColumns,
27225
27227
  data: $data.params,
@@ -40322,6 +40324,31 @@ const _sfc_main$q = {
40322
40324
  }
40323
40325
  this.loadData(data2);
40324
40326
  }
40327
+ },
40328
+ parseDataWithOther(model2, column) {
40329
+ let expression2 = column.code;
40330
+ let selectValue = this.parseData(model2, expression2 + "_o");
40331
+ let value = this.parseData(model2, expression2);
40332
+ let dataSource = this.getDataSource(model2, column);
40333
+ if (selectValue != null) {
40334
+ return selectValue;
40335
+ } else if (value == null) {
40336
+ return null;
40337
+ } else if (dataSource && dataSource.some((item) => {
40338
+ return item.id == value;
40339
+ })) {
40340
+ return value;
40341
+ } else {
40342
+ return "__Other";
40343
+ }
40344
+ },
40345
+ setDataWithOther(model2, expression2, value) {
40346
+ this.setData(model2, expression2 + "_o", value);
40347
+ if (value != "__Other") {
40348
+ this.setData(model2, expression2, value);
40349
+ } else {
40350
+ this.setData(model2, expression2, null);
40351
+ }
40325
40352
  }
40326
40353
  }
40327
40354
  };
@@ -40330,13 +40357,17 @@ const _hoisted_2$e = { ref: "filterCommand" };
40330
40357
  const _hoisted_3$c = ["innerHTML"];
40331
40358
  const _hoisted_4$5 = ["href", "target"];
40332
40359
  const _hoisted_5$4 = ["innerHTML"];
40333
- const _hoisted_6$3 = ["href"];
40334
- const _hoisted_7$3 = { style: { "margin": "auto 4px" } };
40335
- const _hoisted_8$3 = ["onClick", "src"];
40336
- const _hoisted_9$2 = { class: "ivu-mt ivu-text-right" };
40337
- const _hoisted_10$2 = { style: { "text-align": "center" } };
40338
- const _hoisted_11$2 = ["download"];
40339
- const _hoisted_12$1 = ["src"];
40360
+ const _hoisted_6$3 = {
40361
+ key: 11,
40362
+ style: { "display": "flex" }
40363
+ };
40364
+ const _hoisted_7$3 = ["href"];
40365
+ const _hoisted_8$3 = { style: { "margin": "auto 4px" } };
40366
+ const _hoisted_9$2 = ["onClick", "src"];
40367
+ const _hoisted_10$2 = { class: "ivu-mt ivu-text-right" };
40368
+ const _hoisted_11$2 = { style: { "text-align": "center" } };
40369
+ const _hoisted_12$1 = ["download"];
40370
+ const _hoisted_13$1 = ["src"];
40340
40371
  function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40341
40372
  const _component_Divider = resolveComponent("Divider");
40342
40373
  const _component_table_filter = resolveComponent("table-filter");
@@ -40742,8 +40773,62 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40742
40773
  param: _ctx.getParam($options.rowData(row, index2), column),
40743
40774
  controlWidth: column.controlWidth == null ? null : column.controlWidth - 8,
40744
40775
  onOnChange: (selected) => $options.onSelectDataChange($options.rowData(row, index2), column, selected)
40745
- }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" ? (openBlock(), createBlock(_component_DatePicker, {
40746
- key: 11,
40776
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "source", "source-data-code", "source-display-code", "param", "controlWidth", "onOnChange"])) : column.controlType === "SelectWithOther" ? (openBlock(), createElementBlock("div", _hoisted_6$3, [
40777
+ createVNode$1(_component_Select, {
40778
+ "model-value": $options.parseDataWithOther($options.rowData(row, index2), column),
40779
+ "onUpdate:modelValue": ($event) => $options.setDataWithOther($options.rowData(row, index2), column.code, $event),
40780
+ size: "small",
40781
+ disabled: $options.isReadonly($options.rowData(row, index2), column),
40782
+ clearable: true,
40783
+ style: normalizeStyle$1({
40784
+ width: $options.parseDataWithOther($options.rowData(row, index2), column) == "__Other" ? column.controlWidth == null ? null : column.controlWidth * 0.4 - 4 + "px" : column.controlWidth == null ? null : column.controlWidth - 8 + "px"
40785
+ }),
40786
+ placeholder: column.description,
40787
+ transfer: true,
40788
+ onOnChange: (selected) => $options.onSelectDataChange($options.rowData(row, index2), column, selected)
40789
+ }, {
40790
+ default: withCtx(() => [
40791
+ (openBlock(true), createElementBlock(Fragment, null, renderList($options.getDataSource($options.rowData(row, index2), column), (item) => {
40792
+ return openBlock(), createBlock(_component_Option, {
40793
+ key: item.id,
40794
+ value: item.id
40795
+ }, {
40796
+ default: withCtx(() => [
40797
+ createTextVNode(toDisplayString$1(item.name), 1)
40798
+ ]),
40799
+ _: 2
40800
+ }, 1032, ["value"]);
40801
+ }), 128)),
40802
+ createVNode$1(_component_Option, {
40803
+ key: "__Other",
40804
+ value: "__Other"
40805
+ }, {
40806
+ default: withCtx(() => [
40807
+ createTextVNode(toDisplayString$1(!!(column.pattern || "").trim() ? column.pattern : _ctx.$t("Front_Label_Others")), 1)
40808
+ ]),
40809
+ _: 2
40810
+ }, 1024)
40811
+ ]),
40812
+ _: 2
40813
+ }, 1032, ["model-value", "onUpdate:modelValue", "disabled", "style", "placeholder", "onOnChange"]),
40814
+ withDirectives(createVNode$1(_component_Input, {
40815
+ type: "text",
40816
+ size: "small",
40817
+ "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
40818
+ "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
40819
+ readonly: $props.readonly || column.isReadonly,
40820
+ style: normalizeStyle$1([{
40821
+ width: column.controlWidth == null ? null : column.controlWidth * 0.6 - 8 + "px"
40822
+ }, { "margin-left": "4px" }]),
40823
+ maxlength: column.maxLength,
40824
+ placeholder: column.description,
40825
+ onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column),
40826
+ onOnBlur: ($event) => $options.onBlur($options.rowData(row, index2), column)
40827
+ }, null, 8, ["model-value", "onUpdate:modelValue", "readonly", "style", "maxlength", "placeholder", "onOnChange", "onOnBlur"]), [
40828
+ [vShow, $options.parseDataWithOther($options.rowData(row, index2), column) == "__Other"]
40829
+ ])
40830
+ ])) : column.controlType === "Date" || column.controlType === "DateTime" || column.controlType === "Year" || column.controlType === "Month" ? (openBlock(), createBlock(_component_DatePicker, {
40831
+ key: 12,
40747
40832
  size: "small",
40748
40833
  type: column.controlType.toLowerCase(),
40749
40834
  "model-value": _ctx.parseDateTimeData($options.rowData(row, index2), column.code),
@@ -40756,7 +40841,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40756
40841
  $options.onDataChange($options.rowData(row, index2), column);
40757
40842
  }
40758
40843
  }, null, 8, ["type", "model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "DateRange" ? (openBlock(), createBlock(_component_DatePicker, {
40759
- key: 12,
40844
+ key: 13,
40760
40845
  size: "small",
40761
40846
  type: column.controlType.toLowerCase(),
40762
40847
  "model-value": _ctx.parseDateRangeData($options.rowData(row, index2), column.code),
@@ -40767,7 +40852,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40767
40852
  transfer: true,
40768
40853
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
40769
40854
  }, null, 8, ["type", "model-value", "onUpdate:modelValue", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Time" ? (openBlock(), createBlock(_component_TimePicker, {
40770
- key: 13,
40855
+ key: 14,
40771
40856
  size: "small",
40772
40857
  type: "time",
40773
40858
  "model-value": _ctx.parseDateTimeData($options.rowData(row, index2), column.code),
@@ -40780,19 +40865,19 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40780
40865
  $options.onDataChange($options.rowData(row, index2), column);
40781
40866
  }
40782
40867
  }, null, 8, ["model-value", "readonly", "placeholder", "style", "onOnChange"])) : column.controlType === "Check" ? (openBlock(), createBlock(_component_Checkbox, {
40783
- key: 14,
40868
+ key: 15,
40784
40869
  "model-value": !!_ctx.parseData($options.rowData(row, index2), column.code),
40785
40870
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
40786
40871
  disabled: $options.isReadonly($options.rowData(row, index2), column),
40787
40872
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
40788
40873
  }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])) : column.controlType === "Switch" ? (openBlock(), createBlock(_component_Switch, {
40789
- key: 15,
40874
+ key: 16,
40790
40875
  "model-value": !!_ctx.parseData($options.rowData(row, index2), column.code),
40791
40876
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
40792
40877
  disabled: $options.isReadonly($options.rowData(row, index2), column),
40793
40878
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
40794
40879
  }, null, 8, ["model-value", "onUpdate:modelValue", "disabled", "onOnChange"])) : column.controlType === "Radio" ? (openBlock(), createBlock(_component_RadioGroup, {
40795
- key: 16,
40880
+ key: 17,
40796
40881
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
40797
40882
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
40798
40883
  onOnChange: (selected) => $options.onSelectDataChange($options.rowData(row, index2), column, selected)
@@ -40813,7 +40898,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40813
40898
  ]),
40814
40899
  _: 2
40815
40900
  }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "CheckGroup" ? (openBlock(), createBlock(_component_CheckboxGroup, {
40816
- key: 17,
40901
+ key: 18,
40817
40902
  "model-value": _ctx.parseArrayData($options.rowData(row, index2), column.code),
40818
40903
  "onUpdate:modelValue": ($event) => _ctx.setArrayData($options.rowData(row, index2), column.code, $event),
40819
40904
  onOnChange: ($event) => $options.onDataChange($options.rowData(row, index2), column)
@@ -40833,21 +40918,21 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40833
40918
  }), 128))
40834
40919
  ]),
40835
40920
  _: 2
40836
- }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "Attachment" ? (openBlock(), createElementBlock(Fragment, { key: 18 }, [
40921
+ }, 1032, ["model-value", "onUpdate:modelValue", "onOnChange"])) : column.controlType === "Attachment" ? (openBlock(), createElementBlock(Fragment, { key: 19 }, [
40837
40922
  createCommentVNode(' <upload-attachment :value="parseData(data, column.code)"\r\n @update:model-value="$event => setData(data, column.code, $event)"\r\n v-if="!readonly && !column.isReadonly"\r\n size="small"\r\n :maxCount="column.maxLength" /> '),
40838
40923
  !!(_ctx.parseData($options.rowData(row, index2), column.code) || "").trim() ? (openBlock(true), createElementBlock(Fragment, { key: 0 }, renderList(JSON.parse(_ctx.parseData(row, column.code)), (attachment, attachmentIndex) => {
40839
40924
  return openBlock(), createElementBlock("a", {
40840
40925
  href: _ctx.getAttachmentUrl(attachment.file, attachment.name),
40841
40926
  key: attachmentIndex
40842
40927
  }, [
40843
- createElementVNode("span", _hoisted_7$3, [
40928
+ createElementVNode("span", _hoisted_8$3, [
40844
40929
  createVNode$1(_component_Icon, { type: "ios-document" }),
40845
40930
  createTextVNode(" " + toDisplayString$1(attachment.name), 1)
40846
40931
  ])
40847
- ], 8, _hoisted_6$3);
40932
+ ], 8, _hoisted_7$3);
40848
40933
  }), 128)) : createCommentVNode("v-if", true)
40849
40934
  ], 64)) : column.controlType === "Image" ? (openBlock(), createElementBlock("div", {
40850
- key: 19,
40935
+ key: 20,
40851
40936
  class: "image-group",
40852
40937
  style: normalizeStyle$1({ "justify-content": column.align ? column.align.toLowerCase() : "center" })
40853
40938
  }, [
@@ -40860,10 +40945,10 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40860
40945
  key: 0,
40861
40946
  onClick: ($event) => $options.previewImage(item),
40862
40947
  src: _ctx.getImgUrl(item)
40863
- }, null, 8, _hoisted_8$3)) : createCommentVNode("v-if", true)
40948
+ }, null, 8, _hoisted_9$2)) : createCommentVNode("v-if", true)
40864
40949
  ]);
40865
40950
  }), 128))
40866
- ], 4)) : column.controlType === "Slider" ? (openBlock(), createElementBlock(Fragment, { key: 20 }, [
40951
+ ], 4)) : column.controlType === "Slider" ? (openBlock(), createElementBlock(Fragment, { key: 21 }, [
40867
40952
  createVNode$1(_component_Slider, {
40868
40953
  "model-value": _ctx.parseData($options.rowData(row, index2), column.code),
40869
40954
  "onUpdate:modelValue": ($event) => _ctx.setData($options.rowData(row, index2), column.code, $event),
@@ -40890,7 +40975,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40890
40975
  style: normalizeStyle$1({ width: column.controlWidth == null ? "100px" : column.controlWidth + "px" }),
40891
40976
  placeholder: column.description
40892
40977
  }, null, 8, ["model-value", "style", "placeholder"])) : createCommentVNode("v-if", true)
40893
- ], 64)) : column.controlType === "Placeholder" ? (openBlock(), createElementBlock(Fragment, { key: 21 }, [], 64)) : (openBlock(), createElementBlock(Fragment, { key: 22 }, [
40978
+ ], 64)) : column.controlType === "Placeholder" ? (openBlock(), createElementBlock(Fragment, { key: 22 }, [], 64)) : (openBlock(), createElementBlock(Fragment, { key: 23 }, [
40894
40979
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Label_Control_Type_Not_Supported")) + " " + toDisplayString$1(column.controlType), 1)
40895
40980
  ], 64))
40896
40981
  ], 64)) : createCommentVNode("v-if", true)
@@ -40956,7 +41041,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
40956
41041
  ]),
40957
41042
  _: 3
40958
41043
  }, 8, ["update-show-children", "columns", "data", "max-height", "load-data", "draggable", "span-method", "border", "show-summary", "summary-method", "page-size-opts", "onOnColumnWidthResize", "onOnSortChange", "onOnSelectionChange", "onOnDragDrop"]),
40959
- createElementVNode("div", _hoisted_9$2, [
41044
+ createElementVNode("div", _hoisted_10$2, [
40960
41045
  $props.settingEnable && _ctx.allow("permission/tableView") ? (openBlock(), createBlock(_component_Button, {
40961
41046
  key: 0,
40962
41047
  class: "ivu-fr",
@@ -41075,7 +41160,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
41075
41160
  })
41076
41161
  ]),
41077
41162
  default: withCtx(() => [
41078
- createElementVNode("div", _hoisted_10$2, [
41163
+ createElementVNode("div", _hoisted_11$2, [
41079
41164
  createElementVNode("a", {
41080
41165
  href: "#",
41081
41166
  download: $data.imageUrl,
@@ -41085,8 +41170,8 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
41085
41170
  key: 0,
41086
41171
  src: _ctx.getImgUrl($data.imageUrl),
41087
41172
  style: { "max-width": "100%" }
41088
- }, null, 8, _hoisted_12$1)) : createCommentVNode("v-if", true)
41089
- ], 8, _hoisted_11$2)
41173
+ }, null, 8, _hoisted_13$1)) : createCommentVNode("v-if", true)
41174
+ ], 8, _hoisted_12$1)
41090
41175
  ])
41091
41176
  ]),
41092
41177
  _: 1