mooho-base-admin-plus 2.3.13 → 2.4.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.
package/history.md CHANGED
@@ -31,3 +31,5 @@
31
31
  2.3.11 - 弹出框增加全屏按钮
32
32
  2.3.12 - 解决弹出框全屏按钮有时会关闭窗口的 bug
33
33
  2.3.13 - 解决表格弹出框无法关闭的 bug
34
+ 2.4.0 - 增加表格弹出显示表单
35
+ 2.4.1 - 增加 int 类型时间戳显示支持
@@ -23000,6 +23000,12 @@ var mixinPage = {
23000
23000
  } else {
23001
23001
  return format$3(new Date(value), "yyyy-MM-dd");
23002
23002
  }
23003
+ } else if (dataType === "Integer") {
23004
+ if (!!(format2 || "").trim()) {
23005
+ return format$3(new Date(value * 1e3), format2);
23006
+ } else {
23007
+ return value;
23008
+ }
23003
23009
  } else if (dataType === "Decimal" || dataType === "Float" || dataType === "Double") {
23004
23010
  value = parseFloat(value);
23005
23011
  if (format2 === "Money") {
@@ -23899,7 +23905,7 @@ const _hoisted_7$b = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createEl
23899
23905
  ], -1));
23900
23906
  const _hoisted_8$a = { class: "stat" };
23901
23907
  const _hoisted_9$8 = { class: "icon" };
23902
- const _hoisted_10$5 = { class: "content" };
23908
+ const _hoisted_10$7 = { class: "content" };
23903
23909
  const _hoisted_11$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value1" }, "\u5F85\u5206\u6D3E", -1));
23904
23910
  const _hoisted_12$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("div", { class: "value2" }, "\u5DF2\u5206\u6D3E", -1));
23905
23911
  const _hoisted_13$3 = /* @__PURE__ */ _withScopeId(() => /* @__PURE__ */ createElementVNode("p", null, [
@@ -24007,7 +24013,7 @@ function _sfc_render$1p(_ctx, _cache, $props, $setup, $data, $options) {
24007
24013
  color: "rgb(250, 173, 20)"
24008
24014
  })
24009
24015
  ]),
24010
- createElementVNode("div", _hoisted_10$5, [
24016
+ createElementVNode("div", _hoisted_10$7, [
24011
24017
  createElementVNode("div", null, [
24012
24018
  withDirectives(createVNode$1(_component_Numeral, {
24013
24019
  value: "85",
@@ -28200,7 +28206,7 @@ const _hoisted_7$a = /* @__PURE__ */ createElementVNode("marker", {
28200
28206
  ], -1);
28201
28207
  const _hoisted_8$9 = ["id", "d"];
28202
28208
  const _hoisted_9$7 = ["width"];
28203
- const _hoisted_10$4 = ["x", "y", "width", "height"];
28209
+ const _hoisted_10$6 = ["x", "y", "width", "height"];
28204
28210
  const _hoisted_11$2 = ["x", "y", "font-size"];
28205
28211
  const _hoisted_12$2 = ["x", "y", "width", "height", "onMousedown", "onMouseup", "onDblclick"];
28206
28212
  const _hoisted_13$2 = ["x", "y", "width", "height"];
@@ -28340,7 +28346,7 @@ function _sfc_render$10(_ctx, _cache, $props, $setup, $data, $options) {
28340
28346
  y: item.y - $data.setting.rectHeight / 2,
28341
28347
  width: $data.setting.rectWidth,
28342
28348
  height: $data.setting.rectHeight
28343
- }, null, 8, _hoisted_10$4),
28349
+ }, null, 8, _hoisted_10$6),
28344
28350
  createElementVNode("text", {
28345
28351
  fill: "#000",
28346
28352
  x: item.x,
@@ -33084,6 +33090,7 @@ const _hoisted_6$8 = { key: 4 };
33084
33090
  const _hoisted_7$7 = { key: 5 };
33085
33091
  const _hoisted_8$7 = { key: 6 };
33086
33092
  const _hoisted_9$5 = { key: 7 };
33093
+ const _hoisted_10$5 = { key: 8 };
33087
33094
  function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33088
33095
  const _component_PageHeader = resolveComponent("PageHeader");
33089
33096
  const _component_Button = resolveComponent("Button");
@@ -33181,7 +33188,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33181
33188
  ref: "form",
33182
33189
  "view-code": "TableViewEdit",
33183
33190
  onOnChange: $options.formChange,
33184
- onOnAfterSave: _cache[5] || (_cache[5] = ($event) => _ctx.$refs.table.loadData())
33191
+ onOnAfterSave: _cache[6] || (_cache[6] = ($event) => _ctx.$refs.table.loadData())
33185
33192
  }, {
33186
33193
  column: withCtx(({ data: data2, code: code2 }) => [
33187
33194
  code2 == "keywordColumn" ? (openBlock(), createElementBlock("div", _hoisted_2$r, [
@@ -33316,14 +33323,36 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33316
33323
  _: 2
33317
33324
  }, 1032, ["onClick"])
33318
33325
  ])) : createCommentVNode("v-if", true),
33319
- code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
33326
+ code2 == "showEnable" ? (openBlock(), createElementBlock("div", _hoisted_9$5, [
33327
+ $options.showCheck(data2.showEnableJson) ? (openBlock(), createBlock(_component_Switch, {
33328
+ key: 0,
33329
+ "model-value": !!data2.showEnable,
33330
+ "onUpdate:modelValue": ($event) => {
33331
+ data2.showEnable = $event;
33332
+ },
33333
+ onOnChange: _cache[3] || (_cache[3] = ($event) => $options.checkChange("showEnableJson", "showEnable"))
33334
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
33335
+ createVNode$1(_component_Button, {
33336
+ style: { "margin-left": "8px" },
33337
+ onClick: ($event) => _ctx.$refs.conditionEdit.open(data2, "showEnableJson", "showEnable", _ctx.$refs.form.data.model),
33338
+ type: "primary",
33339
+ size: "small",
33340
+ icon: "ios-settings"
33341
+ }, {
33342
+ default: withCtx(() => [
33343
+ createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Condition")), 1)
33344
+ ]),
33345
+ _: 2
33346
+ }, 1032, ["onClick"])
33347
+ ])) : createCommentVNode("v-if", true),
33348
+ code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_10$5, [
33320
33349
  $options.showCheck(data2.removeEnableJson) ? (openBlock(), createBlock(_component_Switch, {
33321
33350
  key: 0,
33322
33351
  "model-value": !!data2.removeEnable,
33323
33352
  "onUpdate:modelValue": ($event) => {
33324
33353
  data2.removeEnable = $event;
33325
33354
  },
33326
- onOnChange: _cache[3] || (_cache[3] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
33355
+ onOnChange: _cache[4] || (_cache[4] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
33327
33356
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
33328
33357
  createVNode$1(_component_Button, {
33329
33358
  style: { "margin-left": "8px" },
@@ -33343,7 +33372,7 @@ function _sfc_render$O(_ctx, _cache, $props, $setup, $data, $options) {
33343
33372
  createVNode$1(_component_Button, {
33344
33373
  type: "primary",
33345
33374
  "custom-icon": "fa fa-save",
33346
- onClick: _cache[4] || (_cache[4] = () => _ctx.$refs.form.onSave())
33375
+ onClick: _cache[5] || (_cache[5] = () => _ctx.$refs.form.onSave())
33347
33376
  }, {
33348
33377
  default: withCtx(() => [
33349
33378
  createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Save")), 1)
@@ -34997,6 +35026,11 @@ const _sfc_main$I = {
34997
35026
  if (!!(this.page.formViewCode || "").trim()) {
34998
35027
  this.$refs.form.init(this.page.formViewCode);
34999
35028
  }
35029
+ if (!!(this.page.showViewCode || "").trim()) {
35030
+ this.$refs.showForm.init(this.page.showViewCode);
35031
+ } else if (!!(this.page.formViewCode || "").trim()) {
35032
+ this.$refs.showForm.init(this.page.formViewCode);
35033
+ }
35000
35034
  this.page.controls = res2.customPageControls.filter((item) => {
35001
35035
  return item.customPageComponentID == null;
35002
35036
  });
@@ -35063,7 +35097,8 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
35063
35097
  createEnable: _ctx.allow("create"),
35064
35098
  removeEnable: _ctx.allow("remove"),
35065
35099
  onCreate: _cache[0] || (_cache[0] = ($event) => _ctx.$refs.form.open()),
35066
- onEdit: _cache[1] || (_cache[1] = ({ row, index: index2 }) => _ctx.$refs.form.open(row))
35100
+ onEdit: _cache[1] || (_cache[1] = ({ row, index: index2 }) => _ctx.$refs.form.open(row)),
35101
+ onShow: _cache[2] || (_cache[2] = ({ row, index: index2 }) => _ctx.$refs.showForm.open(row))
35067
35102
  }, {
35068
35103
  command: withCtx(({ row }) => [
35069
35104
  (openBlock(true), createElementBlock(Fragment, null, renderList($data.page.controls, (item) => {
@@ -35087,9 +35122,15 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
35087
35122
  ref: "form",
35088
35123
  createEnable: _ctx.allow("create"),
35089
35124
  editEnable: _ctx.allow("edit"),
35090
- onOnAfterSave: _cache[2] || (_cache[2] = ($event) => _ctx.$refs.table.loadData())
35125
+ onOnAfterSave: _cache[3] || (_cache[3] = ($event) => _ctx.$refs.table.loadData())
35091
35126
  }, null, 8, ["createEnable", "editEnable"])) : createCommentVNode("v-if", true),
35092
- $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 1 }, renderList($data.tables, (table) => {
35127
+ $data.page ? (openBlock(), createBlock(_component_modal_form, {
35128
+ key: 1,
35129
+ ref: "showForm",
35130
+ readonly: $data.page.showViewCode == null,
35131
+ "save-enable": false
35132
+ }, null, 8, ["readonly"])) : createCommentVNode("v-if", true),
35133
+ $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList($data.tables, (table) => {
35093
35134
  return openBlock(), createBlock(_component_modal_table, {
35094
35135
  key: table.id,
35095
35136
  ref_for: true,
@@ -35115,7 +35156,7 @@ function _sfc_render$I(_ctx, _cache, $props, $setup, $data, $options) {
35115
35156
  _: 2
35116
35157
  }, 1032, ["view-code", "onCreate", "onEdit"]);
35117
35158
  }), 128)) : createCommentVNode("v-if", true),
35118
- $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 2 }, renderList($data.forms, (form) => {
35159
+ $data.inited ? (openBlock(true), createElementBlock(Fragment, { key: 3 }, renderList($data.forms, (form) => {
35119
35160
  return openBlock(), createBlock(_component_modal_form, {
35120
35161
  key: form.id,
35121
35162
  ref_for: true,
@@ -37606,7 +37647,7 @@ const _hoisted_6$6 = ["innerHTML"];
37606
37647
  const _hoisted_7$6 = ["innerHTML"];
37607
37648
  const _hoisted_8$6 = ["href", "target"];
37608
37649
  const _hoisted_9$4 = ["innerHTML"];
37609
- const _hoisted_10$3 = ["href"];
37650
+ const _hoisted_10$4 = ["href"];
37610
37651
  function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
37611
37652
  const _component_Divider = resolveComponent("Divider");
37612
37653
  const _component_view_table = resolveComponent("view-table");
@@ -38143,7 +38184,7 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
38143
38184
  createVNode$1(_component_Icon, { type: "ios-document" }),
38144
38185
  createTextVNode(" " + toDisplayString$1(attachment.name), 1)
38145
38186
  ])
38146
- ], 8, _hoisted_10$3);
38187
+ ], 8, _hoisted_10$4);
38147
38188
  }), 128)) : createCommentVNode("v-if", true)
38148
38189
  ], 64)) : column.controlType === "Image" ? (openBlock(), createBlock(_component_upload_image, {
38149
38190
  key: 25,
@@ -41154,7 +41195,8 @@ const _hoisted_5$5 = { key: 4 };
41154
41195
  const _hoisted_6$4 = { key: 5 };
41155
41196
  const _hoisted_7$4 = { key: 6 };
41156
41197
  const _hoisted_8$4 = { key: 7 };
41157
- const _hoisted_9$3 = { class: "title" };
41198
+ const _hoisted_9$3 = { key: 8 };
41199
+ const _hoisted_10$3 = { class: "title" };
41158
41200
  function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
41159
41201
  const _component_Button = resolveComponent("Button");
41160
41202
  const _component_modal_table = resolveComponent("modal-table");
@@ -41418,14 +41460,36 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
41418
41460
  _: 2
41419
41461
  }, 1032, ["onClick"])
41420
41462
  ])) : createCommentVNode("v-if", true),
41421
- code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
41463
+ code2 == "showEnable" ? (openBlock(), createElementBlock("div", _hoisted_8$4, [
41464
+ $options.showCheck(data2.showEnableJson) ? (openBlock(), createBlock(_component_Switch, {
41465
+ key: 0,
41466
+ "model-value": !!data2.showEnable,
41467
+ "onUpdate:modelValue": ($event) => {
41468
+ data2.showEnable = $event;
41469
+ },
41470
+ onOnChange: _cache[8] || (_cache[8] = ($event) => $options.checkChange("showEnableJson", "showEnable"))
41471
+ }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
41472
+ createVNode$1(_component_Button, {
41473
+ style: { "margin-left": "8px" },
41474
+ onClick: ($event) => _ctx.$refs.conditionEdit.open(data2, "showEnableJson", "showEnable", $data.dataView.model),
41475
+ type: "primary",
41476
+ size: "small",
41477
+ icon: "ios-settings"
41478
+ }, {
41479
+ default: withCtx(() => [
41480
+ createTextVNode(toDisplayString$1(_ctx.$t("Front_Btn_Condition")), 1)
41481
+ ]),
41482
+ _: 2
41483
+ }, 1032, ["onClick"])
41484
+ ])) : createCommentVNode("v-if", true),
41485
+ code2 == "removeEnable" ? (openBlock(), createElementBlock("div", _hoisted_9$3, [
41422
41486
  $options.showCheck(data2.removeEnableJson) ? (openBlock(), createBlock(_component_Switch, {
41423
41487
  key: 0,
41424
41488
  "model-value": !!data2.removeEnable,
41425
41489
  "onUpdate:modelValue": ($event) => {
41426
41490
  data2.removeEnable = $event;
41427
41491
  },
41428
- onOnChange: _cache[8] || (_cache[8] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
41492
+ onOnChange: _cache[9] || (_cache[9] = ($event) => $options.checkChange("removeEnableJson", "removeEnable"))
41429
41493
  }, null, 8, ["model-value", "onUpdate:modelValue"])) : createCommentVNode("v-if", true),
41430
41494
  createVNode$1(_component_Button, {
41431
41495
  style: { "margin-left": "8px" },
@@ -41449,7 +41513,7 @@ function _sfc_render$s(_ctx, _cache, $props, $setup, $data, $options) {
41449
41513
  size: "small"
41450
41514
  }, {
41451
41515
  default: withCtx(() => [
41452
- createElementVNode("span", _hoisted_9$3, toDisplayString$1(_ctx.$t("Front_Label_Command_Button")), 1)
41516
+ createElementVNode("span", _hoisted_10$3, toDisplayString$1(_ctx.$t("Front_Label_Command_Button")), 1)
41453
41517
  ]),
41454
41518
  _: 1
41455
41519
  }),
@@ -42561,6 +42625,10 @@ const _sfc_main$q = {
42561
42625
  type: Boolean,
42562
42626
  default: true
42563
42627
  },
42628
+ showEnable: {
42629
+ type: Boolean,
42630
+ default: true
42631
+ },
42564
42632
  removeEnable: {
42565
42633
  type: Boolean,
42566
42634
  default: true
@@ -42888,6 +42956,9 @@ const _sfc_main$q = {
42888
42956
  edit(row, index2) {
42889
42957
  this.$emit("edit", { row, index: index2 });
42890
42958
  },
42959
+ show(row, index2) {
42960
+ this.$emit("show", { row, index: index2 });
42961
+ },
42891
42962
  remove(row, index2) {
42892
42963
  this.confirm("Front_Msg_Sure_To_Delete_Item", async () => {
42893
42964
  if (this.embedded) {
@@ -43996,7 +44067,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
43996
44067
  _: 3
43997
44068
  }, 8, ["columns", "table-view", "onOnKeyup"]),
43998
44069
  createVNode$1(_component_Col, mergeProps(_ctx.getGrid($data.tableView.filterWidth), {
43999
- style: { "text-align": $data.tableView.filterAlign == null ? "left" : $data.tableView.filterAlign.toLowerCase() }
44070
+ style: { "text-align": !($data.tableView.filterAlign || "").trim() ? "left" : $data.tableView.filterAlign.toLowerCase() }
44000
44071
  }), {
44001
44072
  default: withCtx(() => [
44002
44073
  createVNode$1(_component_FormItem, { "label-width": 0 }, {
@@ -44013,7 +44084,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
44013
44084
  ]),
44014
44085
  _: 1
44015
44086
  })) : createCommentVNode("v-if", true),
44016
- $data.tableView.createEnable && $props.createEnable ? (openBlock(), createBlock(_component_Button, {
44087
+ $data.tableView.createEnable && $props.createEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44017
44088
  key: 1,
44018
44089
  type: "primary",
44019
44090
  "custom-icon": "fa fa-plus",
@@ -44548,16 +44619,24 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
44548
44619
  "custom-icon": "fa fa-edit",
44549
44620
  onClick: ($event) => $options.edit($options.rowData(row, index2), index2)
44550
44621
  }, 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, {
44622
+ $options.judge($data.tableView.showEnable, $data.tableView.showEnableJson, $options.rowData(row, index2)) && $props.showEnable ? (openBlock(), createBlock(_component_Button, {
44552
44623
  key: 1,
44553
44624
  size: "small",
44625
+ title: _ctx.$t("Front_Btn_Detail"),
44626
+ type: "info",
44627
+ "custom-icon": "fa fa-file-alt",
44628
+ onClick: ($event) => $options.show($options.rowData(row, index2), index2)
44629
+ }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44630
+ $options.judge($data.tableView.removeEnable, $data.tableView.removeEnableJson, $options.rowData(row, index2)) && $props.removeEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44631
+ key: 2,
44632
+ size: "small",
44554
44633
  title: _ctx.$t("Front_Btn_Remove"),
44555
44634
  type: "warning",
44556
44635
  "custom-icon": "fa fa-trash-alt",
44557
44636
  onClick: ($event) => $options.remove($options.rowData(row, index2), index2)
44558
44637
  }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44559
44638
  $props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44560
- key: 2,
44639
+ key: 3,
44561
44640
  size: "small",
44562
44641
  title: _ctx.$t("Front_Btn_Up"),
44563
44642
  type: "primary",
@@ -44565,7 +44644,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
44565
44644
  onClick: ($event) => $options.up($options.rowData(row, index2), index2)
44566
44645
  }, null, 8, ["title", "onClick"])) : createCommentVNode("v-if", true),
44567
44646
  $props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
44568
- key: 3,
44647
+ key: 4,
44569
44648
  size: "small",
44570
44649
  title: _ctx.$t("Front_Btn_Down"),
44571
44650
  type: "primary",