mooho-base-admin-plus 0.4.64 → 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.
- package/dist/mooho-base-admin-plus.min.esm.js +34 -26
- package/dist/mooho-base-admin-plus.min.js +3 -3
- package/dist/style.css +1 -1
- package/package.json +2 -2
- package/src/components/view/table-filter.vue +9 -9
- package/src/components/view/view-table.vue +2 -2
- package/src/layouts/basic-layout/index.vue +16 -6
- package/src/layouts/basic-layout/menu-side/index.vue +1 -1
|
@@ -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.
|
|
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.
|
|
37021
|
+
this.setFilterData(data2, item, format$3(new Date(), format2));
|
|
37022
37022
|
} else if (item.defaultValue == "{currentUserID}") {
|
|
37023
|
-
this.
|
|
37023
|
+
this.setFilterData(data2, item, this.info.id);
|
|
37024
37024
|
} else if (item.defaultValue == "{currentUser}") {
|
|
37025
|
-
this.
|
|
37025
|
+
this.setFilterData(data2, item, this.info.name);
|
|
37026
37026
|
} else {
|
|
37027
37027
|
if (item.dataType === "Integer") {
|
|
37028
|
-
this.
|
|
37028
|
+
this.setFilterData(data2, item, parseInt(item.defaultValue));
|
|
37029
37029
|
} else if (item.dataType === "Decimal") {
|
|
37030
|
-
this.
|
|
37030
|
+
this.setFilterData(data2, item, parseFloat(item.defaultValue));
|
|
37031
37031
|
} else if (item.dataType === "Boolean" && item.defaultValue.toUpperCase == "TRUE") {
|
|
37032
|
-
this.
|
|
37032
|
+
this.setFilterData(data2, item, true);
|
|
37033
37033
|
} else if (item.dataType === "Boolean" && item.defaultValue.toUpperCase == "FALSE") {
|
|
37034
|
-
this.
|
|
37034
|
+
this.setFilterData(data2, item, false);
|
|
37035
37035
|
} else {
|
|
37036
|
-
this.
|
|
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-
|
|
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;
|
|
@@ -39505,7 +39505,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39505
39505
|
"custom-icon": "fa fa-trash-alt",
|
|
39506
39506
|
onClick: ($event) => $options.remove($options.rowData(row, index2), index2)
|
|
39507
39507
|
}, null, 8, ["title", "onClick"])) : createCommentVNode("", true),
|
|
39508
|
-
|
|
39508
|
+
$props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
|
|
39509
39509
|
key: 2,
|
|
39510
39510
|
size: "small",
|
|
39511
39511
|
title: _ctx.$t("Front_Btn_Up"),
|
|
@@ -39513,7 +39513,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39513
39513
|
"custom-icon": "fa fa-chevron-up",
|
|
39514
39514
|
onClick: ($event) => $options.up($options.rowData(row, index2), index2)
|
|
39515
39515
|
}, null, 8, ["title", "onClick"])) : createCommentVNode("", true),
|
|
39516
|
-
|
|
39516
|
+
$props.static && $data.tableView.adjustEnable && !$props.readonly ? (openBlock(), createBlock(_component_Button, {
|
|
39517
39517
|
key: 3,
|
|
39518
39518
|
size: "small",
|
|
39519
39519
|
title: _ctx.$t("Front_Btn_Down"),
|
|
@@ -39680,7 +39680,7 @@ function _sfc_render$q(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
39680
39680
|
], 2)
|
|
39681
39681
|
], 2);
|
|
39682
39682
|
}
|
|
39683
|
-
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-
|
|
39683
|
+
var ViewTable = /* @__PURE__ */ _export_sfc(_sfc_main$q, [["render", _sfc_render$q], ["__scopeId", "data-v-3c5666be"]]);
|
|
39684
39684
|
const _sfc_main$p = {
|
|
39685
39685
|
mixins: [mixinPage],
|
|
39686
39686
|
components: { columnSelect, columnEdit },
|
|
@@ -49005,7 +49005,7 @@ function _sfc_render$e(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
49005
49005
|
}, null, 8, ["menu"]))
|
|
49006
49006
|
], 64)) : (openBlock(), createElementBlock(Fragment, { key: 1 }, [
|
|
49007
49007
|
item.children === void 0 || !item.children.length ? (openBlock(), createBlock(_component_Tooltip, {
|
|
49008
|
-
content:
|
|
49008
|
+
content: _ctx.layout.showI18n ? _ctx.$t("Permission_" + item.code) : item.title,
|
|
49009
49009
|
placement: "right",
|
|
49010
49010
|
key: index2,
|
|
49011
49011
|
theme: _ctx.siderTheme
|
|
@@ -51027,7 +51027,6 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51027
51027
|
const _component_i_menu_head = resolveComponent("i-menu-head");
|
|
51028
51028
|
const _component_i_header_breadcrumb = resolveComponent("i-header-breadcrumb");
|
|
51029
51029
|
const _component_i_header_search = resolveComponent("i-header-search");
|
|
51030
|
-
const _component_i_header_log = resolveComponent("i-header-log");
|
|
51031
51030
|
const _component_i_header_fullscreen = resolveComponent("i-header-fullscreen");
|
|
51032
51031
|
const _component_i_header_notice = resolveComponent("i-header-notice");
|
|
51033
51032
|
const _component_i_header_user = resolveComponent("i-header-user");
|
|
@@ -51088,17 +51087,26 @@ function _sfc_render(_ctx, _cache, $props, $setup, $data, $options) {
|
|
|
51088
51087
|
_ctx.showSearch && !_ctx.headerMenu && !_ctx.isMobile && !_ctx.showBreadcrumb ? (openBlock(), createBlock(_component_i_header_search, { key: 6 })) : createCommentVNode("", true),
|
|
51089
51088
|
createElementVNode("div", _hoisted_1, [
|
|
51090
51089
|
renderSlot(_ctx.$slots, "header"),
|
|
51091
|
-
|
|
51092
|
-
|
|
51093
|
-
|
|
51094
|
-
_ctx.
|
|
51095
|
-
_ctx.
|
|
51096
|
-
|
|
51097
|
-
|
|
51098
|
-
|
|
51099
|
-
|
|
51100
|
-
|
|
51101
|
-
|
|
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
|
+
])
|
|
51102
51110
|
])
|
|
51103
51111
|
]),
|
|
51104
51112
|
_: 3
|