mooho-base-admin-plus 0.4.10 → 0.4.13

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.
@@ -19724,7 +19724,9 @@ var mixinPage = {
19724
19724
  } else if (operator == "LessThanOrEqual") {
19725
19725
  result2 = data2 <= value;
19726
19726
  } else if (operator == "NotEqual") {
19727
- result2 = String(data2) != value;
19727
+ result2 = value.split(",").every((item) => {
19728
+ return String(data2) != item;
19729
+ });
19728
19730
  }
19729
19731
  if (!result2) {
19730
19732
  return false;
@@ -21468,14 +21470,14 @@ function _sfc_render$1i(_ctx, _cache, $props, $setup, $data, $options) {
21468
21470
  command: withCtx(({ row }) => [
21469
21471
  createVNode$1(_component_Button, {
21470
21472
  size: "small",
21471
- title: _ctx.$("Front_Btn_Request"),
21473
+ title: _ctx.$t("Front_Btn_Request"),
21472
21474
  type: "info",
21473
21475
  "custom-icon": "fa fa-cloud-upload-alt",
21474
21476
  onClick: ($event) => $options.openRequest(row)
21475
21477
  }, null, 8, ["title", "onClick"]),
21476
21478
  createVNode$1(_component_Button, {
21477
21479
  size: "small",
21478
- title: _ctx.$("Front_Btn_Response"),
21480
+ title: _ctx.$t("Front_Btn_Response"),
21479
21481
  type: "info",
21480
21482
  "custom-icon": "fa fa-cloud-download-alt",
21481
21483
  onClick: ($event) => $options.openResponse(row)
@@ -22641,7 +22643,7 @@ const _sfc_main$19 = {
22641
22643
  }
22642
22644
  },
22643
22645
  copy() {
22644
- this.confirmInput("Front_Msg_Sure_To_Copy_Create_View", "Front_Label_View_Code", async () => {
22646
+ this.confirmInput("Front_Msg_Sure_To_Copy_Create_View", this.$t("Front_Label_View_Code"), async () => {
22645
22647
  let dataView2 = await dataViewApi.copy(this.$refs.form.data.id, this.newCode);
22646
22648
  this.$refs.form.open(dataView2);
22647
22649
  this.$refs.table.loadData();
@@ -36434,8 +36436,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
36434
36436
  "onUpdate:modelValue": _cache[2] || (_cache[2] = ($event) => $data.sort = $event),
36435
36437
  onClick: _cache[3] || (_cache[3] = ($event) => _ctx.$refs.modal_sort.open())
36436
36438
  }, {
36437
- prepend: withCtx(() => []),
36438
- default: withCtx(() => [
36439
+ prepend: withCtx(() => [
36439
36440
  createVNode$1(_component_Button, {
36440
36441
  "custom-icon": "fa fa-edit",
36441
36442
  onClick: _cache[1] || (_cache[1] = ($event) => _ctx.$refs.modal_sort.open())
@@ -37358,7 +37359,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37358
37359
  ]);
37359
37360
  }
37360
37361
  var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
37361
- var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-1a234aab]{display:flex}.image-group .image[data-v-1a234aab]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-1a234aab]{width:75px;height:75px}\n")();
37362
+ var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-66ecadb3]{display:flex}.image-group .image[data-v-66ecadb3]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-66ecadb3]{width:75px;height:75px}\n")();
37362
37363
  var getColumns = (view, item) => {
37363
37364
  let children = view.viewColumns.filter((i2) => {
37364
37365
  return i2.parentCode == item.code;
@@ -37424,7 +37425,8 @@ const _sfc_main$q = {
37424
37425
  commandButtons: [],
37425
37426
  preview: false,
37426
37427
  imageUrl: null,
37427
- isFullScreen: false
37428
+ isFullScreen: false,
37429
+ commandButtonParams: null
37428
37430
  };
37429
37431
  },
37430
37432
  async created() {
@@ -37543,6 +37545,9 @@ const _sfc_main$q = {
37543
37545
  },
37544
37546
  pageSizeOpts: {
37545
37547
  type: Array
37548
+ },
37549
+ spanMethod: {
37550
+ type: Function
37546
37551
  }
37547
37552
  },
37548
37553
  computed: {
@@ -38487,18 +38492,21 @@ const _sfc_main$q = {
38487
38492
  clickCommandButton(row, commandButton) {
38488
38493
  if (commandButton.viewType == "TableView") {
38489
38494
  this.$refs.modalTable.init(commandButton.viewCode, async () => {
38490
- let params = {};
38495
+ if (!!(commandButton.formViewCode || "").trim()) {
38496
+ this.$refs.modalForm.init(commandButton.formViewCode);
38497
+ }
38498
+ this.commandButtonParams = {};
38491
38499
  if (!!(commandButton.params || "").trim()) {
38492
38500
  let commandButtonParams = JSON.parse(commandButton.params);
38493
38501
  for (let i2 = 0; i2 < commandButtonParams.length; i2++) {
38494
38502
  let value = this.parseData(row, commandButtonParams[i2].value);
38495
- params[commandButtonParams[i2].param] = value;
38503
+ this.commandButtonParams[commandButtonParams[i2].param] = value;
38496
38504
  }
38497
38505
  }
38498
- this.$refs.modalTable.open(params);
38506
+ this.$refs.modalTable.open(this.commandButtonParams);
38499
38507
  });
38500
38508
  } else {
38501
- this.$refs.modalForm.init(commandButton.viewCode, async () => {
38509
+ this.$refs.modalForm.init(commandButton.formViewCode, async () => {
38502
38510
  this.$refs.modalForm.open(row);
38503
38511
  });
38504
38512
  }
@@ -38507,7 +38515,10 @@ const _sfc_main$q = {
38507
38515
  this.imageUrl = item;
38508
38516
  this.preview = true;
38509
38517
  },
38510
- handleSpan({ row, column, rowIndex }) {
38518
+ handleSpan({ row, column, rowIndex, columnIndex }) {
38519
+ if (this.spanMethod != null) {
38520
+ return this.spanMethod(row, column, rowIndex, columnIndex);
38521
+ }
38511
38522
  if (column.mergeSame) {
38512
38523
  if (rowIndex != 0 && this.parseData(row, column.code) == this.parseData(this.data[rowIndex - 1], column.code)) {
38513
38524
  return [0, 0];
@@ -39246,12 +39257,14 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39246
39257
  }, null, 8, ["onSave"])) : createCommentVNode("", true),
39247
39258
  $data.inited ? (openBlock(), createBlock(_component_modal_table, {
39248
39259
  key: 4,
39249
- ref: "modalTable"
39260
+ ref: "modalTable",
39261
+ onCreate: _cache[8] || (_cache[8] = ($event) => _ctx.$refs.modalForm.openDefault($data.commandButtonParams)),
39262
+ onEdit: _cache[9] || (_cache[9] = ({ row, index: index2 }) => _ctx.$refs.modalForm.open(row))
39250
39263
  }, null, 512)) : createCommentVNode("", true),
39251
39264
  $data.inited ? (openBlock(), createBlock(_component_modal_form, {
39252
39265
  key: 5,
39253
39266
  ref: "modalForm",
39254
- saveEnable: false
39267
+ onOnAfterSave: _cache[10] || (_cache[10] = ($event) => _ctx.$refs.modalTable.loadData())
39255
39268
  }, null, 512)) : createCommentVNode("", true),
39256
39269
  $data.inited ? (openBlock(), createBlock(_component_modal_table, {
39257
39270
  key: 6,
@@ -39264,7 +39277,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39264
39277
  createVNode$1(_component_Button, {
39265
39278
  type: "primary",
39266
39279
  "custom-icon": "fa fa-save",
39267
- onClick: _cache[8] || (_cache[8] = ($event) => $options.batchSave())
39280
+ onClick: _cache[11] || (_cache[11] = ($event) => $options.batchSave())
39268
39281
  }, {
39269
39282
  default: withCtx(() => [
39270
39283
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Save")), 1)
@@ -39274,7 +39287,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39274
39287
  createVNode$1(_component_Button, {
39275
39288
  type: "default",
39276
39289
  "custom-icon": "fa fa-times",
39277
- onClick: _cache[9] || (_cache[9] = ($event) => _ctx.$refs.batchEditTable.close())
39290
+ onClick: _cache[12] || (_cache[12] = ($event) => _ctx.$refs.batchEditTable.close())
39278
39291
  }, {
39279
39292
  default: withCtx(() => [
39280
39293
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Close")), 1)
@@ -39287,7 +39300,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39287
39300
  createVNode$1(_component_Modal, {
39288
39301
  title: _ctx.$t("Front_Label_Preview"),
39289
39302
  modelValue: $data.preview,
39290
- "onUpdate:modelValue": _cache[11] || (_cache[11] = ($event) => $data.preview = $event),
39303
+ "onUpdate:modelValue": _cache[14] || (_cache[14] = ($event) => $data.preview = $event),
39291
39304
  scrollable: "",
39292
39305
  "mask-closable": _ctx.layout.maskClosable,
39293
39306
  draggable: _ctx.layout.draggable,
@@ -39299,7 +39312,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39299
39312
  createVNode$1(_component_Button, {
39300
39313
  type: "default",
39301
39314
  "custom-icon": "fa fa-times",
39302
- onClick: _cache[10] || (_cache[10] = ($event) => $data.preview = false)
39315
+ onClick: _cache[13] || (_cache[13] = ($event) => $data.preview = false)
39303
39316
  }, {
39304
39317
  default: withCtx(() => [
39305
39318
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Close")), 1)
@@ -39327,7 +39340,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39327
39340
  ], 2)
39328
39341
  ], 2);
39329
39342
  }
39330
- var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-1a234aab"]]);
39343
+ var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-66ecadb3"]]);
39331
39344
  const _sfc_main$p = {
39332
39345
  mixins: [mixinPage],
39333
39346
  components: { columnSelect, columnEdit },
@@ -39523,7 +39536,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
39523
39536
  command: withCtx(({ row, index: index2 }) => [
39524
39537
  createVNode$1(_component_Button, {
39525
39538
  size: "small",
39526
- title: _ctx.$("Front_Btn_Edit"),
39539
+ title: _ctx.$t("Front_Btn_Edit"),
39527
39540
  type: "primary",
39528
39541
  ghost: "",
39529
39542
  "custom-icon": "fa fa-edit",
@@ -39531,7 +39544,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
39531
39544
  }, null, 8, ["title", "onClick"]),
39532
39545
  createVNode$1(_component_Button, {
39533
39546
  size: "small",
39534
- title: _ctx.$("Front_Btn_Up"),
39547
+ title: _ctx.$t("Front_Btn_Up"),
39535
39548
  type: "primary",
39536
39549
  ghost: "",
39537
39550
  "custom-icon": "fa fa-chevron-up",
@@ -39539,7 +39552,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
39539
39552
  }, null, 8, ["title", "onClick"]),
39540
39553
  createVNode$1(_component_Button, {
39541
39554
  size: "small",
39542
- title: _ctx.$("Front_Btn_Down"),
39555
+ title: _ctx.$t("Front_Btn_Down"),
39543
39556
  type: "primary",
39544
39557
  ghost: "",
39545
39558
  "custom-icon": "fa fa-chevron-down",
@@ -39547,7 +39560,7 @@ function _sfc_render$p(_ctx, _cache, $props, $setup, $data, $options) {
39547
39560
  }, null, 8, ["title", "onClick"]),
39548
39561
  createVNode$1(_component_Button, {
39549
39562
  size: "small",
39550
- title: _ctx.$("Front_Btn_Remove"),
39563
+ title: _ctx.$t("Front_Btn_Remove"),
39551
39564
  type: "primary",
39552
39565
  ghost: "",
39553
39566
  "custom-icon": "fa fa-times",
@@ -46132,7 +46145,7 @@ const _sfc_main$o = {
46132
46145
  return result2;
46133
46146
  },
46134
46147
  getDataSource(data2, column) {
46135
- if (column.dataType && column.dataType.indexOf("Enum:") === 0) {
46148
+ if (!column.isStaticItem && column.dataType.indexOf("Enum:") === 0) {
46136
46149
  return this.getEnumList(column.dataType.split(":")[1]);
46137
46150
  } else {
46138
46151
  return column.dataSource == null ? [] : column.dataSource;
@@ -47479,7 +47492,7 @@ function _sfc_render$m(_ctx, _cache, $props, $setup, $data, $options) {
47479
47492
  footer: withCtx(() => [
47480
47493
  createElementVNode("div", null, [
47481
47494
  renderSlot(_ctx.$slots, "footer", {}, () => [
47482
- $options.canSave() && $props.saveEnable ? (openBlock(), createBlock(_component_Button, {
47495
+ $options.canSave() && $props.saveEnable && !$data.formView.editEnable ? (openBlock(), createBlock(_component_Button, {
47483
47496
  key: 0,
47484
47497
  type: "primary",
47485
47498
  "custom-icon": "fa fa-save",
@@ -47672,6 +47685,9 @@ const _sfc_main$l = {
47672
47685
  },
47673
47686
  beforeClose: {
47674
47687
  type: Function
47688
+ },
47689
+ spanMethod: {
47690
+ type: Function
47675
47691
  }
47676
47692
  },
47677
47693
  computed: {
@@ -47846,6 +47862,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
47846
47862
  "on-search": $props.onSearch,
47847
47863
  "summary-method": $props.summaryMethod,
47848
47864
  "page-size-opts": $props.pageSizeOpts,
47865
+ "span-method": $props.spanMethod,
47849
47866
  onCreate: $options.create,
47850
47867
  onEdit: $options.edit,
47851
47868
  onOnReady: $options.onReady,
@@ -47897,7 +47914,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
47897
47914
  })
47898
47915
  ]),
47899
47916
  _: 3
47900
- }, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
47917
+ }, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
47901
47918
  ])
47902
47919
  ]),
47903
47920
  _: 3