mooho-base-admin-plus 0.4.63 → 0.4.65

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.
@@ -37015,25 +37015,25 @@ const _sfc_main$r = {
37015
37015
  if (item.defaultValue == "{today}") {
37016
37016
  let date = new Date();
37017
37017
  let value = date.toISOString().replace(/T.*/, "");
37018
- this.setData(data2, item.code, new Date(value));
37018
+ this.setFilterData(data2, item, new Date(value));
37019
37019
  } else if (item.defaultValue.startsWith("{today(") && item.defaultValue.endsWith(")}")) {
37020
37020
  let format2 = item.defaultValue.substr(7, item.defaultValue.length - 9);
37021
- this.setData(data2, item.code, format$3(new Date(), format2));
37021
+ this.setFilterData(data2, item, format$3(new Date(), format2));
37022
37022
  } else if (item.defaultValue == "{currentUserID}") {
37023
- this.setData(data2, item.code, this.info.id);
37023
+ this.setFilterData(data2, item, this.info.id);
37024
37024
  } else if (item.defaultValue == "{currentUser}") {
37025
- this.setData(data2, item.code, this.info.name);
37025
+ this.setFilterData(data2, item, this.info.name);
37026
37026
  } else {
37027
37027
  if (item.dataType === "Integer") {
37028
- this.setData(data2, item.code, parseInt(item.defaultValue));
37028
+ this.setFilterData(data2, item, parseInt(item.defaultValue));
37029
37029
  } else if (item.dataType === "Decimal") {
37030
- this.setData(data2, item.code, parseFloat(item.defaultValue));
37030
+ this.setFilterData(data2, item, parseFloat(item.defaultValue));
37031
37031
  } else if (item.dataType === "Boolean" && item.defaultValue.toUpperCase == "TRUE") {
37032
- this.setData(data2, item.code, true);
37032
+ this.setFilterData(data2, item, true);
37033
37033
  } else if (item.dataType === "Boolean" && item.defaultValue.toUpperCase == "FALSE") {
37034
- this.setData(data2, item.code, false);
37034
+ this.setFilterData(data2, item, false);
37035
37035
  } else {
37036
- this.setData(data2, item.code, item.defaultValue);
37036
+ this.setFilterData(data2, item, item.defaultValue);
37037
37037
  }
37038
37038
  }
37039
37039
  }
@@ -37643,7 +37643,7 @@ function _sfc_render$r(_ctx, _cache, $props, $setup, $data, $options) {
37643
37643
  ]);
37644
37644
  }
37645
37645
  var tableFilter = /* @__PURE__ */ _export_sfc(_sfc_main$r, [["render", _sfc_render$r]]);
37646
- var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-43bb9d6c]{display:flex}.image-group .image[data-v-43bb9d6c]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-43bb9d6c]{width:75px;height:75px}\n")();
37646
+ var viewTable_vue_vue_type_style_index_0_scoped_true_lang = /* @__PURE__ */ (() => ".image-group[data-v-3c5666be]{display:flex}.image-group .image[data-v-3c5666be]{border:solid 1px #ccc;width:75px;height:75px;margin:2px 1px;cursor:pointer}.image-group .image img[data-v-3c5666be]{width:75px;height:75px}\n")();
37647
37647
  var getColumns = (view, item) => {
37648
37648
  let children = view.viewColumns.filter((i2) => {
37649
37649
  return i2.parentCode == item.code;
@@ -38011,7 +38011,6 @@ const _sfc_main$q = {
38011
38011
  if (staticData) {
38012
38012
  this.staticData = this.copy(staticData);
38013
38013
  }
38014
- console.log("bbb", this.staticData);
38015
38014
  if (this.static) {
38016
38015
  let data2 = this.getFilterResult();
38017
38016
  this.total = data2.length;
@@ -39506,7 +39505,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39506
39505
  "custom-icon": "fa fa-trash-alt",
39507
39506
  onClick: ($event) => $options.remove($options.rowData(row, index2), index2)
39508
39507
  }, null, 8, ["title", "onClick"])) : createCommentVNode("", true),
39509
- this.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
39508
+ $props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
39510
39509
  key: 2,
39511
39510
  size: "small",
39512
39511
  title: _ctx.$t("Front_Btn_Up"),
@@ -39514,7 +39513,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39514
39513
  "custom-icon": "fa fa-chevron-up",
39515
39514
  onClick: ($event) => $options.up($options.rowData(row, index2), index2)
39516
39515
  }, null, 8, ["title", "onClick"])) : createCommentVNode("", true),
39517
- this.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
39516
+ $props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
39518
39517
  key: 3,
39519
39518
  size: "small",
39520
39519
  title: _ctx.$t("Front_Btn_Down"),
@@ -39681,7 +39680,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
39681
39680
  ], 2)
39682
39681
  ], 2);
39683
39682
  }
39684
- var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-43bb9d6c"]]);
39683
+ var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-3c5666be"]]);
39685
39684
  const _sfc_main$p = {
39686
39685
  mixins: [mixinPage],
39687
39686
  components: { columnSelect, columnEdit },
@@ -49006,7 +49005,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
49006
49005
  }, null, 8, ["menu"]))
49007
49006
  ], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
49008
49007
  item.children === void 0 || !item.children.length ? (openBlock(), createBlock(_component_Tooltip, {
49009
- content: this.layout.showI18n ? this.$t("Permission_" + item.code) : item.title,
49008
+ content: _ctx.layout.showI18n ? _ctx.$t("Permission_" + item.code) : item.title,
49010
49009
  placement: "right",
49011
49010
  key: index2,
49012
49011
  theme: _ctx.siderTheme
@@ -51028,7 +51027,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
51028
51027
  const _component_i_menu_head = resolveComponent("i-menu-head");
51029
51028
  const _component_i_header_breadcrumb = resolveComponent("i-header-breadcrumb");
51030
51029
  const _component_i_header_search = resolveComponent("i-header-search");
51031
- const _component_i_header_log = resolveComponent("i-header-log");
51032
51030
  const _component_i_header_fullscreen = resolveComponent("i-header-fullscreen");
51033
51031
  const _component_i_header_notice = resolveComponent("i-header-notice");
51034
51032
  const _component_i_header_user = resolveComponent("i-header-user");
@@ -51089,17 +51087,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
51089
51087
  _ctx.showSearch && !_ctx.headerMenu && !_ctx.isMobile && !_ctx.showBreadcrumb ? (openBlock(), createBlock(_component_i_header_search, { key: 6 })) : createCommentVNode("", true),
51090
51088
  createElementVNode("div", _hoisted_1, [
51091
51089
  renderSlot(_ctx.$slots, "header"),
51092
- _ctx.showSearch && _ctx.isMobile || _ctx.showSearch && (_ctx.headerMenu || _ctx.showBreadcrumb) ? (openBlock(), createBlock(_component_i_header_search, { key: 0 })) : createCommentVNode("", true),
51093
- _ctx.headerMenu && _ctx.isMobile ? (openBlock(), createBlock(_component_i_menu_head, { key: 1 })) : createCommentVNode("", true),
51094
- _ctx.isDesktop && _ctx.showLog ? (openBlock(), createBlock(_component_i_header_log, { key: 2 })) : createCommentVNode("", true),
51095
- _ctx.isDesktop && _ctx.showFullscreen ? (openBlock(), createBlock(_component_i_header_fullscreen, { key: 3 })) : createCommentVNode("", true),
51096
- _ctx.showNotice ? (openBlock(), createBlock(_component_i_header_notice, {
51097
- key: 4,
51098
- ref: "notice"
51099
- }, null, 512)) : createCommentVNode("", true),
51100
- createVNode$1(_component_i_header_user),
51101
- _ctx.showI18n ? (openBlock(), createBlock(_component_i_header_i18n, { key: 5 })) : createCommentVNode("", true),
51102
- _ctx.enableSetting && !_ctx.isMobile ? (openBlock(), createBlock(_component_i_header_setting, { key: 6 })) : createCommentVNode("", true)
51090
+ renderSlot(_ctx.$slots, "search", {}, () => [
51091
+ _ctx.showSearch && _ctx.isMobile || _ctx.showSearch && (_ctx.headerMenu || _ctx.showBreadcrumb) ? (openBlock(), createBlock(_component_i_header_search, { key: 0 })) : createCommentVNode("", true)
51092
+ ]),
51093
+ _ctx.headerMenu && _ctx.isMobile ? (openBlock(), createBlock(_component_i_menu_head, { key: 0 })) : createCommentVNode("", true),
51094
+ _ctx.isDesktop && _ctx.showFullscreen ? (openBlock(), createBlock(_component_i_header_fullscreen, { key: 1 })) : createCommentVNode("", true),
51095
+ renderSlot(_ctx.$slots, "notice", {}, () => [
51096
+ _ctx.showNotice ? (openBlock(), createBlock(_component_i_header_notice, {
51097
+ key: 0,
51098
+ ref: "notice"
51099
+ }, null, 512)) : createCommentVNode("", true)
51100
+ ]),
51101
+ renderSlot(_ctx.$slots, "user", {}, () => [
51102
+ createVNode$1(_component_i_header_user)
51103
+ ]),
51104
+ renderSlot(_ctx.$slots, "i18n", {}, () => [
51105
+ _ctx.showI18n ? (openBlock(), createBlock(_component_i_header_i18n, { key: 0 })) : createCommentVNode("", true)
51106
+ ]),
51107
+ renderSlot(_ctx.$slots, "setting", {}, () => [
51108
+ _ctx.enableSetting && !_ctx.isMobile ? (openBlock(), createBlock(_component_i_header_setting, { key: 0 })) : createCommentVNode("", true)
51109
+ ])
51103
51110
  ])
51104
51111
  ]),
51105
51112
  _: 3