mooho-base-admin-plus 2.3.13 → 2.4.0

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
@@ -31,3 +31,4 @@
31
31
  2.3.11 - 弹出框增加全屏按钮
32
32
  2.3.12 - 解决弹出框全屏按钮有时会关闭窗口的 bug
33
33
  2.3.13 - 解决表格弹出框无法关闭的 bug
34
+ 2.4.0 - 增加表格弹出显示表单
@@ -23899,7 +23899,7 @@ const _hoisted_7$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
23899
23899
  ], -1));
23900
23900
  const _hoisted_8$a = { class: "stat" };
23901
23901
  const _hoisted_9$8 = { class: "icon" };
23902
- const _hoisted_10$5 = { class: "content" };
23902
+ const _hoisted_10$7 = { class: "content" };
23903
23903
  const _hoisted_11$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value1" }, "\u5F85\u5206\u6D3E", -1));
23904
23904
  const _hoisted_12$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value2" }, "\u5DF2\u5206\u6D3E", -1));
23905
23905
  const _hoisted_13$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
@@ -24007,7 +24007,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
24007
24007
  color: "rgb(250, 173, 20)"
24008
24008
  })
24009
24009
  ]),
24010
- createElementVNode("div", _hoisted_10$5, [
24010
+ createElementVNode("div", _hoisted_10$7, [
24011
24011
  createElementVNode("div", null, [
24012
24012
  withDirectives(createVNode$1(_component_Numeral, {
24013
24013
  value: "85",
@@ -28200,7 +28200,7 @@ const _hoisted_7$a = /* @__PURE__ */ createElementVNode("marker", {
28200
28200
  ], -1);
28201
28201
  const _hoisted_8$9 = ["id", "d"];
28202
28202
  const _hoisted_9$7 = ["width"];
28203
- const _hoisted_10$4 = ["x", "y", "width", "height"];
28203
+ const _hoisted_10$6 = ["x", "y", "width", "height"];
28204
28204
  const _hoisted_11$2 = ["x", "y", "font-size"];
28205
28205
  const _hoisted_12$2 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"];
28206
28206
  const _hoisted_13$2 = ["x", "y", "width", "height"];
@@ -28340,7 +28340,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
28340
28340
  y: item.y - $data.setting.rectHeight / 2,
28341
28341
  width: $data.setting.rectWidth,
28342
28342
  height: $data.setting.rectHeight
28343
- }, null, 8, _hoisted_10$4),
28343
+ }, null, 8, _hoisted_10$6),
28344
28344
  createElementVNode("text", {
28345
28345
  fill: "#000",
28346
28346
  x: item.x,
@@ -33084,6 +33084,7 @@ const _hoisted_6$8 = { key: 4 };
33084
33084
  const _hoisted_7$7 = { key: 5 };
33085
33085
  const _hoisted_8$7 = { key: 6 };
33086
33086
  const _hoisted_9$5 = { key: 7 };
33087
+ const _hoisted_10$5 = { key: 8 };
33087
33088
  function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33088
33089
  const _component_PageHeader = resolveComponent("PageHeader");
33089
33090
  const _component_Button = resolveComponent("Button");
@@ -33181,7 +33182,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33181
33182
  ref: "form",
33182
33183
  "view-code": "TableViewEdit",
33183
33184
  onOnChange: $options.formChange,
33184
- onOnAfterSave: _cache[5] || (_cache[5] = ($event) => _ctx.$refs.table.loadData())
33185
+ onOnAfterSave: _cache[6] || (_cache[6] = ($event) => _ctx.$refs.table.loadData())
33185
33186
  }, {
33186
33187
  column: withCtx(({ data: data2, code: code2 }) => [
33187
33188
  code2 == "keywordColumn" ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
@@ -33316,14 +33317,36 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33316
33317
  _: 2
33317
33318
  }, 1032, ["onClick"])
33318
33319
  ])) : createCommentVNode("v-if", true),
33319
- code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
33320
+ code2 == "showEnable" ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
33321
+ $options.showCheck(data2.showEnableJson) ? (openBlock(), createBlock(_component_Switch, {
33322
+ key: 0,
33323
+ "model-value": !!data2.showEnable,
33324
+ "onUpdate:modelValue": ($event) => {
33325
+ data2.showEnable = $event;
33326
+ },
33327
+ onOnChange: _cache[3] || (_cache[3] = ($event) => $options.checkChange("showEnableJson", "showEnable"))
33328
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
33329
+ createVNode$1(_component_Button, {
33330
+ style: { "margin-left": "8px" },
33331
+ onClick: ($event) => _ctx.$refs.conditionEdit.open(data2, "showEnableJson", "showEnable", _ctx.$refs.form.data.model),
33332
+ type: "primary",
33333
+ size: "small",
33334
+ icon: "ios-settings"
33335
+ }, {
33336
+ default: withCtx(() => [
33337
+ createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Condition")), 1)
33338
+ ]),
33339
+ _: 2
33340
+ }, 1032, ["onClick"])
33341
+ ])) : createCommentVNode("v-if", true),
33342
+ code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
33320
33343
  $options.showCheck(data2.removeEnableJson) ? (openBlock(), createBlock(_component_Switch, {
33321
33344
  key: 0,
33322
33345
  "model-value": !!data2.removeEnable,
33323
33346
  "onUpdate:modelValue": ($event) => {
33324
33347
  data2.removeEnable = $event;
33325
33348
  },
33326
- onOnChange: _cache[3] || (_cache[3] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
33349
+ onOnChange: _cache[4] || (_cache[4] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
33327
33350
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
33328
33351
  createVNode$1(_component_Button, {
33329
33352
  style: { "margin-left": "8px" },
@@ -33343,7 +33366,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33343
33366
  createVNode$1(_component_Button, {
33344
33367
  type: "primary",
33345
33368
  "custom-icon": "fa fa-save",
33346
- onClick: _cache[4] || (_cache[4] = () => _ctx.$refs.form.onSave())
33369
+ onClick: _cache[5] || (_cache[5] = () => _ctx.$refs.form.onSave())
33347
33370
  }, {
33348
33371
  default: withCtx(() => [
33349
33372
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Save")), 1)
@@ -34997,6 +35020,11 @@ const _sfc_main$I = {
34997
35020
  if (!!(this.page.formViewCode || "").trim()) {
34998
35021
  this.$refs.form.init(this.page.formViewCode);
34999
35022
  }
35023
+ if (!!(this.page.showViewCode || "").trim()) {
35024
+ this.$refs.showForm.init(this.page.showViewCode);
35025
+ } else if (!!(this.page.formViewCode || "").trim()) {
35026
+ this.$refs.showForm.init(this.page.formViewCode);
35027
+ }
35000
35028
  this.page.controls = res2.customPageControls.filter((item) => {
35001
35029
  return item.customPageComponentID == null;
35002
35030
  });
@@ -35063,7 +35091,8 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
35063
35091
  createEnable: _ctx.allow("create"),
35064
35092
  removeEnable: _ctx.allow("remove"),
35065
35093
  onCreate: _cache[0] || (_cache[0] = ($event) => _ctx.$refs.form.open()),
35066
- onEdit: _cache[1] || (_cache[1] = ({ row, index: index2 }) => _ctx.$refs.form.open(row))
35094
+ onEdit: _cache[1] || (_cache[1] = ({ row, index: index2 }) => _ctx.$refs.form.open(row)),
35095
+ onShow: _cache[2] || (_cache[2] = ({ row, index: index2 }) => _ctx.$refs.showForm.open(row))
35067
35096
  }, {
35068
35097
  command: withCtx(({ row }) => [
35069
35098
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.page.controls, (item) => {
@@ -35087,9 +35116,15 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
35087
35116
  ref: "form",
35088
35117
  createEnable: _ctx.allow("create"),
35089
35118
  editEnable: _ctx.allow("edit"),
35090
- onOnAfterSave: _cache[2] || (_cache[2] = ($event) => _ctx.$refs.table.loadData())
35119
+ onOnAfterSave: _cache[3] || (_cache[3] = ($event) => _ctx.$refs.table.loadData())
35091
35120
  }, null, 8, ["createEnable", "editEnable"])) : createCommentVNode("v-if", true),
35092
- $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($data.tables, (table) => {
35121
+ $data.page ? (openBlock(), createBlock(_component_modal_form, {
35122
+ key: 1,
35123
+ ref: "showForm",
35124
+ readonly: $data.page.showViewCode == null,
35125
+ "save-enable": false
35126
+ }, null, 8, ["readonly"])) : createCommentVNode("v-if", true),
35127
+ $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList($data.tables, (table) => {
35093
35128
  return openBlock(), createBlock(_component_modal_table, {
35094
35129
  key: table.id,
35095
35130
  ref_for: true,
@@ -35115,7 +35150,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
35115
35150
  _: 2
35116
35151
  }, 1032, ["view-code", "onCreate", "onEdit"]);
35117
35152
  }), 128)) : createCommentVNode("v-if", true),
35118
- $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList($data.forms, (form) => {
35153
+ $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList($data.forms, (form) => {
35119
35154
  return openBlock(), createBlock(_component_modal_form, {
35120
35155
  key: form.id,
35121
35156
  ref_for: true,
@@ -37606,7 +37641,7 @@ const _hoisted_6$6 = ["innerHTML"];
37606
37641
  const _hoisted_7$6 = ["innerHTML"];
37607
37642
  const _hoisted_8$6 = ["href", "target"];
37608
37643
  const _hoisted_9$4 = ["innerHTML"];
37609
- const _hoisted_10$3 = ["href"];
37644
+ const _hoisted_10$4 = ["href"];
37610
37645
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
37611
37646
  const _component_Divider = resolveComponent("Divider");
37612
37647
  const _component_view_table = resolveComponent("view-table");
@@ -38143,7 +38178,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
38143
38178
  createVNode$1(_component_Icon, { type: "ios-document" }),
38144
38179
  createTextVNode(" " + toDisplayString$1(attachment.name), 1)
38145
38180
  ])
38146
- ], 8, _hoisted_10$3);
38181
+ ], 8, _hoisted_10$4);
38147
38182
  }), 128)) : createCommentVNode("v-if", true)
38148
38183
  ], 64)) : column.controlType === "Image" ? (openBlock(), createBlock(_component_upload_image, {
38149
38184
  key: 25,
@@ -41154,7 +41189,8 @@ const _hoisted_5$5 = { key: 4 };
41154
41189
  const _hoisted_6$4 = { key: 5 };
41155
41190
  const _hoisted_7$4 = { key: 6 };
41156
41191
  const _hoisted_8$4 = { key: 7 };
41157
- const _hoisted_9$3 = { class: "title" };
41192
+ const _hoisted_9$3 = { key: 8 };
41193
+ const _hoisted_10$3 = { class: "title" };
41158
41194
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
41159
41195
  const _component_Button = resolveComponent("Button");
41160
41196
  const _component_modal_table = resolveComponent("modal-table");
@@ -41418,14 +41454,36 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
41418
41454
  _: 2
41419
41455
  }, 1032, ["onClick"])
41420
41456
  ])) : createCommentVNode("v-if", true),
41421
- code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
41457
+ code2 == "showEnable" ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
41458
+ $options.showCheck(data2.showEnableJson) ? (openBlock(), createBlock(_component_Switch, {
41459
+ key: 0,
41460
+ "model-value": !!data2.showEnable,
41461
+ "onUpdate:modelValue": ($event) => {
41462
+ data2.showEnable = $event;
41463
+ },
41464
+ onOnChange: _cache[8] || (_cache[8] = ($event) => $options.checkChange("showEnableJson", "showEnable"))
41465
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
41466
+ createVNode$1(_component_Button, {
41467
+ style: { "margin-left": "8px" },
41468
+ onClick: ($event) => _ctx.$refs.conditionEdit.open(data2, "showEnableJson", "showEnable", $data.dataView.model),
41469
+ type: "primary",
41470
+ size: "small",
41471
+ icon: "ios-settings"
41472
+ }, {
41473
+ default: withCtx(() => [
41474
+ createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Condition")), 1)
41475
+ ]),
41476
+ _: 2
41477
+ }, 1032, ["onClick"])
41478
+ ])) : createCommentVNode("v-if", true),
41479
+ code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
41422
41480
  $options.showCheck(data2.removeEnableJson) ? (openBlock(), createBlock(_component_Switch, {
41423
41481
  key: 0,
41424
41482
  "model-value": !!data2.removeEnable,
41425
41483
  "onUpdate:modelValue": ($event) => {
41426
41484
  data2.removeEnable = $event;
41427
41485
  },
41428
- onOnChange: _cache[8] || (_cache[8] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
41486
+ onOnChange: _cache[9] || (_cache[9] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
41429
41487
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
41430
41488
  createVNode$1(_component_Button, {
41431
41489
  style: { "margin-left": "8px" },
@@ -41449,7 +41507,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
41449
41507
  size: "small"
41450
41508
  }, {
41451
41509
  default: withCtx(() => [
41452
- createElementVNode("span", _hoisted_9$3, toDisplayString$1(_ctx.$t("Front_Label_Command_Button")), 1)
41510
+ createElementVNode("span", _hoisted_10$3, toDisplayString$1(_ctx.$t("Front_Label_Command_Button")), 1)
41453
41511
  ]),
41454
41512
  _: 1
41455
41513
  }),
@@ -42561,6 +42619,10 @@ const _sfc_main$q = {
42561
42619
  type: Boolean,
42562
42620
  default: true
42563
42621
  },
42622
+ showEnable: {
42623
+ type: Boolean,
42624
+ default: true
42625
+ },
42564
42626
  removeEnable: {
42565
42627
  type: Boolean,
42566
42628
  default: true
@@ -42888,6 +42950,9 @@ const _sfc_main$q = {
42888
42950
  edit(row, index2) {
42889
42951
  this.$emit("edit", { row, index: index2 });
42890
42952
  },
42953
+ show(row, index2) {
42954
+ this.$emit("show", { row, index: index2 });
42955
+ },
42891
42956
  remove(row, index2) {
42892
42957
  this.confirm("Front_Msg_Sure_To_Delete_Item", async () => {
42893
42958
  if (this.embedded) {
@@ -43996,7 +44061,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
43996
44061
  _: 3
43997
44062
  }, 8, ["columns", "table-view", "onOnKeyup"]),
43998
44063
  createVNode$1(_component_Col, mergeProps(_ctx.getGrid($data.tableView.filterWidth), {
43999
- style: { "text-align": $data.tableView.filterAlign == null ? "left" : $data.tableView.filterAlign.toLowerCase() }
44064
+ style: { "text-align": !($data.tableView.filterAlign || "").trim() ? "left" : $data.tableView.filterAlign.toLowerCase() }
44000
44065
  }), {
44001
44066
  default: withCtx(() => [
44002
44067
  createVNode$1(_component_FormItem, { "label-width": 0 }, {
@@ -44013,7 +44078,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
44013
44078
  ]),
44014
44079
  _: 1
44015
44080
  })) : createCommentVNode("v-if", true),
44016
- $data.tableView.createEnable && $props.createEnable ? (openBlock(), createBlock(_component_Button, {
44081
+ $data.tableView.createEnable && $props.createEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44017
44082
  key: 1,
44018
44083
  type: "primary",
44019
44084
  "custom-icon": "fa fa-plus",
@@ -44548,16 +44613,24 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
44548
44613
  "custom-icon": "fa fa-edit",
44549
44614
  onClick: ($event) => $options.edit($options.rowData(row, index2), index2)
44550
44615
  }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44551
- $options.judge($data.tableView.removeEnable, $data.tableView.removeEnableJson, $options.rowData(row, index2)) && $props.removeEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44616
+ $options.judge($data.tableView.showEnable, $data.tableView.showEnableJson, $options.rowData(row, index2)) && $props.showEnable ? (openBlock(), createBlock(_component_Button, {
44552
44617
  key: 1,
44553
44618
  size: "small",
44619
+ title: _ctx.$t("Front_Btn_Detail"),
44620
+ type: "info",
44621
+ "custom-icon": "fa fa-file-alt",
44622
+ onClick: ($event) => $options.show($options.rowData(row, index2), index2)
44623
+ }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44624
+ $options.judge($data.tableView.removeEnable, $data.tableView.removeEnableJson, $options.rowData(row, index2)) && $props.removeEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44625
+ key: 2,
44626
+ size: "small",
44554
44627
  title: _ctx.$t("Front_Btn_Remove"),
44555
44628
  type: "warning",
44556
44629
  "custom-icon": "fa fa-trash-alt",
44557
44630
  onClick: ($event) => $options.remove($options.rowData(row, index2), index2)
44558
44631
  }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44559
44632
  $props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44560
- key: 2,
44633
+ key: 3,
44561
44634
  size: "small",
44562
44635
  title: _ctx.$t("Front_Btn_Up"),
44563
44636
  type: "primary",
@@ -44565,7 +44638,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
44565
44638
  onClick: ($event) => $options.up($options.rowData(row, index2), index2)
44566
44639
  }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44567
44640
  $props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44568
- key: 3,
44641
+ key: 4,
44569
44642
  size: "small",
44570
44643
  title: _ctx.$t("Front_Btn_Down"),
44571
44644
  type: "primary",